Beispiel #1
0
        protected void fillOrders()
        { // populates a gridview with all orders numbers
            Order allOrders = new Order();

            GVOrders.DataSource = allOrders.getOrders();
            GVOrders.DataBind();
        }// closes the fillorders
Beispiel #2
0
        /*
         * When the user selects a job number from the drop down list the gridview updates to orders for that one job
         */
        protected void DDLjobNos_SelectedIndexChanged(object sender, EventArgs e)
        { // When the user selects a job number the gridview shows the description for that site
            Order myOrder = new Order();

            myOrder.jobNo       = Convert.ToString(DDLjobNos.SelectedValue);
            GVOrders.DataSource = myOrder.getOrdersByJob();
            GVOrders.DataBind();
            DDLjobNos.SelectedValue = null;
        }