Ejemplo n.º 1
0
        public AccountController(
            UserManager <ApplicationUser> userManager,
            SignInManager <ApplicationUser> signInManager,
            IMailSenderService mailSender,
            ViewRender view,
            IIdentityServerInteractionService interaction,
            ISmsSender smsSender,
            ILoggerFactory loggerFactory,
            IOptions <HostConfiguration> hostConfiguration,
            ConfigHelper config,
            ICandidateInfoService candidate,
            MailingHelper mailingHelper,
            IUserProfileService profile,
            ISrfRequestService srf,
            ISrfEscalationRequestService escalation,
            IPersistedGrantService persistedGrantService)

        {
            this.view              = view;
            this.userManager       = userManager;
            this.signInManager     = signInManager;
            this.mailSender        = mailSender;
            this.smsSender         = smsSender;
            this.hostConfiguration = hostConfiguration.Value;
            this.interaction       = interaction;
            //this.logger = loggerFactory.CreateLogger<AccountController>();
            _config                = config;
            _mailingHelper         = mailingHelper;
            _persistedGrantService = persistedGrantService;
            _profile               = profile;
            _candidate             = candidate;
            _srf        = srf;
            _escalation = escalation;
        }
Ejemplo n.º 2
0
 public ProfileController(UserManager <ApplicationUser> userManager,
                          IUserProfileService userProfileService,
                          IUserHelper userHelper,
                          ICandidateInfoService candidate,
                          IDepartementService department,
                          IDepartementSubService departmentSub,
                          IVacancyListService vacancy,
                          IServicePackService ssow,
                          ICityService city,
                          ISrfRequestService srf,
                          IMapper mapper,
                          FileHelper fileHelper,
                          ConfigHelper config)
 {
     _userManager        = userManager;
     _userProfileService = userProfileService;
     _userHelper         = userHelper;
     _mapper             = mapper;
     _fileHelper         = fileHelper;
     _config             = config;
     _cropSuffix         = _config.GetConfig("crop.suffix");
     _userDir            = _config.GetConfig("user.upload.directory");
     _candidate          = candidate;
     _department         = department;
     _departmentSub      = departmentSub;
     _vacancy            = vacancy;
     _ssow = ssow;
     _city = city;
     _srf  = srf;
 }
Ejemplo n.º 3
0
 public WebSettingController(IHttpContextAccessor httpContextAccessor,
                             IUserService userService,
                             IMapper mapper,
                             ISrfRequestService srf,
                             IWebSettingService service,
                             IUserHelper userHelper)
     : base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _srf = srf;
 }
Ejemplo n.º 4
0
 public EnableSrf(IServiceProvider service, RoleManager <ApplicationRole> roleManager, UserManager <ApplicationUser> userManager)
 {
     _service     = service;
     _roleManager = roleManager;
     _userManager = userManager;
     _userProfile = _service.GetService <IUserProfileService>();
     _srf         = _service.GetService <ISrfRequestService>();
     _candidate   = _service.GetService <ICandidateInfoService>();
     _vacancy     = _service.GetService <IVacancyListService>();
     _escalation  = _service.GetService <ISrfEscalationRequestService>();
 }
Ejemplo n.º 5
0
 public TacticalResourceController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ITacticalResourceService service,
     ISrfRequestService srf,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _userHelper = userHelper;
     _srf        = srf;
 }
Ejemplo n.º 6
0
 public EscalationController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ISrfRequestService srf,
     ISrfEscalationRequestService service,
     IVacancyListService vacancy,
     ICandidateInfoService candidate,
     IDepartementService department,
     IHostingEnvironment env,
     IServicePackService ssow,
     IPackageTypeService packageType,
     ICostCenterService costCenter,
     MailingHelper mailingHelper,
     IOptions <HostConfiguration> hostConfiguration,
     NotifHelper notif,
     IDepartementSubService departmentSub,
     IServicePackCategoryService ssowCategory,
     IJobStageService jobsTage,
     IUserProfileService profileService,
     INetworkNumberService network,
     IAccountNameService account,
     UserManager <ApplicationUser> userManager,
     RoleManager <ApplicationRole> roleManager,
     SignInManager <ApplicationUser> signInManager,
     FileHelper fileHelper,
     ConfigHelper config,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _srf               = srf;
     _vacancy           = vacancy;
     _candidate         = candidate;
     _department        = department;
     _packageType       = packageType;
     _ssow              = ssow;
     _ssowCategory      = ssowCategory;
     _jobStage          = jobsTage;
     _departmentSub     = departmentSub;
     _profileService    = profileService;
     _network           = network;
     _account           = account;
     _env               = env;
     _notif             = notif;
     _hostConfiguration = hostConfiguration.Value;
     _mailingHelper     = mailingHelper;
     _userHelper        = userHelper;
     _costCenter        = costCenter;
     _userManager       = userManager;
     _roleManager       = roleManager;
     _fileHelper        = fileHelper;
     _config            = config;
 }
Ejemplo n.º 7
0
 public RegistrationController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     IAttendaceExceptionListService service,
     ISrfRequestService srf,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _userHelper = userHelper;
     _srf        = srf;
 }
Ejemplo n.º 8
0
 public ActivitiesController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     IActivityCodeService service,
     IAttendaceExceptionListService timeSheet,
     ISrfRequestService srf,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _srf       = srf;
     _timeSheet = timeSheet;
 }
Ejemplo n.º 9
0
 public JobStagesController
     (IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     IJobStageService service,
     ISrfRequestService srf,
     IVacancyListService vacancy,
     IUserHelper userHelper)
     : base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _srf     = srf;
     _vacancy = vacancy;
 }
Ejemplo n.º 10
0
 public ServicePacksController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     IServicePackService service,
     ISrfRequestService srf,
     IVacancyListService vacancy,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     Includes    = new Expression <Func <ServicePack, object> > [1];
     Includes[0] = pack => pack.ServicePackCategory;
     _srf        = srf;
     _vacancy    = vacancy;
 }
Ejemplo n.º 11
0
 public RegistrationController(IHttpContextAccessor httpContextAccessor,
                               IUserService userService, IMapper mapper,
                               IAttendaceExceptionListService service,
                               IDepartementService department,
                               ICostCenterService cost,
                               IAccountNameService account,
                               INetworkNumberService network,
                               IProjectsService project,
                               IActivityCodeService code,
                               ISubOpsService subOp,
                               ICityService city,
                               IUserProfileService profile,
                               IActivityCodeService activity,
                               ITimeSheetTypeService timesheet,
                               IUserHelper userHelper,
                               ISrfRequestService srf,
                               ICandidateInfoService contractor,
                               IDepartementSubService departmentSub,
                               IUserProfileService profileUser,
                               IAttendanceRecordService attendanceRecord,
                               ICandidateInfoService candidate,
                               IVacancyListService vacancy,
                               IOptions <HostConfiguration> hostConfiguration,
                               NotifHelper notif) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _department        = department;
     _cost              = cost;
     _account           = account;
     _network           = network;
     _project           = project;
     _code              = code;
     _subOp             = subOp;
     _city              = city;
     _userHelper        = userHelper;
     _profile           = profile;
     _actiivity         = activity;
     _timesheet         = timesheet;
     _contractor        = contractor;
     _department        = department;
     _departmentSub     = departmentSub;
     _notif             = notif;
     _hostConfiguration = hostConfiguration.Value;
     _attendanceRecord  = attendanceRecord;
     _candidate         = candidate;
     _vacancy           = vacancy;
     _srf = srf;
 }
Ejemplo n.º 12
0
 public UserHelper(UserManager <ApplicationUser> userManager,
                   RoleManager <ApplicationRole> roleManager,
                   IUserService userService,
                   IUserProfileService userProfile,
                   IEmailArchieveService mail,
                   ISrfRequestService srf,
                   ICandidateInfoService candidate,
                   ConfigHelper configHelper)
 {
     _userManager  = userManager;
     _roleManager  = roleManager;
     _userService  = userService;
     _configHelper = configHelper;
     _userProfile  = userProfile;
     _email        = mail;
     _srf          = srf;
     _candidate    = candidate;
 }
