NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

@page "/facility/add"
@using Tatilfoni.Application.Features.Facilities.Commands.Add
@using Tatilfoni.Application.Features.Features.Queries.GetAll
@using Fluxor
@using Tatilfoni.BackOfficeWasm.Store.CategoryUserCase
@using Tatilfoni.BackOfficeWasm.Store.CategoryUserCase.Actions
@using Tatilfoni.BackOfficeWasm.Store.FacilityUseCase.Actions
@using Tatilfoni.BackOfficeWasm.Store.FeaturesUseCase
@using Tatilfoni.BackOfficeWasm.Store.FeaturesUseCase.Actions
@using Tatilfoni.Domain.Enums
@using Blazored.LocalStorage
@using Tatilfoni.Application.Features.Categories.Queries.GetAll
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
@inject IDispatcher Dispatcher
@inject IState<CategoryState> CategoryState
@inject IState<FeaturesState> FeaturesState
@inject ILocalStorageService LocalStorageService

<div>
<Header Title="Yeni Tesis Ekle"></Header>
<div class="control-section">
<div class="validation-stepper-section">
<SfStepper Linear="true" ID="validation-stepper" @ref="validationStepper" StepChanging="@handleStepChange">
<StepperSteps>
<StepperStep @ref="Step1" IconCss="sf-icon-survey-intro" Text="Tesis Türleri"></StepperStep>
<StepperStep @ref="Step2" IconCss="sf-icon-survey-feedback" Text="Detaylar"></StepperStep>
<StepperStep @ref="Step3" IconCss="sf-icon-survey-status" Text="Saatler"></StepperStep>
<StepperStep @ref="Step4" IconCss="sf-icon-survey-status" Text="Kategoriler"></StepperStep>
<StepperStep @ref="Step5" IconCss="sf-icon-survey-status" Text="Uzaklıklar"></StepperStep>
<StepperStep @ref="Step7" IconCss="sf-icon-survey-status" Text="Görseller"></StepperStep>
</StepperSteps>
</SfStepper>
</div>
<div id="validation-step-content">
<div id="container0" class="step-content @ContainerZero">
<div class="tab" id="tab-1">
<div class="grid-cols-3 grid w-full gap-10">
<div>
<label class="text-base font-medium text-gray-900"> Tesis Türü </label>
<div class="mt-2.5 text-gray-400 focus-within:text-gray-600">
<SfDropDownList TValue="FacilityType" @bind-Value="@command.Type" Placeholder="Bir Tesis Türü Seçiniz" DataSource="@facilityType">
<DropDownListFieldSettings Value="@nameof(FacilityType)" Text="@nameof(FacilityType)"></DropDownListFieldSettings>
</SfDropDownList>
</div>
</div>
<div>
<label class="text-base font-medium text-gray-900"> Tesis Kanalı </label>
<div class="mt-2.5 text-gray-400 focus-within:text-gray-600">
<SfDropDownList TValue="FacilityChannelType" @bind-Value="@command.ChannelType" Placeholder="Bir Tesis Kanalı Seçiniz" DataSource="@facilityChannel">
<DropDownListFieldSettings Value="@nameof(FacilityChannelType)" Text="@nameof(FacilityChannelType)"></DropDownListFieldSettings>
</SfDropDownList>
</div>
</div>
<div>
<label class="text-base font-medium text-gray-900"> Tesis Durumu </label>
<div class="mt-2.5 text-gray-400 focus-within:text-gray-600">
<SfDropDownList TValue="FacilityStatus" @bind-Value="@command.Status" Placeholder="Bir Tesis Durumu" DataSource="@facilityStatus">
<DropDownListFieldSettings Value="@nameof(FacilityStatus)" Text="@nameof(FacilityStatus)"></DropDownListFieldSettings>
</SfDropDownList>
</div>
</div>
</div>
<div class="justify-content-between mt-5 flex flex-row justify-between gap-5">
<ThreeDButton ButtonClicked="@onPreviousStep" Text="Önceki"></ThreeDButton>
<ThreeDButton ButtonClicked="@onNextStep" Text="Sonraki"></ThreeDButton>
</div>
</div>
</div>
<!-- Diğer container'lar aynı kalacak -->
<!-- ... -->
</div>
</div>
</div>

@code {
public string FormatType = "hh:mm";
public string DistanceFormatType = "0.00km";
public string FormatTypeFor = "0.00%";

private readonly FacilitiesAddCommand command = new();
private IEnumerable<FacilityType> facilityType = Enum.GetValues(typeof(FacilityType)).Cast<FacilityType>();
private IEnumerable<FacilityStatus> facilityStatus = Enum.GetValues(typeof(FacilityStatus)).Cast<FacilityStatus>();
private IEnumerable<FacilityChannelType> facilityChannel = Enum.GetValues(typeof(FacilityChannelType)).Cast<FacilityChannelType>();
private int imageOrder = 1;

// Diğer metodlar aynı kalacak
// ...

protected override async Task OnInitializedAsync()
{
Dispatcher.Dispatch(new FeaturesGetAllStartAction());
Dispatcher.Dispatch(new CategoryGetAllStartAction());

await base.OnInitializedAsync();
}

// Diğer metodlar aynı kalacak
// ...
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.