* Added new Entities and Dtos

* Mapping new classes
* Added new services and Controllers in API
This commit is contained in:
2025-08-07 06:46:43 +02:00
parent 1842fd6146
commit 6139ce97d7
18 changed files with 855 additions and 6 deletions

View File

@@ -0,0 +1,132 @@
namespace SytelineSaAppEfDataModel.Entities;
public class Customer
{
public string CustNum { get; set; }
public int CustSeq { get; set; }
public string Contact1 { get; set; }
public string Contact2 { get; set; }
public string Contact3 { get; set; }
public string Phone1 { get; set; }
public string Phone2 { get; set; }
public string Phone3 { get; set; }
public string CustType { get; set; }
public string TermsCode { get; set; }
public string ShipCode { get; set; }
public string Slsman { get; set; }
public string StateCycle { get; set; }
public bool FinChg { get; set; }
public DateTime? LastInv { get; set; }
public DateTime? LastPaid { get; set; }
public decimal? SalesYtd { get; set; }
public decimal? SalesLstYr { get; set; }
public decimal? DiscYtd { get; set; }
public decimal? DiscLstYr { get; set; }
public DateTime? LastFinChg { get; set; }
public decimal? SalesPtd { get; set; }
public DateTime? CalcDate { get; set; }
public int? NumPeriods { get; set; }
public int? AvgDaysOs { get; set; }
public int? NumInvoices { get; set; }
public int? HistDaysOs { get; set; }
public int? LargDaysOs { get; set; }
public int? LastDaysOs { get; set; }
public decimal? AvgBalOs { get; set; }
public decimal? LargeBalOs { get; set; }
public decimal? LastBalOs { get; set; }
public string Whse { get; set; }
public string Charfld1 { get; set; }
public string Charfld2 { get; set; }
public string Charfld3 { get; set; }
public decimal? Decifld1 { get; set; }
public decimal? Decifld2 { get; set; }
public decimal? Decifld3 { get; set; }
public bool Logifld { get; set; }
public DateTime? Datefld { get; set; }
public string TaxRegNum1 { get; set; }
public string BankCode { get; set; }
public string TaxRegNum2 { get; set; }
public string PayType { get; set; }
public bool EdiCust { get; set; }
public string BranchId { get; set; }
public string TransNat { get; set; }
public string Delterm { get; set; }
public string ProcessInd { get; set; }
public bool UseExchRate { get; set; }
public string TaxCode1 { get; set; }
public string TaxCode2 { get; set; }
public string Pricecode { get; set; }
public bool ShipEarly { get; set; }
public bool ShipPartial { get; set; }
public string LangCode { get; set; }
public string EndUserType { get; set; }
public string ShipSite { get; set; }
public bool LcrReqd { get; set; }
public string CustBank { get; set; }
public bool DraftPrintFlag { get; set; }
public bool RcvInternalEmail { get; set; }
public string CustomerEmailAddr { get; set; }
public bool SendCustomerEmail { get; set; }
public bool ApsPullUp { get; set; }
public string DoInvoice { get; set; }
public bool Consolidate { get; set; }
public string InvFreq { get; set; }
public bool Summarize { get; set; }
public bool NoteExistsFlag { get; set; }
public DateTime RecordDate { get; set; }
public Guid RowPointer { get; set; }
public bool Einvoice { get; set; }
public decimal? OrderBal { get; set; }
public decimal? PostedBal { get; set; }
public string CreatedBy { get; set; }
public string UpdatedBy { get; set; }
public DateTime CreateDate { get; set; }
public string CrmGuid { get; set; }
public bool InWorkflow { get; set; }
public bool PrintPackInv { get; set; }
public bool OnePackInv { get; set; }
public string InvCategory { get; set; }
public bool IncludeTaxInPrice { get; set; }
public string TransNat2 { get; set; }
public bool UseRevisionPayDays { get; set; }
public int? RevisionDay { get; set; }
public TimeSpan? RevisionDayStartTime1 { get; set; }
public TimeSpan? RevisionDayStartTime2 { get; set; }
public TimeSpan? RevisionDayEndTime1 { get; set; }
public TimeSpan? RevisionDayEndTime2 { get; set; }
public int? PayDay { get; set; }
public TimeSpan? PayDayStartTime1 { get; set; }
public TimeSpan? PayDayStartTime2 { get; set; }
public TimeSpan? PayDayEndTime1 { get; set; }
public TimeSpan? PayDayEndTime2 { get; set; }
public string ExportType { get; set; }
public bool ActiveForDataIntegration { get; set; }
public bool ShowInShipToDropDownList { get; set; }
public bool ShowInDropDownList { get; set; }
public string SicCode { get; set; }
public int? NumberOfEmployees { get; set; }
public decimal? CompanyRevenue { get; set; }
public string TerritoryCode { get; set; }
public string SalesTeamId { get; set; }
public int? DaysShippedBeforeDueDateTolerance { get; set; }
public int? DaysShippedAfterDueDateTolerance { get; set; }
public decimal? ShippedOverOrderedQtyTolerance { get; set; }
public decimal? ShippedUnderOrderedQtyTolerance { get; set; }
public int DefaultShipTo { get; set; }
public bool IncludeOrdersInTaxRpt { get; set; }
public decimal? ConstructiveSalePricePct { get; set; }
public string Uf_ZPL_FedId { get; set; }
public string Uf_ZPL_VATRegisterCode { get; set; }
public int? Uf_INT_CustSeq { get; set; }
public bool Uf_INT_Replicate { get; set; }
public int? Uf_FKR_FA_SL_SYKOF { get; set; }
public bool? Uf_FKR_FA_Eksport_SYKOF { get; set; }
public string Uf_FKR_FA_Kod_Dostawcy_u_Klienta { get; set; }
public string Uf_FKR_FA_Rampa { get; set; }
public string Uf_FKR_FA_Zaklad_Przeznaczenia { get; set; }
public char? Uf_FKR_Customer_Status { get; set; }
public bool? Uf_bpx_customer_printbatch { get; set; }
public string Uf_cust_receiver_line1 { get; set; }
public string Uf_cust_receiver_line2 { get; set; }
public int? Uf_cust_supplier_no { get; set; }
}

