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);
 }
Example #2
0
 public RealEstatesController(IRealEstatesService realEstatesService, IPhotosService photosService, IVisitorsService visitorsService,
                              IUsersService usersService, IUsersRolesService rolesService, IRealEstateCreateUtil util)
 {
     this.realEstatesService = realEstatesService;
     this.photosService      = photosService;
     this.visitorsService    = visitorsService;
     this.usersService       = usersService;
     this.rolesService       = rolesService;
     this.util = util;
 }
 public RealEstatesController(IRealEstatesService realEstatesService, IPhotosService photosService, IVisitorsService visitorsService,
     IUsersService usersService, IUsersRolesService rolesService, IRealEstateCreateUtil util)
 {
     this.realEstatesService = realEstatesService;
     this.photosService = photosService;
     this.visitorsService = visitorsService;
     this.usersService = usersService;
     this.rolesService = rolesService;
     this.util = util;
 }
Example #4
0
 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);
 }
Example #5
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);
 }
Example #6
0
 public CardsService(ICardsRepository cardsRepository, IVisitorsService visitorsService)
 {
     _cardsRepository = cardsRepository;
     _visitorsService = visitorsService;
 }
Example #7
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);
     }
 }
Example #8
0
 public AgencyRealEstatesController(IRealEstatesService realEstatesService, IPhotosService photosService, IVisitorsService visitorsService,
                                    IUsersService usersService, IUsersRolesService rolesService, IRealEstateCreateUtil util)
     : base(realEstatesService, photosService, visitorsService, usersService, rolesService, util)
 {
 }
 public VisitorsController(IUsersService usersService, IVisitorsService visitorsService, IRealEstatesService realEstatesService)
 {
     this.usersService = usersService;
     this.visitorsService = visitorsService;
     this.realEstatesService = realEstatesService;
 }
 public AgencyRealEstatesController(IRealEstatesService realEstatesService, IPhotosService photosService, IVisitorsService visitorsService,
     IUsersService usersService, IUsersRolesService rolesService, IRealEstateCreateUtil util)
     : base(realEstatesService, photosService, visitorsService, usersService, rolesService, util)
 {
 }
Example #11
0
 public VisitorsController(IUsersService usersService, IVisitorsService visitorsService, IRealEstatesService realEstatesService)
 {
     this.usersService       = usersService;
     this.visitorsService    = visitorsService;
     this.realEstatesService = realEstatesService;
 }