コード例 #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));
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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));
 }
コード例 #6
0
 /// <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));
 }