diff --git a/.vs/SGGL_SeDin_New/v17/.wsuo b/.vs/SGGL_SeDin_New/v17/.wsuo index 5632e341..e225f173 100644 Binary files a/.vs/SGGL_SeDin_New/v17/.wsuo and b/.vs/SGGL_SeDin_New/v17/.wsuo differ diff --git a/SGGL/BLL/Person/Person_PersonsService.cs b/SGGL/BLL/Person/Person_PersonsService.cs index c9533419..c6e28f6d 100644 --- a/SGGL/BLL/Person/Person_PersonsService.cs +++ b/SGGL/BLL/Person/Person_PersonsService.cs @@ -46,6 +46,11 @@ namespace BLL /// public static IEnumerable getListData(string unitId, string departId, string projetcId, string name, string idCard, string isPost, string personType, string account, string[] workPostIds, Grid Grid1) { + + var db1 = Funs.DB; + var getDataLists = from x in db1.Person_Persons + where x.PersonId != Const.sysglyId && x.PersonId != Const.hfnbdId + select x; IQueryable getDataList = getDataLists.OrderBy(x => x.UnitId).ThenBy(x => x.DepartId); if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null) { @@ -55,8 +60,6 @@ namespace BLL { getDataList = getDataList.Where(e => e.DepartId == departId); } - - var db1 = Funs.DB; if (!string.IsNullOrEmpty(projetcId) && projetcId != Const._Null) { var idLists = (from x in db1.SitePerson_PersonItem