public static void updateOrderProcessData(long orderId )
        {
            OrderProcessSelectCommandTableAdapter adapter = new OrderProcessSelectCommandTableAdapter();
            //OrderProcessDataSet.OrderProcessSelectCommandDataTable orderTable = adapter.GetData();

            adapter.UpdateOrderProcessQuery( (long)OrderStatus.Cancelled, orderId) ;
            notifyCustomer(orderId);
        }
        public static void updateOrderProcessData(long orderId, long statusId, long orderTypeId )
        {
            OrderProcessSelectCommandTableAdapter adapter = new OrderProcessSelectCommandTableAdapter();
            OrderProcessDataSet.OrderProcessSelectCommandDataTable table = adapter.GetOrderProcessDataUsingFromdate(DateTime.Today);

            long newOrderStatus = nextProcessStep(orderTypeId, statusId, orderTypeId);
            adapter.UpdateOrderProcessQuery(newOrderStatus, orderId);
        }
        public static OrderProcessDataSet.OrderProcessSelectCommandDataTable getOrderProcessData()
        {
            OrderProcessSelectCommandTableAdapter adapter = new OrderProcessSelectCommandTableAdapter();

            DateTime now = DateTime.Today;
            OrderProcessDataSet.OrderProcessSelectCommandDataTable table = adapter.GetOrderProcessDataUsingFromdate(now);

            return table;
        }
Example #4
0
        public static void updateOrderProcessData(long orderId)
        {
            OrderProcessSelectCommandTableAdapter adapter = new OrderProcessSelectCommandTableAdapter();

            //OrderProcessDataSet.OrderProcessSelectCommandDataTable orderTable = adapter.GetData();

            adapter.UpdateOrderProcessQuery((long)OrderStatus.Cancelled, orderId);
            notifyCustomer(orderId);
        }
Example #5
0
        public static void updateOrderProcessData(long orderId, long statusId, long orderTypeId)
        {
            OrderProcessSelectCommandTableAdapter adapter = new OrderProcessSelectCommandTableAdapter();

            OrderProcessDataSet.OrderProcessSelectCommandDataTable table = adapter.GetOrderProcessDataUsingFromdate(DateTime.Today);

            long newOrderStatus = nextProcessStep(orderTypeId, statusId, orderTypeId);

            adapter.UpdateOrderProcessQuery(newOrderStatus, orderId);
        }
Example #6
0
        public static OrderProcessDataSet.OrderProcessSelectCommandDataTable getOrderProcessData()
        {
            OrderProcessSelectCommandTableAdapter adapter = new OrderProcessSelectCommandTableAdapter();

            DateTime now = DateTime.Today;

            OrderProcessDataSet.OrderProcessSelectCommandDataTable table = adapter.GetOrderProcessDataUsingFromdate(now);

            return(table);
        }