fix:危大作业人员数web补充

This commit is contained in:
geh 2025-06-22 17:43:18 +08:00
parent b98d3ad900
commit e49e5f9f9a
4 changed files with 42 additions and 1 deletions

View File

@ -44,7 +44,8 @@ namespace BLL
States = largerHazard.States, States = largerHazard.States,
TrainPersonNum = largerHazard.TrainPersonNum, TrainPersonNum = largerHazard.TrainPersonNum,
IsSuperLargerHazard = largerHazard.IsSuperLargerHazard, IsSuperLargerHazard = largerHazard.IsSuperLargerHazard,
Descriptions = largerHazard.Descriptions Descriptions = largerHazard.Descriptions,
OperativesNum = largerHazard.OperativesNum
}; };
db.Solution_LargerHazard.InsertOnSubmit(newLargerHazard); db.Solution_LargerHazard.InsertOnSubmit(newLargerHazard);
@ -76,6 +77,7 @@ namespace BLL
newLargerHazard.IsSuperLargerHazard = largerHazard.IsSuperLargerHazard; newLargerHazard.IsSuperLargerHazard = largerHazard.IsSuperLargerHazard;
newLargerHazard.Descriptions = largerHazard.Descriptions; newLargerHazard.Descriptions = largerHazard.Descriptions;
newLargerHazard.IsUpdate = null; newLargerHazard.IsUpdate = null;
newLargerHazard.OperativesNum = largerHazard.OperativesNum;
db.SubmitChanges(); db.SubmitChanges();
} }
} }

View File

@ -56,6 +56,13 @@
</f:DropDownList> </f:DropDownList>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox runat="server" ID="txtOperativesNum" NoDecimal="true" NoNegative="true" Label="作业人员数" LabelWidth="100px"></f:NumberBox>
<f:Label runat="server" ID="txtOperativesNum1"></f:Label>
<f:Label runat="server" ID="txtOperativesNum2"></f:Label>
</Items>
</f:FormRow>
<f:FormRow> <f:FormRow>
<Items> <Items>
<f:TextArea ID="txtDescriptions" runat="server" Label="描述" <f:TextArea ID="txtDescriptions" runat="server" Label="描述"

View File

@ -95,6 +95,10 @@ namespace FineUIPro.Web.HSSE.Solution
{ {
this.txtTrainPersonNum.Text = largerHazard.TrainPersonNum.ToString(); this.txtTrainPersonNum.Text = largerHazard.TrainPersonNum.ToString();
} }
if (largerHazard.OperativesNum != null)
{
this.txtOperativesNum.Text = largerHazard.OperativesNum.ToString();
}
this.drpStates.SelectedValue = largerHazard.States; this.drpStates.SelectedValue = largerHazard.States;
this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark); this.txtRemark.Text = HttpUtility.HtmlDecode(largerHazard.Remark);
this.txtDescriptions.Text = largerHazard.Descriptions; this.txtDescriptions.Text = largerHazard.Descriptions;
@ -145,6 +149,7 @@ namespace FineUIPro.Web.HSSE.Solution
IsArgument = Convert.ToBoolean(this.rblIsArgument.SelectedValue), IsArgument = Convert.ToBoolean(this.rblIsArgument.SelectedValue),
IsSuperLargerHazard = Convert.ToBoolean(this.rblIsSuperLargerHazard.SelectedValue), IsSuperLargerHazard = Convert.ToBoolean(this.rblIsSuperLargerHazard.SelectedValue),
TrainPersonNum=Funs.GetNewIntOrZero(this.txtTrainPersonNum.Text.Trim()), TrainPersonNum=Funs.GetNewIntOrZero(this.txtTrainPersonNum.Text.Trim()),
OperativesNum = Funs.GetNewIntOrZero(this.txtOperativesNum.Text.Trim()),
Remark = HttpUtility.HtmlEncode(this.txtRemark.Text.Trim()), Remark = HttpUtility.HtmlEncode(this.txtRemark.Text.Trim()),
Descriptions = this.txtDescriptions.Text.Trim(), Descriptions = this.txtDescriptions.Text.Trim(),
RecordTime = Funs.GetNewDateTime(this.txtRecordTime.Text.Trim()), RecordTime = Funs.GetNewDateTime(this.txtRecordTime.Text.Trim()),

View File

@ -131,6 +131,33 @@ namespace FineUIPro.Web.HSSE.Solution
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpStates; protected global::FineUIPro.DropDownList drpStates;
/// <summary>
/// txtOperativesNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtOperativesNum;
/// <summary>
/// txtOperativesNum1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtOperativesNum1;
/// <summary>
/// txtOperativesNum2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label txtOperativesNum2;
/// <summary> /// <summary>
/// txtDescriptions 控件。 /// txtDescriptions 控件。
/// </summary> /// </summary>