From 92263b457a02e60c993160364124d0a6fc7bc131 Mon Sep 17 00:00:00 2001 From: wtt <1985833171@qq.com> Date: 星期二, 11 二月 2025 10:53:50 +0800 Subject: [PATCH] 宝工排产自定义排产天数保存功能 --- WebAPI/Controllers/BaseSet/Gy_SourceController.cs | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/BaseSet/Gy_SourceController.cs b/WebAPI/Controllers/BaseSet/Gy_SourceController.cs index 2b0e6a7..2ef78c5 100644 --- a/WebAPI/Controllers/BaseSet/Gy_SourceController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_SourceController.cs @@ -676,7 +676,7 @@ { try { - string sql1 = string.Format("select hitemid,hnumber,hname from Gy_Source"+ sWhere + " order by hnumber"); + string sql1 = string.Format("select hitemid,hnumber,hname,HUSEORGID from Gy_Source" + sWhere + " order by hnumber"); ds = oCN.RunProcReturn(sql1, "Gy_Source"); @@ -784,6 +784,14 @@ objJsonResult.data = null; return objJsonResult; ; } + else if (ds.Tables[0].Rows[0]["HCheckEmp"] != null && ds.Tables[0].Rows[0]["HCheckEmp"].ToString() != "") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "宸茬粡瀹℃牳涓嶈兘鍒犻櫎锛�"; + objJsonResult.data = null; + return objJsonResult; ; + } oCN.RunProc("delete from Gy_Source where HItemID=" + HItemID); -- Gitblit v1.9.1