1
cwjbxqmz
2024-02-02 a86725b3de175e4d90ec95d217c6fd6b27fdd2ff
WebAPI/Controllers/ÏîÄ¿¹ÜÀí/¹¤×÷Öܼƻ®/PM_WorkTaskWeekBillController.cs
@@ -1096,7 +1096,7 @@
        #region å·¥ä½œå‘¨æ€»ç»“ å®¡æ ¸/反审核功能
        [Route("PM_WorkTaskWeekBill/CheckPM_WorkReportWeekBillMain")]
        [HttpGet]
        public object CheckSc_ICMOReportBill(string HInterID, int IsAudit, string user)
        public object CheckPM_WorkReportWeekBillMain(string HInterID, int IsAudit, string user)
        {
            try
            {
@@ -1189,7 +1189,7 @@
        {
            try
            {
                //判断是否有删除权限
                //判断是否有关闭权限
                if (!DBUtility.ClsPub.Security_Log("PM_WorkReportWeekBillMain_Close", 1, false, user))
                {
                    objJsonResult.code = "0";
@@ -1237,22 +1237,22 @@
                oCn.BeginTran();
                if (IsAudit == 0)  //审核判断
                if (IsAudit == 0)  //关闭判断
                {
                    oCn.RunProc("update PM_WorkReportWeekBillMain set HChecker='" + user + "',HCheckDate=getdate() where HInterID=" + HInterID);
                    oCn.RunProc("update PM_WorkReportWeekBillMain set HCloseMan='" + user + "',HCloseDate=getdate() where HInterID=" + HInterID);
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "审核成功";
                    objJsonResult.Message = "关闭成功";
                    objJsonResult.data = null;
                }
                if (IsAudit == 1) //反审核判断
                {
                    oCn.RunProc("update PM_WorkReportWeekBillMain set HChecker='',HCheckDate=null where HInterID=" + HInterID);
                    oCn.RunProc("update PM_WorkReportWeekBillMain set HCloseMan='',HCloseDate=null where HInterID=" + HInterID);
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "反审核成功";
                    objJsonResult.Message = "反关闭成功";
                    objJsonResult.data = null;
                }
                oCn.Commit();