* Fixed DTOs issues

* Added service to save data
This commit is contained in:
2025-08-28 14:50:46 +02:00
parent 23c26b4c65
commit 47f37d016d
13 changed files with 280 additions and 231 deletions

View File

@@ -8,8 +8,8 @@ namespace SytelineSaAppEfDataModel.Dtos
{
public class EdiCustomerOrderDto : DtoBase
{
public string TransactionCode { get; set; }
public string TpCode { get; set; }
public string? TransactionCode { get; set; }
public string? TpCode { get; set; }
public DateTime? RecivedDate { get; set; }
public byte? Posted { get; set; }
public DateTime? PostedDate { get; set; }
@@ -17,24 +17,24 @@ namespace SytelineSaAppEfDataModel.Dtos
public short? ErrorMessage { get; set; }
public byte? Override { get; set; }
public byte? Ack { get; set; }
public string AckNumber { get; set; }
public string? AckNumber { get; set; }
public int? AckSequence { get; set; }
public string AckType { get; set; }
public string? AckType { get; set; }
public DateTime? AckDate { get; set; }
public string SymbolicCustomerOrderNumber { get; set; }
public string? SymbolicCustomerOrderNumber { get; set; }
public decimal? BlanketDollar { get; set; }
public string Type { get; set; }
public string CustomerOrderNumber { get; set; }
public string EstimatedNumber { get; set; }
public string CustomerNumber { get; set; }
public string? Type { get; set; }
public string? CustomerOrderNumber { get; set; }
public string? EstimatedNumber { get; set; }
public string? CustomerNumber { get; set; }
public int? CustomerSequence { get; set; }
public string Contact { get; set; }
public string Phone { get; set; }
public string CustomerPoNumber { get; set; }
public string? Contact { get; set; }
public string? Phone { get; set; }
public string? CustomerPoNumber { get; set; }
public DateTime? OrderDate { get; set; }
public string TakenBy { get; set; }
public string TermsCode { get; set; }
public string ShipCode { get; set; }
public string? TakenBy { get; set; }
public string? TermsCode { get; set; }
public string? ShipCode { get; set; }
public decimal? Price { get; set; }
public decimal? Weight { get; set; }
public short? QtyPackages { get; set; }
@@ -42,67 +42,67 @@ namespace SytelineSaAppEfDataModel.Dtos
public decimal? MiscCharges { get; set; }
public decimal? PrepaidAmount { get; set; }
public decimal? SalesTax { get; set; }
public string Status { get; set; }
public string? Status { get; set; }
public decimal? Cost { get; set; }
public DateTime? CloseDate { get; set; }
public decimal? FreightT { get; set; }
public decimal? MchargesT { get; set; }
public decimal? PrepaidT { get; set; }
public decimal? SalesTaxT { get; set; }
public string Salesman { get; set; }
public string? Salesman { get; set; }
public DateTime? EffectiveDate { get; set; }
public DateTime? ExpirationDate { get; set; }
public string Warehouse { get; set; }
public string? Warehouse { get; set; }
public decimal? SalesTaxTwo { get; set; }
public decimal? SalesTaxTwoT { get; set; }
public string CharFieldOne { get; set; }
public string CharFieldTwo { get; set; }
public string CharFieldThree { get; set; }
public string? CharFieldOne { get; set; }
public string? CharFieldTwo { get; set; }
public string? CharFieldThree { get; set; }
public DateTime? DateField { get; set; }
public decimal? DecimalFieldOne { get; set; }
public decimal? DecimalFieldTwo { get; set; }
public decimal? DecimalFieldThree { get; set; }
public byte? LogiField { get; set; }
public byte? EdiOrder { get; set; }
public string TransactionNat { get; set; }
public string ProcessInd { get; set; }
public string DelTerm { get; set; }
public string? TransactionNat { get; set; }
public string? ProcessInd { get; set; }
public string? DelTerm { get; set; }
public byte? UseExchangeRate { get; set; }
public string TaxCodeOne { get; set; }
public string TaxCodeTwo { get; set; }
public string FreightTaxCodeOne { get; set; }
public string FreightTaxCodeTwo { get; set; }
public string MscTaxCodeOne { get; set; }
public string MscTaxCodeTwo { get; set; }
public string? TaxCodeOne { get; set; }
public string? TaxCodeTwo { get; set; }
public string? FreightTaxCodeOne { get; set; }
public string? FreightTaxCodeTwo { get; set; }
public string? MscTaxCodeOne { get; set; }
public string? MscTaxCodeTwo { get; set; }
public decimal? Discount { get; set; }
public string PriceCode { get; set; }
public string? PriceCode { get; set; }
public byte? ShipPartial { get; set; }
public byte? ShipEarly { get; set; }
public string NonApplyData { get; set; }
public string? NonApplyData { get; set; }
public byte NoteExistsFlag { get; set; }
public DateTime RecordDate { get; set; }
public Guid RowPointer { get; set; }
public string CreatedBy { get; set; }
public string UpdatedBy { get; set; }
public string? CreatedBy { get; set; }
public string? UpdatedBy { get; set; }
public DateTime CreateDate { get; set; }
public byte InWorkflow { get; set; }
public string DiscountType { get; set; }
public string? DiscountType { get; set; }
public decimal? DiscountAmount { get; set; }
public string TransNatTwo { get; set; }
public string? TransNatTwo { get; set; }
public string? UfFkrEdiMessageRefNum { get; set; }
public string UfFkrEdiConsigneeAddress { get; set; }
public string UfFkrEdiConsigneeName { get; set; }
public string UfFkrEdiFileName { get; set; }
public string UfFkrEdiBuyerDunsNumber { get; set; }
public string Gate { get; set; }
public string CustomerName { get; set; }
public string? UfFkrEdiConsigneeAddress { get; set; }
public string? UfFkrEdiConsigneeName { get; set; }
public string? UfFkrEdiFileName { get; set; }
public string? UfFkrEdiBuyerDunsNumber { get; set; }
public string? Gate { get; set; }
public string? CustomerName { get; set; }
public string? RecipientCode { get; set; }
public string? SenderCode { get; set; }
public string? SellerCode { get; set; }
public string? DocType { get; set; }
public string? BuyerCode { get; set; }
public string TranslatedStatus => TranslateStatus(Status);
public string TranslatedStatus => TranslateStatus(Status ?? string.Empty);
public string? SlOrderNumber => EdiCustomerOrderTranslates.MaxBy(x => x.CreatedDate)?.CoCoNum;
public string SentToSl => Posted == 1 ? "TAK" : "NIE";