Esempio n. 1
0
 public TimeGroupsController(ITimeGroupsService timeGroupsService, ITimeZoneIDsService timeZoneIDsService, ITaskListService taskListService, IPanelSettingsService panelSettingsService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersService dBUsersService, IReportService reportService, IAccessDatasService accessDatasService)
 {
     user = CurrentSession.User;
     if (user == null)
     {
         user = new DBUsers();
     }
     _timeGroupsService    = timeGroupsService;
     _timeZoneIDsService   = timeZoneIDsService;
     _taskListService      = taskListService;
     _panelSettingsService = panelSettingsService;
     _dBUsersPanelsService = dBUsersPanelsService;
     _dBUsersService       = dBUsersService;
     _reportService        = reportService;
     _accessDatasService   = accessDatasService;
     permissionUser        = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi);
 }
Esempio n. 2
0
 public AccessGroupController(IGroupMasterService groupMasterService, IGlobalZoneService globalZoneService, IGroupsDetailNewService groupsDetailNewService, ITimeGroupsService timeGroupsService, ILiftGroupsService liftGroupsService, IReaderSettingsNewService readerSettingsNewService, IPanelSettingsService panelSettingsService, ITaskListService taskListService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersService dBUsersService, IReportService reportService, IAccessDatasService accessDatasService, IUserService userService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService)
 {
     //user = CurrentSession.User;
     //if (user == null)
     //{
     //    user = new DBUsers();
     //}
     _groupMasterService       = groupMasterService;
     _globalZoneService        = globalZoneService;
     _groupsDetailNewService   = groupsDetailNewService;
     _timeGroupsService        = timeGroupsService;
     _liftGroupsService        = liftGroupsService;
     _readerSettingsNewService = readerSettingsNewService;
     _panelSettingsService     = panelSettingsService;
     _taskListService          = taskListService;
     _dBUsersPanelsService     = dBUsersPanelsService;
     _dBUsersService           = dBUsersService;
     _reportService            = reportService;
     _accessDatasService       = accessDatasService;
     _userService             = userService;
     _dBUsersDepartmanService = dBUsersDepartmanService;
     _dBUsersSirketService    = dBUsersSirketService;
     dbDepartmanList          = new List <int>();
     dbPanelList  = new List <int>();
     dbSirketList = new List <int>();
     foreach (var dbUserDepartmanNo in _dBUsersDepartmanService.GetAllDBUsersDepartman(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Departman_No))
     {
         dbDepartmanList.Add((int)dbUserDepartmanNo);
     }
     foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No))
     {
         dbPanelList.Add((int)dbUserPanelNo);
     }
     foreach (var dbUserSirketNo in _dBUsersSirketService.GetAllDBUsersSirket(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Sirket_No))
     {
         dbSirketList.Add((int)dbUserSirketNo);
     }
     permissionUser = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi);
     FillGroups();
 }