예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
            giris girisac = new giris();

            girisac.Visible = true;
        }
        private void button6_Click(object sender, EventArgs e)
        {
            giris girisac = new giris();

            girisac.Show();
            this.Close();
        }
 private void button14_Click(object sender, EventArgs e)
 {
     if (stokkontrolyetki == 1)
     {
         yonetici yoneticiac = new yonetici();
         yoneticiac.Show();
         this.Close();
     }
     if (stokkontrolyetki == 3)
     {
         giris girisac = new giris();
         girisac.Show();
         this.Close();
     }
 }
예제 #4
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (comboBox1.Text == "Yönetici")
            {
                yetki = 1;
            }
            if (comboBox1.Text == "Üretim Departmanı")
            {
                yetki = 2;
            }
            if (comboBox1.Text == "Depo Yönetimi")
            {
                yetki = 3;
            }
            if (comboBox1.Text == "Kalite Kontrol")
            {
                yetki = 4;
            }
            giris girisac = new giris();

            girisac.Hide();
        }
예제 #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text == "Yönetici")
            {
                MySqlDataAdapter list = new MySqlDataAdapter("select * from yonetici", db.connection);
                DataTable        read = new DataTable();
                list.Fill(read);
                dataGridView1.DataSource = read;
                db.connection.Close();

                for (int i = 0; i < dataGridView1.RowCount - 1; i++)
                {
                    if (textBox1.Text == dataGridView1.Rows[i].Cells[0].Value.ToString() && textBox2.Text == dataGridView1.Rows[i].Cells[2].Value.ToString())
                    {
                        yonetici yoneticiac = new yonetici();
                        yoneticiac.yöneticiyetki = yetki;
                        yoneticiac.Show();
                        this.Visible = false;
                    }
                }
            }
            if (comboBox1.Text == "Üretim Departmanı")
            {
                MySqlDataAdapter list2 = new MySqlDataAdapter("select * from uretimdepartmani", db.connection);
                DataTable        read2 = new DataTable();
                list2.Fill(read2);
                dataGridView1.DataSource = read2;
                db.connection.Close();
                MessageBox.Show("sad");
                for (int i = 0; i < dataGridView1.RowCount - 1; i++)
                {
                    if (textBox1.Text == dataGridView1.Rows[i].Cells[0].Value.ToString() && textBox2.Text == dataGridView1.Rows[i].Cells[2].Value.ToString())
                    {
                        üretimeyibekleyensiparişler üretimac = new üretimeyibekleyensiparişler();
                        üretimac.Show();
                        this.Visible = false;
                    }
                }
            }
            if (comboBox1.Text == "Depo Yönetimi")
            {
                MySqlDataAdapter list2 = new MySqlDataAdapter("select * from depoyonetimi", db.connection);
                DataTable        read2 = new DataTable();
                list2.Fill(read2);
                dataGridView1.DataSource = read2;
                db.connection.Close();
                for (int i = 0; i < dataGridView1.RowCount - 1; i++)
                {
                    if (textBox1.Text == dataGridView1.Rows[i].Cells[0].Value.ToString() && textBox2.Text == dataGridView1.Rows[i].Cells[2].Value.ToString())
                    {
                        Stok_Kontrolu stokkontrolac = new Stok_Kontrolu();
                        stokkontrolac.Show();
                        stokkontrolac.stokkontrolyetki = yetki;
                        this.Visible = false;
                    }
                }
            }
            if (comboBox1.Text == "Kalite Kontrol")
            {
                MySqlDataAdapter list2 = new MySqlDataAdapter("select * from kalite_kontrol", db.connection);
                DataTable        read2 = new DataTable();
                list2.Fill(read2);
                dataGridView1.DataSource = read2;
                db.connection.Close();
                MessageBox.Show("sad");
                for (int i = 0; i < dataGridView1.RowCount - 1; i++)
                {
                    if (textBox1.Text == dataGridView1.Rows[i].Cells[0].Value.ToString() && textBox2.Text == dataGridView1.Rows[i].Cells[1].Value.ToString())
                    {
                        sipariskontrol siparsikontrolac = new sipariskontrol();
                        siparsikontrolac.Show();
                        this.Visible = false;
                    }
                }
            }
            giris girisac = new giris();

            girisac.Hide();
        }