public RoleService( IUnitOfWork unitOfWork, ICacheManager cacheManager, IDeptService deptService) { _unitOfWork = unitOfWork; _cacheManager = cacheManager; _deptService = deptService; }
public DeptController( IWorkContextAccessor workContextAccessor, IDeptService deptService, IMapper mapper) : base(workContextAccessor) { _deptService = deptService; _mapper = mapper; }
public UserBaseController(IUserRoleService iService, IRoleService rService, IUserDetailService aService, IUserBaseService uService, ICompanyService cService, IDeptService dService) { userDetailService = aService; userBaseService = uService; companyService = cService; deptService = dService; roleService = rService; userRoleIndexService = iService; }
public MainPageViewModel(IDeptService deptService, NavigationService navigation) { this._deptService = deptService; LoadDepts(); ItemClickCommand = new RelayCommand<object>((e) => { var parameter = e as Dept; navigation.Navigate<Views.ProgressPage>(parameter.DepartmentID); }); }
public DeptController ( DataContext context, IMapper mapper, IDeptService dService ) { _context = context; _mapper = mapper; _dService = dService; }
static ViewModelLocator() { ServiceLocator.Default.RegisterSingleton<IMenusService, MenusService>(); menusService = ServiceLocator.Default.Resolve<IMenusService>(); ServiceLocator.Default.RegisterSingleton<IDeptService, DeptService>(); deptService = ServiceLocator.Default.Resolve<IDeptService>(); ServiceLocator.Default.RegisterSingleton<IQueryService, QueryService>(); queryService = ServiceLocator.Default.Resolve<IQueryService>(); }
public UserService( IUnitOfWork unitOfWork, IOptions <JwtOptions> jwtOptions, ICacheManager cacheManager, IDeptService deptService, IRoleService roleService) { _unitOfWork = unitOfWork; _jwtConfig = jwtOptions.Value; _cacheManager = cacheManager; _deptService = deptService; _roleService = roleService; }
/// <summary> /// 根据接收者类型,来获取角色用户树的数据 /// </summary> /// <param name="roleIDs">角色ID</param> /// <param name="curUserID">当前用户ID</param> /// <param name="receiverType">接收者类型</param> /// <returns>用户列表</returns> public IList <User> GetUserListByRoleReceiverType(string[] roleIDs, string curUserID, int receiverType) { IList <User> userList = null; using (var session = SessionFactory.CreateSession()) { if (receiverType == 0) { //直接根据角色查询 var rum = new RoleUserManager(); userList = rum.GetUserListByRoles(roleIDs, session); } else { //根据用户级别关系查询 // 上司:1, 同事:2, 下属:3 IDeptService deptService = DeptServiceFactory.CreateDeptService(); userList = deptService.GetUserListByDeptRank(roleIDs, curUserID, receiverType); } } return(userList); }
public AdminDeptController(IDeptService _deptService) { this._deptService = _deptService; }
public DeptsController(IDeptService service) { _service = service; }
public override void MyTestInitialize() { _userInfoService = DependencyResolver.Resolver<IUserInfoService>(); _departmentService = DependencyResolver.Resolver<IDeptService>(); _categoryService = DependencyResolver.Resolver<ICategoryService>(); _categoryItemService = DependencyResolver.Resolver<ICategoryItemService>(); _operatorUser = _userInfoService.FindByUserName(this._loginName); _staff = _userInfoService.FindStaffById(1); _customerService = DependencyResolver.Resolver<ICustomerService>(); base.MyTestInitialize(); }
public SysUserController(IUserService userService, IRoleService roleService, IDeptService deptService) { this._userService = userService; this._roleService = roleService; this._deptService = deptService; }
public UserService(IUserRepository userRepository, IDeptService deptService) { _userRepository = userRepository; _deptService = deptService; }
public DeptsController(ApplicationDbContext context, IDeptService deptService) { _context = context; _deptService = deptService; }
public DeptController(IDeptService dService, ICompanyService cService) { deptService = dService; companyService = cService; }
/// <summary> /// 构造方法 /// </summary> /// <param name="deptService"></param> public DeptController(IDeptService deptService) { _deptService = deptService; }
public SysDeptController(IDeptService deptService) { this._deptService = deptService; }