Esempio n. 1
0
 public frmDeleteUserType(RefreshDelegate refreshDelegate)
 {
     InitializeComponent();
     this.refreshDelegate = refreshDelegate;
     factory         = new ServiceFactory();
     userTypeService = factory.GetUserTypeServiceInstance();
 }
Esempio n. 2
0
 public UserController(IUserService userService, IBranchService branchService, ICountryService countryService, IUserTypeService userTypeService)
 {
     _userService     = userService;
     _branchService   = branchService;
     _countryService  = countryService;
     _userTypeService = userTypeService;
 }
Esempio n. 3
0
 public AccountController(IUserService userService, IUserTypeService userTypeService, UserManager <ApplicationUser> userManager, IHRProPersonnelRecordService ihrpro)
 {
     this.UserManager     = userManager;
     this.userService     = userService;
     this.userTypeService = userTypeService;
     this._HRProPersonnelRecordService = ihrpro;
 }
Esempio n. 4
0
 public RentalAdminController(IRepository <Reservation> reservationRepository, IRepository <ReservationStatus> reservationStatusRepository, IRepository <BoardGame> boardGameRepository)
 {
     this.reservationRepository       = reservationRepository;
     this.reservationStatusRepository = reservationStatusRepository;
     this.boardGameRepository         = boardGameRepository;
     userTypeService = new UserTypeService(this, RedirectToAction("Index", "Home"));
 }
Esempio n. 5
0
 public ColleagueController(IUserService userService, IUserTypeService userTypeService, IPDRService pdrS, UserManager <ApplicationUser> userManager, IHRProPersonnelRecordService ihrpro)
 {
     this._UserService                 = userService;
     this._UserTypeService             = userTypeService;
     this._PDRService                  = pdrS;
     this._UserManager                 = userManager;
     this._HRProPersonnelRecordService = ihrpro;
 }
        public UserTypeController()
        {
            var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver;

            if (kernel != null)
            {
                _userTypeService = kernel.GetService(typeof(UserTypeService)) as UserTypeService;
            }
        }
        //private readonly IServiceFactory _serviceFactory;

        public AccountController(IUserService userService, IUserTypeService userTypeService, IQueryableRepository <User> queryableRepository, IQueryableRepository <vwRP_StockCount> totalRowsRepository, IQueryableRepository <Seller> sellerQueryableRepository
                                 /* , IServiceFactory serviceFactory*/)
        {
            _userService               = userService;
            _userTypeService           = userTypeService;
            _queryableRepository       = queryableRepository;
            _totalRowsRepository       = totalRowsRepository;
            _sellerQueryableRepository = sellerQueryableRepository;
            //_serviceFactory = serviceFactory;
        }
Esempio n. 8
0
 public UserTypeController(IUserService userService, IUserTypeService userTypeService, IPDRConfigService pdrS, IHRProPersonnelRecordService ihrpro, IToDoListService todo, IActivityService actser)
 {
     this._UserService       = userService;
     this._UserTypeService   = userTypeService;
     this._IPDRConfigService = pdrS;
     //this._UserManager = userManager;
     this._HRProPersonnelRecordService = ihrpro;
     this._IToDoListService            = todo;
     this._IActivityService            = actser;
 }
Esempio n. 9
0
 public ProfileController(IUserService userService, IUserTypeService userTypeService, IPDRService pdrS, UserManager <ApplicationUser> userManager, IHRProPersonnelRecordService ihrpro, IToDoListService todo, IActivityService actser)
 {
     this._UserService                 = userService;
     this._UserTypeService             = userTypeService;
     this._PDRService                  = pdrS;
     this._UserManager                 = userManager;
     this._HRProPersonnelRecordService = ihrpro;
     this._IToDoListService            = todo;
     this._IActivityService            = actser;
 }
Esempio n. 10
0
 public BoardGamesCollectionController(IBoardGamesService boardGamesService, IBoardGameFilterService boardGameFilterService, IBoardGameSortService boardGameSortService, IRepository <BoardGameCategory> categoryRepository, IRepository <BoardGameState> stateRepository, IRepository <BoardGamePublisher> publisherRepository)
 {
     this.boardGamesService      = boardGamesService;
     this.boardGameFilterService = boardGameFilterService;
     this.boardGameSortService   = boardGameSortService;
     this.categoryRepository     = categoryRepository;
     this.stateRepository        = stateRepository;
     this.publisherRepository    = publisherRepository;
     this.userTypeService        = new UserTypeService(this, RedirectToAction("Index", "Home"));
 }
