From f5ca1bd0f4db88fdd5b37a12d07463548ec2f207 Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 18 Apr 2018 21:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=BA=94=E4=B8=B0=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=20=E5=BC=95=E7=94=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3SubstituteKill/BO/Bills/StatPay/StatPay.cs | 53 +++++++++++-------- .../SubKillWeightBill_Detail.cs | 6 ++- 2 files changed, 37 insertions(+), 22 deletions(-) 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")]