Esempio n. 1
0
        private void yuvarlakButon1_Click(object sender, EventArgs e)
        {
            Stok_Kontrolu stokkontrolac = new Stok_Kontrolu();

            stokkontrolac.stokkontrolyetki = depoyetkiyetki;
            stokkontrolac.Show();
            this.Close();
        }
        private void yuvarlakButon8_Click(object sender, EventArgs e)
        {
            Stok_Kontrolu stokkontrolac = new Stok_Kontrolu();

            stokkontrolac.stokkontrolyetki = yöneticiyetki;
            stokkontrolac.Show();
            this.Visible = false;
        }
Esempio n. 3
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();
        }