Exemplo n.º 1
0
        private void BindShipmentsGrid()
        {
            // AC8-2888: REMOVE ORDER OBJECT FROM SESSION CACHE BEFORE BINDING SHIPMENTS GRID TO FIX CACHING ISSUE
            AbleContext.Current.Database.GetSession().Evict(_Order);
            _Order = OrderDataSource.Load(AbleCommerce.Code.PageHelper.GetOrderId());

            EditShipmentsGrid.DataSource = _Order.Shipments;
            EditShipmentsGrid.DataBind();
        }
        private void BindGrids()
        {
            EditShipmentsGrid.DataSource = _Order.Shipments;
            EditShipmentsGrid.DataBind();
            IList <OrderItem> nonShippingItems = OrderHelper.GetNonShippingItems(_Order);

            if (nonShippingItems.Count > 0)
            {
                NonShippingItemsGrid.DataSource = nonShippingItems;
                NonShippingItemsGrid.DataBind();
            }
            else
            {
                NonShippingItemsPanel.Visible = false;
            }
        }