Пример #1
0
 public VacancyController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IHostingEnvironment env,
     IMapper mapper,
     FileHelper fileHelper,
     ICostCenterService costCenter,
     IServicePackService servicePack,
     IServicePackCategoryService servicePackCategory,
     IVacancyListService service,
     UserManager <ApplicationUser> userManager,
     IDepartementService department,
     INetworkNumberService network,
     IDepartementSubService departmentSub,
     IMapAsgBastService mapAsgBast,
     IUserHelper userHelper) : base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _env                 = env;
     _fileHelper          = fileHelper;
     _costCenter          = costCenter;
     _servicePack         = servicePack;
     _servicePackCategory = servicePackCategory;
     _department          = department;
     _departmentSub       = departmentSub;
     _userManager         = userManager;
     _userHelper          = userHelper;
     _network             = network;
     _mapAsgBast          = mapAsgBast;
 }
Пример #2
0
 public TravelController(IHttpContextAccessor httpContextAccessor,
                         IUserService userService, IMapper mapper,
                         IClaimService service,
                         ICostCenterService costCenter,
                         INetworkNumberService networkNumber,
                         IActivityCodeService activityCode,
                         ICityService city,
                         IVacancyListService vacancy,
                         IUserProfileService profileUser,
                         ICandidateInfoService candidate,
                         IOptions <HostConfiguration> hostConfiguration,
                         UserManager <ApplicationUser> userManager,
                         NotifHelper notif,
                         IUserProfileService profile,
                         ITicketInfoService ticket,
                         IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _costCenter        = costCenter;
     _networkNumber     = networkNumber;
     _activityCode      = activityCode;
     _city              = city;
     _notif             = notif;
     _userService       = userService;
     _profileUser       = profileUser;
     _hostConfiguration = hostConfiguration.Value;
     _userHelper        = userHelper;
     _vacancy           = vacancy;
     _candidate         = candidate;
     _userManager       = userManager;
     _profile           = profile;
     _ticket            = ticket;
 }
Пример #3
0
 public SrfController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ISrfRequestService service,
     IDepartementSubService department,
     ICostCenterService costCenter,
     INetworkNumberService networkNumber,
     IDepartementService departmentOp,
     ISrfEscalationRequestService escalation,
     ICandidateInfoService candidate,
     IHostingEnvironment env,
     IUserProfileService userProfile,
     UserManager <ApplicationUser> userManager,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _userHelper    = userHelper;
     _departmentSub = department;
     _costCenter    = costCenter;
     _networkNumber = networkNumber;
     _department    = departmentOp;
     _escalation    = escalation;
     _env           = env;
     _candidate     = candidate;
     _userManager   = userManager;
     _userProfile   = userProfile;
 }
Пример #4
0
        public CostCenterController(ICostCenterService CostCenterService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _CostCenterService = CostCenterService;
            _unitOfWork        = unitOfWork;
            _exception         = exec;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
Пример #5
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;
 }
 public VendorManagementController(
     IVendorManagementService vendorManagementService,
     IMapper mapper,
     IWorkContext workContext,
     ISelectItemsServices selectitems,
     ICostCenterService costCenterService)
 {
     _vendorManagementService = vendorManagementService;
     _mapper            = mapper;
     _workContext       = workContext;
     _selecteItems      = selectitems;
     _costCenterService = costCenterService;
 }
Пример #7
0
 public AssetManagementController(
     IAssetManagementService assetService,
     IProductManagementService productMangement,
     ICostCenterService costCenterService,
     IMapper mapper,
     IWorkContext workContext
     )
 {
     _assetService      = assetService;
     _productMangement  = productMangement;
     _costCenterService = costCenterService;
     _mapper            = mapper;
     _workContext       = workContext;
 }
