C# Класс Purchasing.Mvc.Controllers.OrderController

Controller for the Order class
Наследование: ApplicationController
Показать файл Открыть проект

Открытые методы

Метод Описание
AssignAccountsPayableUser ( int id ) : System.Web.Mvc.ActionResult

Access checks done inside method.

DeleteSavedOrder ( System.Guid id ) : System.Web.Mvc.ActionResult
GetKfsStatus ( int id ) : JsonNetResult

Calls the Campus Financial System to get updated status on order

GetPeeps ( int id, string orderStatusCodeId ) : JsonNetResult

Get a list of people who have access to approve an order at a particular status

GetReceiveHistory ( int id, int lineItemId, bool payInvoice ) : JsonNetResult
GetRequesters ( int id ) : ActionResult
Index ( ) : ActionResult

#1

Lookup ( string id ) : ActionResult

Find an order by request number and redirect to the review page

OrderController ( IRepositoryFactory repositoryFactory, IOrderService orderService, ISecurityService securityService, IDirectorySearchService directorySearchService, IFinancialSystemService financialSystemService, IQueryRepositoryFactory queryRepository, IEventService eventService, IBugTrackingService bugTrackingService, IFileService fileService ) : System
Request ( int id ) : ActionResult

Make an order request #5

Review ( int id ) : ActionResult

Page to review an order and for approving/denying the order.

This page should be used by ad hoc account managers too, but without the link to edit

SaveOrderRequest ( string saveId, string saveName, string formData, string accountData, string preparedFor, int workgroupId ) : JsonNetResult

Save an order request

SavedOrderRequests ( ) : ActionResult
SelectWorkgroup ( ) : ActionResult

If user has more than one workgroup, they select it for their order #2

ViewFile ( Guid fileId ) : ActionResult

Allows a user to download any attachment file by providing the file ID

Приватные методы

Метод Описание
AddAddress ( int workgroupId, WorkgroupAddress workgroupAddress ) : System.Web.Mvc.ActionResult
AddComment ( int id, string comment ) : JsonNetResult
AddVendor ( int workgroupId, WorkgroupVendor vendor ) : System.Web.Mvc.ActionResult
Approve ( int id, string action, string comment, string orderType, string kfsDocType ) : System.Web.Mvc.ActionResult
AssignAccountsPayableUser ( int id, string apUserId ) : System.Web.Mvc.ActionResult
BindOrderModel ( Order order, OrderViewModel model, bool includeLineItemsAndSplits = false ) : void
Cancel ( int id, string comment ) : System.Web.Mvc.ActionResult
CancelCompletedOrder ( int id, string comment ) : System.Web.Mvc.ActionResult
Copy ( int id ) : System.Web.Mvc.ActionResult
Copy ( int id, OrderViewModel model ) : System.Web.Mvc.ActionResult
CreateOrderModifyModel ( Workgroup workgroup ) : OrderModifyModel
DeleteSavedOrder ( System.Guid id, OrderRequestSave orderRequestSave ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id, OrderViewModel model ) : System.Web.Mvc.ActionResult
FpdComplete ( int id, bool fpdCompleted ) : System.Web.Mvc.ActionResult
GetInactiveAccountsForOrder ( int id ) : List
GetLineItemsAndSplits ( int id ) : JsonNetResult
GetSubAccounts ( int id ) : JsonNetResult
PayAll ( int id ) : ActionResult
PayInvoice ( int id ) : ActionResult
PayInvoice ( int id, int lineItemId, decimal receivedQuantity ) : JsonNetResult
PayInvoiceNote ( int id, int lineItemId, string note ) : JsonNetResult
ReRouteApproval ( int id, int approvalId, string kerb ) : ActionResult
ReceiveAll ( int id ) : ActionResult
ReceiveItems ( int id ) : ActionResult
ReceiveItems ( int id, int lineItemId, decimal receivedQuantity ) : JsonNetResult
ReceiveItemsNotes ( int id, int lineItemId, string note ) : JsonNetResult
Request ( OrderViewModel model ) : ActionResult
RerouteAccountManager ( int id, int approvalId ) : ActionResult
RerouteAccountManager ( int id, int approvalId, string accountManagerId ) : ActionResult
ReroutePurchaser ( int id ) : ActionResult
ReroutePurchaser ( int id, string purchaserId ) : ActionResult
UpdateAttachmentCategory ( int id, Guid guidId, string category ) : JsonNetResult
UpdateNote ( int id, string orderNote ) : JsonNetResult
UpdatePoNumber ( int id, string poNumber ) : JsonNetResult
UpdatePostStatus ( int id, string postStatusValue ) : JsonNetResult
UpdateReferenceNumber ( int id, string referenceNumber ) : JsonNetResult
UpdateTag ( int id, string tag ) : JsonNetResult
UploadFile ( int orderId ) : ActionResult

