public RoleController(IRoleService roleService, IUserManageService userService
                       , IMapper mapper)
 {
     _roleService = roleService;
     _userService = userService;
     _mapper      = mapper;
 }
Esempio n. 2
0
 public PreviewController(ITemplateService templateService, IStorageService storageService, IDataService dataService, ISettingsService settingsService, IUserManageService userManageService)
 {
     _templateService   = templateService;
     _storageService    = storageService;
     _dataService       = dataService;
     _settingsService   = settingsService;
     _userManageService = userManageService;
 }
Esempio n. 3
0
        private void FormLogin_Load(object sender, EventArgs e)
        {
            this.styleManager1.ManagerStyle = eStyle.Office2010Blue;
            UnityContainer            container     = new UnityContainer();
            UnityConfigurationSection configuration = ConfigurationManager.GetSection(UnityConfigurationSection.SectionName) as UnityConfigurationSection;

            configuration.Configure(container, "defaultContainer");
            _userManageService = container.Resolve <IUserManageService>() as UserManageService;
        }
 public UserManageController(IUserManageService userManageService,
                             IBaseService <Department, Guid> baseDeptService,
                             IBaseService <UserRole, Guid> baseURService,
                             [FromServices] IMapper mapper)
 {
     _userManageService = userManageService;
     _baseDeptService   = baseDeptService;
     _baseURService     = baseURService;
     _mapper            = mapper;
 }
Esempio n. 5
0
        public LoginViewModel(ILocalConfiguration localConfiguration, IEventAggregator eventAggregator, IRegionManager regionManager, ILoginUserService loginUserService, IUserManageService userManageService)
        {
            _localConfiguration = localConfiguration;
            _regionManager      = regionManager;
            _eventAggregator    = eventAggregator;
            _loginUserService   = loginUserService;
            _userManageService  = userManageService;

            var server = _localConfiguration.ServerInfoList;

            ServerInfo = new ObservableCollection <ServerInfo>(server);
            _eventAggregator.GetEvent <ServerChangedEvent>().Subscribe(UpdataInfo);
        }
Esempio n. 6
0
        public LoginUserService(ILocalConfiguration localConfiguration, IHardwareService hardwareService, IOrganizationService organizationService, IUserManageService userManageService, ICardProcess cardProcess, ISignalProcess signalProcess, IDatabaseComponent databaseComponent, IEventAggregator eventAggregator, IRegionManager regionManager)
        {
            _localConfiguration  = localConfiguration;
            _hardwareService     = hardwareService;
            _organizationService = organizationService;
            _userManageService   = userManageService;
            _cardProcess         = cardProcess;
            _signalProcess       = signalProcess;
            _databaseComponent   = databaseComponent;
            _eventAggregator     = eventAggregator;
            _regionManager       = regionManager;

            MenuManageList        = new MenuManageList();
            ExceptionModel        = new ObservableCollection <ExceptionModel>();
            CustomSystemException = new ObservableCollection <T1_SystemEvent>();

            _eventAggregator.GetEvent <ThrowExceptionEvent>().Subscribe(ManageException, ThreadOption.UIThread);
        }
Esempio n. 7
0
        public MainRegionViewModel(ILocalConfiguration localConfiguration, IRegionManager regionManager, IEventAggregator eventAggregator, ILoginUserService loginUserService, IUserManageService userManageService, ISignalProcess signalProcess)
        {
            _localConfiguration = localConfiguration;
            _regionManager      = regionManager;
            _eventAggregator    = eventAggregator;
            _loginUserService   = loginUserService;
            _userManageService  = userManageService;
            _signalProcess      = signalProcess;

            ThemeManager.AddAppTheme("BaseGray", new Uri("pack://application:,,,/AIC.Resources;component/Styles/BaseGray.xaml"));

            // create accent color menu items for the demo
            this.AccentColors = ThemeManager.Accents
                                .Select(a => new AccentColorMenuData()
            {
                Name = a.Name, ColorBrush = a.Resources["AccentColorBrush"] as Brush
            })
                                .ToList();


            // create metro theme color menu items for the demo
            this.AppThemes = ThemeManager.AppThemes
                             .Select(a => new AppThemeMenuData()
            {
                Name = a.Name, BorderColorBrush = a.Resources["BlackColorBrush"] as Brush, ColorBrush = a.Resources["WhiteColorBrush"] as Brush
            })
                             .ToList();

            MenuManageList = _loginUserService.MenuManageList;
            ExceptionModel = _loginUserService.ExceptionModel;

            readDataTimer.Tick    += new EventHandler(timeCycle);
            readDataTimer.Interval = new TimeSpan(0, 0, 0, 1);
            readDataTimer.Start();

            WhenPropertyChanged.Where(o => o.ToString() == "Alarm").Subscribe(OnAlarmGradeChanged);

            _eventAggregator.GetEvent <LoginEvent>().Subscribe(LoginFinishEvent);

            getTree();
        }
Esempio n. 8
0
 public AccountController(IUserManageService userManageService, ILoggerFactory loggerFactory)
 {
     _userManageService = userManageService;
     _logger            = loggerFactory.CreateLogger <AccountController>();
 }
Esempio n. 9
0
 public AccountController(IUserManageService userManageService, ILoggerFactory _loggerFactory)
 {
     _userManageService = userManageService;
     _logger            = _loggerFactory.CreateLogger(nameof(AccountController));
 }
 public UserManageController(IUserManageService userManageService)
 {
     this.userManageService = userManageService;
     userDtoValidator       = new UserDtoValidator();
 }
Esempio n. 11
0
 public HomeController(IPrivilegeService pservice, IUserManageService uservice, IDistributedCache cache)
 {
     this._pservice = pservice;
     this._cache    = cache;
     this._uservice = uservice;
 }
Esempio n. 12
0
 public AccountController(IUserManageService userManager, ISignInManageService signInManager)
     : base(userManager, signInManager)
 {
 }
Esempio n. 13
0
 public UserController(IUserManageService service, IAppContextService contextService)
 {
     this._service        = service;
     this._contextService = contextService;
 }
Esempio n. 14
0
 public UserManagerController(IUserManageService userManageService)
 {
     this.userManageService = userManageService;
 }
Esempio n. 15
0
 public UsersController(
     IUserManageService service
     )
 {
     _service = service;
 }
 public UserManageController(IUserManageService userManageService)
 {
     _userManageService = userManageService;
 }
Esempio n. 17
0
 public AuthController(IUserManageService userManager, ISignInManageService signInManager)
 {
     UserManageService   = userManager;
     SignInManageService = signInManager;
 }
Esempio n. 18
0
 public SystemService(IUserManageService uService, IPrivilegeService pService, IRoleService rService)
 {
     this._uService = uService;
     this._pService = pService;
     this._rService = rService;
 }