public WorkOrdersController(IWorkOrderService workOrderService, IWorkAssignmentService workAssignmentService, IMapper map) { this.serv = workOrderService; this.waServ = workAssignmentService; this.map = map; }
public WorkAssignmentsController(IWorkAssignmentService employerService, IWorkOrderService workorderService, IDefaults def, IMapper map) { this.serv = employerService; this.woServ = workorderService; this.map = map; this.def = def; }
/// <summary> /// Business logic object for WorkOrder record management. Contains logic specific /// to processing work orders, and not necessarily related to a web application. /// </summary> public WorkOrderService( IDatabaseFactory db, IWorkAssignmentService waServ, ITenantService tServ, IMapper map) : base(db, map) { this.waServ = waServ; _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tServ.GetCurrentTenant().Timezone); }
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 FluentRecordBase AddWorkAssignment( string desc = null, int?skill = null, DateTime?datecreated = null, DateTime?dateupdated = null, string updatedby = null, bool assignWorker = false ) { // // DEPENDENCIES if (_wo == null) { AddWorkOrder(); } if (assignWorker == true && _w == null) { AddWorker(); } _servWA = container.Resolve <IWorkAssignmentService>(); // // ARRANGE _wa = (WorkAssignment)Records.assignment.Clone(); _wa.workOrder = _wo; if (assignWorker) { _wa.workerAssigned = _w; } if (datecreated != null) { _wa.datecreated = (DateTime)datecreated; } if (dateupdated != null) { _wa.dateupdated = (DateTime)dateupdated; } if (desc != null) { _wa.description = desc; } if (updatedby != null) { _user = updatedby; } if (skill != null) { _wa.skillID = (int)skill; } // // ACT _servWA.Create(_wa, _user); return(this); }
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; }
/// <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; }
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; }
/// <summary> /// Constructor /// </summary> /// <param name="repo"></param> /// <param name="waServ">Work Assignment service</param> /// <param name="uow">Unit of Work</param> public WorkOrderService(IWorkOrderRepository repo, IWorkAssignmentService waServ, ITransportProvidersService tpServ, ILookupRepository lRepo, IUnitOfWork uow, IMapper map, IConfigService cfg) : base(repo, uow) { this.waServ = waServ; this.map = map; this.lRepo = lRepo; this.cfg = cfg; this.tpServ = tpServ; this.logPrefix = "WorkOrder"; }
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; }
/// <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 WorkOrderController(IWorkOrderService woServ, IWorkAssignmentService waServ, IEmployerService eServ, IWorkerService wServ, IWorkerRequestService wrServ, ILookupCache lcache, IDefaults def, IMapper map) { this.woServ = woServ; this.eServ = eServ; this.wServ = wServ; this.waServ = waServ; this.wrServ = wrServ; this.lcache = lcache; this.map = map; this.def = def; }
public WorkAssignmentController( IWorkAssignmentService workAssignmentService, IWorkOrderService workOrderService, IWorkerSigninService signinService, IDefaults defaults, IMapper map, IModelBindingAdaptor adaptor, ITenantService tenantService ) { waServ = workAssignmentService; woServ = workOrderService; wsiServ = signinService; this.map = map; _defaults = defaults; _adaptor = adaptor; _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone); }
/// <summary> /// Business logic object for WorkOrder record management. Contains logic specific /// to processing work orders, and not necessarily related to a web application. /// </summary> /// <param name="repo"></param> /// <param name="waServ">Work Assignment service</param> /// <param name="tpServ"></param> /// <param name="wrServ"></param> /// <param name="wServ"></param> /// <param name="lRepo"></param> /// <param name="uow">Unit of Work</param> /// <param name="map"></param> /// <param name="cfg"></param> /// <param name="tenantService"></param> public WorkOrderService(IWorkOrderRepository repo, IWorkAssignmentService waServ, ITransportProvidersService tpServ, IWorkerRequestService wrServ, IWorkerService wServ, ILookupRepository lRepo, IUnitOfWork uow, IMapper map, IConfigService cfg, ITenantService tenantService ) : base(repo, uow) { this.repo = repo; this.waServ = waServ; this.wrServ = wrServ; this.wServ = wServ; this.map = map; this.lRepo = lRepo; this.cfg = cfg; this.tpServ = tpServ; this.logPrefix = "WorkOrder"; _clientTimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(tenantService.GetCurrentTenant().Timezone); }
public WorkAssignmentsController(IWorkAssignmentService serv, IMapper map) : base(serv, map) { }
public WorkAssignmentsController(IWorkAssignmentService employerService, IWorkOrderService workorderService, IMapper map) { this.serv = employerService; this.map = map; }