From 5265d2a3a3c0ac8ee4981a92be965fa5df655a8a Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Mon, 15 Oct 2018 20:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E7=A3=85=E5=8D=95=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=BB=93=E7=AE=97=E5=8D=95=EF=BC=8C=E6=8A=8A?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E5=A4=B4=E6=95=B0=E5=92=8C=E5=8D=95=E4=BB=B7?= =?UTF-8?q?=E9=83=BD=E5=B8=A6=E8=BF=87=E5=8E=BB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BL/Bill/WeightBillBL/WeightBillBL.cs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs b/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs index 38469eb..253079a 100644 --- a/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs +++ b/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs @@ -96,16 +96,14 @@ namespace BWP.B3SheepButcherManage.BL { statPay.MoneyCountMethod = dmo.MoneyCountMethod.Value; } - if (dmo.WeighAbnormalRecording.Count > 0) + foreach (var abnormal in dmo.WeighAbnormalRecording) { - foreach (var abnormal in dmo.WeighAbnormalRecording) - { - var exception = new StatPay_Exception(); - exception.RewardItem_ID = abnormal.RewardItem_ID; - // exception.Price = abnormal; - exception.Money = (decimal?)abnormal.Abnormal_Money; - statPay.ExceptionDetails.Add(exception); - } + var exception = new StatPay_Exception(); + exception.RewardItem_ID = abnormal.RewardItem_ID; + exception.Number = abnormal.Number; + exception.Price = abnormal.Price; + exception.Money = abnormal.Abnormal_Money; + statPay.ExceptionDetails.Add(exception); } bl.Insert(statPay); @@ -173,7 +171,7 @@ namespace BWP.B3SheepButcherManage.BL var updatedom = new DQUpdateDom(typeof(WeightBill_Record)); updatedom.Where.Conditions.Add(DQCondition.EQ("ID", weighDetailID)); - long weightid = InnerBLUtil.GetDmoPropertyByID(Session, typeof(WeightBill_Record), "WeightBill_ID", weighDetailID); + long weightid = InnerBLUtil.GetDmoPropertyByID(Session, typeof(WeightBill_Record), "WeightBill_ID", weighDetailID); updatedom.Columns.Add(new DQUpdateColumn("PlanNumber", planNumber));//已计划头数 updatedom.Columns.Add(new DQUpdateColumn("ButcherNumber", butcherNumber)); //已屠宰