File hash, isCompressed, set current date as default

This commit is contained in:
Adam 2026-01-16 13:54:49 +01:00
parent b45830eda3
commit 677a33c706
4 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,8 @@ public class Files : MgEntityBase, IFiles
public string FileName { get; set; } public string FileName { get; set; }
public string FileExtension { get; set; } public string FileExtension { get; set; }
public string RawText { get; set; } public string RawText { get; set; }
public string FileHash { get; set; }
public bool IsCompressed { get; set; }
[SkipValuesOnUpdate] [SkipValuesOnUpdate]
public DateTime Created { get; set; } public DateTime Created { get; set; }

View File

@ -8,7 +8,7 @@ namespace FruitBank.Common.Entities;
[System.ComponentModel.DataAnnotations.Schema.Table(FruitBankConstClient.ShippingDbTableName)] [System.ComponentModel.DataAnnotations.Schema.Table(FruitBankConstClient.ShippingDbTableName)]
public class Shipping : MgEntityBase, IShipping public class Shipping : MgEntityBase, IShipping
{ {
public DateTime ShippingDate { get; set; } public DateTime ShippingDate { get; set; } = DateTime.Now;
public string LicencePlate { get; set; } public string LicencePlate { get; set; }
public bool IsAllMeasured { get; set; } public bool IsAllMeasured { get; set; }

View File

@ -14,7 +14,7 @@ public class ShippingDocument : MgEntityBase, IShippingDocument
public string DocumentIdNumber { get; set; } public string DocumentIdNumber { get; set; }
public string PdfFileName { get; set; } public string PdfFileName { get; set; }
public DateTime ShippingDate { get; set; } public DateTime ShippingDate { get; set; } = DateTime.Now;
public string Country { get; set; } public string Country { get; set; }
public int TotalPallets { get; set; } public int TotalPallets { get; set; }

View File

@ -47,7 +47,7 @@
<EditSettings> <EditSettings>
<DxComboBoxSettings Data="Shippings" <DxComboBoxSettings Data="Shippings"
ValueFieldName="Id" ValueFieldName="Id"
TextFieldName="ShippingDate" TextFieldName="LicencePlate"
DropDownBodyCssClass="dd-body-class" DropDownBodyCssClass="dd-body-class"
ListRenderMode="ListRenderMode.Entire" ListRenderMode="ListRenderMode.Entire"
SearchMode="ListSearchMode.AutoSearch" SearchMode="ListSearchMode.AutoSearch"
@ -63,7 +63,7 @@
</DxGridDataColumn> </DxGridDataColumn>
<DxGridDataColumn FieldName="DocumentIdNumber" /> <DxGridDataColumn FieldName="DocumentIdNumber" />
<DxGridDataColumn FieldName="ShippingDate" /> <DxGridDataColumn FieldName="ShippingDate" Caption="LoadDate" />
<DxGridDataColumn FieldName="Country" /> <DxGridDataColumn FieldName="Country" />
<DxGridDataColumn FieldName="TotalPallets" /> <DxGridDataColumn FieldName="TotalPallets" />