예제 #1
0
 /// <summary>
 /// Remove function that removes an Item from a PurchaseOrder
 /// </summary>
 /// <param name="tmpItem"></param>
 /// <param name="tmpOrder"></param>
 /// <returns></returns>
 public static bool EmployeeRemoveItem(Item tmpItem, PurchaseOrder tmpOrder)
 {
     return(ItemSQL.EmployeeRemoveItem(tmpItem, tmpOrder));
 }
예제 #2
0
 /// <summary>
 /// Add function that adds a new Item to a PurchaseOrder
 /// </summary>
 /// <param name="tmpItem"></param>
 /// <param name="tmpOrder"></param>
 /// <returns></returns>
 public static int EmployeeAddItem(Item tmpItem, PurchaseOrder tmpOrder)
 {
     return(ItemSQL.EmployeeAddItem(tmpItem, tmpOrder));
 }
 /// <summary>
 /// Update function that updates a PurchaseOrder's totals after Items have been added or modified
 /// </summary>
 /// <param name="tmpOrder"></param>
 /// <returns></returns>
 public static bool EmployeeUpdateTotals(PurchaseOrder tmpOrder)
 {
     return(PurchaseOrderSQL.EmployeeUpdateTotals(tmpOrder));
 }
 /// <summary>
 /// Submit function that inserts a newly created PurchaseOrder full of items
 /// </summary>
 /// <param name="tmpPurchaseOrder"></param>
 /// <returns></returns>
 public static int Submit(PurchaseOrder tmpPurchaseOrder)
 {
     tmpPurchaseOrder.OrderNumber = PurchaseOrderSQL.SubmitPurchaseOrder(tmpPurchaseOrder);
     return(tmpPurchaseOrder.OrderNumber);
 }
 /// <summary>
 /// Sets a Purchase Order's status to Closed
 /// </summary>
 /// <param name="tmpOrder"></param>
 /// <returns></returns>
 public static bool ClosePurchaseOrder(PurchaseOrder tmpOrder)
 {
     return(PurchaseOrderSQL.ClosePurchaseOrder(tmpOrder));
 }
 /// <summary>
 /// Sets a Purchase Order's status to Pending
 /// </summary>
 /// <param name="tmpOrder"></param>
 /// <returns></returns>
 public static bool UpdateStatusToPending(PurchaseOrder tmpOrder)
 {
     return(PurchaseOrderSQL.UpdateStatusToPending(tmpOrder));
 }