Ejemplo n.º 13
0
 public CheckController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     UserManager <ApplicationUser> userManager,
     IUserProfileService userProfile,
     ISrfRequestService srf,
     ICandidateInfoService candidate,
     ICandidateInfoService service,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _userManager = userManager;
     _userProfile = userProfile;
     _srf         = srf;
     _candidate   = candidate;
     _userHelper  = userHelper;
 }
Ejemplo n.º 14
0
 public HomeController(
     IDashboardService dashboard,
     UserManager <ApplicationUser> userManager,
     IUserHelper userHelper,
     IUserProfileService userProfile,
     IAccountNameService account,
     ISrfRequestService srf,
     IAttendaceExceptionListService timeSheet,
     ICandidateInfoService candidate)
 {
     this.userManager = userManager;
     _dashboard       = dashboard;
     _userHelper      = userHelper;
     _userProfile     = userProfile;
     _account         = account;
     _srf             = srf;
     _candidate       = candidate;
     _timeSheet       = timeSheet;
 }
Ejemplo n.º 15
0
 public AccountNamesController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ISrfRequestService srf,
     IVacancyListService vacancy,
     IAccountNameService service,
     IUserHelper userHelper,
     IAttendaceExceptionListService timeSheet,
     ExcelHelper excelHelper,
     CommonHelper helper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     this.excelHelper = excelHelper;
     this.helper      = helper;
     _srf             = srf;
     _vacancy         = vacancy;
     _timeSheet       = timeSheet;
 }
Ejemplo n.º 16
0
 public CostCentersController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ICostCenterService service,
     ISrfRequestService srf,
     IVacancyListService vacancy,
     IAttendaceExceptionListService timeSheet,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     Includes = new Expression <Func <CostCenter, object> >[1]
     {
         center => center.Departement
     };
     _srf       = srf;
     _vacancy   = vacancy;
     _timeSheet = timeSheet;
 }
Ejemplo n.º 17
0
 public DepartementSubsController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ISrfRequestService srf,
     IVacancyListService vacancy,
     IAttendaceExceptionListService timeSheet,
     IDepartementSubService service,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     Includes = new Expression <Func <DepartementSub, object> >[2]
     {
         sub => sub.Departement,
         sub => sub.LineManager,
         //sub => sub.LineManager.UserProfile
     };
     _srf       = srf;
     _vacancy   = vacancy;
     _timeSheet = timeSheet;
 }
Ejemplo n.º 18
0
 public DepartementsController(
     IUserProfileService userProfile,
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     ISrfRequestService srf,
     IVacancyListService vacancy,
     IMapper mapper,
     IAttendaceExceptionListService timeSheet,
     IDepartementService service, IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     Includes = new Expression <Func <Departement, object> >[1]
     {
         departement => departement.Head,
         //departement => departement.Head.UserProfile
     };
     _userHelper = UserHelper;
     _srf        = srf;
     _vacancy    = vacancy;
     _timeSheet  = timeSheet;
 }
Ejemplo n.º 19
0
 public CandidateController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     IHostingEnvironment env,
     FileHelper fileHelper,
     ICandidateInfoService service,
     IUserProfileService userProfile,
     UserManager <ApplicationUser> userManager,
     ISrfRequestService srf,
     IUserService AppUser,
     IUserHelper userHelper) : base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _env         = env;
     _fileHelper  = fileHelper;
     _userProfile = userProfile;
     _AppUser     = AppUser;
     _userManager = userManager;
     _userHelper  = userHelper;
     _srf         = srf;
 }
Ejemplo n.º 20
0
 public TacticalResourceController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ITacticalResourceService service,
     IHostingEnvironment environment,
     IDepartementService dept,
     IDepartementSubService deptSub,
     ExcelHelper excel,
     ConfigHelper config,
     ISrfRequestService srf,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _environment = environment;
     _excel       = excel;
     _config      = config;
     _dept        = dept;
     _deptSub     = deptSub;
     _srf         = srf;
     _userHelper  = userHelper;
 }
