public EmployeesController( IApplicationUserService userService, ICompaniesService companiesService, ISectionsService sectionsService, ITeamsService teamService, UserManager <ApplicationUser> userManager) { this.userService = userService; this.companiesService = companiesService; this.sectionsService = sectionsService; this.teamService = teamService; this.userManager = userManager; }
/// <summary> /// 用户管理 /// </summary> /// <param name="env"></param> /// <param name="usersService"></param> /// <param name="currentUserService"></param> /// <param name="userServiceDetail"></param> /// <param name="companiesService"></param> /// <param name="applyService"></param> /// <param name="authService"></param> /// <param name="companyManagerServices"></param> /// <param name="userActionServices"></param> /// <param name="context"></param> public UsersController(IWebHostEnvironment env, IUsersService usersService, ICurrentUserService currentUserService, IUserServiceDetail userServiceDetail, ICompaniesService companiesService, IApplyVacationService applyService, IGoogleAuthService authService, ICompanyManagerServices companyManagerServices, IUserActionServices userActionServices, ApplicationDbContext context) { this.env = env; this.usersService = usersService; this.currentUserService = currentUserService; this.userServiceDetail = userServiceDetail; this.companiesService = companiesService; this.applyService = applyService; this.authService = authService; this.companyManagerServices = companyManagerServices; this.userActionServices = userActionServices; this.context = context; }
public HomeController( ICompaniesService companiesService, ICommentsService commentsService, IRatingsService ratingsService, ISubscribesService subscribesService, ILogger <HomeController> logger) { this.companiesService = companiesService; this.commentsService = commentsService; this.ratingsService = ratingsService; this.subscribesService = subscribesService; this.logger = logger; }
public CompaniesController( UserManager <ApplicationUser> userManager, ICompaniesService companiesService, ICategoriesService categoriesService, Cloudinary cloudinary, IRatingsService ratingsService) { this.userManager = userManager; this.companiesService = companiesService; this.categoriesService = categoriesService; this.cloudinary = cloudinary; this.ratingsService = ratingsService; }
public CompaniesControllerTests() { this.optionsBuilder = new DbContextOptionsBuilder <ApplicationDbContext>() .UseInMemoryDatabase("companiesDatabase"); this.db = new ApplicationDbContext(this.optionsBuilder.Options); this.repo = new EfDeletableEntityRepository <Company>(this.db); this.companiesService = new CompaniesService(this.repo); this.tradesService = new TradesService(this.db, this.companiesService); this.httpContext = new DefaultHttpContext(); this.tempData = new TempDataDictionary(this.httpContext, Mock.Of <ITempDataProvider>()); this.controller = new CompaniesController(this.companiesService); this.controller.TempData = this.tempData; }
/// <summary> /// /// </summary> /// <param name="env"></param> /// <param name="verifyService"></param> /// <param name="vacationCheckServices"></param> /// <param name="context"></param> /// <param name="applyService"></param> /// <param name="currentUserService"></param> /// <param name="usersService"></param> /// <param name="companiesService"></param> /// <param name="httpContext"></param> /// <param name="fileServices"></param> public StaticController(IWebHostEnvironment env, IVerifyService verifyService, IVacationCheckServices vacationCheckServices, ApplicationDbContext context, IApplyVacationService applyService, ICurrentUserService currentUserService, IUsersService usersService, ICompaniesService companiesService, IHttpContextAccessor httpContext, IFileServices fileServices) { this.env = env; _verifyService = verifyService; _vacationCheckServices = vacationCheckServices; _context = context; _applyService = applyService; _currentUserService = currentUserService; _usersService = usersService; _companiesService = companiesService; _httpContext = httpContext; _fileServices = fileServices; }
public SepetimController(IMenusService menuservice, ICommentService commentservice, IMenuNamesService menunameservice, ICategoryService categoryservice, IProductService productservice, INeighborhoodService neighborhoodservice, ICompaniesService companieservice, ICountyService countyservice, ISliderService sliderService, ICityService cityservice) { this._sliderService = sliderService; this._cityservice = cityservice; this._countyservice = countyservice; this._companieservice = companieservice; this._neighborhoodservice = neighborhoodservice; this._productservice = productservice; this._categoryservice = categoryservice; this._menunameservice = menunameservice; this._commentservice = commentservice; this._menuservice = menuservice; _cacheProvider = new CacheProvider(); }
public RegisterModel( UserManager <User> userManager, SignInManager <User> signInManager, ILogger <RegisterModel> logger, IBranchesService branchService, ICompaniesService companyService ) : base(branchService, companyService) { _userManager = userManager; _signInManager = signInManager; _logger = logger; }
public DashboardController( ISettingsService settingsService, ICompaniesService companiesService, ICategoriesService categoriesService, ICommentsService commentsService, ISubscribesService subscribesService, IDeletableEntityRepository <ApplicationUser> usersRepository) { this.settingsService = settingsService; this.categoriesService = categoriesService; this.commentsService = commentsService; this.subscribesService = subscribesService; this.companiesService = companiesService; this.usersRepository = usersRepository; }
public RegisterModel( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ILogger <RegisterModel> logger, IEmailSender emailSender, ICompaniesService companiesService, IUsersService usersService) { this.userManager = userManager; this.signInManager = signInManager; this.logger = logger; this.emailSender = emailSender; this.companiesService = companiesService; this.usersService = usersService; }
/// <summary> /// /// </summary> /// <param name="usersService"></param> /// <param name="currentUserService"></param> /// <param name="applyService"></param> /// <param name="applyInDayService"></param> /// <param name="applyServiceCreate"></param> /// <param name="vacationCheckServices"></param> /// <param name="context"></param> /// <param name="companiesService"></param> /// <param name="verifyService"></param> /// <param name="authService"></param> /// <param name="recallOrderServices"></param> /// <param name="userActionServices"></param> /// <param name="dataDictionariesServices"></param> public ApplyController(IUsersService usersService, ICurrentUserService currentUserService, IApplyVacationService applyService, IApplyInDayService applyInDayService, IApplyServiceCreate applyServiceCreate, IVacationCheckServices vacationCheckServices, ApplicationDbContext context, ICompaniesService companiesService, IVerifyService verifyService, IGoogleAuthService authService, IRecallOrderServices recallOrderServices, IUserActionServices userActionServices, IDataDictionariesServices dataDictionariesServices) { this.usersService = usersService; this.currentUserService = currentUserService; this.applyService = applyService; this.applyInDayService = applyInDayService; this.applyServiceCreate = applyServiceCreate; this.context = context; this.companiesService = companiesService; this.verifyService = verifyService; this.authService = authService; this.recallOrderServices = recallOrderServices; this.userActionServices = userActionServices; this.dataDictionariesServices = dataDictionariesServices; }
public UsersController(IUsersService usersService, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, CarDbContext dbContext, IBranchesService brancService, ICompaniesService employerService, IMapper mapper) { this.usersService = usersService; this.userManager = userManager; this.roleManager = roleManager; this.brancService = brancService; this.employerService = employerService; this.dbContext = dbContext; }
public PharmacyDetailsController( IWebHostEnvironment hostEnvironment, INumbersChecker numbersChecker, IPharmaciesService pharmaciesService, ICompaniesService companiesService, IPharmacyChainsService pharmacyChainsService, IRegionsService regionsService, ICitiesService citiesService) { this.hostEnvironment = hostEnvironment; this.numbersChecker = numbersChecker; this.pharmaciesService = pharmaciesService; this.companiesService = companiesService; this.pharmacyChainsService = pharmacyChainsService; this.regionsService = regionsService; this.citiesService = citiesService; }
/// <summary> /// Initializes a new instance of the <see cref="AgileCrm" /> class. /// </summary> /// <param name="companiesService">The companies service.</param> /// <param name="contactsService">The contacts service.</param> /// <param name="dealsService">The deals service.</param> /// <param name="notesService">The notes service.</param> /// <param name="tasksService">The tasks service.</param> internal AgileCrm( ICompaniesService companiesService, IContactsService contactsService, IDealsService dealsService, INotesService notesService, ITasksService tasksService) { companiesService.EnsureNotNull(); contactsService.EnsureNotNull(); dealsService.EnsureNotNull(); notesService.EnsureNotNull(); tasksService.EnsureNotNull(); this.companiesService = companiesService; this.contactsService = contactsService; this.dealsService = dealsService; this.notesService = notesService; this.tasksService = tasksService; }
public RegisterModel( UserManager <SteuUser> userManager, SignInManager <SteuUser> signInManager, RoleManager <SteuRole> roleManager, ILogger <RegisterModel> logger, IEmailSender emailSender, ICompaniesService companiesService, IUsersService usersService, ICloudinaryService cloudinaryService) { _userManager = userManager; _signInManager = signInManager; _roleManager = roleManager; _logger = logger; _emailSender = emailSender; _companiesService = companiesService; this.usersService = usersService; this.cloudinaryService = cloudinaryService; }
public static CompanyDto ToDto(this Company company, ICompaniesService companiesService = null) { if (company == null) { return(null); } var b = new CompanyDto() { Managers = companiesService?.GetCompanyManagers(company.Code, null).Select(u => u.ToSummaryDto()), Code = company.Code, Name = company.Name, Description = company.Description, CompanyStatus = company.CompanyStatus, Location = company.Location, Tags = (company.Tag?.Length ?? 0) == 0 ? Array.Empty <string>() : company.Tag.Split("##") }; return(b); }
public AddAccountViewModel(ICompaniesService companiesService, ITypesService typesService, IAccountsMainService accountsService, IRegionManager regionManager) { _regionManager = regionManager; _companiesService = companiesService; _typesService = typesService; _accountsService = accountsService; ConfirmationRequest = new InteractionRequest<IConfirmation>(); AdditionalInfoConfirmationRequest = new InteractionRequest<IConfirmation>(); _worker = new BackgroundWorker(); _worker.DoWork += DoWork; LoadAllCommand = new DelegateCommand(() => { if (!_worker.IsBusy) _worker.RunWorkerAsync(); }); SaveAccountCommand = new DelegateCommand(SaveCommand, CanSave).ObservesProperty(() => Account); //Account = new AccountsMainSet(); //Account.AccountYear = DateTime.Now.Year; //Account.AccountDate = DateTime.Now; }
public AddAccountViewModel(ICompaniesService companiesService, ITypesService typesService, IAccountsMainService accountsService, IRegionManager regionManager) { _regionManager = regionManager; _companiesService = companiesService; _typesService = typesService; _accountsService = accountsService; ConfirmationRequest = new InteractionRequest <IConfirmation>(); AdditionalInfoConfirmationRequest = new InteractionRequest <IConfirmation>(); _worker = new BackgroundWorker(); _worker.DoWork += DoWork; LoadAllCommand = new DelegateCommand(() => { if (!_worker.IsBusy) { _worker.RunWorkerAsync(); } }); SaveAccountCommand = new DelegateCommand(SaveCommand, CanSave).ObservesProperty(() => Account); //Account = new AccountsMainSet(); //Account.AccountYear = DateTime.Now.Year; //Account.AccountDate = DateTime.Now; }
public CompanyController(ICompaniesService companiesService) { _companiesService = companiesService; }
public CompaniesController(ICompaniesService companiesService) { this.companiesService = companiesService; }
public EmployeesController(ICompaniesService companiesService, IOfficesService officesService, IEmployeesService employeesService) { this.companiesService = companiesService; this.officesService = officesService; this.employeesService = employeesService; }
public CompanyListViewModelBuilder(ICompaniesService service) { _service = service; }
public CompaniesController(ICompaniesService dashboardService, ILogger <CompaniesController> logger, IStringLocalizer <CompaniesController> localizer) { _dashboardService = dashboardService; _logger = logger; _localizer = localizer; }
public CompaniesController( ICompaniesService service) { _service = service; }
public CompaniesController(ICompaniesService companiesService, IMapper mapper) { _companiesService = companiesService; _mapper = mapper; }
public JobsController(IJobsService jobsService, ICategoriesService categoriesService, IHireTypesService hiretypesService, ITwitterService twitterService, LegacyApiClient apiClient, IConfiguration configuration, ICompaniesService companiesService, ISlackService slackService) { _jobsService = jobsService; _categoriesService = categoriesService; _hiretypesService = hiretypesService; _twitterService = twitterService; _apiClient = apiClient; _configuration = configuration; _companiesService = companiesService; _slackService = slackService; }
public OfficesController(ICompaniesService companiesService, IOfficesService officesService) { this.companiesService = companiesService; this.officesService = officesService; }
public CompaniesController(ICompaniesService companiesService, IJobsService jobsService) { _companiesService = companiesService; _jobService = jobsService; }
/// <summary> /// /// </summary> /// <param name="applyAuditStreamServices"></param> /// <param name="context"></param> /// <param name="googleAuthService"></param> /// <param name="usersService"></param> /// <param name="currentUserService"></param> /// <param name="userActionServices"></param> /// <param name="companiesService"></param> public ApplyAuditStreamController(IApplyAuditStreamServices applyAuditStreamServices, ApplicationDbContext context, IGoogleAuthService googleAuthService, IUsersService usersService, ICurrentUserService currentUserService, IUserActionServices userActionServices, ICompaniesService companiesService) { this.applyAuditStreamServices = applyAuditStreamServices; this.context = context; this.googleAuthService = googleAuthService; this.usersService = usersService; this.currentUserService = currentUserService; this.userActionServices = userActionServices; this.companiesService = companiesService; }
public CompaniesController(ICompaniesService companiesService) { _companiesService = companiesService; }
public AddFullAccountViewModel(ICompaniesService companiesService, ITypesService typesService, IAccountsMainService accountsService, IAccountStatusService accountStatusService, IAccountStoresService accountStoresService, IStoresService storesService, IAccountCapexesService accountCapexService, IExpensesService expenseService, ICapexesService capexService, IStoresWorkService storesWorkService, IAccountFAService accountFAService, IFAService faService) { #region account SaveAccountCommand = new DelegateCommand(SaveAccount, CanSave).ObservesProperty(() => Account); #endregion account #region workers _worker = new BackgroundWorker(); _worker.DoWork += LoadAccount; _addStoresWorker = new BackgroundWorker(); _addStoresWorker.DoWork += LoadAddStoresToAccount; _addStoresWorker.RunWorkerCompleted += LoadAddStoresToAccount_Completed; #endregion workers #region capexes OpenAddCapexToAccountCommand = new DelegateCommand(OpenAddCapexToAccount); CloseAddCapexToAccountCommand = new DelegateCommand(CloseAddCapexToAccount); CopyAvailableSumCommand = new DelegateCommand(CopyAvailableSum); AddCapexToAccountCommand = new DelegateCommand(AddCapexToAccount, CanAddCapex).ObservesProperty(() => NewCapexForAccount); DeleteCapexAccountCommand = new DelegateCommand(DeleteCapex); #endregion capexes #region services _companiesService = companiesService; _typesService = typesService; _accountsService = accountsService; _accountStatusService = accountStatusService; _accountStoresService = accountStoresService; _storesService = storesService; _accountCapexService = accountCapexService; _expenseService = expenseService; _capexService = capexService; _storesWorkService = storesWorkService; _accountFAService = accountFAService; _faService = faService; #endregion services #region statuses IsChangeStatusOpen = false; StatusesList = Statuses.GetStatusesList(); CancelNewStatusCommand = new DelegateCommand(CancelNew); ChangeStatusCommand = new DelegateCommand(ChangeStatus); SaveNewStatusCommand = new DelegateCommand(SaveNew, CanSaveNew); #endregion statuses #region stores EditAccountStoresListCommand = new DelegateCommand(EditAccountStoresList, CanEdit); DeleteAccountStoreCommand = new DelegateCommand(DeleteAccountStore); AddStoresToAccountCommand = new DelegateCommand(() => _addStoresWorker.RunWorkerAsync(), CheckStoreErrors).ObservesProperty(() => StoresForLoad); CloseAddStoresToAccountCommand = new DelegateCommand(CloseAddStores); IsEditAccountStoresOpen = false; #endregion stores #region FA AddFAOpen = false; AddFACommand = new DelegateCommand(AddFA); AddFAToAccountCommand = new DelegateCommand(AddFAToAccount, CanAddFA).ObservesProperty(() => NewFA); CloseFACommand = new DelegateCommand(CloseFA); #endregion FA }
public static ApplyAuditStreamNodeActionVDto ToNodeVDtoModel(this ApplyAuditStreamNodeActionDto model, IUsersService userServices, ICompaniesService companiesService, ApplyAuditStreamNodeActionVDto raw = null) { if (model == null) { return(null); } if (raw == null) { raw = new ApplyAuditStreamNodeActionVDto(); } raw.Id = model.Id; raw.AuditMembers = model.AuditMembers?.Select(m => userServices.GetById(m)?.ToSummaryDto()); raw.AuditMembersCount = model.AuditMembersCount; raw.Companies = model.Companies?.Select(c => companiesService.GetById(c)?.ToDto()); raw.CompanyCodeLength = model.CompanyCodeLength; raw.CompanyRefer = model.CompanyRefer; raw.CompanyTags = model.CompanyTags; raw.Create = model.Create; raw.Description = model.Description; raw.Duties = model.Duties?.Select(d => companiesService.GetDuties(d)?.ToDto()); raw.DutyIsMajor = model.DutyIsMajor; raw.DutyTags = model.DutyTags; raw.Name = model.Name; raw.RegionOnCompany = model.CompanyRegion; return(raw); }
public CompaniesController(ICompaniesService companiesService, IEntitiesService entitiesService) { _companiesService = companiesService; _entitiesService = entitiesService; }