Method | Description | |
---|---|---|
Approve ( Order order ) : bool |
Modifies an order's approvals according to the permissions of the given userId
|
|
Cancel ( Order order, string comment ) : void |
The original creator of an order can cancel that order at any time
|
|
Complete ( Order order, OrderType newOrderType, string kfsDocType = null ) : string[] |
Complete the last approval for an order, and return any errors that result
|
|
CreateApprovalsForNewOrder ( Order order, int conditionalApprovalIds = null, string accountId = null, string approverId = null, string accountManagerId = null ) : void |
Will add the proper approval levels to an order. If a workgroup account or approver/acctManager is passed in, a split is not possible
|
|
Deny ( Order order, string comment ) : void |
The order is denied by an actor. This requires a comment
|
|
Duplicate ( Order order ) : Order |
Duplicates the given order info a new order, one that doesn't include the splits, approvals, or history of the given order //TODO: should a duplicate order retain the same splits? //TODO: should approvals/create events be called automatically? |
|
EditExistingOrder ( Order order ) : void |
Handle editing an existing order without any rerouting
|
|
GetAccountsPayableIndexedListofOrders ( string received, string paid, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IndexedList |
||
GetAdministrativeIndexedListofOrders ( string received, string paid, bool isComplete = false, bool showPending = false, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IndexedList |
||
GetAdministrativeListofOrders ( bool isComplete = false, bool showPending = false, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IQueryable |
||
GetCurrentOrderStatus ( Order order ) : OrderStatusCode |
//get the lowest status code that still needs to be approved
|
|
GetCurrentOrderStatus ( int orderId ) : OrderStatusCode |
Returns the current approval level that needs to be completed, or null if there are no approval steps pending TODO: I think we can get rid of this and just query order.StatusCode as long as it is up to date |
|
GetCurrentRequiredApprovals ( int orderId ) : IEnumerable |
Returns all of the approvals that need to be completed for the current approval status level
|
|
GetIndexedListofOrders ( string received, string paid, bool isComplete = false, bool showPending = false, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), bool showCreated = false, System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IndexedList |
||
GetListofOrders ( bool isComplete = false, bool showPending = false, string orderStatusCode = null, DateTime startDate = newDateTime?(), DateTime endDate = newDateTime?(), bool showCreated = false, DateTime startLastActionDate = newDateTime?(), DateTime endLastActionDate = newDateTime?() ) : IQueryable |
||
HandleSavedForm ( Order order, Guid formSaveId ) : void |
Looks for existing saved forms and associates them with the current order
|
|
OrderService ( IRepositoryFactory repositoryFactory, IEventService eventService, IUserIdentity userIdentity, ISecurityService securityService, IRepository |
||
ReRouteApprovalsForExistingOrder ( Order order, string approverId = null, string accountManagerId = null ) : void |
Recreates approvals for the given order, removing all approvals at or above the current order level Should not affect conditional approvals?
|
|
ReRouteSingleApprovalForExistingOrder ( Approval approval, User user, bool notify = false ) : void | ||
TraverseOrgs ( Organization organization, int maxLevel ) : List |
Traverse down (recursively) the organization and gather all the workgroups
|
|
WillOrderBeSentToKfs ( OrderType newOrderType, string kfsDocType = null ) : bool |
Method | Description | |
---|---|---|
AddApprovalSteps ( Order order, ApprovalInfo approvalInfo, Split split, int minLevel ) : void |
Add in approval steps to either the order or split, depending on what is provided
|
|
AutoApprovable ( Order order, Split split, User approver ) : bool |
Calculate the automatic approvals-- if any apply mark that approval level as complete
|
|
GetActiveOrders ( User user, List |
Gets all orders for which the user has already acted on, but are not yet complete.
|
|
GetCompletedOrders ( User user, List |
Gets the archive of all orders the user is in the tracking chain for including complete
|
|
GetManager ( string accountManagerId ) : User |
Gets the manager given by account id, unless we want any manager which just returns null (goes to workgroup)
|
|
GetOrdersByDate ( IQueryable |
Adds where clause to linq query to filter by date
|
|
GetOrdersByStatus ( IQueryable |
Adds where clause to linq query to filter orders by status
|
|
GetPendingOrders ( User user, List |
Get the list of "pending" orders List of orders pending at the user's status as well as one's they have requested |
public Cancel ( Order order, string comment ) : void | ||
order | Order | |
comment | string | |
return | void |
public Complete ( Order order, OrderType newOrderType, string kfsDocType = null ) : string[] | ||
order | Order | |
newOrderType | OrderType | |
kfsDocType | string | |
return | string[] |
public CreateApprovalsForNewOrder ( Order order, int conditionalApprovalIds = null, string accountId = null, string approverId = null, string accountManagerId = null ) : void | ||
order | Order | The order. If it does not contain splits, you must pass along either workgroupAccount or acctManager |
conditionalApprovalIds | int | The Ids of required conditional approvals for this order (the ones answered "yes") |
accountId | string | Optional id of an account to use for routing |
approverId | string | Optional approver userID |
accountManagerId | string | AccountManager userID, required if account is not supplied |
return | void |
public Deny ( Order order, string comment ) : void | ||
order | Order | |
comment | string | |
return | void |
public EditExistingOrder ( Order order ) : void | ||
order | Order | |
return | void |
public GetAccountsPayableIndexedListofOrders ( string received, string paid, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IndexedList |
||
received | string | |
paid | string | |
orderStatusCode | string | |
startDate | System.DateTime | |
endDate | System.DateTime | |
startLastActionDate | System.DateTime | |
endLastActionDate | System.DateTime | |
return | IndexedList |
public GetAdministrativeIndexedListofOrders ( string received, string paid, bool isComplete = false, bool showPending = false, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IndexedList |
||
received | string | |
paid | string | |
isComplete | bool | |
showPending | bool | |
orderStatusCode | string | |
startDate | System.DateTime | |
endDate | System.DateTime | |
startLastActionDate | System.DateTime | |
endLastActionDate | System.DateTime | |
return | IndexedList |
public GetAdministrativeListofOrders ( bool isComplete = false, bool showPending = false, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IQueryable |
||
isComplete | bool | |
showPending | bool | |
orderStatusCode | string | |
startDate | System.DateTime | |
endDate | System.DateTime | |
startLastActionDate | System.DateTime | |
endLastActionDate | System.DateTime | |
return | IQueryable |
public GetCurrentOrderStatus ( Order order ) : OrderStatusCode | ||
order | Order | |
return | OrderStatusCode |
public GetCurrentOrderStatus ( int orderId ) : OrderStatusCode | ||
orderId | int | Id of the order |
return | OrderStatusCode |
public GetCurrentRequiredApprovals ( int orderId ) : IEnumerable |
||
orderId | int | Id of the order |
return | IEnumerable |
public GetIndexedListofOrders ( string received, string paid, bool isComplete = false, bool showPending = false, string orderStatusCode = null, System.DateTime startDate = newDateTime?(), System.DateTime endDate = newDateTime?(), bool showCreated = false, System.DateTime startLastActionDate = newDateTime?(), System.DateTime endLastActionDate = newDateTime?() ) : IndexedList |
||
received | string | |
paid | string | |
isComplete | bool | |
showPending | bool | |
orderStatusCode | string | |
startDate | System.DateTime | |
endDate | System.DateTime | |
showCreated | bool | |
startLastActionDate | System.DateTime | |
endLastActionDate | System.DateTime | |
return | IndexedList |
public GetListofOrders ( bool isComplete = false, bool showPending = false, string orderStatusCode = null, DateTime startDate = newDateTime?(), DateTime endDate = newDateTime?(), bool showCreated = false, DateTime startLastActionDate = newDateTime?(), DateTime endLastActionDate = newDateTime?() ) : IQueryable |
||
isComplete | bool | |
showPending | bool | |
orderStatusCode | string | |
startDate | DateTime | |
endDate | DateTime | |
showCreated | bool | |
startLastActionDate | DateTime | |
endLastActionDate | DateTime | |
return | IQueryable |
public HandleSavedForm ( Order order, Guid formSaveId ) : void | ||
order | Order | |
formSaveId | Guid | |
return | void |
public OrderService ( IRepositoryFactory repositoryFactory, IEventService eventService, IUserIdentity userIdentity, ISecurityService securityService, IRepository |
||
repositoryFactory | IRepositoryFactory | |
eventService | IEventService | |
userIdentity | IUserIdentity | |
securityService | ISecurityService | |
workgroupPermissionRepository | IRepository |
|
approvalRepository | IRepository |
|
orderTrackingRepository | IRepository |
|
organizationRepository | string>.IRepositoryWithTypedId | |
orderRepository | IRepository |
|
queryRepositoryFactory | IQueryRepositoryFactory | |
accessQueryService | IAccessQueryService | |
financialSystemService | IFinancialSystemService | |
indexService | IIndexService | |
return | System |
public ReRouteApprovalsForExistingOrder ( Order order, string approverId = null, string accountManagerId = null ) : void | ||
order | Order | |
approverId | string | |
accountManagerId | string | |
return | void |
public ReRouteSingleApprovalForExistingOrder ( Approval approval, User user, bool notify = false ) : void | ||
approval | Approval | |
user | User | |
notify | bool | |
return | void |
public TraverseOrgs ( Organization organization, int maxLevel ) : List |
||
organization | Organization | |
maxLevel | int | Loop breaker. Max depth of 99 |
return | List |
public WillOrderBeSentToKfs ( OrderType newOrderType, string kfsDocType = null ) : bool | ||
newOrderType | OrderType | |
kfsDocType | string | |
return | bool |