コード例 #1
0
        private void siparisGir_Click(object sender, EventArgs e)
        {
            SiparisEkle x = new SiparisEkle();

            x.iadeMi.Text = "degil";
            x.Show();
        }
コード例 #2
0
        private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                SilGuncelle form = new SilGuncelle();
                if (xx.Text == "Personeller")
                {
                    form.personelad.Text         = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.silpersoneladi.Text     = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.personeltelefon.Text    = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.silpersonelKodu.Text    = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.label2.Text             = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.personelcinsiyet.Text   = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.personeladres.Text      = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                    form.personelmail.Text       = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();
                    form.personelemaillabel.Text = dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();
                    form.personelgorev.Text      = dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString();
                    form.personelmaas.Text       = dataGridView1.Rows[e.RowIndex].Cells[6].Value.ToString();
                    form.guncelledurum.Text      = dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString();

                    form.depopanel.Visible             = false;
                    form.kullanicipanel.Visible        = false;
                    form.kitappanel.Visible            = false;
                    form.personelGuncellePanel.Visible = true;

                    form.sildepopanel.Visible      = false;
                    form.silkullanicipanel.Visible = false;
                    form.silkitappanel.Visible     = false;
                    form.silpersonelpanel.Visible  = true;

                    form.silyayinevipanel.Visible      = false;
                    form.yazarsilpanel.Visible         = false;
                    form.guncelleyayinevipanel.Visible = false;
                    form.yazarguncellepanel.Visible    = false;

                    form.Show();
                }
                else if (xx.Text == "Kullanicilar")
                {
                    form.useridtext.Text  = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.silUserId.Text   = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.useridlabel.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    //form.personelkodtext.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.personelkodtext.Enabled = false;

                    form.kullanicisart.Text       = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.silpersonelKoduUser.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();

                    form.passtext.Text = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                    form.silpass.Text  = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                    if (Convert.ToBoolean(dataGridView1.Rows[e.RowIndex].Cells[4].Value) == true)
                    {
                        form.evet.Checked = true;
                    }
                    else
                    {
                        form.hayir.Checked = true;
                    }
                    form.depopanel.Visible             = false;
                    form.kullanicipanel.Visible        = true;
                    form.kitappanel.Visible            = false;
                    form.personelGuncellePanel.Visible = false;

                    form.sildepopanel.Visible      = false;
                    form.silkullanicipanel.Visible = true;
                    form.silkitappanel.Visible     = false;
                    form.silpersonelpanel.Visible  = false;

                    form.silyayinevipanel.Visible      = false;
                    form.yazarsilpanel.Visible         = false;
                    form.guncelleyayinevipanel.Visible = false;
                    form.yazarguncellepanel.Visible    = false;

                    form.Show();
                }
                else if (xx.Text == "Kitaplar")
                {
                    form.kitapKoduLabel.Text  = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.silKitapKodu.Text    = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.sgkitapAdi.Text      = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.kitaplabel.Text      = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.silKitapAdi.Text     = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.sgyazari.Text        = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.silYaazari.Text      = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.sgyazarilabel.Text   = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.sgyayinEvi.Text      = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                    form.silYayinEvi.Text     = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                    form.sgyayinevilabel.Text = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                    form.sgturu.Text          = dataGridView1.Rows[e.RowIndex].Cells[6].Value.ToString();
                    form.sgdepo.Text          = dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString();
                    form.sgfiyat.Text         = dataGridView1.Rows[e.RowIndex].Cells[8].Value.ToString();
                    form.sgadet.Text          = dataGridView1.Rows[e.RowIndex].Cells[9].Value.ToString();

                    form.depopanel.Visible             = false;
                    form.kullanicipanel.Visible        = false;
                    form.kitappanel.Visible            = true;
                    form.personelGuncellePanel.Visible = false;

                    form.sildepopanel.Visible      = false;
                    form.silkullanicipanel.Visible = false;
                    form.silkitappanel.Visible     = true;
                    form.silpersonelpanel.Visible  = false;

                    form.silyayinevipanel.Visible      = false;
                    form.yazarsilpanel.Visible         = false;
                    form.guncelleyayinevipanel.Visible = false;
                    form.yazarguncellepanel.Visible    = false;
                    form.Show();
                }
                else if (xx.Text == "Depolar")
                {
                    form.depodepo.Text       = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.silDepoAdi.Text     = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.sgdepotextbox.Text  = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.depoadresrich.Text  = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.depoadreslabel.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.sildepoAdres.Text   = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.dtlnolabel.Text     = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.depotelno.Text      = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                    form.silDepoKodu.Text    = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();

                    form.depopanel.Visible             = true;
                    form.kullanicipanel.Visible        = false;
                    form.kitappanel.Visible            = false;
                    form.personelGuncellePanel.Visible = false;
                    form.silyayinevipanel.Visible      = false;
                    form.yazarsilpanel.Visible         = false;
                    form.guncelleyayinevipanel.Visible = false;
                    form.yazarguncellepanel.Visible    = false;
                    form.sildepopanel.Visible          = true;
                    form.silkullanicipanel.Visible     = false;
                    form.silkitappanel.Visible         = false;
                    form.silpersonelpanel.Visible      = false;

                    form.Show();
                }
                else if (xx.Text == "Siparisler")
                {
                    SiparisEkle x = new SiparisEkle();
                    if (dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString() == "iade")
                    {
                        MessageBox.Show("Bu fişle işlem yapılmış. İşlem tekrarlanamaz!");
                    }
                    else
                    {
                        x.kitapkodlarilabel.Text = dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
                        x.sipariskodulabel.Text  = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                        x.iadeMi.Text            = "iade";
                        x.sipariskodulabel.Text  = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                        x.Show();
                    }
                }
                else if (xx.Text == "Yazarlar")
                {
                    form.guncelletextboxyazar.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.silyazarkodulabel.Text    = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.yazarAdiLabel.Text        = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();

                    form.depopanel.Visible             = false;
                    form.kullanicipanel.Visible        = false;
                    form.kitappanel.Visible            = false;
                    form.personelGuncellePanel.Visible = false;
                    form.silyayinevipanel.Visible      = false;
                    form.yazarsilpanel.Visible         = true;
                    form.guncelleyayinevipanel.Visible = false;
                    form.yazarguncellepanel.Visible    = true;
                    form.sildepopanel.Visible          = false;
                    form.silkullanicipanel.Visible     = false;
                    form.silkitappanel.Visible         = false;
                    form.silpersonelpanel.Visible      = false;

                    form.Show();
                }
                else if (xx.Text == "Yayinevleri")
                {
                    form.yayineviaditextbox.Text   = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
                    form.silyayinevikodulabel.Text = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
                    form.silyayineviadilabel.Text  = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();

                    form.depopanel.Visible             = false;
                    form.kullanicipanel.Visible        = false;
                    form.kitappanel.Visible            = false;
                    form.personelGuncellePanel.Visible = false;
                    form.silyayinevipanel.Visible      = true;
                    form.yazarsilpanel.Visible         = false;
                    form.guncelleyayinevipanel.Visible = true;
                    form.yazarguncellepanel.Visible    = false;
                    form.sildepopanel.Visible          = false;
                    form.silkullanicipanel.Visible     = false;
                    form.silkitappanel.Visible         = false;
                    form.silpersonelpanel.Visible      = false;

                    form.Show();
                }
            }
        }