Пример #8
0
 public VendorManagementController(
     IWorkContext workContext,
     ISelectItemsServices selectItemsServices,
     ICostCenterService costCenterService,
     IVendorManagementService vendorManagementService,
     IRfqService rfqService,
     IMapper mapper)
 {
     _workContext             = workContext;
     _selectItemsServices     = selectItemsServices;
     _costCenterService       = costCenterService;
     _vendorManagementService = vendorManagementService;
     _rfqService = rfqService;
     _mapper     = mapper;
 }
        public JobOrderHeaderController(IJobOrderHeaderService PurchaseOrderHeaderService, IExceptionHandler exec, IDocumentTypeService DocumentTypeServ,
                                        IJobOrderSettingsService JobOrderSettingsServ, IPerkService perkServ, IPerkDocumentTypeService perkDocTypeServ, IDocumentValidation DocValidation,
                                        ICostCenterService costCenterSer)
        {
            _JobOrderHeaderService   = PurchaseOrderHeaderService;
            _exception               = exec;
            _documentTypeService     = DocumentTypeServ;
            _jobOrderSettingsServie  = JobOrderSettingsServ;
            _perkService             = perkServ;
            _perkDocumentTypeService = perkDocTypeServ;
            _documentValidation      = DocValidation;
            _costCenterService       = costCenterSer;

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];
        }
 public BugetManagementController(
     IWorkContext workContext,
     IFinancialManagementService finManagement,
     IMapper mapper,
     IBugetManagementService bugetManagementService,
     IVendorManagementService vendorManagementService,
     ICostCenterService costCenterService)
 {
     _workContext             = workContext;
     _finManagement           = finManagement;
     _mapper                  = mapper;
     _bugetManagentService    = bugetManagementService;
     _vendorManagementService = vendorManagementService;
     _costCenterService       = costCenterService;
 }
Пример #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;
 }
Пример #12
0
        /// <summary>
        /// 构造函数,最终得到新的服务实例
        /// </summary>
        public AutofacConfig()
        {
            if (this.containerBuilder == null)
            {
                Init();
            }
            IContainer container = this.containerBuilder.Build();
            IDbContext db        = container.Resolve <IDbContext>();

            this.costCenterService = container.Resolve <ICostCenterService>();
            this.departmentService = container.Resolve <IDepartmentService>();
            this.leaveService      = container.Resolve <ILeaveService>();
            this.rBService         = container.Resolve <IReimbursementService>();
            this.userService       = container.Resolve <IUserService>();
            this.attendanceService = container.Resolve <IAttendanceService>();
        }
 public SelectItemsController(
     ICostCenterService costCenterService,
     ISelectItemsServices selectItemsServices,
     IProductManagementService productManagementService,
     IWorkContext workContext,
     IFinancialDataService financialDataService,
     IRfqService rfqService,
     IRepository <Orders> orderRepository)
 {
     _costCenterService        = costCenterService;
     _selectItemsServices      = selectItemsServices;
     _productManagementService = productManagementService;
     _workContext          = workContext;
     _financialDataService = financialDataService;
     _rfqService           = rfqService;
     _orderRepository      = orderRepository;
 }
Пример #14
0
 public ProcessOrdersController(
     IWorkContext workContext,
     IProcessOrderService processOrderService,
     ITransactionReports transactionReports,
     IMapper mapper,
     IRfqService rfqService,
     ISelectItemsServices selectItemsServices,
     ICostCenterService costCenterService)
 {
     _workContext         = workContext;
     _processOrderService = processOrderService;
     _transactionReports  = transactionReports;
     _mapper              = mapper;
     _rfqService          = rfqService;
     _selectItemsServices = selectItemsServices;
     _costCenterService   = costCenterService;
 }
Пример #15
0
 public WorkOrdersController(
     IWorkOrderService workorderService,
     IMapper mapper,
     IWorkContext workContext,
     IRepository <Logon> logonRepository,
     IRepository <ServiceContracts> serviceContractRepository,
     IFinancialManagementService financialManagementService,
     ICostCenterService costCenterService)
 {
     _workorderService           = workorderService;
     _mapper                     = mapper;
     _workContext                = workContext;
     _logonRepository            = logonRepository;
     _serviceContractRepository  = serviceContractRepository;
     _financialManagementService = financialManagementService;
     _costCenterService          = costCenterService;
 }
