Browse Source

为五丰接口 增加 引用字段

master
robin 7 years ago
parent
commit
f5ca1bd0f4
2 changed files with 37 additions and 22 deletions
  1. +32
    -21
      B3SubstituteKill/BO/Bills/StatPay/StatPay.cs
  2. +5
    -1
      B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill_Detail.cs

+ 32
- 21
B3SubstituteKill/BO/Bills/StatPay/StatPay.cs View File

@ -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")]


+ 5
- 1
B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill_Detail.cs View File

@ -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")]


Loading…
Cancel
Save