1221-002-gaofei

This commit is contained in:
gaofei
2021-12-21 16:10:02 +08:00
parent 6887e55225
commit 0bf6d1efd7
22 changed files with 1553 additions and 548 deletions
+12
View File
@@ -38,6 +38,16 @@ namespace BLL
return (from x in Funs.DB.WBS_CostControl where x.WbsSetId == wbsSetId select x).ToList();
}
/// <summary>
/// 根据费控项编号集合获取勾选的费控项信息
/// </summary>
/// <param name="costControlCodes">费控项编号集合</param>
/// <returns></returns>
public static List<Model.WBS_CostControl> GetSelectedCostControlsByWbsSetId(string wbsSetId)
{
return (from x in Funs.DB.WBS_CostControl where x.WbsSetId == wbsSetId && x.IsSelected == true orderby x.CostControlCode, x.CostControlName select x).ToList();
}
/// <summary>
/// 增加费控项
/// </summary>
@@ -52,6 +62,7 @@ namespace BLL
newUP.CostControlCode = costControl.CostControlCode;
newUP.CostControlName = costControl.CostControlName;
newUP.Unit = costControl.Unit;
newUP.IsSelected = costControl.IsSelected;
newUP.TotalNum = costControl.TotalNum;
newUP.RealPrice = costControl.RealPrice;
@@ -72,6 +83,7 @@ namespace BLL
newUP.CostControlName = costControl.CostControlName;
newUP.Unit = costControl.Unit;
newUP.TotalNum = costControl.TotalNum;
newUP.IsSelected = costControl.IsSelected;
newUP.RealPrice = costControl.RealPrice;
newUP.PlanPrice = costControl.PlanPrice;
db.SubmitChanges();