Exemplo n.º 1
0
 public RefectoryController(IReaderSettingsNewService readerSettingsNewService, IPanelSettingsService panelSettingsService, IReportService reportService, IDBUsersService dBUsersService, IGroupMasterService groupMasterService, IGroupsDetailNewService groupsDetailNewService, IDoorGroupsMasterService doorGroupsMasterService, IDoorGroupsDetailService doorGroupsDetailService, IEmailSettingsService emailSettingsService, ISirketService sirketService, IDepartmanService departmanService, IAltDepartmanService altDepartmanService, IBolumService bolumService, IBirimService birimService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersAltDepartmanService dBUsersAltDepartmanService)
 {
     //user = CurrentSession.User;
     //if (user == null)
     //{
     //    user = new DBUsers();
     //}
     _readerSettingsNewService   = readerSettingsNewService;
     _panelSettingsService       = panelSettingsService;
     _reportService              = reportService;
     _dBUsersService             = dBUsersService;
     _groupMasterService         = groupMasterService;
     _groupsDetailNewService     = groupsDetailNewService;
     _doorGroupsDetailService    = doorGroupsDetailService;
     _doorGroupsMasterService    = doorGroupsMasterService;
     _emailSettingsService       = emailSettingsService;
     _sirketService              = sirketService;
     _departmanService           = departmanService;
     _altDepartmanService        = altDepartmanService;
     _bolumService               = bolumService;
     _birimService               = birimService;
     _dBUsersPanelsService       = dBUsersPanelsService;
     _dBUsersDepartmanService    = dBUsersDepartmanService;
     _dBUsersSirketService       = dBUsersSirketService;
     _dBUsersAltDepartmanService = dBUsersAltDepartmanService;
     dbDepartmanList             = new List <int>();
     dbPanelList        = new List <int>();
     dbSirketList       = new List <int>();
     dbAltDepartmanList = 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);
     }
     foreach (var dbUserAltDepartmanNo in _dBUsersAltDepartmanService.GetAllDBUsersAltDepartman(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Alt_Departman_No))
     {
         dbAltDepartmanList.Add((int)dbUserAltDepartmanNo);
     }
     _reportService.GetPanelList(user == null ? new DBUsers {
     } : user);
     _reportService.GetSirketList(user == null ? new DBUsers {
     } : user);
     _reportService.GetDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetAltDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetBolumList(user == null ? new DBUsers {
     } : user);
     permissionUser = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi);
 }
Exemplo n.º 2
0
 public PersonelListReportController(IUserService userService, IDepartmanService departmanService, IBloklarService bloklarService, IGroupMasterService groupMasterService, ISirketService sirketService, IGlobalZoneService globalZoneService, IReportService reportService, IAltDepartmanService altDepartmanService, IUnvanService unvanService, IBolumService bolumService, IAccessDatasService accessDatasService, IBirimService birimService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersAltDepartmanService dBUsersAltDepartmanService)
 {
     //user = CurrentSession.User;
     //if (user == null)
     //{
     //    user = new DBUsers();
     //}
     _userService                = userService;
     _departmanService           = departmanService;
     _bloklarService             = bloklarService;
     _groupMasterService         = groupMasterService;
     _sirketService              = sirketService;
     _globalZoneService          = globalZoneService;
     _reportService              = reportService;
     _altDepartmanService        = altDepartmanService;
     _unvanService               = unvanService;
     _bolumService               = bolumService;
     _accessDatasService         = accessDatasService;
     _birimService               = birimService;
     _dBUsersPanelsService       = dBUsersPanelsService;
     _dBUsersDepartmanService    = dBUsersDepartmanService;
     _dBUsersSirketService       = dBUsersSirketService;
     _dBUsersAltDepartmanService = dBUsersAltDepartmanService;
     dbDepartmanList             = new List <int>();
     dbPanelList        = new List <int>();
     dbSirketList       = new List <int>();
     dbAltDepartmanList = 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);
     }
     foreach (var dbUserAltDepartmanNo in _dBUsersAltDepartmanService.GetAllDBUsersAltDepartman(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Alt_Departman_No))
     {
         dbAltDepartmanList.Add((int)dbUserAltDepartmanNo);
     }
     _reportService.GetPanelList(user == null ? new DBUsers {
     } : user);
     _reportService.GetSirketList(user == null ? new DBUsers {
     } : user);
     _reportService.GetDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetAltDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetBolumList(user == null ? new DBUsers {
     } : user);
 }
Exemplo n.º 3
0
 public CompanyController(ISirketService sirketService, IDBUsersService dBUsersService, IAccessDatasService accessDatasService, IDBUsersSirketService dBUsersSirketService)
 {
     user = CurrentSession.User;
     if (user == null)
     {
         user = new DBUsers();
     }
     _sirketService        = sirketService;
     _dBUsersService       = dBUsersService;
     _accessDatasService   = accessDatasService;
     _dBUsersSirketService = dBUsersSirketService;
     permissionUser        = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi);
 }
