diff --git a/B3SubstituteKill/BO/Bills/StatPay/StatPay.cs b/B3SubstituteKill/BO/Bills/StatPay/StatPay.cs index 7f29184..291a4e1 100644 --- a/B3SubstituteKill/BO/Bills/StatPay/StatPay.cs +++ b/B3SubstituteKill/BO/Bills/StatPay/StatPay.cs @@ -41,26 +41,6 @@ namespace BWP.B3SubstituteKill.BO [DFNotEmpty] public long? Supplier_ID { get; set; } - [ReferenceTo(typeof(Supplier), "Name")] - [Join("Supplier_ID", "ID")] - [DFPrompt("供应商")] - public string Supplier_Name { get; set; } - - [ReferenceTo(typeof(Supplier), "Tel")] - [Join("Supplier_ID", "ID")] - [DFPrompt("联系方式")] - public string Supplier_Tel { get; set; } - - [ReferenceTo(typeof(Supplier), "Card_ID")] - [Join("Supplier_ID", "ID")] - [DFPrompt("身份证号")] - public string Supplier_Card_ID { get; set; } - - [ReferenceTo(typeof(Supplier), "Address")] - [Join("Supplier_ID", "ID")] - [DFPrompt("地址")] - public string Supplier_Address { get; set; } - [LogicName("代宰头数")] [DFExtProperty("WebControlType", DFEditControl.StaticText)] public int? Number { get; set; } @@ -95,7 +75,38 @@ namespace BWP.B3SubstituteKill.BO [LogicName("来源单据")] [DmoTypeIDFormat] [DFExtProperty("WebControlType", DFEditControl.StaticText)] - public short? SourceBillType { get; set; } + public short? SourceBillType { get; set; } + + #region ReferenceTo + + [ReferenceTo(typeof(Supplier), "Code")] + [Join("Supplier_ID", "ID")] + public string Supplier_Code { get; set; } + + [ReferenceTo(typeof(Supplier), "Name")] + [Join("Supplier_ID", "ID")] + [DFPrompt("供应商")] + public string Supplier_Name { get; set; } + + [ReferenceTo(typeof(Supplier), "Tel")] + [Join("Supplier_ID", "ID")] + [DFPrompt("联系方式")] + public string Supplier_Tel { get; set; } + + [ReferenceTo(typeof(Supplier), "Card_ID")] + [Join("Supplier_ID", "ID")] + [DFPrompt("身份证号")] + public string Supplier_Card_ID { get; set; } + + [ReferenceTo(typeof(Supplier), "Address")] + [Join("Supplier_ID", "ID")] + [DFPrompt("地址")] + public string Supplier_Address { get; set; } + + + #endregion + + private StatPay_CostDetailCollection _mCostDetails = new StatPay_CostDetailCollection(); [OneToMany(typeof(StatPay_CostDetail), "ID")] diff --git a/B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill_Detail.cs b/B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill_Detail.cs index ebf904c..636ad87 100644 --- a/B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill_Detail.cs +++ b/B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill_Detail.cs @@ -43,7 +43,11 @@ namespace BWP.B3SubstituteKill.BO [LogicName("生猪品种")] [ReferenceTo(typeof(LiveVarieties), "Name")] [Join("LiveVarieties_ID", "ID")] - public string LiveVarieties_Name { get; set; } + public string LiveVarieties_Name { get; set; } + + [ReferenceTo(typeof(LiveVarieties), "Code")] + [Join("LiveVarieties_ID", "ID")] + public string LiveVarieties_Code { get; set; } [LogicName("圈舍")] [ReferenceTo(typeof(LiveColonyHouse), "Name")]