using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoMapper.Configuration.Annotations; namespace SytelineSaAppEfDataModel.Dtos { public class EdiCustomerOrderDto : DtoBase { 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; } public DateTime? ExtendedDate { get; set; } public short? ErrorMessage { get; set; } public byte? Override { get; set; } public byte? Ack { get; set; } public string? AckNumber { get; set; } public int? AckSequence { get; set; } public string? AckType { get; set; } public DateTime? AckDate { 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 int? CustomerSequence { 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 decimal? Price { get; set; } public decimal? Weight { get; set; } public short? QtyPackages { get; set; } public decimal? Freight { get; set; } public decimal? MiscCharges { get; set; } public decimal? PrepaidAmount { get; set; } public decimal? SalesTax { 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 DateTime? EffectiveDate { get; set; } public DateTime? ExpirationDate { 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 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 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 decimal? Discount { get; set; } public string? PriceCode { get; set; } public byte? ShipPartial { get; set; } public byte? ShipEarly { 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 DateTime CreateDate { get; set; } public byte InWorkflow { get; set; } public string? DiscountType { get; set; } public decimal? DiscountAmount { 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? 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 ?? string.Empty); public string? SlOrderNumber => EdiCustomerOrderTranslates.MaxBy(x => x.CreatedDate)?.CoCoNum; public string SentToSl => Posted == 1 ? "TAK" : "NIE"; [Ignore] public int ScheduleOrderId { get; set; } [Ignore] public DateTime LastUpdateDate { get; set; } public IEnumerable EdiCustomerOrderLines { get; set; } = new List(); public IEnumerable EdiCustomerOrderTranslates { get; set; } = new List(); } }