From 0040e3812be5d206d619f63353beb47be0ba90fa Mon Sep 17 00:00:00 2001 From: gaofei <231232131@163.com> Date: Wed, 23 Mar 2022 09:55:32 +0800 Subject: [PATCH] 0323-001-gaofei --- SGGL/FineUIPro.Web/ProjectData/Installation.aspx.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SGGL/FineUIPro.Web/ProjectData/Installation.aspx.cs b/SGGL/FineUIPro.Web/ProjectData/Installation.aspx.cs index 49f0d6ae..14cc5194 100644 --- a/SGGL/FineUIPro.Web/ProjectData/Installation.aspx.cs +++ b/SGGL/FineUIPro.Web/ProjectData/Installation.aspx.cs @@ -726,7 +726,7 @@ namespace FineUIPro.Web.ProjectData Model.Project_Installation installation = BLL.Project_InstallationService.GetInstallationByInstallationId(id); if (installation.SuperInstallationId == "0") //删除一级装置 { - if (installation.InstallationName == "总图") + if (installation.InstallationName == "总图" || installation.InstallationName == "防腐绝热" || installation.InstallationName == "地勘" || installation.InstallationName == "临时设施" || installation.InstallationName == "全厂地下主管网") { DeleteZTData(installation.InstallationId); } @@ -819,9 +819,11 @@ namespace FineUIPro.Web.ProjectData var wbsSets = (from x in Funs.DB.Wbs_WbsSet where x.InstallationId == installationId && x.CnProfessionId == null select x).ToList(); foreach (var wbsSet in wbsSets) { + BLL.CostControlService.DeleteCostControlByWbsSetId(wbsSet.WbsSetId); //删除费控项 BLL.WbsDetailHistoryService.DeleteWbsDetailHistoryByToWbs(wbsSet.WbsSetId); //删除进度历史版本记录 BLL.WbsDetailService.DeleteWbsDetailByToWbs(wbsSet.WbsSetId); //删除进度记录 BLL.WbsSetService.DeleteWbsSet(wbsSet.WbsSetId); + BLL.WbsSetMatchCostControlService.DeleteWbsSetMatchCostControlByWbsSetId(wbsSet.WbsSetId); //删除费控项对应关系 } //删除单位工程及子单位工程