From 9e9100749a9ab13692b23a2b892cc71819b07d5c Mon Sep 17 00:00:00 2001 From: geh <1923421292@qq.com> Date: Thu, 26 Mar 2026 11:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9D=A3=E6=9F=A5=E6=A3=80=E6=9F=A5=E9=A9=B3?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BLL/WebService/CNCECHSSEGetWebService.cs | 42 ++++++++++++++++++- .../DCGL/ServerCheck/CheckRectifyEdit.aspx | 5 ++- .../DCGL/ServerCheck/CheckRectifyEdit.aspx.cs | 4 +- .../CheckRectifyEdit.aspx.designer.cs | 4 +- .../APIItem/HSSE/DCGLCheckRectifyReject.cs | 24 +++++++++++ SUBQHSE/Model/Model.csproj | 1 + .../HSSE/DCGLCheckRectifyController.cs | 40 ++++++++++++++++++ SUBQHSE/WebAPI/WebAPI.csproj | 1 + 8 files changed, 115 insertions(+), 6 deletions(-) create mode 100644 SUBQHSE/Model/APIItem/HSSE/DCGLCheckRectifyReject.cs create mode 100644 SUBQHSE/WebAPI/Controllers/HSSE/DCGLCheckRectifyController.cs diff --git a/SUBQHSE/BLL/WebService/CNCECHSSEGetWebService.cs b/SUBQHSE/BLL/WebService/CNCECHSSEGetWebService.cs index 53acc66..eeec5dc 100644 --- a/SUBQHSE/BLL/WebService/CNCECHSSEGetWebService.cs +++ b/SUBQHSE/BLL/WebService/CNCECHSSEGetWebService.cs @@ -1,4 +1,6 @@ -namespace BLL +using Model; + +namespace BLL { using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -1842,5 +1844,43 @@ } } #endregion + + + #region 集团督查检查驳回整改 + + /// + /// 集团督查检查驳回整改 + /// + /// + /// + public static ResponeData RejectRectify(DCGLCheckRectifyReject data) + { + using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString)) + { + var respone = new ResponeData(); + var rectifItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(x => x.CheckRectifyItemId == data.CheckRectifyItemId); + rectifItem.RealEndDate = null; + rectifItem.Verification = data.Reason; + db.SubmitChanges(); + var rectify = db.DCGL_Check_CheckRectify.FirstOrDefault(x => x.CheckRectifyId == rectifItem.CheckRectifyId); + if (rectify != null) + { + var getNoUpdateItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(x => x.CheckRectifyId == rectifItem.CheckRectifyId && !x.RealEndDate.HasValue); + if (getNoUpdateItem == null) + { + rectify.HandleState = "3"; + } + else + { + rectify.HandleState = "2"; + } + db.SubmitChanges(); + } + return respone; + } + } + + + #endregion } } diff --git a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx index d4ac162..67cfba1 100644 --- a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx +++ b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx @@ -125,7 +125,7 @@ - + + + diff --git a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs index 3075aa4..3444ae2 100644 --- a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs +++ b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs @@ -168,7 +168,7 @@ namespace FineUIPro.Web.DCGL.ServerCheck { newCheckRectifyItem.RealEndDate = item.RealEndDate; newCheckRectifyItem.OrderEndPerson = item.OrderEndPerson; - //newCheckRectifyItem.Verification = item.Verification; + newCheckRectifyItem.Verification = null; BLL.DCGLCheckRectifyItemService.UpdateCheckRectifyItem(newCheckRectifyItem); } } @@ -323,7 +323,7 @@ namespace FineUIPro.Web.DCGL.ServerCheck } if (column.ColumnID == "tfImageUrl2") { - html = (row.FindControl("tfImageUrl2") as AspNet.Label).Text; + html = (row.FindControl("lbImageUrl2") as AspNet.Label).Text; } sb.AppendFormat("{0}", html); } diff --git a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs index ef71075..22b3618 100644 --- a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs +++ b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs @@ -159,13 +159,13 @@ namespace FineUIPro.Web.DCGL.ServerCheck protected global::System.Web.UI.WebControls.Label lbImageUrl1; /// - /// tfImageUrl2 控件。 + /// lbImageUrl2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.WebControls.Label tfImageUrl2; + protected global::System.Web.UI.WebControls.Label lbImageUrl2; /// /// txtOrderEndPerson 控件。 diff --git a/SUBQHSE/Model/APIItem/HSSE/DCGLCheckRectifyReject.cs b/SUBQHSE/Model/APIItem/HSSE/DCGLCheckRectifyReject.cs new file mode 100644 index 0000000..16b3ee3 --- /dev/null +++ b/SUBQHSE/Model/APIItem/HSSE/DCGLCheckRectifyReject.cs @@ -0,0 +1,24 @@ +using Model; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; + +namespace Model +{ + /// + /// 督查检查驳回整改 + /// + public class DCGLCheckRectifyReject + { + public string UnitId { get; set; } + public string ProjectId { get; set; } + public string CheckRectifyId { get; set; } + public string CheckRectifyItemId { get; set; } + public string NoticeItemId { get; set; } + /// + /// 驳回描述 + /// + public string Reason { get; set; } + + } +} diff --git a/SUBQHSE/Model/Model.csproj b/SUBQHSE/Model/Model.csproj index 76c6fd6..7fdba82 100644 --- a/SUBQHSE/Model/Model.csproj +++ b/SUBQHSE/Model/Model.csproj @@ -127,6 +127,7 @@ + diff --git a/SUBQHSE/WebAPI/Controllers/HSSE/DCGLCheckRectifyController.cs b/SUBQHSE/WebAPI/Controllers/HSSE/DCGLCheckRectifyController.cs new file mode 100644 index 0000000..7db6323 --- /dev/null +++ b/SUBQHSE/WebAPI/Controllers/HSSE/DCGLCheckRectifyController.cs @@ -0,0 +1,40 @@ +using BLL; +using Model; +using Model.Customization; +using Mvc.Controllers; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Web.Http; + +namespace WebAPI.Controllers +{ + /// + /// 督查检查整改 + /// + public class DCGLCheckRectifyController : ApiController + { + /// + /// 集团驳回督查检查整改 + /// + /// + /// + [HttpPost] + public Model.ResponeData RejectRectify([FromBody] DCGLCheckRectifyReject data) + { + var responeData = new Model.ResponeData(); + try + { + responeData = CNCECHSSEGetWebService.RejectRectify(data); + } + catch (Exception ex) + { + responeData.code = 0; + responeData.message = ex.Message; + } + return responeData; + } + } +} diff --git a/SUBQHSE/WebAPI/WebAPI.csproj b/SUBQHSE/WebAPI/WebAPI.csproj index e8622f0..7b0339a 100644 --- a/SUBQHSE/WebAPI/WebAPI.csproj +++ b/SUBQHSE/WebAPI/WebAPI.csproj @@ -203,6 +203,7 @@ +