集团三库

This commit is contained in:
2026-09-10 18:51:12 +08:00
parent dc6abc4cbb
commit 5be709c0e6
131 changed files with 25364 additions and 970 deletions
@@ -1,4 +1,5 @@
using BLL;
using NPOI.SS.Formula.Functions;
using System;
using System.Linq;
using System.Web;
@@ -50,6 +51,7 @@ namespace FineUIPro.Web.HSSE.Solution
{
this.ProjectId = this.CurrUser.LoginProjectId;
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, false);
BLL.UnitWorkService.InitUnitWorkDownList(this.drpAddress, this.CurrUser.LoginProjectId, false);
//类型
BLL.ConstValue.InitConstValueDropDownList(this.drpHazardType, ConstValue.Group_LargerHazardType, true);
@@ -105,10 +107,20 @@ namespace FineUIPro.Web.HSSE.Solution
{
this.txtOperativesNum.Text = largerHazard.OperativesNum.ToString();
}
if (!string.IsNullOrEmpty(largerHazard.UnitId))
{
this.drpUnit.SelectedValue = largerHazard.UnitId;
//根据单位和项目获取人员
BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpStandbyPersonnel, largerHazard.ProjectId, largerHazard.UnitId, false);
if (!string.IsNullOrEmpty(largerHazard.StandbyPersonnelId))
{
this.drpStandbyPersonnel.SelectedValue = largerHazard.StandbyPersonnelId;
}
}
this.drpStates.SelectedValue = largerHazard.States;
this.drpApprovalState.SelectedValue = largerHazard.ApprovalState;
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
this.txtDescriptions.Text = largerHazard.Descriptions;
this.txtDescriptions.Text = largerHazard.Descriptions;
this.txtHazardName.Text = largerHazard.HazardName;
}
else
@@ -121,6 +133,20 @@ namespace FineUIPro.Web.HSSE.Solution
}
}
}
/// <summary>
/// 单位下拉框事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.drpUnit.SelectedValue))
{
//根据单位和项目获取人员
BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpStandbyPersonnel, this.CurrUser.LoginProjectId, this.drpUnit.SelectedValue, false);
}
}
#endregion
#region
@@ -136,6 +162,16 @@ namespace FineUIPro.Web.HSSE.Solution
ShowNotify("请选择类型!", MessageBoxIcon.Warning);
return;
}
if (string.IsNullOrWhiteSpace(this.drpStandbyPersonnel.SelectedValue))
{
ShowNotify("请选择旁站人员!", MessageBoxIcon.Warning);
return;
}
if (string.IsNullOrWhiteSpace(this.drpUnit.SelectedValue))
{
ShowNotify("请选择施工单位!", MessageBoxIcon.Warning);
return;
}
if (this.drpStates.SelectedValue != "1")
{
//判断附件是否必传
@@ -205,6 +241,8 @@ namespace FineUIPro.Web.HSSE.Solution
RecordTime = Funs.GetNewDateTime(this.txtRecordTime.Text.Trim()),
ProjectId = this.ProjectId,
States = this.drpStates.SelectedValue,
UnitId = this.drpUnit.SelectedValue,
StandbyPersonnelId = this.drpStandbyPersonnel.SelectedValue,
ApprovalState = this.drpApprovalState.SelectedValue,
HazardName = txtHazardName.Text.Trim()
};
@@ -222,6 +260,13 @@ namespace FineUIPro.Web.HSSE.Solution
BLL.LargerHazardService.AddLargerHazard(largerHazard);
BLL.LogService.AddSys_Log(this.CurrUser, largerHazard.HazardCode, largerHazard.HazardId, BLL.Const.ProjectLargerHazardListMenuId, BLL.Const.BtnAdd);
}
//更新三库危大工程
string message = string.Empty;
SanKuDataSummaryReportService.UpdateDangerousEngineeringRecord(this.HazardId, ref message);
if (!string.IsNullOrWhiteSpace(message))
{
ShowNotify(message, MessageBoxIcon.Warning);
}
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ProjectInformation);
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.DangerousProject);
}