Exemplo n.º 1
0
        private void LoadDeliveredOrdersByDate()
        {
            string startdate = Calendar_Startdate.SelectedDate.ToString();
            string enddate   = Calendar_Enddate.SelectedDate.ToString();

            System.Diagnostics.Debug.WriteLine("Startdate: " + startdate + " Enddate: " + enddate);

            I_EshopserviceClient client = new I_EshopserviceClient();

            DeliveredOrders = new DataTable();
            DeliveredOrders = client.AdminGetOrdersByDate(true, startdate, enddate);

            Repeater_Delivered.DataSource = DeliveredOrders;
            Repeater_Delivered.DataBind();
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!WebProfile.Current.IsAnonymous)
                {
                    LoadOrders();

                    Repeater_Delivered.DataSource = DeliveredOrders;
                    Repeater_Delivered.DataBind();

                    Repeater_unDelivered.DataSource = unDeliveredOrders;
                    Repeater_unDelivered.DataBind();

                    //Loads cartstatus
                    Label lbl_Cart = (Label)Master.FindControl("lbl_CartStatus");
                    if (lbl_Cart != null)
                    {
                        lbl_Cart.Text = WebProfile.Current.Cart.TotalPrice + "kr";
                    }
                }
            }
        }