0510
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.HSSE.ActionPlan;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -78,6 +79,7 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
if (largerHazard.IsArgument == true)
|
||||
{
|
||||
this.rblIsArgument.SelectedValue = "True";
|
||||
AuditFlow.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -107,6 +109,14 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
this.txtRemark.Text = HttpUtility.HtmlDecode("描述");
|
||||
this.txtRecordTime.Text = string.Format("{0:yyyy-MM-dd}",DateTime.Now);
|
||||
}
|
||||
|
||||
///初始化审核菜单
|
||||
this.ctlAuditFlow.MenuId = BLL.Const.ProjectLargerHazardListMenuId;
|
||||
this.ctlAuditFlow.DataId = this.HazardId;
|
||||
this.ctlAuditFlow.ProjectId = this.ProjectId;
|
||||
this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
|
||||
this.ctlAuditFlow.drpPersonUser = Funs.DB.Sys_User.Where(x => x.UnitId == Const.UnitId_CD && x.IsExpertArgumentationIsAuditor==true).ToList();
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -128,7 +138,26 @@ namespace FineUIPro.Web.HSSE.Solution
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 提交按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpHazardType.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择类型!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.rblIsArgument.SelectedValue == "True" && this.ctlAuditFlow.NextStep == BLL.Const.State_1 && this.ctlAuditFlow.NextPerson == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择下一步办理人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
this.SaveData(BLL.Const.BtnSubmit);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存数据
|
||||
/// </summary>
|
||||
@@ -164,8 +193,15 @@ 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);
|
||||
}
|
||||
////保存流程审核数据
|
||||
if (this.rblIsArgument.SelectedValue == "True")
|
||||
{
|
||||
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectActionPlanListMenuId, this.HazardId, (type == BLL.Const.BtnSubmit ? true : false), largerHazard.HazardCode, "../ActionPlan/ActionPlanListView.aspx?ActionPlanListId={0}");
|
||||
}
|
||||
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ProjectInformation);
|
||||
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.DangerousProject);
|
||||
|
||||
|
||||
}
|
||||
|
||||
#region 附件上传
|
||||
@@ -204,5 +240,18 @@ 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);
|
||||
}
|
||||
|
||||
protected void rblIsArgument_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.rblIsArgument.SelectedValue == "True")
|
||||
{
|
||||
AuditFlow.Hidden = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
AuditFlow.Hidden = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user