Esempio n. 11
0
        public UserInformationForm()
        {
            InitializeComponent();
            IKernel kernel = BootStrapper.Initialize();

            _userInformationService     = kernel.GetService(typeof(UserInformationService)) as UserInformationService;
            _userTypeService            = kernel.GetService(typeof(UserTypeService)) as UserTypeService;
            _employeeInformationService = kernel.GetService(typeof(EmployeeInformationService)) as EmployeeInformationService;
            _roleService = kernel.GetService(typeof(RoleService)) as RoleService;

            _userInformation = new UserInformationModel();
        }
Esempio n. 12
0
        public UserInformationController()
        {
            var kernel = GlobalConfiguration.Configuration.DependencyResolver as NinjectResolver;

            if (kernel != null)
            {
                _userInformationService  = kernel.GetService(typeof(UserInformationService)) as UserInformationService;
                _userTypeService         = kernel.GetService(typeof(UserTypeService)) as UserTypeService;
                _roleService             = kernel.GetService(typeof(RoleService)) as RoleService;
                _employeeCategoryService = kernel.GetService(typeof(EmployeeCategoryService)) as EmployeeCategoryService;
                _employeeService         = kernel.GetService(typeof(EmployeeService)) as EmployeeService;
            }
        }
 public DiscountAdminController(IRepository <DiscountCode> discountCodeRepository, IRepository <BoardGame> boardGameRepository, IRepository <DiscountCodeStatus> discountCodeStatusRepository)
 {
     this.userTypeService              = new UserTypeService(this, RedirectToAction(nameof(Index), "Home"));
     this.discountCodeRepository       = discountCodeRepository;
     this.boardGameRepository          = boardGameRepository;
     this.discountCodeStatusRepository = discountCodeStatusRepository;
     ViewBag.BoardGames = new SelectList(boardGameRepository.GetAll().Select(bg => new SelectListItem {
         Text = bg.Name, Value = bg.BoardGameId.ToString()
     }), "Value", "Text");
     ViewBag.DiscountCodeStatuses = new SelectList(discountCodeStatusRepository.GetAll().Select(dcs => new SelectListItem {
         Text = dcs.Name, Value = dcs.DiscountCodeStatusId.ToString()
     }), "Value", "Text");
 }
Esempio n. 14
0
 public UserService(
     DataContext context,
     IMapper mapper,
     IRoleService roleService,
     IUserTypeService userTypeService,
     IUserContentService userContentService)
 {
     _context            = context;
     _mapper             = mapper;
     _roleService        = roleService;
     _userTypeService    = userTypeService;
     _userContentService = userContentService;
 }
