示例#1
0
        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 == "ggl")
                            {
                                Radius.sms_ayars ayar = sms.SmsAyarGoster("yaklasan_taksit");
                                //gunugelenSMS
                                if (ayar != null)
                                {
                                    baslik.InnerHtml = "Yaklaşan Ödemeler İçin Sms";
                                    txtGonderen.Text = ayar.gonderen;
                                    txtMesaj.Text    = ayar.mesaj;
                                }
                            }

                            else if (tip == "gnltp")
                            {
                                baslik.InnerHtml = "Liste İçin Sms";
                                Radius.sms_ayars ayar = sms.SmsAyarGoster("yaklasan_taksit");

                                if (ayar != null)
                                {
                                    txtGonderen.Text = ayar.gonderen;
                                }
                                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";
                            }
                        }
                    }
                    ///
                }
            }
        }