2026.04.10

This commit is contained in:
2026-04-10 14:35:57 +08:00
parent 8a61b56389
commit 1b324edf2a
39 changed files with 1787 additions and 104 deletions
@@ -1,4 +1,5 @@
using BLL;
using FineUIPro.Web.DataShow;
using System;
using System.Collections.Generic;
using System.Data;
@@ -11,6 +12,34 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
{
public partial class HiddenRectificationList : PageBase
{
#region
/// <summary>
/// 项目主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
public string UnintId
{
get
{
return (string)ViewState["UnintId"];
}
set
{
ViewState["UnintId"] = value;
}
}
#endregion
#region
/// <summary>
/// GV被选择项列表
@@ -53,6 +82,11 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
{
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
Type = Request.Params["Type"];
Funs.DropDownPageSize(this.ddlPageSize);
ListItem[] ProblemTypes = new ListItem[2];
@@ -72,6 +106,11 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
this.drpStates.DataSource = BLL.HSSE_Hazard_HazardRegisterService.GetStatesList();
this.drpStates.DataBind();
Funs.FineUIPleaseSelect(this.drpStates);
var getProject = ProjectService.GetProjectByProjectId(ProjectId);
if (getProject != null && getProject.IsAutoFetch == true)
{
APIHazardRegisterSyncService.getHazardRegisterLists(this.ProjectId);
}
// 绑定表格
BindGrid();
}