Esempio n. 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SyncGroupMembersActivity"/> class.
 /// </summary>
 /// <param name="sentNotificationDataRepository">Sent notification data repository.</param>
 /// <param name="notificationDataRepository">Notifications data repository.</param>
 /// <param name="groupMembersService">Group members service.</param>
 /// <param name="userDataRepository">User Data repository.</param>
 /// <param name="userTypeService">User Type service.</param>
 /// <param name="localizer">Localization service.</param>
 public SyncGroupMembersActivity(
     ISentNotificationDataRepository sentNotificationDataRepository,
     INotificationDataRepository notificationDataRepository,
     IGroupMembersService groupMembersService,
     IUserDataRepository userDataRepository,
     IUserTypeService userTypeService,
     IStringLocalizer <Strings> localizer)
 {
     this.groupMembersService            = groupMembersService ?? throw new ArgumentNullException(nameof(groupMembersService));
     this.notificationDataRepository     = notificationDataRepository ?? throw new ArgumentNullException(nameof(notificationDataRepository));
     this.sentNotificationDataRepository = sentNotificationDataRepository ?? throw new ArgumentNullException(nameof(sentNotificationDataRepository));
     this.userDataRepository             = userDataRepository ?? throw new ArgumentNullException(nameof(userDataRepository));
     this.userTypeService = userTypeService ?? throw new ArgumentNullException(nameof(userTypeService));
     this.localizer       = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataStreamFacade"/> class.
 /// </summary>
 /// <param name="sentNotificationDataRepository">the sent notification data repository.</param>
 /// <param name="teamDataRepository">the team data repository.</param>
 /// <param name="userDataRepository">the user data repository.</param>
 /// <param name="userTypeService">the user type service.</param>
 /// <param name="usersService">the users service.</param>
 /// <param name="localizer">Localization service.</param>
 public DataStreamFacade(
     ISentNotificationDataRepository sentNotificationDataRepository,
     ITeamDataRepository teamDataRepository,
     IUserDataRepository userDataRepository,
     IUserTypeService userTypeService,
     IUsersService usersService,
     IStringLocalizer <Strings> localizer)
 {
     this.sentNotificationDataRepository = sentNotificationDataRepository ?? throw new ArgumentNullException(nameof(sentNotificationDataRepository));
     this.teamDataRepository             = teamDataRepository ?? throw new ArgumentNullException(nameof(teamDataRepository));
     this.userDataRepository             = userDataRepository ?? throw new ArgumentNullException(nameof(userDataRepository));
     this.userTypeService = userTypeService ?? throw new ArgumentNullException(nameof(userTypeService));
     this.usersService    = usersService ?? throw new ArgumentNullException(nameof(usersService));
     this.localizer       = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
Esempio n. 17
0
 public DelegationViewController(ICatalogService catalogService,
                                 IDelegationService delegationService,
                                 IUserTypeService userTypeService,
                                 IDocumentManagementService documentManagementService,
                                 IAuthorizationManager authorizationManager)
 {
     _catalogService        = catalogService;
     _delegationService     = delegationService;
     _userTypeService       = userTypeService;
     _viewModelMapperHelper =
         new Models.Delegation.ViewModelMapperHelper(ViewBag, _delegationService);
     _authorizeAllViewModelMapperHelper = new ViewModelMapperHelper();
     _documentManagementService         = documentManagementService;
     _authorizationManager = authorizationManager;
 }
Esempio n. 18
0
        private void AddNewUserType()
        {
            UserType userType = new UserType(txtUserTypeId.Text);

            userType.UserTypeName = txtUserTypeName.Text;

            ServiceFactory   factory         = new ServiceFactory();
            IUserTypeService userTypeService = factory.GetUserTypeServiceInstance();

            if (userTypeService.Add(userType) == 1)
            {
                this.refreshDelegate.Invoke();
                MessageBox.Show("Record Added Successfully!");
                this.Close();
            }
        }
Esempio n. 19
0
 public UserService(
     IUserTypeService userTypeService,
     IMembershipService membershipService,
     IRoleService roleService,
     IEventService eventService,
     IJwtService jwtService,
     ICryptographyService cryptographyService,
     IUserRepository repository) : base(repository)
 {
     this._userTypeService     = userTypeService;
     this._membershipService   = membershipService;
     this._roleService         = roleService;
     this._eventService        = eventService;
     this._jwtService          = jwtService;
     this._cryptographyService = cryptographyService;
 }
Esempio n. 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SyncAllUsersActivity"/> class.
 /// </summary>
 /// <param name="userDataRepository">User Data repository.</param>
 /// <param name="sentNotificationDataRepository">Sent notification data repository.</param>
 /// <param name="usersService">Users service.</param>
 /// <param name="notificationDataRepository">Notification data entity repository.</param>
 /// <param name="userTypeService">User type service.</param>
 /// <param name="recipientsService">The recipients service.</param>
 /// <param name="localizer">Localization service.</param>
 public SyncAllUsersActivity(
     IUserDataRepository userDataRepository,
     ISentNotificationDataRepository sentNotificationDataRepository,
     IUsersService usersService,
     INotificationDataRepository notificationDataRepository,
     IUserTypeService userTypeService,
     IRecipientsService recipientsService,
     IStringLocalizer <Strings> localizer)
 {
     this.userDataRepository             = userDataRepository ?? throw new ArgumentNullException(nameof(userDataRepository));
     this.sentNotificationDataRepository = sentNotificationDataRepository ?? throw new ArgumentNullException(nameof(sentNotificationDataRepository));
     this.usersService = usersService ?? throw new ArgumentNullException(nameof(usersService));
     this.notificationDataRepository = notificationDataRepository ?? throw new ArgumentNullException(nameof(notificationDataRepository));
     this.userTypeService            = userTypeService ?? throw new ArgumentNullException(nameof(userTypeService));
     this.recipientsService          = recipientsService ?? throw new ArgumentNullException(nameof(recipientsService));
     this.localizer = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SyncTeamMembersActivity"/> class.
 /// </summary>
 /// <param name="teamDataRepository">Team Data repository.</param>
 /// <param name="memberService">Teams member service.</param>
 /// <param name="notificationDataRepository">Notification data repository.</param>
 /// <param name="sentNotificationDataRepository">Sent notification data repository.</param>
 /// <param name="localizer">Localization service.</param>
 /// <param name="userDataRepository">User Data repository.</param>
 /// <param name="userTypeService">User Type service.</param>
 public SyncTeamMembersActivity(
     ITeamDataRepository teamDataRepository,
     ITeamMembersService memberService,
     INotificationDataRepository notificationDataRepository,
     ISentNotificationDataRepository sentNotificationDataRepository,
     IStringLocalizer <Strings> localizer,
     IUserDataRepository userDataRepository,
     IUserTypeService userTypeService)
 {
     this.teamDataRepository             = teamDataRepository ?? throw new ArgumentNullException(nameof(teamDataRepository));
     this.memberService                  = memberService ?? throw new ArgumentNullException(nameof(memberService));
     this.notificationDataRepository     = notificationDataRepository ?? throw new ArgumentNullException(nameof(notificationDataRepository));
     this.sentNotificationDataRepository = sentNotificationDataRepository ?? throw new ArgumentNullException(nameof(sentNotificationDataRepository));
     this.localizer          = localizer ?? throw new ArgumentNullException(nameof(localizer));
     this.userDataRepository = userDataRepository ?? throw new ArgumentNullException(nameof(userDataRepository));
     this.userTypeService    = userTypeService ?? throw new ArgumentNullException(nameof(userTypeService));
 }
Esempio n. 22
0
        private void InitialMethod()
        {
            factory            = new ServiceFactory();
            accountService     = factory.GetAccountServiceInstance();
            categoryService    = factory.GetCategoryServiceInstance();
            itemService        = factory.GetItemServiceInstance();
            logService         = factory.GetLogServiceInstance();
            membershipServece  = factory.GetMembershipServiceInstance();
            memberTypeService  = factory.GetMemberTypeServiceInstance();
            offerService       = factory.GetOfferServiceInstance();
            transactionService = factory.GetTransactionServiceInstance();
            userTypeService    = factory.GetUserTypeServiceInstance();

            AutoCompleteMethodForAccountName(txtSearchUsername);
            AutoCompleteMethodForItemName(txtSearchItem);
            AutoCompleteMethodForMember(txtMemberSearch);
            AutoCompleteMethodForOffer(txtOfferSearch);
            refreshDelegate = this.RefreshDataGridViewStocks;
            refreshDelegate = this.RefreshDataGridViewAccount;
        }
Esempio n. 23
0
 public UserTypeController(IUserTypeService userType)
 {
     _userType = userType;
 }
Esempio n. 24
0
 public UserTypeController(IUserTypeService userTypeService)
 {
     this.userTypeService = userTypeService;
 }
Esempio n. 25
0
 public UserTypeController(IUserTypeService userTypeService, ILogService logger)
 {
     _userTypeService = userTypeService ?? throw new ArgumentNullException(nameof(userTypeService));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 26
0
 public UserTypeController(IMapper mapper, IUserTypeService userTypeService)
 {
     _mapper          = mapper;
     _userTypeService = userTypeService;
 }
 public ApiAdminController(IUserTypeService userTypeService, IRoleService roleService)
 {
     _userTypeService = userTypeService;
     _roleService     = roleService;
 }
 public BoardGameDetailsOfferController(IRepository <BoardGame> boardGameRepository)
 {
     this.boardGameRepository = boardGameRepository;
     this.userTypeService     = new UserTypeService(this, RedirectToAction("Index", "Home"));
 }
Esempio n. 29
0
 public LoginController(IUserService userService, IUserTypeService userTypeService)
 {
     _userService     = userService;
     _userTypeService = userTypeService;
 }
Esempio n. 30
0
 public CommonController(IUserTypeService userTypeService, IStatusService statusService, ILocationService locationService)
 {
     _userTypeService = userTypeService;
     _statusService   = statusService;
     _locationService = locationService;
 }