Exemplo n.º 1
0
 public WorkOrdersController(IWorkOrderService workOrderService, IWorkAssignmentService workAssignmentService,
                             IMapper map)
 {
     this.serv   = workOrderService;
     this.waServ = workAssignmentService;
     this.map    = map;
 }
Exemplo n.º 2
0
 public LookupController(
     IRepository <Point> pointRepository,
     IRepository <MeterEvent> meterEventRepository,
     ISiteService siteService,
     ISecurityGroupService securityGroupService,
     IMeterService meterService,
     IUserService userService,
     IAttributeService attributeService,
     ITechnicianService technicianService,
     ITeamService teamService,
     IItemService itemService,
     IAssetService assetService,
     IWorkOrderService workOrderService,
     ILocationService locationService,
     IStoreService storeService,
     IServiceRequestService serviceRequestService,
     ICompanyService companyService)
 {
     this._pointRepository       = pointRepository;
     this._meterEventRepository  = meterEventRepository;
     this._siteService           = siteService;
     this._securityGroupService  = securityGroupService;
     this._meterService          = meterService;
     this._userService           = userService;
     this._attributeService      = attributeService;
     this._technicianService     = technicianService;
     this._teamService           = teamService;
     this._itemService           = itemService;
     this._assetService          = assetService;
     this._workOrderService      = workOrderService;
     this._locationService       = locationService;
     this._storeService          = storeService;
     this._serviceRequestService = serviceRequestService;
     this._companyService        = companyService;
 }
 public WorkOrdersController(IWorkOrderService serv, ITenantService tenantService,
                             IMapper map) : base(serv, map)
 {
     this.serv           = serv;
     this.map            = map;
     _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
 }
Exemplo n.º 4
0
 public WorkOrderController(IProjectService projectService, IFilterService filterService,
                            IWorkOrderService workOrderService)
 {
     _projectService   = projectService;
     _filterService    = filterService;
     _workOrderService = workOrderService;
 }
Exemplo n.º 5
0
 public EventManagementReportController
 (
     DataContext context,
     IEmployee employee,
     IWorkOrderParent work,
     IEventSetup setup,
     IEventService service,
     IEventMiscellaneous miscellaneous,
     IWorkOrderManpower manpower,
     IWorkOrderSetup orderSetup,
     IWorkOrderService orderService,
     IWorkOrderMiscellaneous orderMiscellaneous,
     IDefaultSetting setting,
     IAttendance attendance,
     ITransaction transaction,
     IEventReport report
 )
 {
     _context            = context;
     _employee           = employee;
     _work               = work;
     _setup              = setup;
     _service            = service;
     _miscellaneous      = miscellaneous;
     _manpower           = manpower;
     _orderSetup         = orderSetup;
     _orderService       = orderService;
     _orderMiscellaneous = orderMiscellaneous;
     _setting            = setting;
     _attendance         = attendance;
     _transaction        = transaction;
     _report             = report;
 }
Exemplo n.º 6
0
 public WorkOrdersController(IWorkOrderService workOrderService, ITenantService tenantService,
                             IMapper map)
 {
     _serv = workOrderService;
     _map  = map;
     _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
 }
Exemplo n.º 7
0
 public EmployersController(
     IEmployerService serv,
     IWorkOrderService workorderService,
     IMapper map) : base(serv, map)
 {
     this.serv   = serv;
     this.woServ = workorderService;
 }
 public WorkOrderController(IWorkOrderService myService, IMapper mapper, UserManager <User> userManager, IUnitOfWork unitOfWork, IImageHelper imageHelper)
 {
     _myService   = myService;
     _mapper      = mapper;
     _userManager = userManager;
     _unitOfWork  = unitOfWork;
     _imageHelper = imageHelper;
 }
Exemplo n.º 9
0
 public WorkOrderController(
     IOrganizationCustomer customer,
     IWorkOrderService workOrderService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _customer         = customer;
     _workOrderService = workOrderService;
 }
Exemplo n.º 10
0
 public WorkOrderController(
     IOrganizationAccountManager accountManager,
     IWorkOrderService workOrderService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _accountManager   = accountManager;
     _workOrderService = workOrderService;
 }
