20230920 HSE管理月报
This commit is contained in:
@@ -475,15 +475,31 @@ namespace BLL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据时间、项目获取安全费用投入登记信息
|
||||
/// 根据时间、项目获取五环安全费用投入登记信息
|
||||
/// </summary>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.CostGoods_PayRegistration> GetPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId)
|
||||
public static List<Model.CostGoods_PayRegistration> GetPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId,string unitId)
|
||||
{
|
||||
return (from x in Funs.DB.CostGoods_PayRegistration where x.PayDate >= startTime && x.PayDate <= endTime && x.ProjectId == projectId select x).ToList();
|
||||
return (from x in Funs.DB.CostGoods_PayRegistration 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_PayRegistration> GetConPayRegistrationByPayDate(DateTime startTime, DateTime endTime, string projectId)
|
||||
{
|
||||
return (from x in Funs.DB.CostGoods_PayRegistration
|
||||
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