三库
This commit is contained in:
@@ -50,6 +50,8 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, false);
|
||||
|
||||
//类型
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpHazardType, ConstValue.Group_LargerHazardType, true);
|
||||
//是否需要专家论证
|
||||
@@ -68,6 +70,17 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
{
|
||||
this.drpHazardType.SelectedValue = largerHazard.HazardType;
|
||||
}
|
||||
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.txtAddress.Text = largerHazard.Address;
|
||||
if (largerHazard.ExpectedTime != null)
|
||||
{
|
||||
@@ -131,6 +144,17 @@ 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;
|
||||
}
|
||||
|
||||
this.SaveData(BLL.Const.BtnSave);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
@@ -159,6 +183,9 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
States = this.drpStates.SelectedValue,
|
||||
HazardName=txtHazardName.Text.Trim(),
|
||||
ApprovalState = this.drpApprovalState.SelectedValue,
|
||||
UnitId = this.drpUnit.SelectedValue,
|
||||
StandbyPersonnelId = this.drpStandbyPersonnel.SelectedValue,
|
||||
|
||||
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.HazardId))
|
||||
@@ -205,6 +232,14 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
//更新三库危大工程
|
||||
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);
|
||||
}
|
||||
@@ -386,5 +421,20 @@ 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);
|
||||
}
|
||||
|
||||
/// <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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user