Example #1
0
        private void BindOrders()
        {
            OrderQuery    orderQuery = this.GetOrderQuery();
            DbQueryResult orders     = SubsiteSalesHelper.GetOrders(orderQuery);

            this.dlstOrders.DataSource = orders.Data;
            this.dlstOrders.DataBind();
            this.pager.TotalRecords             = orders.TotalRecords;
            this.pager1.TotalRecords            = orders.TotalRecords;
            this.txtUserName.Text               = orderQuery.UserName;
            this.txtOrderId.Text                = orderQuery.OrderId;
            this.txtProductName.Text            = orderQuery.ProductName;
            this.txtShopTo.Text                 = orderQuery.ShipTo;
            this.calendarStartDate.SelectedDate = orderQuery.StartDate;
            this.calendarEndDate.SelectedDate   = orderQuery.EndDate;
            this.lblStatus.Text                 = ((int)orderQuery.Status).ToString();
        }