|
|
|
@ -14,27 +14,28 @@ using TSingSoft.WebPluginFramework; |
|
|
|
namespace BWP.B3QingDaoWanFu.TypeIOCs |
|
|
|
{ |
|
|
|
|
|
|
|
[TypeIOC(typeof(StatPayBL), typeof(StatPayBL.BaseBLIOCs.BeforeSave))] |
|
|
|
public class StatPayBeforeSaveTypeIoc : StatPayBL.BaseBLIOCs.BeforeSave |
|
|
|
//[TypeIOC(typeof(StatPayBL), typeof(StatPayBL.BaseBLIOCs.AfterSave))]
|
|
|
|
//public class StatPayBeforeSaveTypeIoc : StatPayBL.BaseBLIOCs.AfterSave
|
|
|
|
//{
|
|
|
|
// public void Invoke(IDmoContext context, StatPay dmo)
|
|
|
|
// {
|
|
|
|
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
[TypeIOC(typeof(StatPayBL), typeof(StatPayBL.BaseBLIOCs.AfterSave))] |
|
|
|
public class StatPayAfterSaveBLTypeIoc : StatPayBL.BaseBLIOCs.AfterSave |
|
|
|
{ |
|
|
|
public void Invoke(IDmoContext context, StatPay dmo) |
|
|
|
{ |
|
|
|
var 死猪奖罚设置ID = 36; |
|
|
|
dmo.DeadPigRewardMoney = dmo.OtherRewardDetails.Where(x=>x.Sanction_ID== 死猪奖罚设置ID).Sum(x => (x.Money ?? 0).Value); |
|
|
|
dmo.DeadPigRewardMoney = dmo.OtherRewardDetails.Where(x => x.Sanction_ID == 死猪奖罚设置ID).Sum(x => (x.Money ?? 0).Value); |
|
|
|
var butcherdetail = dmo.Details.FirstOrDefault(x => x.HogGrade_ID.HasValue); |
|
|
|
if (butcherdetail != null) |
|
|
|
{ |
|
|
|
dmo.HogGrade_ID = butcherdetail.HogGrade_ID; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[TypeIOC(typeof(StatPayBL), typeof(StatPayBL.BaseBLIOCs.AfterSave))] |
|
|
|
public class StatPayAfterSaveBLTypeIoc : StatPayBL.BaseBLIOCs.AfterSave |
|
|
|
{ |
|
|
|
public void Invoke(IDmoContext context, StatPay dmo) |
|
|
|
{ |
|
|
|
//自定义单价
|
|
|
|
if (dmo.UpdateActualPrice) |
|
|
|
{ |
|
|
|
|