From 90fabac22ecb706211444c4135730a4d1554e6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Mon, 10 Jul 2023 10:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SettleAccount.Domain/Bases/EntityBase.cs | 53 ++- .../Entities/BQ/BBAC_NOT_SA_DETAIL.cs | 4 +- .../Entities/BQ/BBAC_SA.cs | 6 +- .../Entities/BQ/BBAC_SE_DETAIL.cs | 3 +- .../Entities/BQ/BBAC_SE_EDI.cs | 4 +- .../Entities/BQ/BBAC_SE_REPORT.cs | 4 +- .../Entities/BQ/BBAC_SE_SA_REPORT.cs | 8 +- .../Entities/BQ/HBPO_CAN_SA.cs | 10 +- .../Entities/BQ/HBPO_NOT_SA_DETAIL.cs | 3 +- .../Entities/BQ/HBPO_PD_DETAIL.cs | 3 +- .../Entities/BQ/HBPO_SA.cs | 6 +- .../Entities/BQ/HBPO_SE_DETAIL.cs | 3 +- .../Entities/BQ/HBPO_SE_EDI.cs | 3 +- .../Entities/BQ/HBPO_SE_REPORT.cs | 3 +- .../Entities/BQ/HBPO_SE_SA_REPORT.cs | 3 +- .../Entities/BQ/INVOICE_GRP.cs | 3 +- .../Entities/BQ/INVOICE_MAP_GROUP.cs | 12 +- .../Entities/BQ/INVOICE_NOT_SETTLE.cs | 3 +- .../Entities/BQ/INVOICE_WAIT_DETAIL.cs | 3 +- .../Entities/BQ/JIT_SE_SA_REPORT.cs | 31 +- .../Entities/BQ/Material.cs | 445 ------------------ .../Entities/BQ/MaterialRelationship.cs | 11 - .../Entities/BQ/PUB_CAN_SA.cs | 4 +- .../Entities/BQ/PUB_NOT_SA_DETAIL.cs | 3 - .../Entities/BQ/PUB_PD_DETAIL.cs | 3 +- .../Entities/BQ/PUB_SA.cs | 5 +- .../Entities/BQ/PUB_SE_DETAIL.cs | 3 +- .../Entities/BQ/TB_PRICE_BJ.cs | 36 -- .../Entities/BQ/TB_PRICE_LIST.cs | 52 -- ...AccountDbContextModelCreatingExtensions.cs | 90 +++- 30 files changed, 217 insertions(+), 603 deletions(-) delete mode 100644 code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Material.cs delete mode 100644 code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/MaterialRelationship.cs delete mode 100644 code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_BJ.cs delete mode 100644 code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_LIST.cs diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs index 23b56038..587c3f7d 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Bases/EntityBase.cs @@ -58,6 +58,7 @@ namespace SettleAccount.Bases public string GroupNum { set; get; } + } public interface ISA_CAN_BASE : ISBASE @@ -128,7 +129,7 @@ namespace SettleAccount.Bases } - public class RE_BASE : IRE_BASE + public class RE_BASE :FullAuditedAggregateRoot, IRE_BASE { /// 发货时间 /// @@ -153,6 +154,9 @@ namespace SettleAccount.Bases /// /// public string KeyCode { get; set ; } + + + } @@ -221,6 +225,12 @@ namespace SettleAccount.Bases /// public bool IsBom { set; get; } + public BASE_CONF(bool isRelationShip, bool isMaterial, bool isBom) + { + IsRelationShip = isRelationShip; + IsMaterial = isMaterial; + IsBom = isBom; + } } public class SA_BASE : FullAuditedAggregateRoot, ISA_BASE @@ -261,6 +271,19 @@ namespace SettleAccount.Bases /// 結算分組號 /// public string GroupNum { get ; set ; } + + //public SA_BASE(int version, decimal price, string billNum, DateTime settleDate, string lU, string pN, string keyCode, decimal qty, string groupNum) + //{ + // Version = version; + // Price = price; + // BillNum = billNum; + // SettleDate = settleDate; + // LU = lU; + // PN = pN; + // KeyCode = keyCode; + // Qty = qty; + // GroupNum = groupNum; + //} } public class SA_CAN_BASE : FullAuditedAggregateRoot, ISA_CAN_BASE @@ -305,6 +328,20 @@ namespace SettleAccount.Bases /// 結算分組號 /// public string GroupNum { get; set; } + + //public SA_CAN_BASE(int version, decimal price, string billNum, DateTime settleDate, string invGroupNum, string lU, string pN, string keyCode, decimal qty, string groupNum) + //{ + // Version = version; + // Price = price; + // BillNum = billNum; + // SettleDate = settleDate; + // InvGroupNum = invGroupNum; + // LU = lU; + // PN = pN; + // KeyCode = keyCode; + // Qty = qty; + // GroupNum = groupNum; + //} } public class SA_NOT_BASE : FullAuditedAggregateRoot, ISA_NOT_BASE { @@ -348,6 +385,20 @@ namespace SettleAccount.Bases /// 結算分組號 /// public string GroupNum { get; set; } + + //public SA_NOT_BASE(decimal price, int version, string settleBillNum, DateTime settleDate, string invGroupNum, string lU, string pN, string keyCode, decimal qty, string groupNum) + //{ + // Price = price; + // Version = version; + // SettleBillNum = settleBillNum; + // SettleDate = settleDate; + // InvGroupNum = invGroupNum; + // LU = lU; + // PN = pN; + // KeyCode = keyCode; + // Qty = qty; + // GroupNum = groupNum; + //} } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_NOT_SA_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_NOT_SA_DETAIL.cs index 76e29484..2218cba6 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_NOT_SA_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_NOT_SA_DETAIL.cs @@ -84,8 +84,10 @@ public class BBAC_NOT_SA_DETAIL:SA_NOT_BASE //[Display(Name = "结算分组")] //public string GroupNum { get; set; } = null!; - public BBAC_NOT_SA_DETAIL(string keyCode, int version, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, string category, string isReturn, string invGroupNum, DateTime settleDate, string groupNum) + public BBAC_NOT_SA_DETAIL(Guid guid, string keyCode, int version, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, string category, string isReturn, string invGroupNum, DateTime settleDate, string groupNum) { + Id = guid; + KeyCode = keyCode; Version = version; SettleBillNum = settleBillNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SA.cs index a2189d65..b3c65f82 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SA.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SA.cs @@ -25,8 +25,9 @@ public class BBAC_SA:FullAuditedAggregateRoot [Display(Name = "状态")] public string State { get; set; } = null!; - public BBAC_SA(int version, string billNum, string dNBillNum, string state) + public BBAC_SA(Guid guid, int version, string billNum, string dNBillNum, string state) { + Id = guid; Version = version; BillNum = billNum; DNBillNum = dNBillNum; @@ -112,8 +113,9 @@ public class BBAC_SA_DETAIL:SA_BASE //[Display(Name = "发票分组号")] //public string InvGroupNum { get; set; } = null!; - public BBAC_SA_DETAIL(string keyCode, int version, string billNum, string lU, string pN, string site, decimal qty, decimal price, string category, string isReturn, DateTime settleDate, string groupNum, string invGroupNum) + public BBAC_SA_DETAIL(Guid p_guid, string keyCode, int version, string billNum, string lU, string pN, string site, decimal qty, decimal price, string category, string isReturn, DateTime settleDate, string groupNum, string invGroupNum) { + Id= p_guid; KeyCode = keyCode; Version = version; BillNum = billNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs index 62bb7103..0ac09f1e 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs @@ -43,8 +43,9 @@ public class BBAC_SE_DETAIL:SE_BASE //[Display(Name = "Wms发货单号")] //public string WmsBillNum { get; set; } = null!; - public BBAC_SE_DETAIL(string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) + public BBAC_SE_DETAIL(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) { + Id= guid; KeyCode = keyCode; Version = version; LU = lU; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs index 8a37e971..18012cbd 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs @@ -36,8 +36,10 @@ public class BBAC_SE_EDI:FullAuditedAggregateRoot [Display(Name = "订货时间")] public DateTime BeginDate { get; set; } - public BBAC_SE_EDI(string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate) + public BBAC_SE_EDI(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate) { + Id = guid; + KeyCode = keyCode; Version = version; LU = lU; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_REPORT.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_REPORT.cs index c9bbb1fb..4b13bfeb 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_REPORT.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_REPORT.cs @@ -42,8 +42,10 @@ public class BBAC_SE_REPORT:FullAuditedAggregateRoot [Display(Name = "Wms发货单号")] public string WmsBillNum { get; set; } = null!; - public BBAC_SE_REPORT(string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, decimal eDIQty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) + public BBAC_SE_REPORT(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, decimal eDIQty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) { + Id = guid; + KeyCode = keyCode; Version = version; LU = lU; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_SA_REPORT.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_SA_REPORT.cs index c3b7c178..73cc3312 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_SA_REPORT.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_SA_REPORT.cs @@ -1,11 +1,10 @@ using System; using System.ComponentModel.DataAnnotations; - - +using Volo.Abp.Domain.Entities.Auditing; namespace SettleAccount.Domain.BQ; [Display(Name = "BBAC发运数据与结算数据对比实体")] -public class BBAC_SE_SA_REPORT +public class BBAC_SE_SA_REPORT :FullAuditedAggregateRoot { [Display(Name = "LU+ASN单号")] @@ -53,8 +52,9 @@ public class BBAC_SE_SA_REPORT [Display(Name = "期间")] public int Version { get; set; } - public BBAC_SE_SA_REPORT(string keyCode, string category, string wmsBillNum, DateTime shippingDate, string pN, string seqNumber, string pJISSeqNumber, string materialNumber, string materialDes, string lU, DateTime customerOfflineTime, string assemblyCode, string injectionCode, decimal sEQty, decimal wMSQty, decimal eDIQty, string mateType, decimal fixPrice, int version) + public BBAC_SE_SA_REPORT(Guid guid, string keyCode, string category, string wmsBillNum, DateTime shippingDate, string pN, string seqNumber, string pJISSeqNumber, string materialNumber, string materialDes, string lU, DateTime customerOfflineTime, string assemblyCode, string injectionCode, decimal sEQty, decimal wMSQty, decimal eDIQty, string mateType, decimal fixPrice, int version) { + Id = guid; KeyCode = keyCode; Category = category; WmsBillNum = wmsBillNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs index 14d356d8..a3e283a4 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_CAN_SA.cs @@ -1,9 +1,11 @@ using SettleAccount.Bases; using System; using System.ComponentModel.DataAnnotations; +using Volo.Abp.Domain.Entities.Auditing; + namespace SettleAccount.Domain.BQ; [Display(Name = "HBPO可结算导入")] -public class HBPO_CAN_SA +public class HBPO_CAN_SA :FullAuditedAggregateRoot { [Display(Name = "期间")] public int Version { get; set; } @@ -25,7 +27,7 @@ public class HBPO_CAN_SA [Display(Name = "明细记录行数")] public string InvGroupNum { get; set; } = null!; - public HBPO_CAN_SA(int version, string settleBillNum, string billNum, string state, string invGroupNum) + public HBPO_CAN_SA(Guid guid, int version, string settleBillNum, string billNum, string state, string invGroupNum) { Version = version; SettleBillNum = settleBillNum; @@ -102,9 +104,9 @@ public class HBPO_CAN_SA_DETAIL:SA_CAN_BASE //[Display(Name = "发票分组号")] //public string InvGroupNum { get; set; } = null!; - public HBPO_CAN_SA_DETAIL(Guid id ,string keyCode, int version, string billNum, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, DateTime settleDate, string groupNum, string invGroupNum) + public HBPO_CAN_SA_DETAIL(Guid guid ,string keyCode, int version, string billNum, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, DateTime settleDate, string groupNum, string invGroupNum) { - Id = id; + Id = guid; KeyCode = keyCode; Version = version; BillNum = billNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_NOT_SA_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_NOT_SA_DETAIL.cs index e05cdbe6..d5607b23 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_NOT_SA_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_NOT_SA_DETAIL.cs @@ -94,8 +94,9 @@ public class HBPO_NOT_SA_DETAIL :SA_NOT_BASE //[Display(Name = "发票分组号")] //public string InvGroupNum { get; set; } = null!; - public HBPO_NOT_SA_DETAIL(string keyCode, int version, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, DateTime settleDate, string groupNum, string invGroupNum) + public HBPO_NOT_SA_DETAIL(Guid guid ,string keyCode, int version, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, DateTime settleDate, string groupNum, string invGroupNum) { + Id = guid; KeyCode = keyCode; Version = version; SettleBillNum = settleBillNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs index d479f116..ecc9139d 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_PD_DETAIL.cs @@ -45,8 +45,9 @@ public class HBPO_PD_DETAIL :PD_BASE //[Display(Name = "结算分组")] //public string GroupNum { get; set; } = null!; - public HBPO_PD_DETAIL(string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, string invGroupNum, DateTime settleDate, string groupNum) + public HBPO_PD_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, string invGroupNum, DateTime settleDate, string groupNum) { + Id = guid; KeyCode = keyCode; Version = version; BillNum = billNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SA.cs index 5c575993..d226b097 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SA.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SA.cs @@ -29,8 +29,9 @@ public class HBPO_SA :FullAuditedAggregateRoot [Display(Name = "明细记录行数")] public string RecordCount { get; set; } = null!; - public HBPO_SA(int version, string billNum, string dNBillNum, string state, string recordCount) + public HBPO_SA(Guid guid, int version, string billNum, string dNBillNum, string state, string recordCount) { + this.Id= guid; Version = version; BillNum = billNum; DNBillNum = dNBillNum; @@ -107,8 +108,9 @@ public class HBPO_SA_DETAIL :SA_BASE [Display(Name = "发票分组号")] public string InvGroupNum { get; set; } = null!; - public HBPO_SA_DETAIL(string keyCode, int version, string billNum, string lU, string pN, string site, decimal qty, decimal price, DateTime settleDate, string groupNum, string invGroupNum) + public HBPO_SA_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string pN, string site, decimal qty, decimal price, DateTime settleDate, string groupNum, string invGroupNum) { + this.Id= guid; KeyCode = keyCode; Version = version; BillNum = billNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_DETAIL.cs index a4f14900..fced3b3e 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_DETAIL.cs @@ -42,8 +42,9 @@ public class HBPO_SE_DETAIL :SE_BASE //[Display(Name = "Wms发货单号")] //public string WmsBillNum { get; set; } = null!; - public HBPO_SE_DETAIL(string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) + public HBPO_SE_DETAIL(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) { + this.Id = guid; KeyCode = keyCode; Version = version; LU = lU; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_EDI.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_EDI.cs index 1113cc61..e6225b60 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_EDI.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_EDI.cs @@ -36,8 +36,9 @@ public class HBPO_SE_EDI :FullAuditedAggregateRoot [Display(Name = "订货时间")] public DateTime BeginDate { get; set; } - public HBPO_SE_EDI(string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate) + public HBPO_SE_EDI(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate) { + Id=guid; KeyCode = keyCode; Version = version; LU = lU; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_REPORT.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_REPORT.cs index 53a7e8bf..cdf4def9 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_REPORT.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_REPORT.cs @@ -42,8 +42,9 @@ public class HBPO_SE_REPORT :FullAuditedAggregateRoot [Display(Name = "Wms发货单号")] public string WmsBillNum { get; set; } = null!; - public HBPO_SE_REPORT(string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, decimal eDIQty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) + public HBPO_SE_REPORT(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, decimal eDIQty, DateTime beginDate, DateTime shippingDate, string wmsBillNum) { + Id = guid; KeyCode = keyCode; Version = version; LU = lU; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_SA_REPORT.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_SA_REPORT.cs index 585e39e8..098228c3 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_SA_REPORT.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_SA_REPORT.cs @@ -79,8 +79,9 @@ public class HBPO_SE_SA_REPORT :RE_BASE [Display(Name = "期间")] public int Version { get; set; } - public HBPO_SE_SA_REPORT(string keyCode, string category, string pN, string seqNumber, string pJISSeqNumber, string materialNumber, string materialDes, DateTime customerOfflineTime, string assemblyCode, string injectionCode, decimal sEQty, decimal wMSQty, decimal eDIQty, string mateType, decimal fixPrice, int version) + public HBPO_SE_SA_REPORT(Guid guid, string keyCode, string category, string pN, string seqNumber, string pJISSeqNumber, string materialNumber, string materialDes, DateTime customerOfflineTime, string assemblyCode, string injectionCode, decimal sEQty, decimal wMSQty, decimal eDIQty, string mateType, decimal fixPrice, int version) { + Id = guid; KeyCode = keyCode; Category = category; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs index 9aa765ca..2f36a6fc 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_GRP.cs @@ -30,8 +30,9 @@ public class INVOICE_GRP : FullAuditedAggregateRoot [Display(Name = "业务类别")] public string BusinessType { get; set; } = null!; - public INVOICE_GRP(string realnvBillNum, string invbillNum, decimal amt, decimal taxAmt, string invGroupNum, string fileName, string businessType) + public INVOICE_GRP(Guid guid, string realnvBillNum, string invbillNum, decimal amt, decimal taxAmt, string invGroupNum, string fileName, string businessType) { + Id= guid; RealnvBillNum = realnvBillNum; InvbillNum = invbillNum; Amt = amt; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_MAP_GROUP.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_MAP_GROUP.cs index 13f23c3b..e1ebac1d 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_MAP_GROUP.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_MAP_GROUP.cs @@ -29,5 +29,15 @@ public class INVOICE_MAP_GROUP : FullAuditedAggregateRoot [Display(Name = "扩展字段2")] public string Extend2 { get; set; } = null!; - + public INVOICE_MAP_GROUP(Guid guid, int version, string invbillNum, string invGroupNum, string settleGroupNum, decimal amt, string extend1, string extend2) + { + Id = guid; + Version = version; + InvbillNum = invbillNum; + InvGroupNum = invGroupNum; + SettleGroupNum = settleGroupNum; + Amt = amt; + Extend1 = extend1; + Extend2 = extend2; + } } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_NOT_SETTLE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_NOT_SETTLE.cs index e1a0bb5a..17583d95 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_NOT_SETTLE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_NOT_SETTLE.cs @@ -29,8 +29,9 @@ public class INVOICE_NOT_SETTLE : FullAuditedAggregateRoot [Display(Name = "扩展字段2")] public string Extend2 { get; set; } = null!; - public INVOICE_NOT_SETTLE(int version, string invGroupNum, string settleGroupNum, string lU, string lU1, string extend1, string extend2) + public INVOICE_NOT_SETTLE(Guid guid, int version, string invGroupNum, string settleGroupNum, string lU, string lU1, string extend1, string extend2) { + Id = guid; Version = version; InvGroupNum = invGroupNum; SettleGroupNum = settleGroupNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_WAIT_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_WAIT_DETAIL.cs index 7030fa45..e4958d4f 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_WAIT_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/INVOICE_WAIT_DETAIL.cs @@ -46,8 +46,9 @@ public class INVOICE_WAIT_DETAIL :FullAuditedAggregateRoot [Display(Name = "扩展字段4")] public string Extend4 { get; set; } = null!; - public INVOICE_WAIT_DETAIL(int version, string invbillNum, string invGroupNum, string lU, decimal pRICE, decimal qty, decimal amt, string bussiessType, string extend1, string extend2, string extend3, string extend4) + public INVOICE_WAIT_DETAIL(Guid guid, int version, string invbillNum, string invGroupNum, string lU, decimal pRICE, decimal qty, decimal amt, string bussiessType, string extend1, string extend2, string extend3, string extend4) { + Id = guid; Version = version; InvbillNum = invbillNum; InvGroupNum = invGroupNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/JIT_SE_SA_REPORT.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/JIT_SE_SA_REPORT.cs index bce00559..61a5d508 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/JIT_SE_SA_REPORT.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/JIT_SE_SA_REPORT.cs @@ -1,14 +1,14 @@ -using System; +using SettleAccount.Bases; +using System; using System.ComponentModel.DataAnnotations; - - +using Volo.Abp.Domain.Entities.Auditing; namespace SettleAccount.Domain.BQ; [Display(Name = "JIT发运数据与结算数据对比实体")] -public class JIT_SE_SA_REPORT +public class JIT_SE_SA_REPORT :RE_BASE { - [Display(Name = "LU+ASN单号")] - public string KeyCode { get; set; } = null!; + //[Display(Name = "LU+ASN单号")] + //public string KeyCode { get; set; } = null!; /// /// 有结算无发货(无EDI数据) @@ -24,14 +24,14 @@ public class JIT_SE_SA_REPORT [Display(Name = "类别")] public string Category { get; set; } = null!; - [Display(Name = "Wms发货单号")] - public string WmsBillNum { get; set; } = null!; + //[Display(Name = "Wms发货单号")] + //public string WmsBillNum { get; set; } = null!; - [Display(Name = "发货时间")] - public DateTime ShippingDate { get; set; } + //[Display(Name = "发货时间")] + //public DateTime ShippingDate { get; set; } - [Display(Name = "生产码")] - public string PN { get; set; } = null!; + //[Display(Name = "生产码")] + //public string PN { get; set; } = null!; [Display(Name = "日顺序号")] public string SeqNumber { get; set; } = null!; @@ -45,8 +45,8 @@ public class JIT_SE_SA_REPORT [Display(Name = "物料描述")] public string MaterialDes { get; set; } = null!; - [Display(Name = "零件号")] - public string LU { get; set; } = null!; + //[Display(Name = "零件号")] + //public string LU { get; set; } = null!; /// /// 结算数据中的过账日期 @@ -78,8 +78,9 @@ public class JIT_SE_SA_REPORT [Display(Name = "期间")] public int Version { get; set; } - public JIT_SE_SA_REPORT(string keyCode, string category, string wmsBillNum, DateTime shippingDate, string pN, string seqNumber, string pJISSeqNumber, string materialNumber, string materialDes, string lU, DateTime customerOfflineTime, string assemblyCode, string injectionCode, decimal sEQty, decimal wMSQty, decimal eDIQty, string mateType, decimal fixPrice, int version) + public JIT_SE_SA_REPORT(Guid guid , string keyCode, string category, string wmsBillNum, DateTime shippingDate, string pN, string seqNumber, string pJISSeqNumber, string materialNumber, string materialDes, string lU, DateTime customerOfflineTime, string assemblyCode, string injectionCode, decimal sEQty, decimal wMSQty, decimal eDIQty, string mateType, decimal fixPrice, int version) { + Id = guid; KeyCode = keyCode; Category = category; WmsBillNum = wmsBillNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Material.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Material.cs deleted file mode 100644 index 7b24b73c..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Material.cs +++ /dev/null @@ -1,445 +0,0 @@ -using System.ComponentModel.DataAnnotations; - - - -namespace SettleAccount.Domain.BQ; - -[Display(Name = "物料主数据")] -public class Material -{ -} - -//[Order(8)] -//[SystemManagement] -//[Display(Name = "客户零件关系")] -//public class Class2 : BaseEntity -//{ -//} - -//[Order(9)] -//[SystemManagement] -//[Display(Name = "客户端替换件关系")] -//public class Class3 : BaseEntity -//{ -//} - -//[Order(10)] -//[SystemManagement] -//[Display(Name = "寄售库出库总成替换关系")] -//public class Class4 : BaseEntity -//{ -//} - -//[Order(11)] -//[SystemManagement] -//[Display(Name = "期间设置")] -//public class Class5 : BaseEntity -//{ -//} - -//[Order(12)] -//[SystemManagement] -//[Display(Name = "销售价格单")] -//public class TB_PRICE_LIST : BaseEntity -//{ -//} - -//[Order(2)] -//[Display(Name = "EDI业务")] -//public class EdiAttribute : GroupAttribute -//{ -//} - -//[Order(1)] -//[Edi] -//[Display(Name = "EDI和HBPO核对")] -//public class Class7 : BaseEntity -//{ -//} - -//[Order(2)] -//[Edi] -//[Display(Name = "EDI和BBAC核对")] -//public class Class8 : BaseEntity -//{ -//} - -//[Order(2)] -//[Display(Name = "JIS业务")] -//public class JISModule : BaseModule -//{ -//} - -//[Order(1)] -//[Module] -//[Display(Name = "数据输入")] -//public class JISDataInputAttribute : GroupAttribute -//{ -//} - -//[Order(2)] -//[Module] -//[Display(Name = "数据输出")] -//public class JISDataOutputAttribute : GroupAttribute -//{ -//} - -//[Order(1)] -// -//[Display(Name = "HBPO结算导入")] -//public class Class9 : BaseEntity -//{ -//} - -//[Order(2)] -// -//[Display(Name = "BBAC结算导入")] -//public class Class10 : BaseEntity -//{ -//} - -//[Order(3)] -// -//[Display(Name = "HBPO发运数据")] -//public class Class11 : BaseEntity -//{ -//} - -//[Order(4)] -// -//[Display(Name = "BBAC发运数据")] -//public class Class12 : BaseEntity -//{ -//} - -//[Order(1)] -//[JISDataOutput] -//[Display(Name = "HBPO结算核对明细输出")] -//public class Class13 : BaseEntity -//{ -//} - -//[Order(2)] -//[JISDataOutput] -//[Display(Name = "BBAC结算核对明细输出")] -//public class Class14 : BaseEntity -//{ -//} - -//[Order(3)] -//[JISDataOutput] -//[Display(Name = "HBPO无法出库明细与汇总输出")] -//public class Class15 : BaseEntity -//{ -//} - -//[Order(4)] -//[JISDataOutput] -//[Display(Name = "BBAC无法出库明细与汇总输出")] -//public class Class16 : BaseEntity -//{ -//} - -//[Order(5)] -//[JISDataOutput] -//[Display(Name = "HBPO结算发货明细与汇总")] -//public class Class17 : BaseEntity -//{ -//} - -//[Order(6)] -//[JISDataOutput] -//[Display(Name = "BBAC结算发货明细与汇总")] -//public class Class18 : BaseEntity -//{ -//} - -///// - -//[Order(3)] -//[Display(Name = "JIT业务")] -//public class JITModule : BaseModule -//{ -//} - -//[Order(1)] -//[Module] -//[Display(Name = "数据输入")] -//public class JITDataInputAttribute : GroupAttribute -//{ -//} - -//[Order(2)] -//[Module] -//[Display(Name = "数据输出")] -//public class JITDataOutputAttribute : GroupAttribute -//{ -//} - -//[Order(1)] -//[JITDataInput] -//[Display(Name = "JIT件结算导入")] -//public class Class19 : BaseEntity -//{ -//} -//IResource -//[Order(2)] -//[JITDataInput] -//[Display(Name = "JIT发运数据查询")] -//public class Class20 : BaseEntity -//{ -//} - -//[Order(1)] -//[JITDataOutput] -//[Display(Name = "JIT件结算核对明细输出")] -//public class Class21 : BaseEntity -//{ -//} - -//[Order(2)] -//[JITDataOutput] -//[Display(Name = "JIT件寄售库不能出库明细与汇总")] -//public class Class22 : BaseEntity -//{ -//} - -//[Order(3)] -//[JITDataOutput] -//[Display(Name = "JIT件结算发货明细与汇总")] -//public class Class23 : BaseEntity -//{ -//} - -///// - -//[Order(4)] -//[Display(Name = "备件业务")] -//public class BeiJianModule : BaseModule -//{ -//} - -//[Order(1)] -//[Module] -//[Display(Name = "数据输入")] -//public class BeiJianDataInputAttribute : GroupAttribute -//{ -//} - -//[Order(2)] -//[Module] -//[Display(Name = "数据输出")] -//public class BeiJianDataOutputAttribute : GroupAttribute -//{ -//} - -//[Order(1)] -//[BeiJianDataInput] -//[Display(Name = "备件结算导入")] -//public class Class24 : BaseEntity -//{ -//} - -//[Order(2)] -//[BeiJianDataInput] -//[Display(Name = "备件发运数据查询")] -//public class Class25 : BaseEntity -//{ -//} - -//[Order(1)] -//[BeiJianDataOutput] -//[Display(Name = "备件结算核对明细输出")] -//public class Class26 : BaseEntity -//{ -//} - -//[Order(2)] -//[BeiJianDataOutput] -//[Display(Name = "备件寄售库不能出库明细与汇总输出")] -//public class Class27 : BaseEntity -//{ -//} - -//[Order(3)] -//[BeiJianDataOutput] -//[Display(Name = "备件有结算有发货明细与汇总输出")] -//public class Class28 : BaseEntity -//{ -//} - -//[Order(4)] -//[BeiJianDataOutput] -//[Display(Name = "备件有结算无发货明细与汇总输出")] -//public class Class29 : BaseEntity -//{ -//} - -///// - -//[Order(5)] -//[Display(Name = "备件业务")] -//public class MaiDanJianModule : BaseModule -//{ -//} - -//[Order(1)] -//[Module] -//[Display(Name = "数据输入")] -//public class MaiDanJianDataInputAttribute : GroupAttribute -//{ -//} - -//[Order(2)] -//[Module] -//[Display(Name = "数据输出")] -//public class MaiDanJianDataOutputAttribute : GroupAttribute -//{ -//} - -//[Order(1)] -// -//[Display(Name = "印度件结算导入")] -//public class Class30 : BaseEntity -//{ -//} - -//[Order(2)] -// -//[Display(Name = "印度件发运数据查询")] -//public class Class31 : BaseEntity -//{ -//} - -//[Order(1)] -//[MaiDanJianDataOutput] -//[Display(Name = "印度件结算核对明细输出")] -//public class Class32 : BaseEntity -//{ -//} - -//[Order(2)] -//[MaiDanJianDataOutput] -//[Display(Name = "印度件寄售库不能出库明细与汇总输出")] -//public class Class33 : BaseEntity -//{ -//} - -//[Order(3)] -//[MaiDanJianDataOutput] -//[Display(Name = "印度件有结算有发货明细与汇总输出")] -//public class Class34 : BaseEntity -//{ -//} - -//[Order(4)] -//[MaiDanJianDataOutput] -//[Display(Name = "印度件有结算无发货明细与汇总输出")] -//public class Class35 : BaseEntity -//{ -//} - -////// -//[Order(6)] -//[Display(Name = "出库单")] -//public class ChuKuDanGroup : GroupAttribute -//{ -//} - -//[Order(1)] -//[ChuKuDanGroup] -//[Display(Name = "HBPO-JIS出库单")] -//public class Class36 : BaseEntity -//{ -//} - -//[Order(2)] -//[ChuKuDanGroup] -//[Display(Name = "BBAC-JIS出库单")] -//public class Class37 : BaseEntity -//{ -//} - -//[Order(3)] -//[ChuKuDanGroup] -//[Display(Name = "JIT件件出库单")] -//public class Class38 : BaseEntity -//{ -//} - -//[Order(4)] -//[ChuKuDanGroup] -//[Display(Name = "备件出库单")] -//public class Class39 : BaseEntity -//{ -//} - -//[Order(5)] -//[ChuKuDanGroup] -//[Display(Name = "印度件出库单")] -//public class Class40 : BaseEntity -//{ -//} - -//[Order(6)] -//[ChuKuDanGroup] -//[Display(Name = "不能出库记录出库业务")] -//public class Class41 : BaseEntity -//{ -//} - -////// -//[Order(7)] -//[Display(Name = "商务审核")] -//public class ShangWuShenHeGroup : GroupAttribute -//{ -//} - -//[Order(1)] -//[ShangWuShenHeGroup] -//[Display(Name = "HBPO-JIS 商务待开票")] -//public class Class42 : BaseEntity -//{ -//} - -//[Order(2)] -//[ShangWuShenHeGroup] -//[Display(Name = "BBAC-JIS商务待开票")] -//public class Class43 : BaseEntity -//{ -//} - -//[Order(3)] -//[ShangWuShenHeGroup] -//[Display(Name = "JIT件商务发票待开票")] -//public class Class44 : BaseEntity -//{ -//} - -//[Order(4)] -//[ShangWuShenHeGroup] -//[Display(Name = "备件商务发票待开票")] -//public class Class45 : BaseEntity -//{ -//} - -//[Order(5)] -//[ShangWuShenHeGroup] -//[Display(Name = "印度件商务发票待开票")] -//public class Class46 : BaseEntity -//{ -//} - -////// -//[Order(7)] -//[Display(Name = "财务审核")] -//public class CaiWuShenHeGroup : GroupAttribute -//{ -//} - -//[Order(1)] -//[CaiWuShenHeGroup] -//[Display(Name = " BBAC-JIS财务管理审核")] -//public class Class47 : BaseEntity -//{ -//} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/MaterialRelationship.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/MaterialRelationship.cs deleted file mode 100644 index 571554b5..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/MaterialRelationship.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.ComponentModel.DataAnnotations; - - - -namespace SettleAccount.Domain.BQ; - - -[Display(Name = "客户零件关系")] -public class MaterialRelationship -{ -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs index 3259bf50..5155c3d3 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_CAN_SA.cs @@ -109,8 +109,8 @@ public class PUB_CAN_SA_DETAIL : SA_CAN_BASE /// /// 对应字段DeliveryNode /// - [Display(Name = "结算分组")] - public string GroupNum { get; set; } = null!; + //[Display(Name = "结算分组")] + //public string GroupNum { get; set; } = null!; public PUB_CAN_SA_DETAIL(string keyCode, int version, string billNum, string settleBillNum, string lU, string pN, string site, decimal qty, decimal price, string invGroupNum, DateTime settleDate, string businessType, string groupNum) { diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_NOT_SA_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_NOT_SA_DETAIL.cs index 69f8277a..dac62626 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_NOT_SA_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_NOT_SA_DETAIL.cs @@ -1,9 +1,6 @@ using SettleAccount.Bases; using System; using System.ComponentModel.DataAnnotations; - - - namespace SettleAccount.Domain.BQ; [Display(Name = "PUB不可结算导入明细")] diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs index 849f1d0f..ac0df6ca 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_PD_DETAIL.cs @@ -53,8 +53,9 @@ public class PUB_PD_DETAIL :PD_BASE //[Display(Name = "结算分组")] //public string GroupNum { get; set; } = null!; - public PUB_PD_DETAIL(string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, string businessType, string invGroupNum, DateTime settleDate, string groupNum) + public PUB_PD_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string rELU, string pN, string rEPN, string site, decimal qty, decimal price, string businessType, string invGroupNum, DateTime settleDate, string groupNum) { + Id = guid; KeyCode = keyCode; Version = version; BillNum = billNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SA.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SA.cs index 8d293541..1e445f94 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SA.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SA.cs @@ -19,7 +19,7 @@ public class PUB_SA : FullAuditedAggregateRoot [Display(Name = "状态")] public string State { get; set; } = null!; - public PUB_SA(int version, string billNum, string state) + public PUB_SA(Guid guid, int version, string billNum, string state) { Version = version; BillNum = billNum; @@ -100,8 +100,9 @@ public class PUB_SA_DETAIL:SA_BASE //[Display(Name = "结算分组")] //public string GroupNum { get; set; } = null!; - public PUB_SA_DETAIL(string keyCode, int version, string billNum, string lU, string pN, string site, decimal qty, decimal price, string invGroupNum, DateTime settleDate, string extend1, string extend2, string extend3, string groupNum) + public PUB_SA_DETAIL(Guid guid, string keyCode, int version, string billNum, string lU, string pN, string site, decimal qty, decimal price, string invGroupNum, DateTime settleDate, string extend1, string extend2, string extend3, string groupNum) { + Id=guid; KeyCode = keyCode; Version = version; BillNum = billNum; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SE_DETAIL.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SE_DETAIL.cs index 867f5a41..6c677f89 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SE_DETAIL.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/PUB_SE_DETAIL.cs @@ -48,8 +48,9 @@ public class PUB_SE_DETAIL :SE_BASE //[Display(Name = "Wms发货单号")] //public string WmsBillNum { get; set; } = null!; - public PUB_SE_DETAIL(string keyCode, int version, string lU, string pN, decimal qty, string extend1, string extend2, string extend3, string businessType, DateTime beginDate, DateTime shippingDate, string wmsBillNum) + public PUB_SE_DETAIL(Guid guid, string keyCode, int version, string lU, string pN, decimal qty, string extend1, string extend2, string extend3, string businessType, DateTime beginDate, DateTime shippingDate, string wmsBillNum) { + Id=guid; KeyCode = keyCode; Version = version; LU = lU; diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_BJ.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_BJ.cs deleted file mode 100644 index 31a5ab33..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_BJ.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.ComponentModel.DataAnnotations; - - - -namespace SettleAccount.Domain.BQ; - - -[Display(Name = "备件价格表")] - -public class TB_PRICE_BJ -{ - /// - /// 取值字段【零件号】 - /// - [Display(Name = "零件号")] - public string LU { get; set; } = null!; - - /// - /// 取值字段【零件价格】 - /// - [Display(Name = "价格")] - public decimal Price { get; set; } - - /// - /// 取值字段【客户编码】 - /// - [Display(Name = "客户编码")] - public string ClientCode { get; set; } = null!; - - public TB_PRICE_BJ(string lU, decimal price, string clientCode) - { - LU = lU; - Price = price; - ClientCode = clientCode; - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_LIST.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_LIST.cs deleted file mode 100644 index fca6789e..00000000 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TB_PRICE_LIST.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.ComponentModel.DataAnnotations; - - - -namespace SettleAccount.Domain.BQ; - -[Display(Name = "销售价格单")] -public class TB_PRICE_LIST -{ - /// - /// 取值字段Part No. - /// - [Display(Name = "零件号")] - public string LU { get; set; } = null!; - - /// - /// 取值字段Total Price - /// - [Display(Name = "价格")] - public decimal Price { get; set; } - - /// - /// 取值字段Valid From - /// - [Display(Name = "开始时间")] - public DateTime BeginTime { get; set; } - - /// - /// 取值字段Valid To - /// - [Display(Name = "结束时间")] - public DateTime EndTime { get; set; } - - /// - /// 取值字段Plant取值字段1040=BBAC奔驰亦庄,1046=BBAC奔驰顺义,104T=HBPO - /// - [Display(Name = "客户编码")] - public string ClientCode { get; set; } = null!; - [Display(Name = "业务列别")] - public string BusinessType { get; set; } = null!; - - public TB_PRICE_LIST(string lU, decimal price, DateTime beginTime, DateTime endTime, string clientCode, string businessType) - { - LU = lU; - Price = price; - BeginTime = beginTime; - EndTime = endTime; - ClientCode = clientCode; - BusinessType = businessType; - } -} diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index b3795b1a..781c867a 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs @@ -44,6 +44,7 @@ using Win.Sfs.SettleAccount.Entities.SecMatch; using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts; using Win.Sfs.SettleAccount.Errors; +using SettleAccount.Domain.BQ; namespace Win.Sfs.SettleAccount { @@ -101,7 +102,7 @@ namespace Win.Sfs.SettleAccount #region 红旗M平台、一汽轿车 - + /// @@ -122,7 +123,7 @@ namespace Win.Sfs.SettleAccount b.Property(x => x.CustomerMaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); b.Property(x => x.MaterialCode).HasMaxLength(CommonConsts.MaxCodeLength); - b.HasIndex(x => new { x.CustomerMaterialCode,x.BillNum }); + b.HasIndex(x => new { x.CustomerMaterialCode, x.BillNum }); }); } @@ -152,10 +153,10 @@ namespace Win.Sfs.SettleAccount b.Property(x => x.MaterialGroup).HasMaxLength(50); b.Property(x => x.MaterialGroupCode).HasMaxLength(50); - b.Property(x=>x.SaleCode).HasMaxLength(50); + b.Property(x => x.SaleCode).HasMaxLength(50); b.Property(x => x.SettleCode).HasMaxLength(50); //创建组合索引 - + }); } @@ -172,13 +173,13 @@ namespace Win.Sfs.SettleAccount b.Property(x => x.MaterialCode).HasMaxLength(50); b.Property(x => x.MaterialDesc).HasMaxLength(100); b.Property(x => x.Client).IsRequired().HasMaxLength(50); - + b.Property(x => x.MaterialCode).HasMaxLength(50); b.Property(x => x.MaterialDesc).HasMaxLength(150); b.Property(x => x.MaterialGroup).HasMaxLength(50); b.Property(x => x.MaterialGroupCode).HasMaxLength(50); - + //创建组合索引 @@ -447,15 +448,88 @@ namespace Win.Sfs.SettleAccount } + private static void ConfigureBBAC_CAN_SA(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_CAN_SA", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.State).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + + } + + private static void ConfigureBBAC_CAN_SA_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_CAN_SA_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.SettleBillNum).HasMaxLength(50); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.Category).HasMaxLength(50); + b.Property(x => x.IsReturn).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); + } + private static void ConfigureBBAC_PD_DETAIL(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_BBAC_PD_DETAIL", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.Site).HasMaxLength(50); + b.Property(x => x.BillNum).HasMaxLength(50); + b.Property(x => x.InvGroupNum).HasMaxLength(50); + b.Property(x => x.GroupNum).HasMaxLength(50); + b.Property(x => x.LU).HasMaxLength(50); + b.Property(x => x.PN).HasMaxLength(50); + b.Property(x => x.RELU).HasMaxLength(50); + b.Property(x => x.REPN).HasMaxLength(50); + b.Property(x => x.KeyCode).HasMaxLength(50); + b.Property(x => x.ConcurrencyStamp).HasMaxLength(50); + }); } - #endregion } - + + + + + #endregion + #region 红旗 + + + + + + #endregion + +} +