From 3456ac0eec290c6cadb9c143cd5739cdb54964a2 Mon Sep 17 00:00:00 2001 From: ddlucky Date: Tue, 7 Mar 2023 17:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E7=AE=A1=E8=BD=A6=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=90=8E=E5=90=88=E8=AE=A1=E5=A4=B4=E8=A1=A8=E4=BB=B6=E6=95=B0?= =?UTF-8?q?=E9=87=8D=E9=87=8F=E5=B0=BA=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MsOp_SuperVision_TruckDAL.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/DSWeb/Areas/MvcShipping/DAL/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckDAL.cs index febd42b2..fdad0ba7 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsOp_SuperVision_Truck/MsOp_SuperVision_TruckDAL.cs @@ -318,14 +318,16 @@ namespace DSWeb.MvcShipping.DAL.MsOpOtherDAL if (result.Success == true) { - //headData.DbOperationType = DbOperationType.DbotUpd; - //headData.ModelUIStatus = "E"; - - //if (result.Success) { - // var detailList = GetBodyList(" BSNO='" + headData.BSNO + "'"); - // headData.setSum(detailList); - // result = modb.Save(headData); - //} + headData.DbOperationType = DbOperationType.DbotUpd; + headData.ModelUIStatus = "E"; + headData = GetData("BSNO='" + headData.BSNO + "'"); + if (result.Success) + { + var detailList = GetBodyList(" BSNO='" + headData.BSNO + "'"); + headData.setSum(detailList); + result = modb.Save(headData); + } + } else {