增加hse安全月报,功能尚未完善
This commit is contained in:
@@ -159,5 +159,15 @@ namespace BLL
|
||||
{
|
||||
return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate >= startTime && x.TrainStartDate <= endTime && x.ProjectId == projectId select x.TrainPersonNum).Sum();
|
||||
}
|
||||
|
||||
public static List<Model.EduTrain_TrainRecord> GetTrainingsByTrainDate(DateTime endTime, string projectId)
|
||||
{
|
||||
return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate <= endTime && x.ProjectId == projectId select x).ToList();
|
||||
}
|
||||
|
||||
public static int? GetTrainPersonCount(DateTime endTime, string projectId)
|
||||
{
|
||||
return (from x in Funs.DB.EduTrain_TrainRecord where x.TrainStartDate <= endTime && x.ProjectId == projectId select x.TrainPersonNum).Sum();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user