Exemplo n.º 1
0
        protected void CurrentOrderDataBinding()
        {
            Team3Restaurant.OrderSystem      OS = new Team3Restaurant.OrderSystem();
            List <Team3Restaurant.OrderList> currenOrderDataSource = OS.GetOrderList(iPadID.Text);

            GVOrderList.DataSource = currenOrderDataSource;
            GVOrderList.DataBind();
        }
Exemplo n.º 2
0
        protected void BtnChangeStatus_Click(object sender, EventArgs e)
        {
            Button order   = sender as Button;
            string orderID = order.CommandArgument;
            string status  = DLOrderStatus.SelectedValue;

            if (orderID == null)
            {
                return;
            }
            if (status.Equals("none"))
            {
                Response.Write("<script language='javascript'>window.alert('Please Select the Right Status!');</script>");
                return;
            }


            Team3Restaurant.ManagementSystem.OrderManagement OM = new Team3Restaurant.ManagementSystem.OrderManagement();
            OM.ChangeStatus(orderID, status);
            DLOrderStatus.SelectedValue = "none";
            GVOrderList.DataBind();
        }