Exemplo n.º 1
0
        public SifreDegistirEditForm()
        {
            InitializeComponent();

            dataLayoutControl = myDataLayoutControl;
            bll       = new KullaniciBll(myDataLayoutControl);
            HideItems = new BarItem[] { btnYeni, btnGeriAl, btnSil, };
            EventsLoad();
        }
Exemplo n.º 2
0
        public KullaniciEditForm()
        {
            InitializeComponent();

            DataLayoutControl = myDataLayoutControl;
            Bll          = new KullaniciBll(myDataLayoutControl);
            BaseKartTuru = KartTuru.Kullanici;
            ShowItems    = new BarItem[] { btnSifreSifirla };
            EventsLoad();
        }
        public SifremiUnuttumEditForm(params object[] prm)
        {
            InitializeComponent();

            DataLayoutControl = myDataLayoutControl1;
            Bll       = new KullaniciBll(myDataLayoutControl1);
            HideItems = new BarItem[] { btnYeni, btnKaydet, btnGerial, btnSil };
            ShowItems = new BarItem[] { btnSifreSifirla };
            EventsLoad();

            _kullaniciAdi = prm[0].ToString();
        }
Exemplo n.º 4
0
        public KullaniciTable()
        {
            InitializeComponent();

            Bll   = new KullaniciBll();
            Tablo = tablo;
            EventsLoad();

            HideItems = new BarItem[] { btnHaraketEkle, btnHareketSil };
            insUptNavigator.Navigator.Buttons.Append.Visible   = false;
            insUptNavigator.Navigator.Buttons.Remove.Visible   = false;
            insUptNavigator.Navigator.Buttons.PrevPage.Visible = true;
            insUptNavigator.Navigator.Buttons.NextPage.Visible = true;
        }
Exemplo n.º 5
0
        private void Giris()
        {
            CreateConnection();

            using (var kullaniciBll = new KullaniciBll())
            {
                var kullanici = (KullaniciS)kullaniciBll.SingleDetail(x => x.Kod == txtKullaniciAdi.Text);

                if (kullanici == null || txtSifre.Text.Md5Sifrele() != kullanici.Sifre)
                {
                    Messages.HataMesaji("Kullanıcı Adı veya Şifre Hatalıdır Lütfen Kontrol Edip Tekrar Deneyiniz.");
                    txtKullaniciAdi.Focus();
                    return;
                }

                if (!kullanici.Durum)

                {
                    Messages.HataMesaji("Pasif Durumdaki Kullanıcı İle Giriş Yapamazsınız.");
                    txtKullaniciAdi.Focus();
                    return;
                }

                using (var parametreBll = new KullaniciParametreBll())
                {
                    var entity = (KullaniciParametreS)parametreBll.Single(x => x.KullaniciId == kullanici.Id);
                    AnaForm.KullaniciParametreleri = entity ?? new KullaniciParametreS();

                    AnaForm.KurumAdi        = txtKurum.Text;
                    AnaForm.KullaniciId     = kullanici.Id;
                    AnaForm.KullaniciAdi    = kullanici.Adi;
                    AnaForm.KullaniciRolId  = kullanici.RolId;
                    AnaForm.KullaniciRolAdi = kullanici.RolAdi;
                    Hide();

                    ShowRibbonForms <AnaForm> .ShowForm(false);
                }
            }
        }
Exemplo n.º 6
0
        private void GirisKontrol()
        {
            KullaniciDto kullanici = new KullaniciDto()
            {
                KullaniciAdi = txtKullaniciAdi.Text,
                Sifre        = txtSifre.Text
            };

            bllKullanici = new KullaniciBll();
            int kullaniciId = bllKullanici.KullaniciGiris(kullanici);

            if (kullaniciId > 0)
            {
                frmAna frmAna = new frmAna(kullaniciId);
                frmAna.Show();
                this.Hide();
            }
            else
            {
                FormHelpers.ShowWarning("Kullanıcı adı ya da şifreyi yanlış girdiniz!");
            }
        }
Exemplo n.º 7
0
 public KullaniciListForm()
 {
     InitializeComponent();
     Bll       = new KullaniciBll();
     HideItems = new BarItem[] { btnSec };
 }