From cbb4d47b6f79fa8663697862a975ed94acfb76be Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期一, 19 十二月 2022 17:46:36 +0800 Subject: [PATCH] 维修验收单 选维修记录单 带出数据 --- WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs index c5f6cea..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(); @@ -570,6 +576,7 @@ bool bResult; // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); + oCN.RunProc($"update Sc_StationOutBillMain set HMaker='{msg4}' where HInterID={oBill.omodel.HInterID}"); i++; //if (bResult) //{ -- Gitblit v1.9.1