View File

@@ -0,0 +1,41 @@
namespace SytelineSaAppEfDataModel.Entities;
public class CustomerTp
{
public string CustNum { get; set; }
public int CustSeq { get; set; }
public bool UpdCustAddress { get; set; }
public string TpCode { get; set; }
public string DunsNum { get; set; }
public bool GenAck { get; set; }
public bool PaperAck { get; set; }
public bool GenAsn { get; set; }
public bool PaperAsn { get; set; }
public bool GenInv { get; set; }
public bool PaperInv { get; set; }
public string AutoPost { get; set; }
public bool PostPlanned { get; set; }
public string ReleaseProc { get; set; }
public bool PooledAsn { get; set; }
public bool ValPrice { get; set; }
public string UsePrice { get; set; }
public bool ValCredit { get; set; }
public string NoteProc { get; set; }
public string UseDate { get; set; }
public int? DateOffset { get; set; }
public string InvCode { get; set; }
public string AckCode { get; set; }
public string AsnCode { get; set; }
public DateTime? LastItemDate { get; set; }
public DateTime? LastCustaDate { get; set; }
public bool IncludeSerial { get; set; }
public bool 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 bool InWorkflow { get; set; }
public string Uf_FKR_EDI_RSSBussFolder { get; set; }
public string Uf_FKR_EDI_IdentificationCode { get; set; }
}

View File

@@ -0,0 +1,12 @@
namespace SytelineSaAppEfDataModel.Entities;
public class EdiCustomerOrderImport
{
public int Id { get; set; }
public int ScheduleOrderId { get; set; }
public DateTime LastUpdateDate { get; set; }
public DateTime CreatedDate { get; set; }
public string Status { get; set; }
public string LogData { get; set; }
public int ItemsCount { get; set; }
}