SHA256
StayExportTracking - Changes to Models
- Added new fields to track stay export uploading. - Added methods in EntityServices to update this fields. - Show new fields in UI (with required locale).
This commit is contained in:
1 parent
34b61e7fde
commit
2f0062b313
20 files changed
+586
-8
No files matched your search
@@ -8,6 +8,8 @@
|
||||
@inject IUserMessageService userMessage
|
||||
@inject IDialogService DialogService
|
||||
@inject IDataListService dataListService;
|
||||
@inject ILocalizerService Localizer;
|
||||
|
||||
|
||||
<PageTitle>Somnia - Stay Entries</PageTitle>
|
||||
|
||||
@@ -46,6 +48,8 @@
|
||||
Property="x => dataListService.GetLocalizedValue(GuestConsts.DataList_PaymentMethods, x.PaymentMethod)" />
|
||||
|
||||
<PropertyColumn Property="x => x.UpdateTime" Title="@LanguageLocale.dto_GuestDocument_UpdateTime" />
|
||||
<PropertyColumn Property="x => Localizer.GetEnumValue(x.StayUploadStatus)"
|
||||
Title="@LanguageLocale.dto_StayEntry_StayUploadStatus" />
|
||||
|
||||
<TemplateColumn CellClass="d-flex justify-between" Title="Options" StickyRight Hideable="false"
|
||||
ShowColumnOptions="false">
|
||||
@@ -124,6 +128,12 @@
|
||||
|
||||
private async Task BtnDeleteItem(StayEntryDTO item)
|
||||
{
|
||||
if (item.StayUploadStatus == Enums.Models.UploadStatus.Uploaded)
|
||||
{
|
||||
userMessage.ShowMessage(LanguageLocale.page_StayEntryList_msgDeleteUploadedStay, MessageKind.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
bool? confirmDelete = await _confirmDeleteMsgBox.MsgBox.ShowAsync();
|
||||
|
||||
if (confirmDelete is null || confirmDelete.Value == false)
|
||||
|
||||
@@ -59,6 +59,10 @@
|
||||
OnClick="() => ShowExportDetails(context.Item)" />
|
||||
</CellTemplate>
|
||||
</TemplateColumn>
|
||||
<PropertyColumn Property="x => Localizer.GetEnumValue(x.FileUploadStatus)"
|
||||
Title="@LanguageLocale.dto_StayExportFile_FileUploadStatus" />
|
||||
<PropertyColumn Property="x => x.FileUploadStatusTime"
|
||||
Title="@LanguageLocale.dto_StayExportFile_FileUploadStatusTime" />
|
||||
|
||||
<TemplateColumn CellClass="d-flex justify-between" Title="Options" StickyRight Hideable="false"
|
||||
ShowColumnOptions="false">
|
||||
@@ -173,6 +177,12 @@
|
||||
|
||||
private async Task BtnDeleteItem(StayExportFileDTO item)
|
||||
{
|
||||
if (item.FileUploadStatus == Enums.Models.UploadStatus.Uploaded)
|
||||
{
|
||||
userMessage.ShowMessage(LanguageLocale.page_StayExportList_msgDeleteUploadedFile, MessageKind.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
bool? confirmDelete = await _confirmDeleteMsgBox.MsgBox.ShowAsync();
|
||||
|
||||
if (confirmDelete is null || confirmDelete.Value == false)
|
||||
|
||||
Reference in new issue
Block a user