Exemplo n.º 4
0
 public QuickResponseController(IVisitorsService visitorsService, IUserService userService, IGroupMasterService groupMasterService, ITaskListService taskListService, IPanelSettingsService panelSettingsService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersService dBUsersService, IDBUsersSirketService dBUsersSirketService, IDBUsersDepartmanService dBUsersDepartmanService, IReportService reportService, IAccessDatasService accessDatasService, IDBUsersAltDepartmanService dBUsersAltDepartmanService, ISirketService sirketService, IDepartmanService departmanService, IAltDepartmanService altDepartmanService)
 {
     _visitorsService            = visitorsService;
     _accessDatasService         = accessDatasService;
     _dBUsersService             = dBUsersService;
     _reportService              = reportService;
     _userService                = userService;
     _groupMasterService         = groupMasterService;
     _taskListService            = taskListService;
     _panelSettingsService       = panelSettingsService;
     _dBUsersPanelsService       = dBUsersPanelsService;
     _dBUsersDepartmanService    = dBUsersDepartmanService;
     _dBUsersSirketService       = dBUsersSirketService;
     _dBUsersAltDepartmanService = dBUsersAltDepartmanService;
     _sirketService              = sirketService;
     _departmanService           = departmanService;
     _altDepartmanService        = altDepartmanService;
     PanelListesi                = new List <int>();
     foreach (var item in _panelSettingsService.GetAllPanelSettings(x => x.Panel_IP1 != null && x.Panel_IP1 != 0 && x.Panel_TCP_Port != 0 && x.Panel_ID != 0))
     {
         PanelListesi.Add((int)item.Panel_ID);
     }
     permissionUser = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi);
 }
Exemplo n.º 5
0
 public OperatorSirketController(IDBUsersSirketService dBUsersSirketService, ISirketService sirketService, IReaderSettingsNewService readerSettingsNewService)
 {
     _dBUsersSirketService     = dBUsersSirketService;
     _sirketService            = sirketService;
     _readerSettingsNewService = readerSettingsNewService;
 }
Exemplo n.º 6
0
 public ReportPersonelController(ISirketService sirketService, IDepartmanService departmanService, IBloklarService bloklarService, IVisitorsService visitorsService, IPanelSettingsService panelSettingsService, IGlobalZoneService globalZoneService, IGroupMasterService groupMasterService, IUserService userService, IReportService reportService, IUsersOLDService usersOLDService, IDBUsersPanelsService dBUsersPanelsService, IDoorNamesService doorNamesService, IDBUsersService dBUsersService, IAltDepartmanService altDepartmanService, IUnvanService unvanService, IBolumService bolumService, ITaskListService taskListService, IAccessDatasService accessDatasService, IBirimService birimService, IReaderSettingsNewService readerSettingsNewService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersAltDepartmanService dBUsersAltDepartmanService, IDBUsersKapiService dBUsersKapiService)
 {
     //user = CurrentSession.User;
     //if (user == null)
     //{
     //    user = new DBUsers();
     //}
     _userService                = userService;
     _sirketService              = sirketService;
     _departmanService           = departmanService;
     _bloklarService             = bloklarService;
     _visitorsService            = visitorsService;
     _panelSettingsService       = panelSettingsService;
     _globalZoneService          = globalZoneService;
     _groupMasterService         = groupMasterService;
     _reportService              = reportService;
     _usersOLDService            = usersOLDService;
     _dBUsersPanelsService       = dBUsersPanelsService;
     _doorNamesService           = doorNamesService;
     _dBUsersService             = dBUsersService;
     _altDepartmanService        = altDepartmanService;
     _unvanService               = unvanService;
     _bolumService               = bolumService;
     _taskListService            = taskListService;
     _accessDatasService         = accessDatasService;
     _birimService               = birimService;
     _dBUsersKapiService         = dBUsersKapiService;
     _readerSettingsNewService   = readerSettingsNewService;
     _dBUsersDepartmanService    = dBUsersDepartmanService;
     _dBUsersSirketService       = dBUsersSirketService;
     _dBUsersAltDepartmanService = dBUsersAltDepartmanService;
     dbDepartmanList             = new List <int>();
     dbPanelList        = new List <int>();
     dbDoorList         = new List <int>();
     dbSirketList       = new List <int>();
     dbAltDepartmanList = new List <int>();
     _reportService.GetPanelList(user == null ? new DBUsers {
     } : user);
     _reportService.GetDoorList(user == null ? new DBUsers {
     } : user);
     _reportService.GetSirketList(user == null ? new DBUsers {
     } : user);
     _reportService.GetDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetAltDepartmanList(user == null ? new DBUsers {
     } : user);
     _reportService.GetBolumList(user == null ? new DBUsers {
     } : user);
     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 dbUserDoorNo in _dBUsersKapiService.GetAllDBUsersKapi(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Kapi_Kayit_No))
     {
         dbDoorList.Add((int)dbUserDoorNo);
     }
     foreach (var dbUserSirketNo in _dBUsersSirketService.GetAllDBUsersSirket(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Sirket_No))
     {
         dbSirketList.Add((int)dbUserSirketNo);
     }
     foreach (var dbUserAltDepartmanNo in _dBUsersAltDepartmanService.GetAllDBUsersAltDepartman(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Alt_Departman_No))
     {
         dbAltDepartmanList.Add((int)dbUserAltDepartmanNo);
     }
 }
Exemplo n.º 7
0
 public SirketController(ISirketService sirketService, IMapper mapper)
 {
     this._mapper        = mapper;
     this._sirketService = sirketService;
 }