集团主数据在建项目数据分析

This commit is contained in:
2026-06-10 21:07:27 +08:00
parent 855eec9965
commit ea1acf5f93
27 changed files with 2917 additions and 78 deletions
@@ -1,7 +1,9 @@
using BLL;
using FineUIPro.Web.SysManage;
using Model;
using System;
using System.Linq;
using Model;
using static BLL.UnitHazardRegisterService;
namespace FineUIPro.Web.ZHGL.Supervise
{
@@ -113,11 +115,10 @@ namespace FineUIPro.Web.ZHGL.Supervise
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
if (UnitHazardRegisterService.CanDeleteRegister(rowID) || (this.CurrUser.UserId ==Const.hfnbdId || this.CurrUser.UserId == Const.sysglyId))
if (UnitHazardRegisterService.CanDeleteRegister(rowID) || (this.CurrUser.UserId == Const.hfnbdId || this.CurrUser.UserId == Const.sysglyId))
{
BLL.UnitHazardRegisterItemService.DeleteItemsByRegisterId(rowID);
BLL.UnitHazardRegisterService.DeleteUnitHazardRegisterById(rowID);
}
else
{
@@ -131,6 +132,44 @@ namespace FineUIPro.Web.ZHGL.Supervise
}
}
protected void btnReject_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
int succ = 0;
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var register = UnitHazardRegisterService.GetUnitHazardRegisterById(rowID);
if (register != null)
{
if (register.CompileMan == this.CurrUser.UserId || (this.CurrUser.UserId == Const.hfnbdId || this.CurrUser.UserId == Const.sysglyId))
{
if (register.States == (int)StateInt. || register.States == (int)StateInt.)
{
BLL.UnitHazardRegisterItemService.RejectItemsByRegisterId(rowID);
BLL.UnitHazardRegisterService.RejectUnitHazardRegisterById(rowID);
succ++;
}
else
{
ShowNotify($"检查({register.UnitHazardRegisterCode})暂未整改,无需驳回!", MessageBoxIcon.Warning);
}
}
else
{
ShowNotify($"非管理员和编制人,检查({register.UnitHazardRegisterCode})无法驳回!", MessageBoxIcon.Warning);
}
}
}
BindGrid();
if (succ > 0)
{
ShowNotify("操作成功!", MessageBoxIcon.Success);
}
}
}
protected void btnOut_Click(object sender, EventArgs e)
{
string type = Request["type"] ?? "0";
@@ -160,7 +199,11 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
if (buttonList.Contains(BLL.Const.BtnAdd)) btnNew.Hidden = false;
if (buttonList.Contains(BLL.Const.BtnModify)) btnEdit.Hidden = false;
if (buttonList.Contains(BLL.Const.BtnDelete)) btnDelete.Hidden = false;
if (buttonList.Contains(BLL.Const.BtnDelete))
{
btnDelete.Hidden = false;
btnReject.Hidden = false;
}
}
}
}