1
This commit is contained in:
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class ConstructionPlanApproveService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
@@ -17,6 +17,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string ConstructionPlanId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return from x in db.ZHGL_ConstructionPlanApprove
|
||||
where x.ConstructionPlanId == ConstructionPlanId && x.ApproveDate != null
|
||||
orderby x.ApproveDate
|
||||
@@ -98,6 +99,7 @@ namespace BLL
|
||||
/// <returns>一个总承包商施工计划审批实体</returns>
|
||||
public static Model.ZHGL_ConstructionPlanApprove GetConstructionPlanApproveByConstructionPlanId(string constructionPlanId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.ZHGL_ConstructionPlanApprove.FirstOrDefault(x => x.ConstructionPlanId == constructionPlanId && x.ApproveDate == null);
|
||||
}
|
||||
/// <summary>
|
||||
@@ -120,6 +122,7 @@ namespace BLL
|
||||
|
||||
public static Model.ZHGL_ConstructionPlanApprove GetComplie(string ConstructionPlanId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.ZHGL_ConstructionPlanApprove.FirstOrDefault(x => x.ConstructionPlanId == ConstructionPlanId && x.ApproveType == BLL.Const.ConstructionPlan_Compile);
|
||||
}
|
||||
public static Model.ZHGL_ConstructionPlanApprove GetConstructionPlanApproveById(string ConstructionPlanApproveId)
|
||||
|
||||
Reference in New Issue
Block a user