Esempio n. 1
0
 public int SaveOrder(Order order)
 {
     OrderDL orderDL = new OrderDL();
     int status = orderDL.SaveOrder(order);
     Common.SendOrder();
     return status;
 }
Esempio n. 2
0
 public DataTable GetOrderStatuses(bool allSelection)
 {
     OrderDL orderDL = new OrderDL();
     DataTable orderStatuses = orderDL.GetOrderStatuses();
     if (allSelection)
     {
         DataRow newRow = orderStatuses.NewRow();
         newRow["orderStatusID"] = -1;
         newRow["name"] = "Sve";
         orderStatuses.Rows.InsertAt(newRow, 0);
     }
     return orderStatuses;
 }
Esempio n. 3
0
 public int UpdateOrderStatus(int orderID, int orderStatusID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.UpdateOrderStatus(orderID, orderStatusID);
 }
Esempio n. 4
0
 public DataTable GetOrders(int statusID, DateTime dateFrom, DateTime dateTo)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrders(statusID, dateFrom, dateTo);
 }
Esempio n. 5
0
 public DataTable GetOrders()
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrders(-1, DateTime.MinValue, DateTime.Now);
 }
Esempio n. 6
0
 public DataTable GetOrderItemsFull(int orderID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrderItemsFull(orderID);
 }
Esempio n. 7
0
 public Order GetOrder(int orderID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrder(orderID);
 }
Esempio n. 8
0
 public int DeleteOrder(int orderID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.DeleteOrder(orderID);
 }