예제 #1
0
        public static bool UpdateOrderCount(string _orderNo, string _productNo, int _updatedOrderCount)
        {
            int originalOrderCount = OrderInfoBLL.GetOrderCountByOrderNo(_orderNo);

            return(OrderInfoBLL.OrderInfoUpdate(_orderNo, _productNo, _updatedOrderCount + originalOrderCount) &&
                   ProductionLineInfoBLL.UpdateOrderNoForProductionLine(_orderNo, _productNo, _updatedOrderCount + originalOrderCount));
        }
예제 #2
0
 public static void UpdateOrderStatus(string _orderNo, string _productNo, byte _orderStatus)
 {
     if (!OrderInfoBLL.OrderAlreadyExsit(_orderNo))
     {
         OrderInfoBLL.OrderInfoUpdate(_orderNo, _productNo, _orderStatus);
     }
 }
예제 #3
0
 public static void CheckOrderExsit(string _orderNo, string _productNo, int _orderCount)
 {
     if (!OrderInfoBLL.OrderAlreadyExsit(_orderNo))
     {
         OrderInfoBLL.OrderInfoInsert(_orderNo, _productNo, _orderCount);
     }
     else
     {
         OrderInfoBLL.OrderInfoUpdate(_orderNo, _productNo, _orderCount);
     }
 }