SHA256
StayExportTracking - Edit StayEntry UploadStatus
- Page Details - Added UI to edit UploadStatus. - Page List - Filter by UploadStatus.
This commit is contained in:
1 parent
2f0062b313
commit
7b86b2224f
9 files changed
+237
-29
No files matched your search
@@ -7,18 +7,16 @@
|
||||
@inject IDataListService dataListService;
|
||||
@inject IValidator<StayEntryDTO> stayValidator;
|
||||
@inject IDialogService dialogService;
|
||||
@inject IUserMessageService userMessage
|
||||
@inject IUserMessageService userMessage;
|
||||
@inject ILocalizerService Localizer;
|
||||
|
||||
|
||||
<MudForm @ref="@_form" Model="@Model" Validation="@((stayValidator as StayEntryDTOValidator)!.ValidateValue)"
|
||||
ReadOnly="@ReadOnly">
|
||||
<MudGrid>
|
||||
<MudItem xs="12" xl=6>
|
||||
<MudItem xs="12" sm="@stayDetailPanelSize">
|
||||
<MudPaper Class="pa-4" Elevation="3" Height="100%">
|
||||
<MudText Typo="Typo.subtitle1" Align="Align.Center">
|
||||
@LanguageLocale.control_StayEntryForm_sectionDetails
|
||||
</MudText>
|
||||
<MudDivider DividerType="DividerType.Middle" Class="mb-4" />
|
||||
<SectionTitle Title="@LanguageLocale.control_StayEntryForm_sectionDetails" />
|
||||
|
||||
<MudStack Row style="@FieldMarginY">
|
||||
<MudDatePicker Date="Model.DateIn" For="@(() => Model.DateIn)"
|
||||
@@ -52,12 +50,25 @@
|
||||
</MudStack>
|
||||
</MudPaper>
|
||||
</MudItem>
|
||||
<MudItem xs="12" xl=6>
|
||||
@if (FormMode == FormMode.ReadOnly)
|
||||
{
|
||||
<MudItem xs="12" sm="3">
|
||||
<MudPaper Class="pa-4" Elevation="3" Height="100%">
|
||||
<SectionTitle Title="@LanguageLocale.control_StayEntryForm_sectionUploadStatus" />
|
||||
|
||||
<MudTextField Value="@Localizer.GetEnumValue(Model.StayUploadStatus)"
|
||||
Label="@LanguageLocale.dto_StayEntry_StayUploadStatus" FullWidth ReadOnly />
|
||||
@if (Model.StayUploadStatusTime != null)
|
||||
{
|
||||
<MudTextField @bind-Value="Model.StayUploadStatusTime" For="@(() => Model.StayUploadStatusTime)"
|
||||
Label="@LanguageLocale.dto_StayEntry_StayUploadStatusTime" FullWidth ReadOnly />
|
||||
}
|
||||
</MudPaper>
|
||||
</MudItem>
|
||||
}
|
||||
<MudItem xs="12" xl="12">
|
||||
<MudPaper Class="pa-4" Elevation="3" Height="100%" Width="100%">
|
||||
<MudText Typo="Typo.subtitle1" Align="Align.Center">
|
||||
@LanguageLocale.control_StayEntryForm_sectionGuests
|
||||
</MudText>
|
||||
<MudDivider DividerType="DividerType.Middle" Class="mb-4" />
|
||||
<SectionTitle Title="@LanguageLocale.control_StayEntryForm_sectionGuests" />
|
||||
|
||||
@if (!ReadOnly)
|
||||
{
|
||||
@@ -124,6 +135,7 @@
|
||||
|
||||
|
||||
private bool ReadOnly => FormMode == FormMode.ReadOnly;
|
||||
private int stayDetailPanelSize => FormMode == FormMode.ReadOnly ? 9 : 12;
|
||||
|
||||
|
||||
private MudForm _form = null!;
|
||||
|
||||
Reference in new issue
Block a user