From 5466e02176f2acf2f08ef1c16315c3185bae903f Mon Sep 17 00:00:00 2001 From: wtt <1985833171@qq.com> Date: 星期一, 19 五月 2025 15:53:34 +0800 Subject: [PATCH] 异常反馈单,快捷开工接口调整 --- WebAPI/Controllers/CJGL/Cj_SingleStationController.cs | 199 +++++++++++++++++++++++++------------------------ 1 files changed, 103 insertions(+), 96 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs b/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs index 2a48c10..699b9b2 100644 --- a/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs +++ b/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs @@ -30,7 +30,7 @@ { objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-038]Sucess锛�"; objJsonResult.data = new DataTable(); return objJsonResult; } @@ -39,7 +39,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } @@ -47,7 +47,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -171,6 +171,7 @@ long HMainSourceEntryID = mainList[0].HICMOEntryID; string HMainSourceBillNo = mainList[0].HICMOBillNo; + //鍒ゆ柇鐢熶骇璐ㄩ噺姹囨姤鍗曟槸鍚﹀瓨鍦� ds = oCN.RunProcReturn("select * from Sc_QualityReportBillMain WITH(NOLOCK) where HInterID=" + HInterID + " and HBillNo='" + HBillNo + "'", "Sc_QualityReportBillMain"); if (ds.Tables[0].Rows.Count != 0) { objJsonResult.code = "0"; @@ -307,6 +308,7 @@ //淇敼鏉$爜琛ㄧ殑鐘舵�� oCN.RunProc("update Gy_BarCodeBill set HStatus='"+ HResult + "' where HBarCode='"+ oSub.HBarCode + "'"); + LogService.Write("绫诲瀷:" + oSub.HBadTypeID + ",鍒跺崟浜�:" + oSub.HMaker + ",鍒跺崟鏃ユ湡:" + oSub.HMakeDate); //淇敼鍑虹珯鍗曠殑 涓嶈壇 鎶ュ簾鏁伴噺 if (HResult == "涓嶈壇") { @@ -350,7 +352,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -375,7 +377,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鍗″彿:" + HBarCode + ",娴佽浆鍗℃湭寮�宸�!"; + objJsonResult.Message = "[3791-2-018]鍗″彿:" + HBarCode + ",娴佽浆鍗℃湭寮�宸�!"; objJsonResult.data = null; return objJsonResult; } @@ -392,7 +394,7 @@ { objJsonResult.code = "2"; objJsonResult.count = 2; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = dataSet.Tables[0]; return objJsonResult; } @@ -400,7 +402,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "閰嶄欢娓呭崟鏌ユ棤鏁版嵁锛�,鍙兘鏄綋鍓嶇敤鎴峰伐搴忎笉姝g‘鎴栬�呮祦杞崱杈撳叆閿欒!"; + objJsonResult.Message = "[3791-2-019]閰嶄欢娓呭崟鏌ユ棤鏁版嵁锛�,鍙兘鏄綋鍓嶇敤鎴峰伐搴忎笉姝g‘鎴栬�呮祦杞崱杈撳叆閿欒!"; objJsonResult.data = null; return objJsonResult; } @@ -409,7 +411,7 @@ { objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = ds.Tables[0]; } @@ -420,7 +422,7 @@ objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -449,7 +451,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犱繚瀛樻潈闄�!"; + objJsonResult.Message = "[0000-2-038]鏃犱繚瀛樻潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -462,7 +464,7 @@ if (tempList.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犻厤浠舵暟鎹�!"; + objJsonResult.Message = "[3791-2-026]鏃犻厤浠舵暟鎹�!"; objJsonResult.data = null; return objJsonResult; } @@ -493,7 +495,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "淇濆瓨鎴愬姛!"; + objJsonResult.Message = "[0000-1-050]淇濆瓨鎴愬姛!"; objJsonResult.data = null; return objJsonResult; @@ -503,7 +505,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-051]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -529,7 +531,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犱繚瀛樻潈闄�!"; + objJsonResult.Message = "[0000-2-038]鏃犱繚瀛樻潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -543,13 +545,13 @@ List<Model.ClsSc_AssemblyBillSub> sub = new List<Model.ClsSc_AssemblyBillSub>(); sub = JsonConvert.DeserializeObject<List<Model.ClsSc_AssemblyBillSub>>(sSubStr); - + //鏉$爜涓婇亾宸ュ簭鏄惁杩囩珯 ds = oCN.RunProcReturn("exec h_p_Sc_SNBarcodeProcCtrl_S '" + omodel.HBarCode_P + "'," + omodel.HProcID, "h_v_Gy_QualifiedRecordsList"); if (ClsPub.isInt(ds.Tables[0].Rows.Count) == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏌ユ棤鏁版嵁!"; + objJsonResult.Message = "[0000-1-045]鏌ユ棤鏁版嵁!"; objJsonResult.data = null; return objJsonResult; } @@ -557,11 +559,12 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = ds.Tables[0].Rows[0]["HBackRemark"].ToString() + "锛�"; + objJsonResult.Message = "[0000-1-051]" + ds.Tables[0].Rows[0]["HBackRemark"].ToString() + "锛�"; objJsonResult.data = null; return objJsonResult; } + //鍒ゆ柇鏉$爜鏄惁宸茬粡鍑虹珯 ds = oCN.RunProcReturn("select * from h_v_Gy_QualifiedRecordsList WITH(NOLOCK) where 浜у搧鏉$爜='" + omodel.HBarCode_P + "' and HProcExchInterID="+ omodel .HProcExchInterID+ " and HProcExchEntryID="+ omodel.HProcExchEntryID + " and HProcID="+ omodel.HProcID, "h_v_Gy_QualifiedRecordsList"); if (ds.Tables[0].Rows.Count > 0) @@ -569,7 +572,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜:" + omodel.HBarCode_P + ",宸插瓨鍦�!"; + objJsonResult.Message = "[0000-2-039]鏉$爜:" + omodel.HBarCode_P + ",宸插瓨鍦�!"; objJsonResult.data = null; return objJsonResult; } @@ -588,7 +591,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "閰嶄欢浠g爜:" + HMaterNamePJ + ",鏁伴噺涓�0!"; + objJsonResult.Message = "[3791-2-020]閰嶄欢浠g爜:" + HMaterNamePJ + ",鏁伴噺涓�0!"; objJsonResult.data = null; return objJsonResult; } @@ -704,11 +707,13 @@ int HTemporaryAreaID = 0;//鏆傛斁鍖� int HShiftsID = 0; + //鑾峰彇褰撳墠鐝 DataSet set = oCN.RunProcReturn("exec h_p_Gy_GetWorkShiftInfo " + HDeptID + "," + HCenterID, "h_p_Gy_GetWorkShiftInfo"); if (set.Tables[0].Rows.Count > 0) { HShiftsID = int.Parse(set.Tables[0].Rows[0]["HInterID"].ToString()); } + //鍒ゆ柇褰撳ぉ褰撳墠鐨勬祦杞崱鏄惁鏈夊嚭绔欏崟 ds = oCN.RunProcReturn("select * from Sc_StationOutBillMain a WITH(NOLOCK) left join Sc_StationOutBillSub_SN sn WITH(NOLOCK) on a.HInterID=sn.HInterID where a.HInterID=" + HInterID + " and HBillNo='" + HBillNo + "' and CONVERT(varchar(10),HDate,20) ='" + DateTime.Now.ToString("yyyy-MM-dd") + "' ", "Sc_StationOutBillMain"); if (ds.Tables[0].Rows.Count == 0) @@ -761,7 +766,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鍑虹珯鏁伴噺瓒呰繃娴佽浆鍗℃暟閲�!"; + objJsonResult.Message = "[3791-2-028]鍑虹珯鏁伴噺瓒呰繃娴佽浆鍗℃暟閲�!"; objJsonResult.data = null; return objJsonResult; } @@ -770,7 +775,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "淇濆瓨鎴愬姛!"; + objJsonResult.Message = "[0000-1-050]淇濆瓨鎴愬姛!"; objJsonResult.data = null; return objJsonResult; @@ -780,7 +785,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-051]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -837,7 +842,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; + objJsonResult.Message = "[3791-2-016]鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; objJsonResult.data = null; return objJsonResult; } @@ -869,7 +874,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; + objJsonResult.Message = "[3791-2-016]鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; objJsonResult.data = null; return objJsonResult; } @@ -884,7 +889,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜鏍煎紡涓嶆纭�!"; + objJsonResult.Message = "[0000-2-036]鏉$爜鏍煎紡涓嶆纭�!"; objJsonResult.data = null; return objJsonResult; } @@ -913,7 +918,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; + objJsonResult.Message = "[3791-2-016]鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; objJsonResult.data = null; return objJsonResult; } @@ -933,7 +938,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; + objJsonResult.Message = "[3791-2-016]鏉$爜涓庢祦杞崱涓嶅瓨鍦ㄥ搴斿叧绯�!"; objJsonResult.data = null; return objJsonResult; } @@ -943,7 +948,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "褰撳墠鏉$爜鐨勭姸鎬佷负:" + ds.Tables[0].Rows[0]["HStatus"].ToString() + "锛�"; + objJsonResult.Message = "[0000-2-037]褰撳墠鏉$爜鐨勭姸鎬佷负:" + ds.Tables[0].Rows[0]["HStatus"].ToString() + "锛�"; objJsonResult.data = null; return objJsonResult; } @@ -951,7 +956,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } @@ -960,7 +965,7 @@ objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -983,7 +988,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉″舰鐮佷笉鑳戒负绌猴紝涓嶈兘鐢熸垚鏉$爜锛�"; + objJsonResult.Message = "[0000-2-019]鏉″舰鐮佷笉鑳戒负绌猴紝涓嶈兘鐢熸垚鏉$爜锛�"; return objJsonResult; } @@ -1054,7 +1059,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = null; return objJsonResult; } @@ -1063,7 +1068,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1082,7 +1087,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1092,7 +1097,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "SN鐮佹煡鏃犳暟鎹紒"; + objJsonResult.Message = "[3791-2-023]SN鐮佹煡鏃犳暟鎹紒"; objJsonResult.data = null; return objJsonResult; } @@ -1101,7 +1106,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "褰撳墠鏉$爜鐨勭姸鎬佷负:"+ ds.Tables[0].Rows[0]["HStatus"].ToString() + "锛�"; + objJsonResult.Message = "[0000-2-037]褰撳墠鏉$爜鐨勭姸鎬佷负:" + ds.Tables[0].Rows[0]["HStatus"].ToString() + "锛�"; objJsonResult.data = null; return objJsonResult; } @@ -1112,7 +1117,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "閰嶄欢鏉$爜鍒ゆ柇澶辫触锛�"; + objJsonResult.Message = "[3791-2-024]閰嶄欢鏉$爜鍒ゆ柇澶辫触锛�"; objJsonResult.data = null; return objJsonResult; } @@ -1120,14 +1125,14 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = DBUtility.ClsPub.isStrNull(dataSet.Tables[0].Rows[0]["HBackRemark"]); + objJsonResult.Message = "[0000-1-010]" + DBUtility.ClsPub.isStrNull(dataSet.Tables[0].Rows[0]["HBackRemark"]); objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } @@ -1136,7 +1141,7 @@ objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1155,7 +1160,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1163,13 +1168,14 @@ ds = oCN.RunProcReturn("select * from gy_czygl WITH(NOLOCK) where czymc='" + user + "'", "gy_czygl"); string HProcID = ds.Tables[0].Rows[0]["HProcID"].ToString(); + //鏌ヨ娴佽浆鍗℃墍鏈夊伐搴忎俊鎭� ds = oCN.RunProcReturn(@"select * from h_v_Gy_BarCodeBillHICOMProcessExchange WITH(NOLOCK) where 鏉$爜='" + HBarCode + "' ", "h_v_Gy_BarCodeBillHICOMProcessExchange"); if (ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜鏌ユ棤鏁版嵁锛�"; + objJsonResult.Message = "[0000-1-045]鏉$爜鏌ユ棤鏁版嵁锛�"; objJsonResult.data = null; return objJsonResult; } @@ -1185,7 +1191,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "褰撳墠鏉$爜涓庡綋鍓嶅伐搴忎笉鍖归厤!"; + objJsonResult.Message = "[3791-2-017]褰撳墠鏉$爜涓庡綋鍓嶅伐搴忎笉鍖归厤!"; objJsonResult.data = null; return objJsonResult; } @@ -1193,14 +1199,14 @@ if (ds.Tables[0].Rows[0]["HStatus"].ToString() != "姝e父") { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "褰撳墠鏉$爜鐘舵�佷负"+ ds.Tables[0].Rows[0]["HStatus"].ToString() + "!"; + objJsonResult.Message = "[0000-2-037]褰撳墠鏉$爜鐘舵�佷负" + ds.Tables[0].Rows[0]["HStatus"].ToString() + "!"; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } @@ -1209,7 +1215,7 @@ objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1228,7 +1234,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1237,7 +1243,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = ds; return objJsonResult; } @@ -1246,7 +1252,7 @@ objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1265,7 +1271,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1274,7 +1280,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } @@ -1283,7 +1289,7 @@ objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1302,7 +1308,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犲垹闄ゆ潈闄�!"; + objJsonResult.Message = "[0000-1-058]鏃犲垹闄ゆ潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1313,7 +1319,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏌ユ棤鏁版嵁锛�"; + objJsonResult.Message = "[0000-1-045]鏌ユ棤鏁版嵁锛�"; objJsonResult.data = null; } string HProcExchInterID = ds.Tables[0].Rows[0]["HProcExchInterID"].ToString(); @@ -1346,7 +1352,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = null; return objJsonResult; } @@ -1355,7 +1361,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1374,7 +1380,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犲垹闄ゆ潈闄�!"; + objJsonResult.Message = "[0000-1-058]鏃犲垹闄ゆ潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1387,7 +1393,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏌ユ棤鏁版嵁锛�"; + objJsonResult.Message = "[0000-1-045]鏌ユ棤鏁版嵁锛�"; objJsonResult.data = null; } @@ -1416,7 +1422,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = null; return objJsonResult; } @@ -1425,7 +1431,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1444,7 +1450,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1458,7 +1464,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜鏌ユ棤鏁版嵁锛�"; + objJsonResult.Message = "[0000-2-020]鏉$爜鏌ユ棤鏁版嵁锛�"; objJsonResult.data = null; return objJsonResult; } @@ -1475,7 +1481,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "褰撳墠鏉$爜涓庡綋鍓嶅伐搴忎笉鍖归厤!"; + objJsonResult.Message = "[3791-2-017]褰撳墠鏉$爜涓庡綋鍓嶅伐搴忎笉鍖归厤!"; objJsonResult.data = null; return objJsonResult; } @@ -1484,7 +1490,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "褰撳墠鏉$爜鐘舵�佷负" + ds.Tables[0].Rows[0]["HStatus"].ToString() + "!"; + objJsonResult.Message = "[0000-2-037]褰撳墠鏉$爜鐘舵�佷负" + ds.Tables[0].Rows[0]["HStatus"].ToString() + "!"; objJsonResult.data = null; return objJsonResult; } @@ -1492,7 +1498,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = ""; + objJsonResult.Message = "[0000-1-037]"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } @@ -1501,7 +1507,7 @@ objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1568,7 +1574,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1588,7 +1594,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -1597,7 +1603,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1624,7 +1630,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犱繚瀛樻潈闄�!"; + objJsonResult.Message = "[0000-2-038]鏃犱繚瀛樻潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1637,7 +1643,7 @@ Model.Sc_AssemblyBill_BindSourceTemp temp = new Model.Sc_AssemblyBill_BindSourceTemp(); temp = JsonConvert.DeserializeObject<Model.Sc_AssemblyBill_BindSourceTemp>(sSubStr); - + //宸ュ簭杩斾慨璁板綍鍗� 閰嶄欢琛� ds = oCN.RunProcReturn("select * from Sc_SourceLineRepairBillSub_Mater where HInterID=" + model.HInterID+ " order by HEntryID desc", "Sc_SourceLineRepairBillSub_Mater"); oCN.RunProc($@"insert into Sc_SourceLineRepairBillSub_Mater @@ -1651,7 +1657,7 @@ oCN.RunProc("update Sc_AssemblyBillSub set HBarCode='" + temp.HBarCode + "' where HInterID=" + temp.HInterID + " and HEntryID=" + temp.HEntryID); //oCN.RunProc("exec h_p_AssemblyBill_Temp '" + temp.HProcExchBillNo + "'," + model.HProcess + "," + temp.HMaterID + ",'" + temp.HBatchNo + "'"); } - else if (HResult == "NG"|| HResult == "OK") { + else if (HResult == "NG"|| HResult == "OK") { Model.ClsSc_SourceLineRepairBillMain model = new Model.ClsSc_SourceLineRepairBillMain(); model = JsonConvert.DeserializeObject<Model.ClsSc_SourceLineRepairBillMain>(sMainStr); @@ -1720,7 +1726,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "淇濆瓨澶辫触,褰撳墠娴佽浆鍗″綋鍓嶅伐搴忕殑鍑虹珯鍗曟病鏈変笉鑹暟閲�!"; + objJsonResult.Message = "[3748-2-005]淇濆瓨澶辫触,褰撳墠娴佽浆鍗″綋鍓嶅伐搴忕殑鍑虹珯鍗曟病鏈変笉鑹暟閲�!"; objJsonResult.data = null; return objJsonResult; } @@ -1730,7 +1736,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "淇濆瓨澶辫触,鏃犵粨鏋滐紒"; + objJsonResult.Message = "[0000-1-051]淇濆瓨澶辫触,鏃犵粨鏋滐紒"; objJsonResult.data = null; return objJsonResult; } @@ -1740,7 +1746,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-050]Sucess锛�"; objJsonResult.data = null; return objJsonResult; } @@ -1749,7 +1755,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-051]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1768,7 +1774,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犲垹闄ゆ潈闄�!"; + objJsonResult.Message = "[0000-1-058]鏃犲垹闄ゆ潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1778,7 +1784,7 @@ if (ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏌ユ棤鏁版嵁锛�"; + objJsonResult.Message = "[0000-1-045]鏌ユ棤鏁版嵁锛�"; objJsonResult.data = null; } @@ -1817,7 +1823,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-010]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1889,7 +1895,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳煡璇㈡潈闄�!"; + objJsonResult.Message = "[0000-1-068]鏃犳煡璇㈡潈闄�!"; objJsonResult.data = null; return objJsonResult; } @@ -1899,7 +1905,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } @@ -1907,7 +1913,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -1977,7 +1983,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -1987,7 +1993,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -2017,7 +2023,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -2027,7 +2033,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -2057,7 +2063,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -2067,7 +2073,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -2097,7 +2103,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -2106,7 +2112,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -2136,7 +2142,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -2146,7 +2152,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -2163,6 +2169,7 @@ List<object> columnNameList = new List<object>(); + //鏌ヨ閰嶄欢娓呭崟淇℃伅 string sql = @"exec h_p_GZ_BarCodeBillList '" + HMaterNumber + "','" + HBatchNo + "','" + sWhere + "'"; ds = oCN.RunProcReturn(sql, "h_p_GZ_BarCodeBillList"); @@ -2176,7 +2183,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -2186,7 +2193,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } @@ -2216,7 +2223,7 @@ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; + objJsonResult.Message = "[0000-1-037]Sucess锛�"; objJsonResult.data = ds.Tables[0]; objJsonResult.list = columnNameList; return objJsonResult; @@ -2226,7 +2233,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.Message = "[0000-1-038]Exception锛�" + e.ToString(); objJsonResult.data = null; return objJsonResult; } -- Gitblit v1.9.1