提交代码
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:RadioButtonList ID="rbCheckResult" Label="检查结果" runat="server" ColumnNumber="1" ShowRedStar="true" Required="true">
|
<f:RadioButtonList ID="rbCheckResult" Label="检查结果" runat="server" ColumnNumber="1" ShowRedStar="true" Required="true" AutoPostBack="true" OnSelectedIndexChanged="rbCheckResult_SelectedIndexChanged">
|
||||||
<f:RadioItem Text="符合" Value="符合" />
|
<f:RadioItem Text="符合" Value="符合" />
|
||||||
<f:RadioItem Text="不符合" Value="不符合" />
|
<f:RadioItem Text="不符合" Value="不符合" />
|
||||||
</f:RadioButtonList>
|
</f:RadioButtonList>
|
||||||
|
|||||||
@@ -70,6 +70,14 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||||||
rbRectification.SelectedValue = constructionRiskControl.Rectification;
|
rbRectification.SelectedValue = constructionRiskControl.Rectification;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.rbCheckResult.SelectedValue == "符合")
|
||||||
|
{
|
||||||
|
this.rbRectification.Hidden = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.rbRectification.Hidden = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@@ -94,16 +102,20 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||||||
{
|
{
|
||||||
|
|
||||||
Model.HSSE_ConstructionRiskControl newconstructionRisk = Funs.DB.HSSE_ConstructionRiskControl.FirstOrDefault(x => x.ControlId == this.ControlId);
|
Model.HSSE_ConstructionRiskControl newconstructionRisk = Funs.DB.HSSE_ConstructionRiskControl.FirstOrDefault(x => x.ControlId == this.ControlId);
|
||||||
|
string str = string.Empty;
|
||||||
if (newconstructionRisk != null)
|
if (newconstructionRisk != null)
|
||||||
{
|
{
|
||||||
newconstructionRisk.CheckMan = this.CurrUser.PersonId;
|
newconstructionRisk.CheckMan = this.CurrUser.PersonId;
|
||||||
newconstructionRisk.CheckResult = rbCheckResult.SelectedValue;
|
newconstructionRisk.CheckResult = rbCheckResult.SelectedValue;
|
||||||
newconstructionRisk.Rectification = rbRectification.SelectedValue;
|
if (this.rbCheckResult.SelectedValue == "不符合")
|
||||||
|
{
|
||||||
|
newconstructionRisk.Rectification = rbRectification.SelectedValue;
|
||||||
|
str= rbRectification.SelectedValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Funs.DB.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
|
|
||||||
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(rbRectification.SelectedValue) + ActiveWindow.GetHidePostBackReference());
|
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(str) + ActiveWindow.GetHidePostBackReference());
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -112,5 +124,17 @@ namespace FineUIPro.Web.HSSE.Hazard
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void rbCheckResult_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.rbCheckResult.SelectedValue == "符合")
|
||||||
|
{
|
||||||
|
this.rbRectification.Hidden = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.rbRectification.Hidden = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user