|
Provider contains methods for order status lookup table. It uses the OrderStatusInfo class.
| • | object GetOrderStatusInfo(int orderStatusId) – returns the OrderStatusInfo object selected by given ID. |
| • | object GetOrderStatusInfo(string orderStatusName) – returns the OrderStatusInfo object selected by given name. |
| • | DataSet GetStatuses(object status) – returns the DataSet of order statuses with specified status. See database reference for column definitions. |
| • | void SetOrderStatusInfo(object orderStatus) – updates/inserts the order status record with data from given OrderStatusInfo object. If StatusID is set, updates, else inserts a new record. |
| • | void DeleteOrderStatusInfo(int orderStatusId) – deletes the specified order status |
| • | void MoveStatusUp(int statusId) – moves the status up (changes the status order) |
| • | void MoveStatusDown(int statusId) – moves the status down (changes the staus order) |
| • | int GetLastStatusOrder() – returns the order ID of the last status. |
| • | object GetFirstEnabledStatus() – returns the first enabled OrderStatusInfo object. |
| • | bool CheckDependencies(int orderStatusId) – returns true if some objects depend on the status. |
|