提交集团数据穿透修改

This commit is contained in:
2023-06-19 09:04:34 +08:00
parent efed3c7f6f
commit 1e709abb1a
184 changed files with 10777 additions and 3631 deletions
@@ -54,7 +54,8 @@ namespace FineUIPro.Web.HSSE.Solution
BLL.ConstValue.InitConstValueDropDownList(this.drpHazardType, ConstValue.Group_LargerHazardType, true);
//是否需要专家论证
BLL.ConstValue.InitConstValueRadioButtonList(this.rblIsArgument, ConstValue.Group_0001, "False");
//是否超危大工程
BLL.ConstValue.InitConstValueRadioButtonList(this.rblIsSuperLargerHazard, ConstValue.Group_0001, "False");
this.HazardId = Request.Params["HazardId"];
var largerHazard = BLL.LargerHazardService.GetLargerHazardByHazardId(this.HazardId);
if (largerHazard != null)
@@ -82,6 +83,19 @@ namespace FineUIPro.Web.HSSE.Solution
{
this.rblIsArgument.SelectedValue = "False";
}
if (largerHazard.IsSuperLargerHazard == true)
{
this.rblIsSuperLargerHazard.SelectedValue = "True";
}
else
{
this.rblIsSuperLargerHazard.SelectedValue = "False";
}
if (largerHazard.TrainPersonNum != null)
{
this.txtTrainPersonNum.Text = largerHazard.TrainPersonNum.ToString();
}
this.drpStates.SelectedValue = largerHazard.States;
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
this.txtDescriptions.Text = largerHazard.Descriptions;
}
@@ -93,38 +107,10 @@ 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;
}
}
#endregion
#region
/// <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.ctlAuditFlow.NextStep == BLL.Const.State_1 && this.ctlAuditFlow.NextPerson == BLL.Const._Null)
{
ShowNotify("请选择下一步办理人!", MessageBoxIcon.Warning);
return;
}
this.SaveData(BLL.Const.BtnSubmit);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
#endregion
#region
/// <summary>
/// 保存按钮
@@ -156,17 +142,14 @@ namespace FineUIPro.Web.HSSE.Solution
Address = this.txtAddress.Text.Trim(),
ExpectedTime = Funs.GetNewDateTime(this.txtExpectedTime.Text.Trim()),
IsArgument = Convert.ToBoolean(this.rblIsArgument.SelectedValue),
IsSuperLargerHazard = Convert.ToBoolean(this.rblIsSuperLargerHazard.SelectedValue),
TrainPersonNum=Funs.GetNewIntOrZero(this.txtTrainPersonNum.Text.Trim()),
Remark = HttpUtility.HtmlEncode(this.txtRemark.Text.Trim()),
Descriptions = this.txtDescriptions.Text.Trim(),
RecordTime = Funs.GetNewDateTime(this.txtRecordTime.Text.Trim()),
ProjectId = this.ProjectId,
////单据状态
States = BLL.Const.State_0
States = this.drpStates.SelectedValue,
};
if (type == BLL.Const.BtnSubmit)
{
largerHazard.States = this.ctlAuditFlow.NextStep;
}
if (!string.IsNullOrEmpty(this.HazardId))
{
largerHazard.HazardId = this.HazardId;
@@ -181,8 +164,8 @@ 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);
}
////保存流程审核数据
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectLargerHazardListMenuId, this.HazardId, (type == BLL.Const.BtnSubmit ? true : false), this.drpHazardType.SelectedItem.Text, "../Solution/LargerHazardView.aspx?HazardId={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
@@ -212,8 +195,7 @@ namespace FineUIPro.Web.HSSE.Solution
IsArgument = Convert.ToBoolean(this.rblIsArgument.SelectedValue),
Remark = HttpUtility.HtmlEncode(this.txtRemark.Text.Trim()),
ProjectId = this.ProjectId,
////单据状态
States = BLL.Const.State_0,
States = this.drpStates.SelectedValue,
HazardId = SQLHelper.GetNewID(typeof(Model.Solution_LargerHazard)),
RecardMan = this.CurrUser.UserId,
RecordTime = Funs.GetNewDateTime(this.txtRecordTime.Text.Trim())