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)); }
public static void UpdateOrderStatus(string _orderNo, string _productNo, byte _orderStatus) { if (!OrderInfoBLL.OrderAlreadyExsit(_orderNo)) { OrderInfoBLL.OrderInfoUpdate(_orderNo, _productNo, _orderStatus); } }
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); } }