コード例 #1
0
ファイル: satici-profil.aspx.cs プロジェクト: enginet/proje_1
        protected void Page_Load(object sender, EventArgs e)
        {
            saticiId = Convert.ToInt32(Request.QueryString["seller"]);
            ilanRepeater.DataSource = ilanb.list(4, saticiId);
            ilanRepeater.DataBind();

            DAL.kullanici _kullanici = kullanicib.search(saticiId);
            lblSellerName.Text = _kullanici.kullaniciAdSoyad;

            telefonRepeater.DataSource = telefonb.list(2, _kullanici.kullaniciId);
            telefonRepeater.DataBind();

            takipciRepeater.DataSource = kulllaniciTkpb.list(3, _kullanici.kullaniciId);
            takipciRepeater.DataBind();

            takipEdilenRepeater.DataSource = kulllaniciTkpb.list(4, _kullanici.kullaniciId);
            takipEdilenRepeater.DataBind();

            if (kulllaniciTkpb.search(3, _kullanici.kullaniciId) != null)
            {
                LinkButton1.Visible = false;
            }
            else
            {
                LinkButton2.Visible = false;
            }
        }
コード例 #2
0
        protected void Guncelle_Sifre_Click(object sender, EventArgs e)
        {
            if (Session["unique-site-user"] != null)
            {
                kullanici _authority = (kullanici)Session["unique-site-user"];
                kullanici _kullanici = kll.search(_authority.kullaniciId);

                if (txtEskiSifre.Value == _kullanici.sifre)
                {
                    kll.update(
                        4,
                        _authority.kullaniciId,
                        txtYeniSifre.Value
                        );
                    try
                    {
                        DAL.toolkit.HTML_Mail_Sender(_authority.email, "~/email-temp/single-column/build.html", "şifre değişikliği");
                    }
                    catch (Exception)
                    {
                        throw;
                    }
                }
            }
        }
コード例 #3
0
ファイル: site.Master.cs プロジェクト: enginet/proje_1
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Session["unique-site-user"] != null)
                {
                    kullanici   _authority = (kullanici)Session["unique-site-user"];
                    HttpRequest _request   = base.Request;


                    if (_authority.rol == 4 || _authority.rol == 3 || _authority.rol == 2 || _authority.rol == 1)
                    {
                        visitorPanel.Visible = false;
                        userPanel.Visible    = true;
                        lblUserName.Text     = _authority.kullaniciAdSoyad.ToString();
                        span3.InnerText      = kullanicib.search(_authority.kullaniciId).kredi.ToString();
                    }

                    if (mesajb.count(1, _authority.kullaniciId) != 0)
                    {
                        span2.InnerText = mesajb.count(1, _authority.kullaniciId).ToString();
                    }

                    if (bildirimb.count(_authority.kullaniciId, 3) != 0)
                    {
                        span1.InnerText = bildirimb.count(5, 3).ToString();
                    }


                    kullanicib.update(5, _authority.kullaniciId, _request.Browser.Browser, _request.UserHostAddress);
                }
            }
        }
コード例 #4
0
ファイル: harita.aspx.cs プロジェクト: enginet/proje_1
 public int krediGuncelle()
 {
     if (Session["unique-site-user"] != null)
     {
         DAL.kullanici kullnc = (DAL.kullanici)Session["unique-site-user"];
         kullaniciBll  kllBll = new kullaniciBll();
         kredi = Convert.ToInt32(kllBll.search(kullnc.kullaniciId).kredi);
         return(kredi);
     }
     else
     {
         return(-1);
     }
 }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["unique-site-user"] != null)
            {
                kullanici _authority = (kullanici)Session["unique-site-user"];

                if (!Page.IsPostBack)
                {
                    kullanici _kullanici = kll.search(_authority.kullaniciId);

                    drpIl.DataSource     = ilb.list();
                    drpIl.DataTextField  = "ilAdi";
                    drpIl.DataValueField = "ilId";
                    drpIl.DataBind();

                    drpIl.SelectedValue = _kullanici.ilId.ToString();

                    drpIlce.DataSource     = ilceb.list(Convert.ToInt32(drpIl.SelectedValue));
                    drpIlce.DataTextField  = "ilceAdi";
                    drpIlce.DataValueField = "ilceId";
                    drpIlce.DataBind();

                    drpIlce.SelectedValue = _kullanici.ilceId.ToString();

                    drpMahalle.DataSource     = mahalleb.list(Convert.ToInt32(drpIlce.SelectedValue));
                    drpMahalle.DataTextField  = "mahalleAdi";
                    drpMahalle.DataValueField = "mahalleId";
                    drpMahalle.DataBind();

                    drpMahalle.SelectedValue = _kullanici.mahalleId.ToString();


                    string[] adSoyad = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad);

                    txtAd.Value       = adSoyad[0].ToString();
                    txtSoyad.Value    = adSoyad[1].ToString();
                    txtKimlikNo.Value = _kullanici.tckimlikNo;
                    txtTarih.Value    = _kullanici.dogumTarihi.ToString();

                    drpEgitim.SelectedValue  = _kullanici.egitimDurumuId.ToString();
                    drpIl.SelectedValue      = _kullanici.ilId.ToString();
                    rdCinsiyet.SelectedValue = _kullanici.cinsiyetId.ToString();
                }
            }
        }
