From fcd7bdad6b26e30b0a2baa5fd5001875064f667b Mon Sep 17 00:00:00 2001 From: black-goat-me <226547893@qq.com> Date: 星期五, 28 四月 2023 17:04:48 +0800 Subject: [PATCH] 物料、物料分类、仓库、部门增加审核、反审核、禁用、反禁用功能。 --- WebAPI/Controllers/基础资料/基础资料/Gy_MaterTypeBillController.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs" "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs" index b290f2b..fd72d9a 100644 --- "a/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs" +++ "b/WebAPI/Controllers/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MaterTypeBillController.cs" @@ -362,21 +362,21 @@ /// /// </summary> /// <param name="HInterID">鍗曟嵁ID</param> - /// <param name="IsAudit">绂佺敤(0),鍙嶇鐢�(1)</param> + /// <param name="IsStop">绂佺敤(0),鍙嶇鐢�(1)</param> /// <param name="CurUserName">瀹℃牳浜�</param> /// <returns></returns> [Route("Gy_MaterType/StopGy_MaterType")] [HttpGet] - public object StopGy_MaterType(int HInterID, int IsAudit, string CurUserName) + public object StopGy_MaterType(int HInterID, int IsStop, string CurUserName) { try { //瀹℃牳鏉冮檺 - if (!DBUtility.ClsPub.Security_Log_second("Gy_MaterType_Check", 1, false, CurUserName)) + if (!DBUtility.ClsPub.Security_Log_second("Gy_MaterType_Stop", 1, false, CurUserName)) { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "瀹℃牳澶辫触锛佹棤鏉冮檺锛�"; + objJsonResult.Message = "绂佺敤澶辫触锛佹棤鏉冮檺锛�"; objJsonResult.data = null; return objJsonResult; } @@ -384,7 +384,7 @@ var ds = oCN.RunProcReturn("select * from Gy_MaterType where HItemID=" + HInterID, "Gy_MaterType"); if (ds.Tables[0].Rows.Count > 0) { - if (IsAudit == 0) //绂佺敤鍒ゆ柇 + if (IsStop == 0) //绂佺敤鍒ゆ柇 { if (ds.Tables[0].Rows[0]["HStopEmp"].ToString() != "") { @@ -395,7 +395,7 @@ return objJsonResult; } } - if (IsAudit == 1) //鍙嶇鐢ㄥ垽鏂� + if (IsStop == 1) //鍙嶇鐢ㄥ垽鏂� { if (ds.Tables[0].Rows[0]["HStopEmp"].ToString() == "") { @@ -418,7 +418,7 @@ oCN.BeginTran(); - if (IsAudit == 0) //绂佺敤鍒ゆ柇 + if (IsStop == 0) //绂佺敤鍒ゆ柇 { oCN.RunProc("update Gy_MaterType set HStopEmp='" + CurUserName + "',HStopTime=getdate(),HStopflag=1 where HItemID=" + HInterID); @@ -427,7 +427,7 @@ objJsonResult.Message = "绂佺敤鎴愬姛"; objJsonResult.data = null; } - if (IsAudit == 1) //鍙嶇鐢ㄥ垽鏂� + if (IsStop == 1) //鍙嶇鐢ㄥ垽鏂� { oCN.RunProc("update Gy_MaterType set HStopEmp='',HStopTime=null,HStopflag=0 where HItemID=" + HInterID); -- Gitblit v1.9.1