From 95f65190334bd1baaebe0e6a7312a06b660cd4d1 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期三, 15 五月 2024 10:46:04 +0800 Subject: [PATCH] 优化 --- WebAPI/Controllers/CGGL/Cg_PayableBillController.cs | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs b/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs index 32f81ee..f6dc975 100644 --- a/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs +++ b/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs @@ -151,6 +151,7 @@ return objJsonResult; } } + UserName = oItem.HMaker; //鍒跺崟浜� oItem.HBillType = "1114"; oItem.HBillSubType = "1114"; @@ -194,6 +195,7 @@ bool bResult; if (refSav == "Add") { + // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); } @@ -335,6 +337,12 @@ oCN.BeginTran(); + //搴斾粯鍗� 鍒犻櫎 鎾ら攢 閲囪喘鍏ュ簱鍗� 鍏宠仈鏁伴噺 + oCN.RunProc("exec h_p_Cg_UpDateRelation_POStockInToPayable_Del " + HInterID); + + //搴斾粯鍗� 鍒犻櫎 鎾ら攢 閲囪喘璁㈠崟 鍏宠仈鏁伴噺 + oCN.RunProc("exec h_p_Cg_UpDateRelation_POOrderToPayable_Del " + HInterID); + oCN.RunProc("delete from Cg_PayableBillMain where HInterID = " + HInterID); oCN.RunProc("delete from Cg_PayableSub where HInterID= " + HInterID); -- Gitblit v1.9.1