|
|
@ -1,5 +1,6 @@ |
|
|
using BWP.B3Frameworks.BL; |
|
|
using BWP.B3Frameworks.BL; |
|
|
using BWP.B3SubstituteKill.BO; |
|
|
using BWP.B3SubstituteKill.BO; |
|
|
|
|
|
using BWP.B3SubstituteKill.Rpcs; |
|
|
using Forks.EnterpriseServices; |
|
|
using Forks.EnterpriseServices; |
|
|
using Forks.EnterpriseServices.BusinessInterfaces; |
|
|
using Forks.EnterpriseServices.BusinessInterfaces; |
|
|
using System; |
|
|
using System; |
|
|
@ -16,5 +17,13 @@ namespace BWP.B3SubstituteKill.BL |
|
|
|
|
|
|
|
|
public class StatPayBL : DepartmentWorkFlowBillBL<StatPay>, IStatPayBL |
|
|
public class StatPayBL : DepartmentWorkFlowBillBL<StatPay>, IStatPayBL |
|
|
{ |
|
|
{ |
|
|
|
|
|
protected override void beforeSave(StatPay dmo) |
|
|
|
|
|
{ |
|
|
|
|
|
dmo.PriceBill_ID = null; |
|
|
|
|
|
if (dmo.Date.HasValue && dmo.Supplier_ID.HasValue) |
|
|
|
|
|
dmo.PriceBill_ID = SupplierRpc.GetPriceBillID(dmo.Supplier_ID.Value, dmo.Date.Value); |
|
|
|
|
|
dmo.ReceiveMoney = dmo.CostDetails.CostMoney - dmo.CallbackPayDetails.CallbackPayMoney; |
|
|
|
|
|
base.beforeSave(dmo); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |