diff --git a/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs b/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs index 4400b648..1e3b62bb 100644 --- a/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs +++ b/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs @@ -37,7 +37,9 @@ namespace BLL /// public static IEnumerable getListData(string projectId, string personName, Grid Grid1) { - IQueryable getDataList = getDataLists; + var db1 = Funs.DB; + IQueryable getDataList = from x in db1.SitePerson_Person + select x; if (!string.IsNullOrEmpty(projectId)) { getDataList = getDataList.Where(e => e.ProjectId == projectId); @@ -53,7 +55,7 @@ namespace BLL return null; } getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); - var db1 = Funs.DB; + return from x in getDataList select new {