C# Class Machete.Web.Controllers.WorkOrderController

Inheritance: MacheteController
Mostrar archivo Open project: SavageLearning/Machete Class Usage Examples

Public Methods

Method Description
WorkOrderController ( IWorkOrderService woServ, IWorkAssignmentService waServ, IEmployerService eServ, IWorkerService wServ, IWorkerRequestService wrServ, ILookupCache lcache ) : System

Constructor

dtResponse ( WorkOrder wo, bool showWorkers ) : object

Returns Work Order object - presented on the WorkOrder Details tab

Protected Methods

Method Description
Initialize ( System.Web.Routing.RequestContext requestContext ) : void

Initialize controller

Private Methods

Method Description
Activate ( int id, string userName ) : System.Web.Mvc.ActionResult
AjaxHandler ( jQueryDataTableParam param ) : System.Web.Mvc.ActionResult
AjaxSummary ( jQueryDataTableParam param ) : System.Web.Mvc.ActionResult
CompleteOrders ( System.DateTime date, string userName ) : System.Web.Mvc.ActionResult
Create ( WorkOrder wo, string userName, List workerRequestList ) : System.Web.Mvc.ActionResult
Create ( int EmployerID ) : System.Web.Mvc.ActionResult
Delete ( int id, string user ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id, System.Web.Mvc.FormCollection collection, string userName, List workerRequestList ) : System.Web.Mvc.ActionResult
GroupView ( System.DateTime date, bool assignedOnly ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
View ( int id ) : System.Web.Mvc.ActionResult
ViewForEmail ( int id ) : System.Web.Mvc.ActionResult
_getDisplayState ( WorkOrder wo ) : string

determines displayState value in WorkOrder/AjaxHandler

Method Details

Initialize() protected method

Initialize controller
protected Initialize ( System.Web.Routing.RequestContext requestContext ) : void
requestContext System.Web.Routing.RequestContext Request Context
return void

WorkOrderController() public method

Constructor
public WorkOrderController ( IWorkOrderService woServ, IWorkAssignmentService waServ, IEmployerService eServ, IWorkerService wServ, IWorkerRequestService wrServ, ILookupCache lcache ) : System
woServ IWorkOrderService Work Order service
waServ IWorkAssignmentService Work Assignment service
eServ IEmployerService Employer service
wServ IWorkerService Worker service
wrServ IWorkerRequestService Worker request service
lcache ILookupCache Lookup cache
return System

dtResponse() public method

Returns Work Order object - presented on the WorkOrder Details tab
public dtResponse ( WorkOrder wo, bool showWorkers ) : object
wo Machete.Domain.WorkOrder WorkOrder
showWorkers bool bool flag determining whether the workers associated with the WorkOrder should be retrieved
return object