数据穿透新增页面
This commit is contained in:
@@ -202,7 +202,28 @@
|
||||
select x).ToList();
|
||||
return list;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取施工中项目集合
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_Project> GetProjectWorkList(string unitId)
|
||||
{
|
||||
var getDatas = from x in Funs.DB.Base_Project
|
||||
where (x.ProjectState == null || x.ProjectState == BLL.Const.ProjectState_1) && (x.IsDelete == null || x.IsDelete == false)
|
||||
select x;
|
||||
|
||||
if (unitId == CommonService.GetThisUnitId())
|
||||
{
|
||||
getDatas = getDatas.Where(x => x.UnitId == unitId || x.UnitId == null);
|
||||
}
|
||||
else
|
||||
{
|
||||
getDatas = getDatas.Where(x => x.UnitId == unitId);
|
||||
}
|
||||
var list = getDatas.OrderBy(x => x.ProjectName).ToList();
|
||||
|
||||
return list;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取项目下拉选项
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user