20240822 获取单位工程
This commit is contained in:
@@ -402,7 +402,7 @@ namespace BLL
|
||||
string[] type = null;
|
||||
if (!string.IsNullOrEmpty(projectType))
|
||||
type = projectType.Split(',');
|
||||
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId && (type == null || type.Contains(x.ProjectType)) orderby x.UnitWorkCode select x;
|
||||
var unitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") && (type == null || type.Contains(x.ProjectType)) orderby x.UnitWorkCode select x;
|
||||
return unitWorks.ToList();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -454,12 +454,12 @@ namespace BLL
|
||||
{
|
||||
if (ProjectType == "1")
|
||||
{
|
||||
List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "1" && x.ProjectId == ProjectId orderby x.UnitWorkCode select x).ToList();
|
||||
List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "1" && x.ProjectId == ProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x).ToList();
|
||||
return lis;
|
||||
}
|
||||
else if (ProjectType == "2")
|
||||
{
|
||||
List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "2" && x.ProjectId == ProjectId orderby x.UnitWorkCode select x).ToList();
|
||||
List<Model.WBS_UnitWork> lis = (from x in Funs.DB.WBS_UnitWork where x.ProjectType == "2" && x.ProjectId == ProjectId && (x.SuperUnitWork == null || x.SuperUnitWork == "0") orderby x.UnitWorkCode select x).ToList();
|
||||
return lis;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user