Example #1
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            DataSet      DS           = new DataSet();
            Dispatch     disp         = new Dispatch();
            DispatchData dispatchData = new DispatchData();
            string       result       = string.Empty;

            disp.DispatchDate = Convert.ToDateTime(txtOrderDate.Text).ToString("dd-MM-yyyy");
            disp.RouteID      = Convert.ToInt32(dpagentRoute.SelectedItem.Value);
            disp.CategoryId   = Convert.ToInt32(dpCategory.SelectedItem.Value);
            DS = dispatchData.GetDispatchLists(disp);
            if (!Comman.Comman.IsDataSetEmpty(DS))
            {
                rpRouteList.DataSource = DS;
                rpRouteList.DataBind();
                uprouteList.Update();
            }
        }