11
This commit is contained in:
@@ -94,6 +94,7 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
Base_TestMediumService.InitMediumDropDownList(this.drpLeakMedium, "2", true);
|
||||
Base_PurgeMethodService.InitPurgeMethodDropDownList(this.drpPCMedium, true, "-请选择-");
|
||||
BLL.Base_MaterialService.InitMaterialDropDownList(this.drpMaterial, true, "请选择");//材质1
|
||||
UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true);
|
||||
|
||||
Model.Project_Sys_Set pressUnit = BLL.Project_SysSetService.GetSysSetBySetId("8", this.CurrUser.LoginProjectId);
|
||||
if (pressUnit != null && pressUnit.SetValue == "2")
|
||||
@@ -186,19 +187,13 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
{
|
||||
drpMaterial.SelectedValue = pipeline.MaterialId;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.UnitWorkId = Request.Params["UnitWorkId"];
|
||||
Model.WBS_UnitWork workArea = BLL.UnitWorkService.getUnitWorkByUnitWorkId(this.UnitWorkId);
|
||||
BLL.UnitService.InitUnitDropDownListByUnitIds(this.drpUnit, workArea.UnitId, false);//单位
|
||||
if (workArea != null)
|
||||
if (!string.IsNullOrEmpty(pipeline.UnitWorkId))
|
||||
{
|
||||
this.ProjectId = workArea.ProjectId;
|
||||
//this.InstallationId = workArea.InstallationId;
|
||||
|
||||
drpUnitWork.SelectedValue = pipeline.UnitWorkId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -223,7 +218,6 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
{
|
||||
SaveData(true);
|
||||
// 关闭本窗体,然后回发父窗体
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -242,34 +236,44 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||
pipeline.UnitId = drpUnit.SelectedValue;
|
||||
pipeline.UnitWorkId = this.UnitWorkId;
|
||||
pipeline.PipelineCode = this.txtPipelineCode.Text.Trim();
|
||||
if (this.drpDetectionRate.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
pipeline.DetectionRateId = this.drpDetectionRate.SelectedValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择探伤比例!");
|
||||
return;
|
||||
}
|
||||
//if (this.drpDetectionRate.SelectedValue != BLL.Const._Null)
|
||||
//{
|
||||
// pipeline.DetectionRateId = this.drpDetectionRate.SelectedValue;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Alert.ShowInTop("请选择探伤比例!");
|
||||
// return;
|
||||
//}
|
||||
|
||||
if (this.drpMedium.SelectedValue != BLL.Const._Null)
|
||||
//if (this.drpMedium.SelectedValue != BLL.Const._Null)
|
||||
//{
|
||||
// pipeline.MediumId = this.drpMedium.SelectedValue;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Alert.ShowInTop("请选择介质!");
|
||||
// return;
|
||||
//}
|
||||
if (this.drpUnitWork.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
pipeline.MediumId = this.drpMedium.SelectedValue;
|
||||
pipeline.UnitWorkId = this.drpUnitWork.SelectedValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择介质!");
|
||||
return;
|
||||
}
|
||||
if (this.drpPipingClass.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
pipeline.PipingClassId = this.drpPipingClass.SelectedValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择管线等级!");
|
||||
Alert.ShowInTop("请选择单位工程!");
|
||||
return;
|
||||
}
|
||||
|
||||
//if (this.drpPipingClass.SelectedValue != BLL.Const._Null)
|
||||
//{
|
||||
// pipeline.PipingClassId = this.drpPipingClass.SelectedValue;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Alert.ShowInTop("请选择管线等级!");
|
||||
// return;
|
||||
//}
|
||||
|
||||
if (this.drpTestMedium.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user