Ejemplo n.º 1
0
        private void simpleButton4_Click(object sender, EventArgs e)
        {
            atolye_sorumlu_ekrani atolye = new atolye_sorumlu_ekrani();

            atolye.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(textEdit1.Text) || String.IsNullOrEmpty(textEdit2.Text) || String.IsNullOrEmpty(comboBoxEdit1.Text))
            {
                MessageBox.Show("Lütfen bilgilerinizi eksik bırakmayınız...", "EKSİK ALAN UYARISI", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                try
                {
                    baglanti.Open();
                    OleDbCommand    giris_bilgi_oku = new OleDbCommand("select * from giris_bilgiler where kullanici_adi='" + textEdit1.Text + "'AND sifre='" + textEdit2.Text + "'", baglanti);
                    OleDbDataReader oku             = giris_bilgi_oku.ExecuteReader();
                    oku.Read();
                    string mevki = oku.GetValue(3).ToString();
                    if (comboBoxEdit1.Text == "Yönetici" && comboBoxEdit1.Text == mevki)
                    {
                        yonetici_islemler frm = new yonetici_islemler();
                        frm.Show();
                        this.Hide();
                    }
                    else if (comboBoxEdit1.Text == "Satış Danışmanı" && comboBoxEdit1.Text == mevki)
                    {
                        satis_sorumlu_ekrani frm = new satis_sorumlu_ekrani();
                        frm.Show();
                        this.Hide();
                    }
                    else if (comboBoxEdit1.Text == "Atölye Sorumlusu" && comboBoxEdit1.Text == mevki)
                    {
                        atolye_sorumlu_ekrani frm = new atolye_sorumlu_ekrani();
                        frm.Show();
                        this.Hide();
                    }
                    else
                    {
                        MessageBox.Show("Bu kullanıcı böyle bir yetkiye sahip değildir..", "YANLIŞ YETKİ SEÇİMİ", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    }
                    baglanti.Close();
                }


                catch (Exception)
                {
                    baglanti.Close(); // baglanti yanlış bilgi girildikten açık kalıyor..
                    MessageBox.Show("Giriş bilgileriniz hatalıdır...", "HATALI BİLGİLER", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
Ejemplo n.º 3
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            atolye_sorumlu_ekrani frm = new atolye_sorumlu_ekrani();

            frm.Show();
        }