0923-gaofei

This commit is contained in:
gaofei
2021-09-23 14:45:21 +08:00
parent c0798d8358
commit 56e48d5d6b
17 changed files with 3090 additions and 1188 deletions
+14 -3
View File
@@ -160,6 +160,16 @@ namespace BLL
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId && x.IsApprove == true orderby x.WbsSetCode select x).ToList();
}
/// <summary>
/// 根据上级Id获取是否存在同级别的其他已勾选项
/// </summary>
/// <param name="superWbsSetId">上级Id</param>
/// <returns></returns>
public static bool IsExitOtherApproveWbsSetsBySuperWbsSetId(string superWbsSetId, string wbsSetId)
{
return (from x in Funs.DB.Wbs_WbsSet where x.SuperWbsSetId == superWbsSetId && x.IsApprove == true && x.WbsSetId != wbsSetId orderby x.WbsSetCode select x).FirstOrDefault() != null;
}
/// <summary>
/// 根据上级Id获取集合
/// </summary>
@@ -337,9 +347,10 @@ namespace BLL
}
var cn = (from x in db.WBS_CnProfession where x.InstallationId == inId && x.OldId.ToString() == cnCode select x).FirstOrDefault();
var list = (from x in db.Wbs_WbsSet
join y in db.Wbs_UnitProject
on x.UnitProjectId equals y.UnitProjectId
where x.CnProfessionId == cn.CnProfessionId && y.UnitProjectCode == unitProjectCode && x.WbsSetCode==wbsSetCode select x.WbsSetId).ToList();
join y in db.Wbs_UnitProject
on x.UnitProjectId equals y.UnitProjectId
where x.CnProfessionId == cn.CnProfessionId && y.UnitProjectCode == unitProjectCode && x.WbsSetCode == wbsSetCode
select x.WbsSetId).ToList();
return list;
}