コード例 #6
0
ファイル: harita.aspx.cs プロジェクト: enginet/proje_1
        protected override void OnInit(EventArgs e)
        {
            if (Session["unique-site-user"] != null)
            {
                DAL.kullanici kullnc = (DAL.kullanici)Session["unique-site-user"];
                kullaniciBll  kllBll = new kullaniciBll();
                kredi = Convert.ToInt32(kllBll.search(kullnc.kullaniciId).kredi);
            }

            // 4 arsa
            if (Request.QueryString["cat"] == "4")
            {
                PlaceHolder1.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/arsa-ozellik.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }

                foreach (Control item in PlaceHolder4.Controls)
                {
                    foreach (Control item2 in item.Controls)
                    {
                        if (item2.ID == "paftano" || item2.ID == "txtPaftaNo" || item2.ID == "metrefiyat" || item2.ID == "txtMetreFiyat")
                        {
                            item2.Visible = false;
                        }
                    }
                }
            }

            // 8 daire / 10 müstakil ev / 11 yalı / 16 yazlık / 18 kooperatif
            if (Request.QueryString["cat"] == "8" || Request.QueryString["cat"] == "10" || Request.QueryString["cat"] == "11" || Request.QueryString["cat"] == "16" || Request.QueryString["cat"] == "18")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/oda-sayisi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/bulundugu-kat.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/banyo-sayisi.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/esyali.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/site-icerisinde.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder16.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }

            // 9 residence
            if (Request.QueryString["cat"] == "9")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/oda-sayisi-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/salon-sayisi-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/bulundugu-kat-arama.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-arama.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/konut-sekli.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/balkon.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/banyo-sayisi-arama.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder14.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/site-icerisinde.ascx"));
                PlaceHolder17.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder18.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder19.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }

            // 12 çiftlik evi / 13 köşk & konak / 14 yalı
            if (Request.QueryString["cat"] == "12")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/bina-arazi-metre-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/oda-sayisi-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/salon-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi-arama.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-arama.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/yapi-tipi.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/balkon.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/banyo-sayisi-arama.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder14.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/tapu-durum.ascx"));
                PlaceHolder16.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder17.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder18.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }

            // 15 yalı dairesi
            if (Request.QueryString["cat"] == "15")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/oda-sayisi-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/salon-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi-arama.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/bulundugu-kat-arama.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-arama.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/yapi-tipi.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/balkon.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/banyo-sayisi-arama.ascx"));
                PlaceHolder14.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder16.Controls.Add(Page.LoadControl("~/ozellikler/tapu-durum.ascx"));
                PlaceHolder17.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder18.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder19.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }

            // 17 prefabrik ev
            if (Request.QueryString["cat"] == "17")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/oda-sayisi-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/banyo-sayisi-arama.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/dis-cephe-durum.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }

            // 5 bina
            if (Request.QueryString["cat"] == "5")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/daire-sayisi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 6 devremülk
            if (Request.QueryString["cat"] == "6")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/devremulk-ozellik.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 35 otel / 42 tatil köyü
            if (Request.QueryString["cat"] == "35" || Request.QueryString["cat"] == "40")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/acik-kapali-metre-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/yildiz-sayisi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/oda-yatak-kat-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 36 apart otel
            if (Request.QueryString["cat"] == "36")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/acik-kapali-metre-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/apart-sayisi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/oda-yatak-kat-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 37 butik otel / 38 pansiyon / 41 motel
            if (Request.QueryString["cat"] == "37" || Request.QueryString["cat"] == "38" || Request.QueryString["cat"] == "41")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/acik-kapali-metre-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/oda-yatak-kat-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }

            // 39 kamp yeri
            if (Request.QueryString["cat"] == "39")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }

            // 42 plaj
            if (Request.QueryString["cat"] == "42")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/kapasite-arama.ascx"));
            }
            // 21 atölye
            if (Request.QueryString["cat"] == "21")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/durum.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 20 büfe
            if (Request.QueryString["cat"] == "20")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/yapi-tipi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 29 büro & ofis
            if (Request.QueryString["cat"] == "29")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/oda-sayisi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/durum.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 22 depo & antrepo
            if (Request.QueryString["cat"] == "22")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/giris-yuksek-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/tapu-durum.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 23 dükkan & mağaza
            if (Request.QueryString["cat"] == "23")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/bolum-oda-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/durum.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 24 fabrika
            if (Request.QueryString["cat"] == "24")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/acik-kapali-metre-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/bolum-oda-sayisi-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/bina-adedi.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-arama.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/giris-yuksek-arama.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/tapu-durum.ascx"));
                PlaceHolder14.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder16.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 25 İşhanı Katı
            if (Request.QueryString["cat"] == "25")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/bolum-oda-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-arama.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/bulundugu-kat.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder14.Controls.Add(Page.LoadControl("~/ozellikler/tapu-durum.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder16.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder17.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 26 Komple Bina
            if (Request.QueryString["cat"] == "26")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/bina-tipi.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-arama.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder16.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder17.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 27 Plaza Katı
            if (Request.QueryString["cat"] == "27")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/bolum-oda-sayisi-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/kat-sayisi-text.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/bulundugu-kat.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/isinma-yakit.ascx"));
                PlaceHolder12.Controls.Add(Page.LoadControl("~/ozellikler/yapi-durum.ascx"));
                PlaceHolder13.Controls.Add(Page.LoadControl("~/ozellikler/kullanim-durumu.ascx"));
                PlaceHolder14.Controls.Add(Page.LoadControl("~/ozellikler/tapu-durum.ascx"));
                PlaceHolder15.Controls.Add(Page.LoadControl("~/ozellikler/zemin-etudu.ascx"));
                PlaceHolder16.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder17.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 28 İmalathane
            if (Request.QueryString["cat"] == "28")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/bolum-oda-sayisi-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 30 market
            if (Request.QueryString["cat"] == "30")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 31 Restoran lokanta
            if (Request.QueryString["cat"] == "31")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/kapasite-arama.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/masa-sayisi-arama.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 32 Kuaför Güzellik Merkezi
            if (Request.QueryString["cat"] == "32")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder5.Controls.Add(Page.LoadControl("~/ozellikler/oda-sayisi.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));
                PlaceHolder8.Controls.Add(Page.LoadControl("~/ozellikler/bina-yasi.ascx"));
                PlaceHolder9.Controls.Add(Page.LoadControl("~/ozellikler/bulundugu-kat.ascx"));
                PlaceHolder10.Controls.Add(Page.LoadControl("~/ozellikler/kredi-takas.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder11.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
            // 33 Tekel Bayi
            if (Request.QueryString["cat"] == "33")
            {
                PlaceHolder4.Controls.Add(Page.LoadControl("~/ozellikler/metre-kare-arama.ascx"));
                PlaceHolder6.Controls.Add(Page.LoadControl("~/ozellikler/isitma.ascx"));

                if (Request.QueryString["tur"] == "2" || Request.QueryString["tur"] == "3" || Request.QueryString["tur"] == "5")
                {
                    PlaceHolder7.Controls.Add(Page.LoadControl("~/ozellikler/depozito.ascx"));
                }
            }
        }
コード例 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["boss"] != null)
            {
                if (!Page.IsPostBack)
                {
                    kullanici   _authority = (kullanici)Session["boss"];
                    HttpRequest _request   = base.Request;
                    kullanici   _kullanici = kullanicib.search(_authority.kullaniciId);
                    txtAd.Text    = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad)[0];
                    txtSoyad.Text = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad)[1];

                    drpIl.DataSource     = il.list();
                    drpIl.DataTextField  = "ilAdi";
                    drpIl.DataValueField = "ilId";
                    drpIl.DataBind();

                    drpIl.SelectedValue = _kullanici.ilId.ToString();

                    drpIlce.DataSource     = ilce.list(Convert.ToInt32(drpIl.SelectedValue));
                    drpIlce.DataTextField  = "ilceAdi";
                    drpIlce.DataValueField = "ilceId";
                    drpIlce.DataBind();

                    drpIlce.SelectedValue = _kullanici.ilceId.ToString();

                    drpMahalle.DataSource     = mahalle.list(Convert.ToInt32(drpIlce.SelectedValue));
                    drpMahalle.DataTextField  = "mahalleAdi";
                    drpMahalle.DataValueField = "mahalleId";
                    drpMahalle.DataBind();

                    drpMahalle.SelectedValue = _kullanici.mahalleId.ToString();
                    txtKimlikNo.Text         = _kullanici.tckimlikNo;

                    drpEgitim.SelectedValue = _kullanici.egitimDurumuId.ToString();
                    drpMeslek.SelectedValue = _kullanici.meslekId.ToString();

                    rdCinsiyet.SelectedValue = _kullanici.cinsiyetId.ToString();

                    telefonlar _telefon = telefonb.search(_authority.kullaniciId, 1);
                    txtGsm2.Text = _telefon.telefon;

                    telefonlar _telefon1 = telefonb.search(_authority.kullaniciId, 3);
                    txtSabit.Text = _telefon1.telefon;
                }
            }
            else if (Session["administrator"] != null)
            {
                if (!Page.IsPostBack)
                {
                    kullanici   _authority = (kullanici)Session["administrator"];
                    HttpRequest _request   = base.Request;
                    kullanici   _kullanici = kullanicib.search(_authority.kullaniciId);
                    txtAd.Text    = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad)[0];
                    txtSoyad.Text = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad)[1];

                    drpIl.DataSource     = il.list();
                    drpIl.DataTextField  = "ilAdi";
                    drpIl.DataValueField = "ilId";
                    drpIl.DataBind();

                    drpIl.SelectedValue = _kullanici.ilId.ToString();

                    drpIlce.DataSource     = ilce.list(Convert.ToInt32(drpIl.SelectedValue));
                    drpIlce.DataTextField  = "ilceAdi";
                    drpIlce.DataValueField = "ilceId";
                    drpIlce.DataBind();

                    drpIlce.SelectedValue = _kullanici.ilceId.ToString();

                    drpMahalle.DataSource     = mahalle.list(Convert.ToInt32(drpIlce.SelectedValue));
                    drpMahalle.DataTextField  = "mahalleAdi";
                    drpMahalle.DataValueField = "mahalleId";
                    drpMahalle.DataBind();

                    drpMahalle.SelectedValue = _kullanici.mahalleId.ToString();
                    txtKimlikNo.Text         = _kullanici.tckimlikNo;

                    drpEgitim.SelectedValue = _kullanici.egitimDurumuId.ToString();
                    drpMeslek.SelectedValue = _kullanici.meslekId.ToString();

                    rdCinsiyet.SelectedValue = _kullanici.cinsiyetId.ToString();

                    telefonlar _telefon = telefonb.search(_authority.kullaniciId, 1);
                    txtGsm2.Text = _telefon.telefon;

                    telefonlar _telefon1 = telefonb.search(_authority.kullaniciId, 3);
                    txtSabit.Text = _telefon1.telefon;
                }
            }
            else if (Session["editor"] != null)
            {
                kullanici   _authority = (kullanici)Session["editor"];
                HttpRequest _request   = base.Request;
                kullanici   _kullanici = kullanicib.search(_authority.kullaniciId);
                txtAd.Text    = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad)[0];
                txtSoyad.Text = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad)[1];

                drpIl.DataSource     = il.list();
                drpIl.DataTextField  = "ilAdi";
                drpIl.DataValueField = "ilId";
                drpIl.DataBind();

                drpIl.SelectedValue = _kullanici.ilId.ToString();

                drpIlce.DataSource     = ilce.list(Convert.ToInt32(drpIl.SelectedValue));
                drpIlce.DataTextField  = "ilceAdi";
                drpIlce.DataValueField = "ilceId";
                drpIlce.DataBind();

                drpIlce.SelectedValue = _kullanici.ilceId.ToString();

                drpMahalle.DataSource     = mahalle.list(Convert.ToInt32(drpIlce.SelectedValue));
                drpMahalle.DataTextField  = "mahalleAdi";
                drpMahalle.DataValueField = "mahalleId";
                drpMahalle.DataBind();

                drpMahalle.SelectedValue = _kullanici.mahalleId.ToString();
                txtKimlikNo.Text         = _kullanici.tckimlikNo;

                drpEgitim.SelectedValue = _kullanici.egitimDurumuId.ToString();
                drpMeslek.SelectedValue = _kullanici.meslekId.ToString();

                rdCinsiyet.SelectedValue = _kullanici.cinsiyetId.ToString();

                telefonlar _telefon = telefonb.search(_authority.kullaniciId, 1);
                txtGsm2.Text = _telefon.telefon;

                telefonlar _telefon1 = telefonb.search(_authority.kullaniciId, 3);
                txtSabit.Text = _telefon1.telefon;
            }
            else
            {
                Response.Redirect("~/sysLogin/syslogin.aspx");
            }
        }
