Exemplo n.º 1
0
        private void LoadOrderType(int orderType)
        {
            switch (orderType)
            {
            case (int)OrderType.Pending:
                customerOrder = BusinessLayer.ViewOrder(false, userDetails.iUserDetailsId, OrderType.Pending);
                BindData(customerOrder);
                CssSetting(OrderType.Pending);
                break;

            case (int)OrderType.Processing:
                customerOrder = BusinessLayer.ViewOrder(false, userDetails.iUserDetailsId, OrderType.Processing);
                BindData(customerOrder);
                CssSetting(OrderType.Processing);
                break;

            case (int)OrderType.ReadyForDelivery:
                customerOrder = BusinessLayer.ViewOrder(false, userDetails.iUserDetailsId, OrderType.ReadyForDelivery);
                BindData(customerOrder);
                CssSetting(OrderType.ReadyForDelivery);
                break;

            case (int)OrderType.Delivered:
                customerOrder = BusinessLayer.ViewOrder(false, userDetails.iUserDetailsId, OrderType.Delivered);
                BindData(customerOrder);
                CssSetting(OrderType.Delivered);
                break;

            case (int)OrderType.Returned:
                customerOrder = BusinessLayer.ViewOrder(false, userDetails.iUserDetailsId, OrderType.Returned);
                BindData(customerOrder);
                CssSetting(OrderType.Returned);
                break;

            case (int)OrderType.Hold:
                customerOrder = BusinessLayer.ViewOrder(false, userDetails.iUserDetailsId, OrderType.Hold);
                BindData(customerOrder);
                CssSetting(OrderType.Hold);
                break;

            default:
                break;
            }
        }