Описание методов

AssignAccountsPayableUser() публичный Метод

Access checks done inside method.
public AssignAccountsPayableUser ( int id ) : System.Web.Mvc.ActionResult
id int
Результат System.Web.Mvc.ActionResult

DeleteSavedOrder() публичный Метод

public DeleteSavedOrder ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid
Результат System.Web.Mvc.ActionResult

GetKfsStatus() публичный Метод

Calls the Campus Financial System to get updated status on order
public GetKfsStatus ( int id ) : JsonNetResult
id int Order Id
Результат JsonNetResult

GetPeeps() публичный Метод

Get a list of people who have access to approve an order at a particular status
public GetPeeps ( int id, string orderStatusCodeId ) : JsonNetResult
id int
orderStatusCodeId string
Результат JsonNetResult

GetReceiveHistory() публичный Метод

public GetReceiveHistory ( int id, int lineItemId, bool payInvoice ) : JsonNetResult
id int
lineItemId int
payInvoice bool
Результат JsonNetResult

GetRequesters() публичный Метод

public GetRequesters ( int id ) : ActionResult
id int
Результат ActionResult

Index() публичный Метод

#1
public Index ( ) : ActionResult
Результат ActionResult

Lookup() публичный Метод

Find an order by request number and redirect to the review page
public Lookup ( string id ) : ActionResult
id string
Результат ActionResult

OrderController() публичный Метод

public OrderController ( IRepositoryFactory repositoryFactory, IOrderService orderService, ISecurityService securityService, IDirectorySearchService directorySearchService, IFinancialSystemService financialSystemService, IQueryRepositoryFactory queryRepository, IEventService eventService, IBugTrackingService bugTrackingService, IFileService fileService ) : System
repositoryFactory IRepositoryFactory
orderService IOrderService
securityService ISecurityService
directorySearchService IDirectorySearchService
financialSystemService IFinancialSystemService
queryRepository IQueryRepositoryFactory
eventService IEventService
bugTrackingService IBugTrackingService
fileService IFileService
Результат System

Request() публичный Метод

Make an order request #5
public Request ( int id ) : ActionResult
id int Workgroup Id
Результат ActionResult

Review() публичный Метод

Page to review an order and for approving/denying the order.
This page should be used by ad hoc account managers too, but without the link to edit
public Review ( int id ) : ActionResult
id int
Результат ActionResult

SaveOrderRequest() публичный Метод

Save an order request
public SaveOrderRequest ( string saveId, string saveName, string formData, string accountData, string preparedFor, int workgroupId ) : JsonNetResult
saveId string Save Id, if just updating a save
saveName string Name to remember the save by
formData string Serialized form data
accountData string Serialized JSON of account info
preparedFor string Who can access saved form. If null, current user
workgroupId int Workgroup the save is associated with
Результат JsonNetResult

SavedOrderRequests() публичный Метод

public SavedOrderRequests ( ) : ActionResult
Результат ActionResult

SelectWorkgroup() публичный Метод

If user has more than one workgroup, they select it for their order #2
public SelectWorkgroup ( ) : ActionResult
Результат ActionResult

ViewFile() публичный Метод

Allows a user to download any attachment file by providing the file ID
public ViewFile ( Guid fileId ) : ActionResult
fileId Guid
Результат ActionResult