集团三库

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
@@ -28,6 +28,15 @@
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpUnit" runat="server" Label="施工单位" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged" EnableEdit="true" AutoSelectFirstItem="false">
</f:DropDownList>
<f:DropDownList ID="drpStandbyPersonnel" runat="server" Label="旁站人员" Required="true" ShowRedStar="true" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:Label runat="server" ID="Label7"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:RadioButtonList ID="rblIsArgument" runat="server" Label="专家论证" LabelWidth="100px" Required="true" ShowRedStar="true">
@@ -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);
}
@@ -77,6 +77,33 @@ namespace FineUIPro.Web.HSSE.Solution
/// </remarks>
protected global::FineUIPro.DatePicker txtExpectedTime;
/// <summary>
/// drpUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnit;
/// <summary>
/// drpStandbyPersonnel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpStandbyPersonnel;
/// <summary>
/// Label7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label7;
/// <summary>
/// rblIsArgument 控件。
/// </summary>
@@ -138,7 +138,7 @@
</f:Panel>
<f:Window ID="Window1" Title="编辑危险性较大的工程清单" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="1000px" Height="600px">
Width="1100px" Height="600px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
@@ -43,6 +43,15 @@
<f:NumberBox runat="server" ID="txtOperativesNum" NoDecimal="true" NoNegative="true" Label="作业人员数" LabelWidth="100px" Readonly="true"></f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUnitName" runat="server" Label="施工单位" LabelWidth="100px" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtStandbyPersonnel" runat="server" Label="旁站人员" LabelWidth="100px" Readonly="true">
</f:TextBox>
<f:Label runat="server" ID="Label7"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpStates" runat="server" Label="作业状态" LabelAlign="Right" Readonly="true">
@@ -1,4 +1,5 @@
using BLL;
using NPOI.SS.Formula.Functions;
using System;
using System.Linq;
using System.Web;
@@ -87,6 +88,14 @@ namespace FineUIPro.Web.HSSE.Solution
this.txtDescriptions.Text = largerHazard.Descriptions;
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
if (!string.IsNullOrWhiteSpace(largerHazard.UnitId))
{
this.txtUnitName.Text = UnitService.getUnitNamesUnitIds(largerHazard.UnitId);
}
if (!string.IsNullOrWhiteSpace(largerHazard.StandbyPersonnelId))
{
this.txtStandbyPersonnel.Text = PersonService.GetPersonNameById(largerHazard.StandbyPersonnelId);
}
this.AttachUrl1.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", getUrl(this.HazardId + "_1"));
this.AttachUrl2.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../../", getUrl(this.HazardId + "_2"));
@@ -122,6 +122,33 @@ namespace FineUIPro.Web.HSSE.Solution
/// </remarks>
protected global::FineUIPro.NumberBox txtOperativesNum;
/// <summary>
/// txtUnitName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUnitName;
/// <summary>
/// txtStandbyPersonnel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtStandbyPersonnel;
/// <summary>
/// Label7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label7;
/// <summary>
/// drpStates 控件。
/// </summary>