From a4806a0c94db5199920272ca6ace1cef8d48c630 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期三, 08 六月 2022 17:11:27 +0800 Subject: [PATCH] 工艺路线 和 工序流转卡 新增功能与维护 --- WebAPI/Controllers/LMESController.cs | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/LMESController.cs b/WebAPI/Controllers/LMESController.cs index b597654..f43a150 100644 --- a/WebAPI/Controllers/LMESController.cs +++ b/WebAPI/Controllers/LMESController.cs @@ -322,6 +322,49 @@ } #endregion + #region 宸ヨ壓璺嚎鍩虹鍒楄〃 + /// <summary> + /// 杩斿洖宸ヨ壓璺嚎鍒楄〃 + ///鍙傛暟锛歴tring sql銆� + ///杩斿洖鍊硷細object銆� + /// </summary> + [Route("LEMS/Gy_RoutingBillList")] + [HttpGet] + public object Gy_RoutingBillList(string sWhere, string user) + { + DataSet ds; + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + if (!DBUtility.ClsPub.Security_Log("Gy_RoutingBill_Query", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳潈闄愭煡璇�!"; + objJsonResult.data = null; + return objJsonResult; + } + + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + + string sql1 = "select * from h_v_Gy_RoutingBillList_Base where 1 = 1 "; + string sql = sql1 + sWhere + " order by hmainid desc"; + ds = oCN.RunProcReturn(sql, "h_v_Gy_RoutingBillList_Base"); + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + return GetObjectJson(ds); + } + + #endregion + #endregion /// <summary> -- Gitblit v1.9.1