修改安全月报
This commit is contained in:
@@ -102,5 +102,33 @@ namespace BLL
|
||||
var result = Funs.DB.CostGoods_HseExpense.FirstOrDefault(a => a.Id == newId);
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据时间、项目获取五环安全费用投入登记信息
|
||||
/// </summary>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.CostGoods_HseExpense> GetPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId, string unitId)
|
||||
{
|
||||
return (from x in Funs.DB.CostGoods_HseExpense where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId && x.UnitId == unitId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据时间、项目获取施工分包商安全费用投入登记信息
|
||||
/// </summary>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.CostGoods_HseExpense> GetConPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId)
|
||||
{
|
||||
return (from x in Funs.DB.CostGoods_HseExpense
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId
|
||||
&& y.UnitTypeId == BLL.Const.UnitId_Con
|
||||
select x).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user