diff --git a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs index 594e6508..c648825c 100644 --- a/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs +++ b/SGGL/BLL/API/HSSE/APISeDinMonthReportService.cs @@ -24,9 +24,13 @@ namespace BLL var getSeDinMonthReport = from x in db.SeDin_MonthReport where x.ProjectId == projectId select x; - if (!string.IsNullOrEmpty(states)) + if (states == "1") { - getSeDinMonthReport = getSeDinMonthReport.Where(x => x.States == states || (states == "0" && (x.States == null || x.States == "0"))); + getSeDinMonthReport = getSeDinMonthReport.Where(x => x.States == BLL.Const.State_3); + } + else + { + getSeDinMonthReport = getSeDinMonthReport.Where(x => x.States == null || x.States != BLL.Const.State_3); } if (monthD.HasValue)