public OperatorKapiController(IPanelSettingsService panelSettingsService, IReaderSettingsNewService readerSettingsNewService, IDBUsersKapiService dBUsersKapiService, IDBUsersPanelsService dBUsersPanelsService) { _panelSettingsService = panelSettingsService; _readerSettingsNewService = readerSettingsNewService; _dBUsersKapiService = dBUsersKapiService; _dBUsersPanelsService = dBUsersPanelsService; }
public DoorGroupController(IDoorGroupsDetailService doorGroupsDetailService, IDoorGroupsMasterService doorGroupsMasterService, IGroupsDetailNewService groupsDetailNewService, IGroupMasterService groupMasterService, IReaderSettingsNewService readerSettingsNewService, IReportService reportService, IPanelSettingsService panelSettingsService, IDBUsersService dBUsersService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersKapiService dBUsersKapiService) { //dBUsers = CurrentSession.User; //if (dBUsers == null) //{ // dBUsers = new DBUsers(); //} _doorGroupsDetailService = doorGroupsDetailService; _doorGroupsMasterService = doorGroupsMasterService; _groupsDetailNewService = groupsDetailNewService; _groupMasterService = groupMasterService; _readerSettingsNewService = readerSettingsNewService; _reportService = reportService; _panelSettingsService = panelSettingsService; _dBUsersService = dBUsersService; _dBUsersPanelsService = dBUsersPanelsService; _dBUsersKapiService = dBUsersKapiService; dbPanelList = new List <int>(); dbDoorList = new List <int>(); foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == dBUsers.Kullanici_Adi).Select(a => a.Panel_No)) { dbPanelList.Add((int)dbUserPanelNo); } foreach (var dbUserDoorNo in _dBUsersKapiService.GetAllDBUsersKapi(x => x.Kullanici_Adi == dBUsers.Kullanici_Adi).Select(a => a.Kapi_Kayit_No)) { dbDoorList.Add((int)dbUserDoorNo); } permissionUser = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == dBUsers.Kullanici_Adi); }
public AccessReceiveController(IProgInitService progInitService, ITaskListService taskListService, IPanelSettingsService panelSettingsService, IDBUsersService dBUsersService, IReportService reportService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersPanelsService dBUsersPanelsService) { user = CurrentSession.User; if (user == null) { user = new DBUsers(); } _progInitService = progInitService; _taskListService = taskListService; _panelSettingsService = panelSettingsService; _dBUsersService = dBUsersService; _reportService = reportService; _dBUsersPanelsService = dBUsersPanelsService; _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); }
public AlarmController(IAlarmlarService alarmlarService, IAlarmTipleriService alarmTipleriService, IUserService userService, IPanelSettingsService panelSettingsService, ITaskListService taskListService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersService dBUsers, IReportService reportService, IAccessDatasService accessDatasService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersAltDepartmanService dBUsersAltDepartmanService, IReaderSettingsNewService readerSettingsNewService, IDBUsersKapiService dBUsersKapiService, IAccessDatasTempService accessDatasTempService) { //user = CurrentSession.User; //if (user == null) //{ // user = new DBUsers(); //} _alarmlarService = alarmlarService; _alarmTipleriService = alarmTipleriService; _userService = userService; _panelSettingsService = panelSettingsService; _taskListService = taskListService; _dBUsers = dBUsers; _reportService = reportService; _accessDatasService = accessDatasService; _dBUsersPanelsService = dBUsersPanelsService; _dBUsersDepartmanService = dBUsersDepartmanService; _dBUsersSirketService = dBUsersSirketService; _dBUsersAltDepartmanService = dBUsersAltDepartmanService; _readerSettingsNewService = readerSettingsNewService; _dBUsersKapiService = dBUsersKapiService; _accessDatasTempService = accessDatasTempService; dbDepartmanList = new List <int>(); dbPanelList = new List <int>(); dbDoorList = 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 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); } _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 = _dBUsers.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi); }
public TreeViewController(IDepartmanService departmanService, IAltDepartmanService altDepartmanService, IBolumService bolumService, IPanelSettingsService panelSettingsService, IReaderSettingsNewService readerSettingsNewService) { _departmanService = departmanService; _altDepartmanService = altDepartmanService; _bolumService = bolumService; _panelSettingsService = panelSettingsService; _readerSettingsNewService = readerSettingsNewService; }
public InsideOutReportController(IVisitorsService visitorsService, IPanelSettingsService panelSettingsService, IGlobalZoneService globalZoneService, IReportService reportService, IReaderSettingsService readerSettingsService, IDBUsersPanelsService dBUsersPanelsService, IReaderSettingsNewService readerSettingsNewService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersAltDepartmanService dBUsersAltDepartmanService, IDBUsersKapiService dBUsersKapiService) { //user = CurrentSession.User; //if (user == null) //{ // user = new DBUsers(); //} _dBUsersPanelsService = dBUsersPanelsService; _visitorsService = visitorsService; _panelSettingsService = panelSettingsService; _globalZoneService = globalZoneService; _reportService = reportService; _readerSettingsService = readerSettingsService; _readerSettingsNewService = readerSettingsNewService; _dBUsersDepartmanService = dBUsersDepartmanService; _dBUsersSirketService = dBUsersSirketService; _dBUsersAltDepartmanService = dBUsersAltDepartmanService; _dBUsersKapiService = dBUsersKapiService; kullaniciyaAitPaneller = _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No).ToList(); dbDepartmanList = new List <int>(); dbPanelList = new List <int>(); dbDoorList = 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 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); } _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); }
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); }
public VisitorController(IVisitorsService visitorsService, IUserService userService, IGroupMasterService groupMasterService, ITaskListService taskListService, IPanelSettingsService panelSettingsService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersService dBUsersService, IDBUsersSirketService dBUsersSirketService, IDBUsersDepartmanService dBUsersDepartmanService, IReportService reportService, IAccessDatasService accessDatasService, IDBUsersAltDepartmanService dBUsersAltDepartmanService) { //user = CurrentSession.User; //if (user == null) //{ // user = new DBUsers(); //} _visitorsService = visitorsService; _userService = userService; _groupMasterService = groupMasterService; _taskListService = taskListService; _panelSettingsService = panelSettingsService; _dBUsersPanelsService = dBUsersPanelsService; _dBUsersService = dBUsersService; _dBUsersDepartmanService = dBUsersDepartmanService; _dBUsersSirketService = dBUsersSirketService; _reportService = reportService; _accessDatasService = accessDatasService; _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); }
public OutherReportController(IAccessDatasService accessDatasService, IPanelSettingsService panelSettingsService, IReportService reportService, IDBUsersPanelsService dBUsersPanelsService, IDoorNamesService doorNamesService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersKapiService dBUsersKapiService, IReaderSettingsNewService readerSettingsNewService) { //user = CurrentSession.User; //if (user == null) //{ // user = new DBUsers(); //} _accessDatasService = accessDatasService; _panelSettingsService = panelSettingsService; _reportService = reportService; _dBUsersPanelsService = dBUsersPanelsService; _doorNamesService = doorNamesService; _dBUsersKapiService = dBUsersKapiService; _readerSettingsNewService = readerSettingsNewService; kullaniciyaAitPaneller = _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No).ToList(); _dBUsersDepartmanService = dBUsersDepartmanService; _dBUsersSirketService = dBUsersSirketService; dbDepartmanList = new List <int>(); dbPanelList = new List <int>(); dbDoorList = 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 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); } _reportService.GetPanelList(user == null ? new DBUsers { } : user); //Account olan kullanıcının panel listeleme metoduna kullanıcı gönderiliyor _reportService.GetDoorList(user == null ? new DBUsers { } : user); //Account olan kullanıcının kapı listeleme metoduna kullanıcı gönderiliyor _reportService.GetSirketList(user == null ? new DBUsers { } : user); //Account olan kullanıcının şirket listeleme metoduna kullanıcı gönderiliyor _reportService.GetDepartmanList(user == null ? new DBUsers { } : user); //Account olan kullanıcının departman listeleme metoduna kullanıcı gönderiliyor _reportService.GetAltDepartmanList(user == null ? new DBUsers { } : user); //Account olan kullanıcının alt departman listeleme metoduna kullanıcı gönderiliyor _reportService.GetBolumList(user == null ? new DBUsers { } : user); //Account olan kullanıcının bolum listeleme metoduna kullanıcı gönderiliyor }
public LiftController(IFloorNamesService floorNamesService, ILiftGroupsService liftGroupsService, ITaskListService taskListService, IPanelSettingsService panelSettingsService, IDBUsersPanelsService dBUsersPanelsService, IDBUsersService dBUsersService, IReportService reportService, IAccessDatasService accessDatasService) { //user = CurrentSession.User; //if (user == null) //{ // user = new DBUsers(); //} _floorNamesService = floorNamesService; _liftGroupsService = liftGroupsService; _taskListService = taskListService; _panelSettingsService = panelSettingsService; _dBUsersPanelsService = dBUsersPanelsService; _dBUsersService = dBUsersService; _reportService = reportService; _accessDatasService = accessDatasService; permissionUser = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi); }
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); }
public SpotMonitorController(IReportService reportService, IPanelSettingsService panelSettingsService, IReaderSettingsNewService readerSettingsNewService, IAccessDatasService accessDatasService, IDBUsersService dBUsersService, IDBUsersKapiService dBUsersKapiService) { dBUsers = CurrentSession.User; if (dBUsers == null) { dBUsers = new DBUsers(); } _reportService = reportService; _panelSettingsService = panelSettingsService; _readerSettingsNewService = readerSettingsNewService; _accessDatasService = accessDatasService; _dBUsersService = dBUsersService; _dBUsersKapiService = dBUsersKapiService; _reportService.GetPanelAndDoorListForSpotMonitor(dBUsers == null ? new DBUsers { } : dBUsers); permissionUser = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == dBUsers.Kullanici_Adi); }
public TaskController(ITaskListService taskListService, IPanelSettingsService panelSettingsService, IStatusCodesService statusCodesService, IDBUsersPanelsService dBUsersPanelsService, ITaskCodeService taskCodeService, IReportService reportService) { user = CurrentSession.User; if (user == null) { user = new DBUsers(); } _taskListService = taskListService; _panelSettingsService = panelSettingsService; _statusCodesService = statusCodesService; _dBUsersPanelsService = dBUsersPanelsService; _taskCodeService = taskCodeService; _reportService = reportService; dbPanelList = new List <int>(); foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No)) { dbPanelList.Add((int)dbUserPanelNo); } }
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(); }
public PanelController(IPanelSettingsService panelSettingsService, IReaderSettingsNewService readerSettingsNewService, IDBUsersPanelsService dBUsersPanelsService, IReportService reportService, IAccessDatasService accessDatasService, ITaskListService taskListService, IReaderSettingsNewMSService readerSettingsNewMSService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersKapiService dBUsersKapiService) { //user = CurrentSession.User; //if (user == null) //{ // user = new DBUsers(); //} _panelSettingsService = panelSettingsService; _readerSettingsNewService = readerSettingsNewService; _dBUsersPanelsService = dBUsersPanelsService; _reportService = reportService; _accessDatasService = accessDatasService; _taskListService = taskListService; _readerSettingsNewMSService = readerSettingsNewMSService; _dBUsersDepartmanService = dBUsersDepartmanService; _dBUsersSirketService = dBUsersSirketService; _dBUsersKapiService = dBUsersKapiService; dbDepartmanList = new List <int>(); dbPanelList = new List <int>(); dbDoorList = 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 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); } ; }
public WatchScreenController(IReportService reportService, IDBUsersService dBUsersService, IAccessDatasService accessDatasService, IProgInitService progInitService, IPanelSettingsService panelSettingsService, IDBUsersPanelsService dBUsersPanelsService) { //user = CurrentSession.User; //if (user == null) //{ // user = new DBUsers(); //} WtchPrmtrs = CurrentSession.Get <WatchParameters>("WatchParameter"); if (WtchPrmtrs == null) { WtchPrmtrs = new WatchParameters(); } dbPanelList = new List <int>(); _reportService = reportService; _dBUsersService = dBUsersService; _accessDatasService = accessDatasService; _progInitService = progInitService; _panelSettingsService = panelSettingsService; _dBUsersPanelsService = dBUsersPanelsService; _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); _reportService.GetPanelAndDoorListForSpotMonitor(user == null ? new DBUsers { } : user); foreach (var dbUserPanelNo in _dBUsersPanelsService.GetAllDBUsersPanels(x => x.Kullanici_Adi == user.Kullanici_Adi).Select(a => a.Panel_No)) { dbPanelList.Add((int)dbUserPanelNo); } permissionUser = _dBUsersService.GetAllDBUsers().Find(x => x.Kullanici_Adi == user.Kullanici_Adi); }
public CameraSettingsController(ICamerasService camerasService, ICameraTypesService cameraTypesService, IPanelSettingsService panelSettingsService, IAccessDatasService accessDatasService, IProgInitService progInitService, IDBUsersDepartmanService dBUsersDepartmanService, IDBUsersSirketService dBUsersSirketService, IDBUsersPanelsService dBUsersPanelsService, IReaderSettingsNewService readerSettingsNewService, IDBUsersKapiService dBUsersKapiService) { user = CurrentSession.User; if (user == null) { user = new DBUsers(); } _camerasService = camerasService; _cameraTypesService = cameraTypesService; _panelSettingsService = panelSettingsService; _accessDatasService = accessDatasService; _progInitService = progInitService; _dBUsersPanelsService = dBUsersPanelsService; _dBUsersDepartmanService = dBUsersDepartmanService; _dBUsersSirketService = dBUsersSirketService; _readerSettingsNewService = readerSettingsNewService; _dBUsersKapiService = dBUsersKapiService; dbDepartmanList = new List <int>(); dbPanelList = new List <int>(); dbDoorList = 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 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); } }
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); }
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); } }