public void FindCustomers(object sender, SearchCustomersEventArgs e)
        {
            this.Visible = e.SearchListVisible;
            odsListaInteresantow.SelectParameters.Clear();

            odsListaInteresantow.SelectParameters.Add("idTypu", e.IdTypu.ToString());
            odsListaInteresantow.SelectParameters.Add("idKategorii", e.IdKategorii.ToString());
            odsListaInteresantow.SelectParameters.Add("imie", e.Imie);
            odsListaInteresantow.SelectParameters.Add("nazwisko", e.Nazwisko);
            odsListaInteresantow.SelectParameters.Add("nazwa", e.Nazwa);
            odsListaInteresantow.SelectParameters.Add("miejscowosc", e.Miasto);
            odsListaInteresantow.SelectParameters.Add("kod", e.Kod);
            odsListaInteresantow.SelectParameters.Add("ulica", e.Ulica);
            odsListaInteresantow.SelectParameters.Add("budynek", e.Budynek);
            odsListaInteresantow.SelectParameters.Add("lokal", e.Lokal);
            odsListaInteresantow.SelectParameters.Add("sortParam", "");
            odsListaInteresantow.SelectParameters.Add("nip", e.Nip);
            odsListaInteresantow.SelectParameters.Add("poczta", e.Poczta);
            odsListaInteresantow.SelectParameters.Add("numerSMS", e.NumerSMS);

            //gvListaInteresantow.DataSource = (new CustomerDAO()).FindCustomer(e.IdTypu, e.IdKategorii, e.Imie, e.Nazwisko, e.Nazwa, e.Miasto, e.Kod, e.Ulica, e.Budynek, e.Lokal, "");
            //gvListaInteresantow.DataSource = (new CustomerDAO()).FindCustomer(, , , , , , , , , , "");
            gvListaInteresantow.PageSize = _pageSize;
            gvListaInteresantow.DataBind();
        }
Exemple #2
0
 void customer_SearchCustomers(object sender, SearchCustomersEventArgs e)
 {
     customer.Visible       = false;
     lnkSearchAgain.Visible = true;
 }