Exemplo n.º 11
0
 public WorkOrderController(
     IAgencyOwner agencyOwner,
     IWorkOrderService workOrderService,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _agencyOwner      = agencyOwner;
     _workOrderService = workOrderService;
 }
Exemplo n.º 12
0
 public EmployersController(
     IEmployerService employerService,
     IWorkOrderService workorderService,
     IMapper map)
 {
     this.serv   = employerService;
     this.woServ = workorderService;
     this.map    = map;
 }
Exemplo n.º 13
0
 public WorkAssignmentsController(IWorkAssignmentService employerService, IWorkOrderService workorderService,
                                  IDefaults def,
                                  IMapper map)
 {
     this.serv   = employerService;
     this.woServ = workorderService;
     this.map    = map;
     this.def    = def;
 }
Exemplo n.º 14
0
 public WorkOrderController(IWorkOrderService workOrderService, IMapperWrapper mapperWrapper, IWorkOrderPrintConverter workOrderPrintConverter, IMarketApiClient marketApiClient, ICustomerRepository customerRepository, IWorkerRepository workerRepository, IEvrikaPrinterClient evrikaPrinterClient)
 {
     this.workOrderService        = workOrderService;
     this.mapperWrapper           = mapperWrapper;
     this.workOrderPrintConverter = workOrderPrintConverter;
     this.marketApiClient         = marketApiClient;
     this.customerRepository      = customerRepository;
     this.workerRepository        = workerRepository;
     this.evrikaPrinterClient     = evrikaPrinterClient;
 }
 public AppAchieveService(IAgentService agentService, IUserInfoRepository userInfoRepository, IAppVerifyService appVerifyService, IAgentRepository agentRepository, ICacheHelper cacheHelper, IWorkOrderService workOrderService, IBjdService bjdService, INoticexbService noticexbService)
     : base(agentRepository, cacheHelper)
 {
     _agentService       = agentService;
     _userInfoRepository = userInfoRepository;
     _appVerifyService   = appVerifyService;
     _workOrderService   = workOrderService;
     _bjdService         = bjdService;
     _noticexbService    = noticexbService;
     logError            = LogManager.GetLogger("ERROR");
 }
Exemplo n.º 16
0
 public OnlineOrdersService(
     IWorkOrderService woServ,
     ITransportRuleService trServ,
     ITransportProvidersService tpServ
     )
 {
     //this.eserv = eServ;
     this.woserv = woServ;
     this.trServ = trServ;
     this.tpServ = tpServ;
 }
Exemplo n.º 17
0
 public EmployerService(IEmployerRepository repo,
                        IWorkOrderService woServ,
                        IUnitOfWork unitOfWork,
                        IMapper map)
     : base(repo, unitOfWork)
 {
     this.woServ    = woServ;
     this.map       = map;
     this.logPrefix = "Employer";
     this.repo      = repo;
 }
Exemplo n.º 18
0
 public ServiceContractsController(
     IServiceContractModelService serviceContractModelService,
     IMapper mapper,
     IWorkContext workContext,
     IWorkOrderService workOrderService)
 {
     _serviceContractModelService = serviceContractModelService;
     _workContext      = workContext;
     _mapper           = mapper;
     _workOrderService = workOrderService;
 }
Exemplo n.º 19
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="woServ">Work Order service</param>
 /// <param name="wServ">Worker service</param>
 /// <param name="wrServ">Worker request service</param>
 public WorkOrderController(IWorkOrderService woServ,
                            IWorkerService wServ,
                            IWorkerRequestService wrServ,
                            IDefaults def,
                            IMapper map)
 {
     this.woServ = woServ;
     this.wServ  = wServ;
     this.wrServ = wrServ;
     this.map    = map;
     this.def    = def;
 }
Exemplo n.º 20
0
 public AbstractWorkOrderController(
     ApiSettings settings,
     ILogger <AbstractWorkOrderController> logger,
     ITransactionCoordinator transactionCoordinator,
     IWorkOrderService workOrderService,
     IApiWorkOrderModelMapper workOrderModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.WorkOrderService     = workOrderService;
     this.WorkOrderModelMapper = workOrderModelMapper;
 }
