Browse Source

需求单No.138539

master
luanhui 8 years ago
parent
commit
8359a5198d
4 changed files with 16 additions and 0 deletions
  1. +2
    -0
      B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/SubKillWeightBill_/SubKillWeightBillEdit.cs
  2. +3
    -0
      B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/SubKillWeightBill_/SubKillWeightBillList.cs
  3. +2
    -0
      B3SubstituteKill/BL/Bills/SubKillWeightBill/SubKillWeightBillBL.cs
  4. +9
    -0
      B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill.cs

+ 2
- 0
B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/SubKillWeightBill_/SubKillWeightBillEdit.cs View File

@ -35,6 +35,8 @@ namespace BWP.Web.Pages.B3SubstituteKill.Bills.SubKillWeightBill_
config.Add("Supplier_Address"); config.Add("Supplier_Address");
config.Add("Number"); config.Add("Number");
config.Add("Weight"); config.Add("Weight");
config.Add("MaoWeight");
config.Add("PiWeight");
config.Add("PriceBill_ID"); config.Add("PriceBill_ID");
config.Add("Remark"); config.Add("Remark");
layoutManager.Config = config; layoutManager.Config = config;


+ 3
- 0
B3SubstituteKill.Web/Pages/B3SubstituteKill/Bills/SubKillWeightBill_/SubKillWeightBillList.cs View File

@ -33,6 +33,9 @@ namespace BWP.Web.Pages.B3SubstituteKill.Bills.SubKillWeightBill_
AddDFBrowseGridColumn(grid, "Employee_Name"); AddDFBrowseGridColumn(grid, "Employee_Name");
AddDFBrowseGridColumn(grid, "Date"); AddDFBrowseGridColumn(grid, "Date");
AddDFBrowseGridColumn(grid, "Supplier_Name"); AddDFBrowseGridColumn(grid, "Supplier_Name");
AddDFBrowseGridColumn(grid, "MaoWeight");
AddDFBrowseGridColumn(grid, "PiWeight");
AddDFBrowseGridColumn(grid, "Weight");
AddDFBrowseGridColumn(grid, "Remark"); AddDFBrowseGridColumn(grid, "Remark");
} }
} }


+ 2
- 0
B3SubstituteKill/BL/Bills/SubKillWeightBill/SubKillWeightBillBL.cs View File

@ -37,6 +37,8 @@ namespace BWP.B3SubstituteKill.BL
dmo.PriceBill_ID = SupplierRpc.GetPriceBillID(dmo.Supplier_ID.Value, dmo.Date.Value); dmo.PriceBill_ID = SupplierRpc.GetPriceBillID(dmo.Supplier_ID.Value, dmo.Date.Value);
dmo.Number = dmo.Details.Sum(x => x.Number ?? 0); dmo.Number = dmo.Details.Sum(x => x.Number ?? 0);
dmo.Weight = dmo.Details.Sum(x => x.Weight.EToDecimal() ?? 0); dmo.Weight = dmo.Details.Sum(x => x.Weight.EToDecimal() ?? 0);
dmo.MaoWeight = dmo.Details.Sum(x => x.MaoWeight.EToDecimal() ?? 0);
dmo.PiWeight = dmo.Details.Sum(x => x.PiWeight.EToDecimal() ?? 0);
base.beforeSave(dmo); base.beforeSave(dmo);
} }


+ 9
- 0
B3SubstituteKill/BO/Bills/SubKillWeightBill/SubKillWeightBill.cs View File

@ -68,6 +68,15 @@ namespace BWP.B3SubstituteKill.BO
[DFExtProperty("WebControlType", DFEditControl.StaticText)] [DFExtProperty("WebControlType", DFEditControl.StaticText)]
public Money<decimal> Weight { get; set; } public Money<decimal> Weight { get; set; }
[LogicName("代宰毛重")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)]
public Money<decimal> MaoWeight { get; set; }
[LogicName("代宰皮重")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)]
public Money<decimal> PiWeight { get; set; }
[LogicName("价格单号")] [LogicName("价格单号")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)] [DFExtProperty("WebControlType", DFEditControl.StaticText)]
public long? PriceBill_ID { get; set; } public long? PriceBill_ID { get; set; }


Loading…
Cancel
Save