Ejemplo n.º 21
0
 public MigrationSrf(IServiceProvider service, RoleManager <ApplicationRole> roleManager, UserManager <ApplicationUser> userManager)
 {
     _service       = service;
     _roleManager   = roleManager;
     _userManager   = userManager;
     _vacancy       = _service.GetService <IVacancyListService>();
     _account       = _service.GetService <IAccountNameService>();
     _userProfile   = _service.GetService <IUserProfileService>();
     _costCenter    = _service.GetService <ICostCenterService>();
     _department    = _service.GetService <IDepartementService>();
     _departmentSub = _service.GetService <IDepartementSubService>();
     _jobstage      = _service.GetService <IJobStageService>();
     _networkNumber = _service.GetService <INetworkNumberService>();
     _ssow          = _service.GetService <IServicePackService>();
     _ssow_category = _service.GetService <IServicePackCategoryService>();
     _city          = _service.GetService <ICityService>();
     _packageType   = _service.GetService <IPackageTypeService>();
     _candidate     = _service.GetService <ICandidateInfoService>();
     _activity      = _service.GetService <IActivityCodeService>();
     _srf           = _service.GetService <ISrfRequestService>();
     _escalation    = _service.GetService <ISrfEscalationRequestService>();
 }
Ejemplo n.º 22
0
 public ClaimController(IHttpContextAccessor httpContextAccessor,
                        IUserService userService, IMapper mapper,
                        IClaimService service,
                        ICostCenterService costCenter,
                        INetworkNumberService networkNumber,
                        IProjectsService project,
                        IDepartementSubService departmentSub,
                        IActivityCodeService activity,
                        IUserProfileService user,
                        ICandidateInfoService candidate,
                        IVacancyListService vacacncy,
                        IAllowanceFormService allowForm,
                        IOptions <HostConfiguration> hostConfiguration,
                        UserManager <ApplicationUser> userManager,
                        IClaimCategoryService claimCategory,
                        ISrfRequestService srf,
                        NotifHelper notif,
                        FileHelper file,
                        IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _costCenter        = costCenter;
     _networkNumber     = networkNumber;
     _project           = project;
     _departmentSub     = departmentSub;
     _activity          = activity;
     _user              = user;
     _notif             = notif;
     _claimCategory     = claimCategory;
     _candidate         = candidate;
     _vacancy           = vacacncy;
     _userManager       = userManager;
     _userHelper        = userHelper;
     _allowForm         = allowForm;
     _file              = file;
     _hostConfiguration = hostConfiguration.Value;
     _srf = srf;
 }
Ejemplo n.º 23
0
 public CandidateController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     IVacancyListService vacancy,
     ICandidateInfoService service,
     UserManager <ApplicationUser> userManager,
     RoleManager <ApplicationRole> roleManager,
     FileHelper fileHelper,
     ConfigHelper config,
     IUserProfileService user,
     IUserProfileService profile,
     ISrfRequestService srf,
     MailingHelper mailingHelper,
     IOptions <HostConfiguration> hostConfiguration,
     NotifHelper notif,
     INetworkNumberService network,
     IDepartementService department,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _vacancy           = vacancy;
     _user              = user;
     _userManager       = userManager;
     _roleManager       = roleManager;
     _fileHelper        = fileHelper;
     _config            = config;
     _userHelper        = userHelper;
     _profile           = profile;
     _userService       = userService;
     _notif             = notif;
     _hostConfiguration = hostConfiguration.Value;
     _mailingHelper     = mailingHelper;
     _service           = service;
     _srf        = srf;
     _department = department;
     _network    = network;
 }
Ejemplo n.º 24
0
 public NetworkNumbersController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ISrfRequestService srf,
     IVacancyListService vacancy,
     INetworkNumberService service,
     IAttendaceExceptionListService timeSheet,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     Includes = new Expression <Func <NetworkNumber, object> >[5]
     {
         number => number.Departement,
         number => number.LineManager,
         number => number.Project,
         number => number.AccountName,
         number => number.ProjectManager,
     };
     _srf       = srf;
     _vacancy   = vacancy;
     _timeSheet = timeSheet;
 }