Exemplo n.º 21
0
 public WorkAssignmentController(IWorkAssignmentService workAssignmentService,
                                 IWorkerService workerService,
                                 IWorkOrderService workOrderService,
                                 IWorkerSigninService signinService,
                                 ILookupCache lc)
 {
     this.waServ = workAssignmentService;
     this.wkrServ = workerService;
     this.woServ = workOrderService;
     this.wsiServ = signinService;
     this.lcache = lc;
 }
 public CustomerAccountController(ICustomerAccountService accountService,
                                  IOrganizationCustomer customer,
                                  IWorkOrderService workOrderService,
                                  ICommentService commentService,
                                  IStripeService stripeService,
                                  IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _customer         = customer;
     _workOrderService = workOrderService;
     _commentService   = commentService;
     _stripeService    = stripeService;
     _accountService   = accountService;
 }
Exemplo n.º 23
0
 public EmployerController(
     IEmployerService employerService,
     IWorkOrderService workorderService,
     IDefaults def,
     IMapper map
     )
 {
     this.serv   = employerService;
     this.woServ = workorderService;
     this.map    = map;
     this.def    = def;
     //ViewBag.employerReferenceList = def.getSelectList(LCategory.emplrreference);
 }
Exemplo n.º 24
0
        public WorkAssignmentController(IWorkAssignmentService workAssignmentService,
                                        IWorkOrderService workOrderService,
                                        IWorkerSigninService signinService,
                                        IDefaults def,
                                        IMapper map)

        {
            this.waServ  = workAssignmentService;
            this.woServ  = workOrderService;
            this.wsiServ = signinService;
            this.map     = map;
            this.def     = def;
        }
Exemplo n.º 25
0
        public FluentRecordBase AddWorkOrder(
            DateTime?datecreated    = null,
            DateTime?dateupdated    = null,
            DateTime?dateTimeOfWork = null,
            int?paperordernum       = null,
            int?status     = null,
            string contact = null
            )
        {
            //
            // DEPENDENCIES
            if (_emp == null)
            {
                AddEmployer();
            }
            _servWO = container.GetRequiredService <IWorkOrderService>();

            //
            // ARRANGE
            _wo                 = (WorkOrder)Records.order.Clone();
            _wo.Employer        = _emp;
            _wo.workAssignments = new List <WorkAssignment>();
            if (datecreated != null)
            {
                _wo.datecreated = (DateTime)datecreated;
            }
            if (dateupdated != null)
            {
                _wo.dateupdated = (DateTime)dateupdated;
            }
            if (paperordernum == null)
            {
                _wo.paperOrderNum = new Random().Next(10000, 99999);
            }
            if (dateTimeOfWork != null)
            {
                _wo.dateTimeofWork = (DateTime)dateTimeOfWork;
            }
            if (status != null)
            {
                _wo.statusID = (int)status;
            }
            if (contact != null)
            {
                _wo.contactName = contact;
            }
            //
            // ACT
            _servWO.Create(_wo, _user);
            return(this);
        }