コード例 #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                // Tüm bilgiler çekildi
                kullanici _kullanici = kll.search(Convert.ToInt32(Request.QueryString["user"]));
                //telefonlar _tlfd = tlf.search(Convert.ToInt32(Request.QueryString["user"]));

                drpIl.DataSource     = il.list();
                drpIl.DataTextField  = "ilAdi";
                drpIl.DataValueField = "ilId";
                drpIl.DataBind();

                drpIl.SelectedValue = _kullanici.ilId.ToString();

                drpIlce.DataSource     = ilce.list(Convert.ToInt32(drpIl.SelectedValue));
                drpIlce.DataTextField  = "ilceAdi";
                drpIlce.DataValueField = "ilceId";
                drpIlce.DataBind();

                drpIlce.SelectedValue = _kullanici.ilceId.ToString();

                drpMahalle.DataSource     = mahalle.list(Convert.ToInt32(drpIlce.SelectedValue));
                drpMahalle.DataTextField  = "mahalleAdi";
                drpMahalle.DataValueField = "mahalleId";
                drpMahalle.DataBind();

                drpMahalle.SelectedValue = _kullanici.mahalleId.ToString();


                string[] adSoyad = DAL.toolkit.isimDondur(_kullanici.kullaniciAdSoyad);

                txtAd.Text        = adSoyad[0].ToString();
                txtSoyad.Text     = adSoyad[1].ToString();
                txtSifre.Text     = _kullanici.sifre;
                txtEmail.Text     = _kullanici.email;
                txtKrediSayi.Text = _kullanici.kredi.ToString();
                txtKimlikNo.Text  = _kullanici.tckimlikNo;


                drpEgitim.SelectedValue = _kullanici.egitimDurumuId.ToString();
                drpIl.SelectedValue     = _kullanici.ilId.ToString();
                drpYetki.SelectedValue  = _kullanici.rol.ToString();

                rdCinsiyet.SelectedValue = _kullanici.cinsiyetId.ToString();

                //Telefon güncelleme işlemi yapılacak

                telefonlar _tlfd = tlf.search(Convert.ToInt32(Request.QueryString["user"]), 1);
                if (_tlfd != null)
                {
                    txtGsm1.Text = _tlfd.telefon;
                }
                telefonlar _tlfd1 = tlf.search(Convert.ToInt32(Request.QueryString["user"]), 3);
                if (_tlfd1 != null)
                {
                    txtSabit.Text = _tlfd1.telefon;
                }

                onlineRepeater.DataSource = kll.list(4);
                onlineRepeater.DataBind();
            }
        }