提交代码

This commit is contained in:
2024-05-27 16:34:45 +08:00
parent 493f1a5ab5
commit d554e7a6c9
20 changed files with 185 additions and 89 deletions
@@ -25,7 +25,7 @@ namespace BLL
/// </summary>
private static IQueryable<Model.View_Hazard_HazardRegisterList> getDataLists = from x in db.View_Hazard_HazardRegisterList
where x.ProblemTypes == "1"
select x;
select x;
/// <summary>
///
@@ -45,7 +45,7 @@ namespace BLL
/// <param name="Grid1"></param>
/// <returns></returns>
public static IEnumerable getListData(string projectId, string checkMan, string type, string workAreaName, string responsibilityUnitName, DateTime? startTime, DateTime? endTime, DateTime? startRectificationTime, DateTime? endRectificationTime
,string states, string personId, string unitId, Grid Grid1)
, string states, string personId, string unitId, Grid Grid1)
{
IQueryable<Model.View_Hazard_HazardRegisterList> getDataList = getDataLists;
if (!string.IsNullOrEmpty(projectId))
@@ -93,7 +93,7 @@ namespace BLL
}
if (!CommonService.IsMainUnitOrAdmin(personId))
{
{
getDataList = getDataList.Where(e => e.ResponsibleUnit == unitId || e.SendUnitId == unitId);
}
@@ -194,7 +194,7 @@ namespace BLL
WorkPackageId = hazardRegister.WorkPackageId,
WorkPackageName = hazardRegister.WorkPackageName,
ControlId = hazardRegister.ControlId,
};
db.HSSE_Hazard_HazardRegister.InsertOnSubmit(newHazardRegister);
db.SubmitChanges();