督查检查驳回

This commit is contained in:
geh 2026-03-26 11:05:11 +08:00
parent 03e585144c
commit 9e9100749a
8 changed files with 115 additions and 6 deletions

View File

@ -1,4 +1,6 @@
namespace BLL using Model;
namespace BLL
{ {
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
@ -1842,5 +1844,43 @@
} }
} }
#endregion #endregion
#region
/// <summary>
/// 集团督查检查驳回整改
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
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
} }
} }

View File

@ -125,7 +125,7 @@
<f:TemplateField ColumnID="tfImageUrl2" MinWidth="120px" HeaderText="整改后" HeaderTextAlign="Center" <f:TemplateField ColumnID="tfImageUrl2" MinWidth="120px" HeaderText="整改后" HeaderTextAlign="Center"
TextAlign="Center"> TextAlign="Center">
<ItemTemplate> <ItemTemplate>
<asp:Label ID="tfImageUrl2" runat="server" Text='<%# ConvertImaUrlByImage(Eval("CheckRectifyItemId")) %>'></asp:Label> <asp:Label ID="lbImageUrl2" runat="server" Text='<%# ConvertImaUrlByImage(Eval("CheckRectifyItemId")) %>'></asp:Label>
</ItemTemplate> </ItemTemplate>
</f:TemplateField> </f:TemplateField>
<f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt" HeaderText="上传整改" Text="上传照片" <f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt" HeaderText="上传整改" Text="上传照片"
@ -172,6 +172,9 @@
</f:TextArea> </f:TextArea>
</Editor> </Editor>
</f:RenderField> </f:RenderField>
<f:RenderField Width="120px" ColumnID="Verification" DataField="Verification" FieldType="String"
HeaderTextAlign="Center" TextAlign="Center" HeaderText="驳回整改原因">
</f:RenderField>
<f:RenderField Width="1px" ColumnID="CheckRectifyItemId" DataField="CheckRectifyItemId" <f:RenderField Width="1px" ColumnID="CheckRectifyItemId" DataField="CheckRectifyItemId"
FieldType="String" HeaderText="主键" Hidden="true" HeaderTextAlign="Center"> FieldType="String" HeaderText="主键" Hidden="true" HeaderTextAlign="Center">
</f:RenderField> </f:RenderField>

View File

@ -168,7 +168,7 @@ namespace FineUIPro.Web.DCGL.ServerCheck
{ {
newCheckRectifyItem.RealEndDate = item.RealEndDate; newCheckRectifyItem.RealEndDate = item.RealEndDate;
newCheckRectifyItem.OrderEndPerson = item.OrderEndPerson; newCheckRectifyItem.OrderEndPerson = item.OrderEndPerson;
//newCheckRectifyItem.Verification = item.Verification; newCheckRectifyItem.Verification = null;
BLL.DCGLCheckRectifyItemService.UpdateCheckRectifyItem(newCheckRectifyItem); BLL.DCGLCheckRectifyItemService.UpdateCheckRectifyItem(newCheckRectifyItem);
} }
} }
@ -323,7 +323,7 @@ namespace FineUIPro.Web.DCGL.ServerCheck
} }
if (column.ColumnID == "tfImageUrl2") if (column.ColumnID == "tfImageUrl2")
{ {
html = (row.FindControl("tfImageUrl2") as AspNet.Label).Text; html = (row.FindControl("lbImageUrl2") as AspNet.Label).Text;
} }
sb.AppendFormat("<td>{0}</td>", html); sb.AppendFormat("<td>{0}</td>", html);
} }

View File

@ -159,13 +159,13 @@ namespace FineUIPro.Web.DCGL.ServerCheck
protected global::System.Web.UI.WebControls.Label lbImageUrl1; protected global::System.Web.UI.WebControls.Label lbImageUrl1;
/// <summary> /// <summary>
/// tfImageUrl2 控件。 /// lbImageUrl2 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.WebControls.Label tfImageUrl2; protected global::System.Web.UI.WebControls.Label lbImageUrl2;
/// <summary> /// <summary>
/// txtOrderEndPerson 控件。 /// txtOrderEndPerson 控件。

View File

@ -0,0 +1,24 @@
using Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Model
{
/// <summary>
/// 督查检查驳回整改
/// </summary>
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; }
/// <summary>
/// 驳回描述
/// </summary>
public string Reason { get; set; }
}
}

View File

@ -127,6 +127,7 @@
<Compile Include="APIItem\CQMS\SpotCheckItem.cs" /> <Compile Include="APIItem\CQMS\SpotCheckItem.cs" />
<Compile Include="APIItem\CQMS\ToDoModel.cs" /> <Compile Include="APIItem\CQMS\ToDoModel.cs" />
<Compile Include="APIItem\CQMS\TreeNode.cs" /> <Compile Include="APIItem\CQMS\TreeNode.cs" />
<Compile Include="APIItem\HSSE\DCGLCheckRectifyReject.cs" />
<Compile Include="APIItem\HSSE\EduTrain_TaskNoticeItem.cs" /> <Compile Include="APIItem\HSSE\EduTrain_TaskNoticeItem.cs" />
<Compile Include="APIItem\HSSE\EduTrain_TrainRecordDetailItem.cs" /> <Compile Include="APIItem\HSSE\EduTrain_TrainRecordDetailItem.cs" />
<Compile Include="APIItem\HSSE\EduTrain_TrainRecordItem.cs" /> <Compile Include="APIItem\HSSE\EduTrain_TrainRecordItem.cs" />

View File

@ -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
{
/// <summary>
/// 督查检查整改
/// </summary>
public class DCGLCheckRectifyController : ApiController
{
/// <summary>
/// 集团驳回督查检查整改
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
[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;
}
}
}

View File

@ -203,6 +203,7 @@
<Compile Include="Controllers\DoorProject\DoorServerController.cs" /> <Compile Include="Controllers\DoorProject\DoorServerController.cs" />
<Compile Include="Controllers\HJGL\PersonEntranceController.cs" /> <Compile Include="Controllers\HJGL\PersonEntranceController.cs" />
<Compile Include="Controllers\HSSE\ConstructionRiskController.cs" /> <Compile Include="Controllers\HSSE\ConstructionRiskController.cs" />
<Compile Include="Controllers\HSSE\DCGLCheckRectifyController.cs" />
<Compile Include="Controllers\HSSE\GeneralEquipmentQualityController.cs" /> <Compile Include="Controllers\HSSE\GeneralEquipmentQualityController.cs" />
<Compile Include="Controllers\HSSE\GoodsManageController.cs" /> <Compile Include="Controllers\HSSE\GoodsManageController.cs" />
<Compile Include="Controllers\HSSE\HazardRealTimeController.cs" /> <Compile Include="Controllers\HSSE\HazardRealTimeController.cs" />