1221-002-gaofei
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user