From 02aea9b1a44461c5f4f79d458670b2212e505a86 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期四, 09 三月 2023 13:26:29 +0800 Subject: [PATCH] 末道工序同步 --- WebAPI/Controllers/LMESController.cs | 89 ++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 85 insertions(+), 4 deletions(-) diff --git a/WebAPI/Controllers/LMESController.cs b/WebAPI/Controllers/LMESController.cs index 16a2d83..5d953f3 100644 --- a/WebAPI/Controllers/LMESController.cs +++ b/WebAPI/Controllers/LMESController.cs @@ -769,7 +769,7 @@ /// </summary> [Route("LEMS/SaveToSc_PackUnionBillMain")] [HttpGet] - public object SaveToSc_PackUnionBillMain(string HBillNo, string HRemark,string HProjectNum) + public object SaveToSc_PackUnionBillMain(string HBillNo, string HRemark,string HProjectNum,string HBarCode_White) { DataSet ds; DataSet dsHSNum; @@ -788,7 +788,7 @@ } else { - ds = oCN.RunProcReturn("exec h_p_Save_KF_PonderationBillMain_TempToSc_PackUnionBillMain '" + HBillNo + "','" + HRemark + "'," + HSNum + ",'" + HSNum2 + "'", "h_p_Save_KF_PonderationBillMain_TempToSc_PackUnionBillMain"); + ds = oCN.RunProcReturn("exec h_p_Save_KF_PonderationBillMain_TempToSc_PackUnionBillMain '" + HBillNo + "','" + HRemark + "'," + HSNum + ",'" + HSNum2 + "','" + HBarCode_White + "'", "h_p_Save_KF_PonderationBillMain_TempToSc_PackUnionBillMain"); } } catch (Exception e) @@ -1197,8 +1197,8 @@ { objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "Sucess"; - objJsonResult.data = null; + objJsonResult.Message = "鑾峰彇淇℃伅鎴愬姛锛�";//杩斿洖鍓╀綑鏁伴噺 + objJsonResult.data = Pub_Class.ClsPub.isInt(ds.Tables[0].Rows[0]["HBackRemark"]); return objJsonResult; } else @@ -1220,6 +1220,87 @@ } } + /// <summary> + /// 缂撳瓨琛ㄥ寘瑁呭崟璁板綍 + ///鍙傛暟锛歴tring sql銆� + ///杩斿洖鍊硷細object銆� + /// </summary> + [Route("LEMS/PackUnionCacheList")] + [HttpGet] + public object PackUnionCacheList(string sWhere) + { + DataSet ds; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select top 5000 * from h_v_PackUnionBillCacheList order by 鎵爜鏃堕棿 desc", "h_v_PackUnionBillCacheList"); + } + else + { + string sql1 = "select * from h_v_PackUnionBillCacheList where 1 = 1 "; + string sql = sql1 + sWhere; + string sql2 = " order by 鎵爜鏃堕棿 desc"; + sql += sql2; + ds = oCN.RunProcReturn(sql, "h_v_PackUnionBillCacheList"); + } + if (ds == null || ds.Tables[0].Rows.Count == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳暟鎹紒"; + objJsonResult.data = null; + return objJsonResult; + } + else + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region 鎵撳嵃鏌ヨ鏁版嵁 + [Route("Gy_SOPBillList/WindowPrintList")] + [HttpGet] + public object WindowPrintList(string sWhere) + { + DataSet ds; + try + { + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + ds = oCN.RunProcReturn(sWhere, "WindowPrint"); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + // } } \ No newline at end of file -- Gitblit v1.9.1