From 04ef83a36a24e309c8d5240eee6ac93fc2bb156d Mon Sep 17 00:00:00 2001 From: YL <YL@LAPTOP-SE03PLUR> Date: 星期一, 06 十二月 2021 17:17:43 +0800 Subject: [PATCH] 器具改制申请单删除不掉问题查找'缺少表对象' --- WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs b/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs index 02348d8..6003dac 100644 --- a/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs +++ b/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs @@ -3579,6 +3579,8 @@ } if (bResult) { + string sql = $"exec h_p_Sc_MouldChangeFileStatus 'in','{oBill.omodel.HInterID.ToString()}' "; + oCn.RunProc(sql); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; @@ -3986,6 +3988,8 @@ } if (bResult) { + string sql = $"exec h_p_Sc_MouldChangeFileStatus 'out','{oBill.omodel.HInterID.ToString()}' "; + oCn.RunProc(sql); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; @@ -4479,7 +4483,7 @@ lsmain = oListModels.getObjectByJson_Gy_MouldProdBackBillMain(msg2); foreach (Model.ClsSc_MouldProdBackBillMain oItem in lsmain) { - //oItem.HMaker = ""; + //oItem.HMaker = ""; UserName = oItem.HMaker; //鍒跺崟浜� oItem.HBillType = "3803"; oItem.HBillSubType = "3803"; @@ -4552,6 +4556,7 @@ { // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + } else { @@ -4559,6 +4564,10 @@ } if (bResult) { + string sql = $"exec h_p_Sc_MouldProdBackBillList '{oBill.omodel.HBillNo}' "; + oCn.RunProc(sql); + string sql1 = $"exec h_p_Sc_MouldChangeFileStatus 'in','{oBill.omodel.HInterID.ToString()}' "; + oCn.RunProc(sql1); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; @@ -4991,6 +5000,8 @@ } if (bResult) { + string sql = $"exec h_p_Sc_MouldChangeFileStatus 'out','{oBill.omodel.HInterID.ToString()}' "; + oCn.RunProc(sql); objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "淇濆瓨鎴愬姛锛�"; -- Gitblit v1.9.1