From e0586c9193b7ac3113980899efadb4ab6f4851b8 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期五, 17 二月 2023 17:23:38 +0800 Subject: [PATCH] 生产任务单无列表 工艺路线维护 工序返工申请单 工序流转批量 --- WebAPI/Controllers/PublicPageMethodController.cs | 66 ++++++++++++++++++++++++-------- 1 files changed, 49 insertions(+), 17 deletions(-) diff --git a/WebAPI/Controllers/PublicPageMethodController.cs b/WebAPI/Controllers/PublicPageMethodController.cs index b4ec766..b6f02c4 100644 --- a/WebAPI/Controllers/PublicPageMethodController.cs +++ b/WebAPI/Controllers/PublicPageMethodController.cs @@ -1481,6 +1481,48 @@ } #endregion + + + #region 鍑哄簱鐢宠鍗曟煡璇㈠垪琛� + [Route("OtherOutRequestBillList/CX")] + [HttpGet] + public object CX(string sWhere) + { + try + { + + string sql1 = "Select * from AIS20220914133941..T_STK_OUTSTOCKAPPLY where fdocumentstatus = 'C' and FCloseStatus = 'A'"; + string sql2 = "order by Fdate asc"; + string sql = sql1 + sWhere + sql2; + ds = oCN.RunProcReturn(sql, "T_STK_OUTSTOCKAPPLY"); + if (ds == null || ds.Tables[0].Rows.Count == 0) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "false锛�"; + 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; + } + } + #endregion + #region 鏍规嵁鏍戝瀷id鏌ユ壘璁惧鍒楄〃 [Route("Gy_MaintenanceMode/EqpCX")] [HttpGet] @@ -2028,7 +2070,7 @@ } else { - string sql1 = "Select HItemID,HParentID,HNumber,HName from h_v_IF_Unit "; + string sql1 = "Select HItemID,HParentID,HNumber,HName from h_v_IF_Unit "; string sql = sql1 + sWhere; ds = oCN.RunProcReturn(sql, "h_v_IF_Unit"); } @@ -2146,22 +2188,12 @@ string sql = sql1 + sWhere; ds = oCN.RunProcReturn(sql, "Gy_Property"); } - if (ds == null || ds.Tables[0].Rows.Count == 0) - { - objJsonResult.code = "0"; - objJsonResult.count = 0; - objJsonResult.Message = "false锛�"; - objJsonResult.data = null; - return objJsonResult; - } - else - { - objJsonResult.code = "1"; - objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; - objJsonResult.data = ds.Tables[0]; - return objJsonResult; - } + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; } catch (Exception e) { -- Gitblit v1.9.1