yibo 8 years ago
parent
commit
2bf635bbdf
3 changed files with 20 additions and 1 deletions
  1. +6
    -1
      B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayEdit.cs
  2. +11
    -0
      B3SubstituteKill/BL/Bills/StatPay/StatPayBL.cs
  3. +3
    -0
      B3SubstituteKill/BO/Bills/StatPay/StatPay.cs

+ 6
- 1
B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/StatPay_/StatPayEdit.cs View File

@ -23,7 +23,10 @@ namespace BWP.Web.Pages.B3SubstituteKill.Bills.StatPay_
protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, CustomPageLayout.PageLayoutSection pageLayoutSection) protected override void BuildBasePropertiesEditor(TitlePanel titlePanel, CustomPageLayout.PageLayoutSection pageLayoutSection)
{ {
var layoutManager = new LayoutManager("", mDFInfo, mDFContainer); var layoutManager = new LayoutManager("", mDFInfo, mDFContainer);
if (MinDmo.SourceBillID.HasValue)
layoutManager.Add("SourceBillID", new DFEntityLink(DmoTypeIDAttribute.ResolveID(MinDmo.SourceBillType.Value)));
else
layoutManager.Add("SourceBillID", new DFValueLabel());
var config = new AutoLayoutConfig(); var config = new AutoLayoutConfig();
config.Add("AccountingUnit_ID"); config.Add("AccountingUnit_ID");
config.Add("Department_ID"); config.Add("Department_ID");
@ -37,6 +40,8 @@ namespace BWP.Web.Pages.B3SubstituteKill.Bills.StatPay_
config.Add("Weight"); config.Add("Weight");
config.Add("PriceBill_ID"); config.Add("PriceBill_ID");
config.Add("ReceiveMoney"); config.Add("ReceiveMoney");
config.Add("SourceBillType");
config.Add("SourceBillID");
config.Add("Remark"); config.Add("Remark");
layoutManager.Config = config; layoutManager.Config = config;
pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo); pageLayoutSection.ApplyLayout(layoutManager, config, mPageLayoutManager, mDFInfo);


+ 11
- 0
B3SubstituteKill/BL/Bills/StatPay/StatPayBL.cs View File

@ -29,5 +29,16 @@ namespace BWP.B3SubstituteKill.BL
dmo.ReceiveMoney = dmo.CostDetails.CostMoney - dmo.CallbackPayDetails.CallbackPayMoney; dmo.ReceiveMoney = dmo.CostDetails.CostMoney - dmo.CallbackPayDetails.CallbackPayMoney;
base.beforeSave(dmo); base.beforeSave(dmo);
} }
protected override List<string> MinDmoProperties
{
get
{
var b = base.MinDmoProperties;
b.Add("SourceBillID");
b.Add("SourceBillType");
return b;
}
}
} }
} }

+ 3
- 0
B3SubstituteKill/BO/Bills/StatPay/StatPay.cs View File

@ -89,8 +89,11 @@ namespace BWP.B3SubstituteKill.BO
//[Join("Weigh_ID", "ID")] //[Join("Weigh_ID", "ID")]
//public DateTime? WeighTime { get; set; } //public DateTime? WeighTime { get; set; }
[LogicName("来源单号")]
public long? SourceBillID { get; set; } public long? SourceBillID { get; set; }
[LogicName("来源单据")]
[DmoTypeIDFormat]
public short? SourceBillType { get; set; } public short? SourceBillType { get; set; }
private StatPay_CostDetailCollection _mCostDetails = new StatPay_CostDetailCollection(); private StatPay_CostDetailCollection _mCostDetails = new StatPay_CostDetailCollection();


Loading…
Cancel
Save