private void button4_Click_1(object sender, EventArgs e) { yonetici yöneticiac = new yonetici(); yöneticiac.Show(); this.Close(); }
private void button6_Click(object sender, EventArgs e) { this.Hide(); yonetici yöneticiac = new yonetici(); yöneticiac.Show(); }
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(); } }
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(); }