Beispiel #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            PersonelGoruntule personelGoruntule = new PersonelGoruntule();

            personelGoruntule.Show();
            this.Hide();
        }
Beispiel #2
0
        private void btnGuncelle_Click(object sender, EventArgs e)
        {
            PersonelGoruntule personelGoruntule = new PersonelGoruntule();

            _personelBilgiKod.Update(new PersonelBilgi
            {
                PersonelId    = Id,
                PersonelAd    = tbxAd.Text,
                PersonelSoyad = tbxSoyad.Text,
                PersonelTarih = Convert.ToDateTime(tbxTarih.Text),
                OkuduguYer    = tbxOkul.Text,
                MezunYil      = Convert.ToInt32(tbxMezun.Text),
                YasadıgıYer   = tbxEv.Text,
                Ozgecmis      = tbxGecmis.Text,
                NotOrt        = tbxNot.Text,
                Tc            = tbxTc.Text,
                Sifre         = tbxSifre.Text
            });
            if (ResimSecildiMi)
            {
                File.Delete(Path + tbxTc.Text + ".jpg");
                ResimSec(tbxTc.Text);
            }
            if (FotoSecildiMi)
            {
                File.Delete(Path + tbxSifre.Text + ".jpg");
                FotoSec(tbxSifre.Text);
            }


            if (MessageBox.Show("Personelin bütün bilgilerinin doğruluğundan emin misiniz?", "Onay Verin", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                MessageBox.Show("Eczacı Sistemimize Başarıyla Güncellenmiştir");
            }
        }
Beispiel #3
0
        //SqlCommand command;
        //SqlDataReader reader;


        public void GirisYap(string ad, string parola)
        {
            SqlCommand command = new SqlCommand("Select * From YoneticiGirisBilgiler where yoneticiGirisAd='" + ad + "' and yoneticiGirisSifre='" + parola + "'", baglanti);

            baglanti.Open();
            SqlDataReader reader = command.ExecuteReader();

            if (reader.Read())
            {
                PersonelGoruntule frm2 = new PersonelGoruntule();

                frm2.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Hatalı Giriş!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            baglanti.Close();
            command.Dispose();
        }