コード例 #1
0
ファイル: MadeOrders.aspx.cs プロジェクト: asabla/e-shoppen
        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();
        }
コード例 #2
0
ファイル: MyProfile.aspx.cs プロジェクト: asabla/e-shoppen
        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";
                    }
                }
            }
        }