private void Goster(radiusEntities dc)
        {
            s += "goster-";
            string terim   = txtAra.Value;
            string antenid = Request.QueryString["antenid"];

            MusteriIslemleri m = new MusteriIslemleri(dc);

            if (!String.IsNullOrEmpty(antenid))
            {
                musteri_tel_mail musteri_bilgileri = m.antenMusterileri(Convert.ToInt32(antenid));
                GridView1.DataSource = musteri_bilgileri.musteriler;
                baslik.InnerHtml     = musteri_bilgileri.anten_adi + " Kayıtlı Müşteriler";
                hdnTeller.Value      = musteri_bilgileri.teller;
            }
            else if (String.IsNullOrEmpty(terim))
            {
                musteri_tel_mail musteri_bilgileri = m.musteriListesiR();
                GridView1.DataSource = musteri_bilgileri.musteriler;
                baslik.InnerHtml     = " Kayıtlı Müşteriler";
                hdnTeller.Value      = musteri_bilgileri.teller;
            }
            else
            {
                musteri_tel_mail musteri_bilgileri = m.musteriAraR(terim);
                GridView1.DataSource = musteri_bilgileri.musteriler;
                baslik.InnerHtml     = " Kayıtlı Müşteriler";
                hdnTeller.Value      = musteri_bilgileri.teller;
            }

            GridView1.DataBind();
        }
Example #2
0
        public void MusteriAra(object sender, EventArgs e)
        {
            baslik.InnerHtml = "Kişi ve Firmalar";
            string s = txtAra.Value;

            using (radiusEntities dc = MyContext.Context(firma))
            {
                MusteriIslemleri m = new MusteriIslemleri(dc);
                baslik.InnerHtml = "Kişi ve Firmalar";
                musteri_tel_mail musteri_bilgileri = m.musteriAraR(s);
                hdnTeller.Value      = musteri_bilgileri.teller;
                GridView1.DataSource = musteri_bilgileri.musteriler;
                GridView1.DataBind();
            }
        }
Example #3
0
        private void toplu(MusteriIslemleri m)
        {
            string antenid = Request.QueryString["antenid"];
            string tip     = Request.QueryString["tip"];
            string s       = txtAra.Value;

            //seçimli sms listesi
            if (Session["teller2"] != null)
            {
                smsSayi.InnerHtml = Session["teller2"].ToString().Split((new char[] { ',' }), StringSplitOptions.RemoveEmptyEntries).Length.ToString() + " Adet";
                cariOzet.Visible  = true;
            }

            //müşteri arama
            if (!String.IsNullOrEmpty(s))
            {
                baslik.InnerHtml = "Kişi ve Firmalar";
                musteri_tel_mail musteri_bilgileri = m.musteriAraR(s);
                hdnTeller.Value      = musteri_bilgileri.teller;
                GridView1.DataSource = musteri_bilgileri.musteriler;
                GridView1.DataBind();
            }

            else if (!String.IsNullOrEmpty(tip))
            {
                //bütün müşteriler
                baslik.InnerHtml = "Kişi ve Firmalar";
                musteri_tel_mail musteri_bilgileri = m.musteriListesiR();
                hdnTeller.Value      = musteri_bilgileri.teller;
                GridView1.DataSource = musteri_bilgileri.musteriler;

                GridView1.DataBind();
            }

            //masterpageden gelenler
            else if (Session["kriter"] != null)
            {
                string           ss = Session["kriter"].ToString();
                musteri_tel_mail musteri_bilgileri = m.musteriAraR(ss);
                hdnTeller.Value      = musteri_bilgileri.teller;
                GridView1.DataSource = musteri_bilgileri.musteriler;
                GridView1.DataBind();
            }
        }