2026.04.10
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user