This commit is contained in:
2025-06-23 16:34:50 +08:00
parent c61ce05257
commit 2ad0403d8c
7 changed files with 314 additions and 221 deletions
@@ -101,9 +101,14 @@ namespace FineUIPro.Web.HSSE.Solution
{
this.txtTrainPersonNum.Text = largerHazard.TrainPersonNum.ToString();
}
if (largerHazard.OperativesNum != null)
{
this.txtOperativesNum.Text = largerHazard.OperativesNum.ToString();
}
this.drpStates.SelectedValue = largerHazard.States;
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
this.txtDescriptions.Text = largerHazard.Descriptions;
this.txtHazardName.Text = largerHazard.HazardName;
}
else
{
@@ -193,11 +198,13 @@ namespace FineUIPro.Web.HSSE.Solution
IsArgument = Convert.ToBoolean(this.rblIsArgument.SelectedValue),
IsSuperLargerHazard = Convert.ToBoolean(this.rblIsSuperLargerHazard.SelectedValue),
TrainPersonNum = Funs.GetNewIntOrZero(this.txtTrainPersonNum.Text.Trim()),
OperativesNum = Funs.GetNewIntOrZero(this.txtOperativesNum.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 = this.drpStates.SelectedValue,
HazardName = txtHazardName.Text.Trim()
};
if (!string.IsNullOrEmpty(this.HazardId))
{