20240822 获取单位工程
This commit is contained in:
@@ -276,7 +276,7 @@ namespace BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId select x).ToList();//装置条件为空时获取对应操作表中所有的装置
|
||||
List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") select x).ToList();//装置条件为空时获取对应操作表中所有的装置
|
||||
foreach (Model.WBS_UnitWork item in InstallationList)
|
||||
{
|
||||
Model.View_WBSReport InstallationInit = (from x in WBSReportList where x.Id == item.UnitWorkId select x).FirstOrDefault();
|
||||
@@ -289,7 +289,7 @@ namespace BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId==projectId select x).ToList();
|
||||
List<Model.WBS_UnitWork> InstallationList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId==projectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") select x).ToList();
|
||||
foreach (Model.WBS_UnitWork item in InstallationList)
|
||||
{
|
||||
Model.View_WBSReport InstallationInit = (from x in WBSReportList where x.Id == item.UnitWorkId select x).FirstOrDefault();
|
||||
|
||||
Reference in New Issue
Block a user