private void SmsYolla(string tip, string gonderen, string mesaj) { using (radiusEntities dc = MyContext.Context(firma)) { SmsIslemleri sms = new SmsIslemleri(dc); AyarIslemleri ayarimiz = new AyarIslemleri(dc); if (tip == "gnltp") { //genel mesaj if (Session["teller"] != null) { string s = Session["teller"].ToString(); if (!String.IsNullOrEmpty(s)) { string[] teller = s.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); string mesaj_sonucu = sms.SmsGenel(ayarimiz, mesaj, teller); Session["mesele"] = sms.MesajSonucu(mesaj_sonucu); sms.CariMesajKaydet(teller); Response.Redirect("/Sonuc"); } } else { Session["mesele"] = "Oturumunuz zaman aşımına uğradı. Lütfen tekrar liste oluşturunuz!"; Response.Redirect("/Sonuc"); } } } }
private void Goster() { if (Request.QueryString["tur"] != null) { string tur = Request.QueryString["tur"]; string custID = Request.QueryString["custID"]; if (Request.QueryString["tip"] != null) { using (radiusEntities dc = MyContext.Context(firma)) { string tip = Request.QueryString["tip"]; SmsIslemleri sms = new SmsIslemleri(dc); if (tur == "sms") { if (tip == "gnltp") { baslik.InnerHtml = "Liste İçin Sms"; if (Session["teller"] != null) { string teller = Session["teller"].ToString(); liste.Text = teller; int adet = teller.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Length; baslik.InnerHtml = adet.ToString() + "Adetlik Liste İçin Sms"; } } } else if (tur == "mail") { if (tip == "ggl") { //gunugelenMail baslik.InnerHtml = "Yaklaşan Ödemeler İçin Mail"; } else if (tip == "gnltp") { //genel Mail baslik.InnerHtml = "Liste İçin Mail"; } } } /// } } }