试压管理修改
This commit is contained in:
@@ -45,6 +45,12 @@
|
||||
</f:RadioButtonList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:CheckBox ID="ckPressMustCheckBItem" runat="server" Label="压力试验尾项条件" Text="必须B项整改完成" LabelWidth="200">
|
||||
</f:CheckBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:CheckBox ID="ckbDayReport" runat="server" Label="焊接日报编号" Text="是否自动生成" LabelWidth="200">
|
||||
|
||||
@@ -59,6 +59,34 @@ namespace FineUIPro.Web.common.ProjectSet
|
||||
Model.Project_Sys_Set thickness = BLL.Project_SysSetService.GetSysSetBySetId("7", projectId);
|
||||
Model.Project_Sys_Set pressUnit = BLL.Project_SysSetService.GetSysSetBySetId("8", projectId);
|
||||
Model.Project_Sys_Set AvevaNetUrl = BLL.Project_SysSetService.GetSysSetBySetId("9", projectId);
|
||||
Model.Project_Sys_Set PressMustCheckBItem = BLL.Project_SysSetService.GetSysSetBySetId("10", projectId);
|
||||
if (PressMustCheckBItem != null)
|
||||
{
|
||||
if (this.ckPressMustCheckBItem.Checked)
|
||||
{
|
||||
PressMustCheckBItem.IsAuto = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
PressMustCheckBItem.IsAuto = false;
|
||||
}
|
||||
BLL.Project_SysSetService.UpdateSet(PressMustCheckBItem);
|
||||
}
|
||||
else
|
||||
{
|
||||
Model.Project_Sys_Set newPressMustCheckBItem = new Model.Project_Sys_Set();
|
||||
newPressMustCheckBItem.SetId = "10";
|
||||
newPressMustCheckBItem.ProjectId = projectId;
|
||||
if (this.ckPressMustCheckBItem.Checked)
|
||||
{
|
||||
newPressMustCheckBItem.IsAuto = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
newPressMustCheckBItem.IsAuto = false;
|
||||
}
|
||||
BLL.Project_SysSetService.AddSet(newPressMustCheckBItem);
|
||||
}
|
||||
if (jointB != null)
|
||||
{
|
||||
if (this.ckbJointB.Checked)
|
||||
@@ -550,6 +578,17 @@ namespace FineUIPro.Web.common.ProjectSet
|
||||
|
||||
this.AvevaNetUrl.Text = s.SetValue;
|
||||
}
|
||||
else if (s.SetId == "10")
|
||||
{
|
||||
if (s.IsAuto == true)
|
||||
{
|
||||
this.ckPressMustCheckBItem.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ckPressMustCheckBItem.Checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//颜色模型设置
|
||||
|
||||
@@ -104,6 +104,15 @@ namespace FineUIPro.Web.common.ProjectSet
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblPressUnit;
|
||||
|
||||
/// <summary>
|
||||
/// ckPressMustCheckBItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckPressMustCheckBItem;
|
||||
|
||||
/// <summary>
|
||||
/// ckbDayReport 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user