コード例 #1
0
 public int SaveOrder(Order order)
 {
     OrderDL orderDL = new OrderDL();
     int status = orderDL.SaveOrder(order);
     Common.SendOrder();
     return status;
 }
コード例 #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;
 }
コード例 #3
0
 public int UpdateOrderStatus(int orderID, int orderStatusID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.UpdateOrderStatus(orderID, orderStatusID);
 }
コード例 #4
0
 public DataTable GetOrders(int statusID, DateTime dateFrom, DateTime dateTo)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrders(statusID, dateFrom, dateTo);
 }
コード例 #5
0
 public DataTable GetOrders()
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrders(-1, DateTime.MinValue, DateTime.Now);
 }
コード例 #6
0
 public DataTable GetOrderItemsFull(int orderID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrderItemsFull(orderID);
 }
コード例 #7
0
 public Order GetOrder(int orderID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.GetOrder(orderID);
 }
コード例 #8
0
 public int DeleteOrder(int orderID)
 {
     OrderDL orderDL = new OrderDL();
     return orderDL.DeleteOrder(orderID);
 }