Пример #16
0
 public TransactionReportsController(
     ITransactionReports transactionReports,
     IWorkContext workContext,
     PAS2Context dbContext,
     IMapper mapper,
     IFinancialDataService financialDataService,
     ISelectItemsServices selectItemsServices,
     ICostCenterService costCenterService)
 {
     _transactionReports   = transactionReports;
     _workContext          = workContext;
     _dbContext            = dbContext;
     _mapper               = mapper;
     _financialDataService = financialDataService;
     _selectItemsServices  = selectItemsServices;
     _costCenterService    = costCenterService;
 }
Пример #17
0
 public InventoryManagementController(
     IInventoryManagementService invManagement,
     IWorkContext workContext,
     ISelectItemsServices selectItemsServices,
     IProductManagementService productManagementService,
     ICostCenterService costCenterService,
     IMapper mapper,
     IRfqService rfqService,
     IFinancialManagementService financialManagementService)
 {
     _invManagement            = invManagement;
     _workContext              = workContext;
     _selectItemService        = selectItemsServices;
     _productManagementService = productManagementService;
     _costCenterService        = costCenterService;
     _mapper     = mapper;
     _rfqService = rfqService;
     _financialManagementService = financialManagementService;
 }
Пример #18
0
 public SrfRecoveryController(
     IHttpContextAccessor httpContextAccessor,
     IUserService userService,
     IMapper mapper,
     ISrfRequestService service,
     IVacancyListService vacancy,
     ICandidateInfoService candidate,
     IDepartementService department,
     IServicePackService ssow,
     IServicePackCategoryService ssowCategory,
     IJobStageService jobStage,
     IDepartementSubService departmentSub,
     INetworkNumberService network,
     IAccountNameService account,
     ICostCenterService costCenter,
     ISrfEscalationRequestService escalation,
     IUserProfileService profileService,
     ISrfMigrationService migrate,
     IActivityCodeService activity,
     IPackageTypeService packageType,
     IUserHelper userHelper) :
     base(httpContextAccessor, userService, mapper, service, userHelper)
 {
     _vacancy        = vacancy;
     _candidate      = candidate;
     _department     = department;
     _ssow           = ssow;
     _ssowCategory   = ssowCategory;
     _departmentSub  = departmentSub;
     _network        = network;
     _account        = account;
     _userHelper     = userHelper;
     _costCenter     = costCenter;
     _escalation     = escalation;
     _profileService = profileService;
     _migrate        = migrate;
     _packageType    = packageType;
     _jobStage       = jobStage;
     _activity       = activity;
 }
Пример #19
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>();
 }
Пример #20
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;
 }
Пример #21
0
 public WorkOrderService(
     IRepository <Sohistory> soRepository,
     IRepository <Soorders> soOrderRepository,
     IMapper mapper,
     PAS2Context dbContext,
     IRepository <Socategory> soCategory,
     IWorkContext workContext,
     IRepository <Logon> logonRepository,
     ICostCenterService costCenterService,
     IRepository <ServiceContracts> serviceContractRepository,
     IRepository <SohistoryDetail> soHistoryDetailRepository)
 {
     _soRepository              = soRepository;
     _soOrderRepository         = soOrderRepository;
     _mapper                    = mapper;
     _dbContext                 = dbContext;
     _soCategory                = soCategory;
     _workContext               = workContext;
     _logonRepository           = logonRepository;
     _costCenterService         = costCenterService;
     _serviceContractRepository = serviceContractRepository;
     _soHistoryDetailRepository = soHistoryDetailRepository;
 }
Пример #22
0
 public CostCenterController(ICostCenterService costCenterProvider, IMapper mapper)
 {
     _costCenterProvider = costCenterProvider;
     _mapper             = mapper;
 }