From 7b013346174c6f645039ea7673a666a3228cf20b Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期五, 09 十二月 2022 13:36:29 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs index 3dfb55c..9f7c6c7 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs @@ -215,6 +215,7 @@ objJsonResult.data = null; return objJsonResult; } + //if (HWorkTimes <= 0) //{ // objJsonResult.code = "0"; @@ -255,10 +256,13 @@ // objJsonResult.data = null; // return objJsonResult; //} + var num = 0; + //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� oCN.BeginTran(); if ("Add".Equals(eventType)) { + num = 1; if (!AllowbillNo(HBillNo)) { oCN.RollBack(); @@ -290,6 +294,7 @@ } else if ("Modify".Equals(eventType)) { + num = 2; oCN.RunProc("UpDate Sc_StationOutBillMain set " + "HUpDater='" + HMaker + "'" + ",HUpDateDate=getdate()" + @@ -358,7 +363,7 @@ objJsonResult.data = null; return objJsonResult; } - oCN.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_Out " + HInterID + ",1"); + oCN.RunProc("exec h_p_Mes_ProcessExchangeRelationQty_Out " + HInterID + ","+ num + ""); oCN.RunProc("exec h_p_Mes_ProcessExchangeChangeStatus " + HInterID + " "); oCN.RunProc("exec h_p_Mes_StationOutBillBackBarCode " + HInterID + " "); //鍒ゆ柇鏄惁鏄� 鏈亾宸ュ簭 @@ -394,6 +399,7 @@ } catch (Exception e) { + oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exception锛�" + e.ToString(); -- Gitblit v1.9.1