Esempio n. 1
0
        //get all clients orders
        public IEnumerable GetAllOrders(string option)
        {
            OrdersLogic orders = new OrdersLogic();

            switch (option)
            {
            case "All":
                return(orders.GetAllOrders());

            case "Open":
                return(orders.GetAllOpenOrders());

            case "Closed":
                return(orders.GetAllClosedOrders());

            default:
                return(orders.GetAllOrders());
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GridView1.DataSource = ord.GetAllOrders();
                GridView1.DataBind();


                ddl.DataSource = ct.GetAllCities();
                ddl.DataBind();

                ddl.DataTextField = "name";

                ddl.DataBind();
                ddl.Items.Insert(0, "בחר");
            }
        }