提交代码
This commit is contained in:
@@ -139,10 +139,15 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
}
|
||||
}
|
||||
var equipment = workPackages.FirstOrDefault(x => x.PackageContent == "机泵" || x.PackageContent == "静止设备");
|
||||
this.hdType.Text = string.Empty;
|
||||
var equipment = workPackages.FirstOrDefault(x => x.PackageContent == "机泵" || x.PackageContent == "静止设备" || x.PackageContent == "桥架" || x.PackageContent == "仪表回路");
|
||||
if (equipment != null)
|
||||
{
|
||||
this.btnImport.Hidden = false;
|
||||
if (equipment.PackageContent == "桥架" || equipment.PackageContent == "仪表回路")
|
||||
{
|
||||
this.hdType.Text = "DY"; //电仪
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -810,7 +815,14 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveData();
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkPackageSet2In.aspx?WorkPackageId={0}", WorkPackageId, "导入 - ")));
|
||||
if (string.IsNullOrEmpty(this.hdType.Text.Trim()))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkPackageSet2In.aspx?WorkPackageId={0}", WorkPackageId, "导入 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("WorkPackageSet2In2.aspx?WorkPackageId={0}", WorkPackageId, "导入 - ")));
|
||||
}
|
||||
}
|
||||
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user