Exemplo n.º 26
0
 public PMJob(IRepository <PreventiveMaintenance> pmRepository,
              IRepository <PMMeterFrequency> pMMeterFrequencyRepository,
              IRepository <PointMeterLineItem> pointMeterLineItemRepository,
              IRepository <MeterEventHistory> meterEventHistoryRepository,
              IPreventiveMaintenanceService pmService,
              IWorkOrderService workOrderService)
 {
     this._pmRepository = pmRepository;
     this._pMMeterFrequencyRepository   = pMMeterFrequencyRepository;
     this._pointMeterLineItemRepository = pointMeterLineItemRepository;
     this._meterEventHistoryRepository  = meterEventHistoryRepository;
     this._pmService        = pmService;
     this._workOrderService = workOrderService;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="woServ">Work Order service</param>
 /// <param name="waServ">Work Assignment service</param>
 /// <param name="eServ">Employer service</param>
 /// <param name="wServ">Worker service</param>
 /// <param name="wrServ">Worker request service</param>
 /// <param name="lcache">Lookup cache</param>
 public HirerWorkOrderController(IWorkOrderService woServ,
                            IWorkAssignmentService waServ,
                            IEmployerService eServ,
                            IWorkerService wServ,
                            IWorkerRequestService wrServ,
                            ILookupCache lcache)
 {
     this.woServ = woServ;
     this.eServ = eServ;
     this.wServ = wServ;
     this.waServ = waServ;
     this.wrServ = wrServ;
     this.lcache = lcache;
 }
Exemplo n.º 28
0
 public WorkOrderController(IWorkOrderService woServ, 
                            IWorkAssignmentService workAssignmentService,
                            IEmployerService employerService,
                            IWorkerService workerService,
                            IWorkerRequestService requestService, 
                            ILookupCache lc)
 {
     this.woServ = woServ;
     this.eServ = employerService;
     this.wServ = workerService;
     this.waServ = workAssignmentService;
     this.wrServ = requestService;
     this.lcache = lc;
 }
Exemplo n.º 29
0
 public WorkOrderAppService(IWorkOrderService workOrderService,
                            UserManager <AppUser> userManager,
                            IMapper mapper,
                            IOptions <AppSettings> options,
                            IPlotService plotService,
                            IHttpContextAccessor httpContextAccessor)
 {
     _workOrderService    = workOrderService;
     _mapper              = mapper;
     _httpContextAccessor = httpContextAccessor;
     _userManager         = userManager;
     _settings            = options.Value;
     _plotService         = plotService;
 }
Exemplo n.º 30
0
 public OnlineOrdersController(
     IOnlineOrdersService serv,
     IEmployerService eServ,
     IWorkOrderService woServ,
     ITransportRuleService trServ,
     IMapper map,
     IConfigService cServ)
 {
     this.serv   = serv;
     this.eServ  = eServ;
     this.woServ = woServ;
     this.trServ = trServ;
     this.map    = map;
     this.cServ  = cServ;
 }
Exemplo n.º 31
0
 /// <summary>
 /// The Work Order controller is responsible for handling all REST actions related to the
 /// creation, modification, processing and retaining of Work Orders created by staff or
 /// employers (hirers/2.0).
 /// </summary>
 /// <param name="woServ">Work Order service</param>
 /// <param name="defaults">Default config values</param>
 /// <param name="map">AutoMapper service</param>
 /// <param name="adaptor"></param>
 /// <param name="tenantService"></param>
 public WorkOrderController(
     IWorkOrderService woServ,
     IDefaults defaults,
     IMapper map,
     IModelBindingAdaptor adaptor,
     ITenantService tenantService
     )
 {
     _woServ             = woServ;
     _map                = map;
     _adaptor            = adaptor;
     _defaults           = defaults;
     _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone);
     _serverTimeZoneInfo = TimeZoneInfo.Local;
 }
Exemplo n.º 32
0
        public OnlineOrdersController(
            IOnlineOrdersService serv,
            IEmployerService eServ,
            IWorkOrderService woServ,
            IMapper map,
            IConfigService cServ)
        {
            this.serv   = serv;
            this.eServ  = eServ;
            this.woServ = woServ;
            this.map    = map;

            paypalId     = cServ.getConfig(Cfg.PaypalId);
            paypalSecret = cServ.getConfig(Cfg.PaypalSecret);
            paypalUrl    = cServ.getConfig(Cfg.PaypalUrl);
        }
Exemplo n.º 33
0
 public OnlineOrdersService(
     IWorkOrderService woServ,
     IWorkAssignmentService waServ,
     ITransportRuleService trServ,
     ITransportProvidersService tpServ,
     ILookupService lServ,
     IMapper map)
 {
     this.map = map;
     //this.eserv = eServ;
     this.woserv = woServ;
     this.waserv = waServ;
     this.trServ = trServ;
     this.tpServ = tpServ;
     this.lServ  = lServ;
 }
Exemplo n.º 34
0
 public EmployerController(IEmployerService employerService, IWorkOrderService workorderService)
 {
     this.serv = employerService;
     this.woServ = workorderService;
 }