private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (gridView3.DataRowCount == 0)
            {
                return;
            }

            int i = gridView3.FocusedRowHandle;

            //if (i < 0)
            //{
            //    i = gridView3.DataRowCount;
            //    i--;
            //}

            DataRow dr = gridView3.GetDataRow(i);

            //if (gridView1.DataRowCount == 0) return;

            //int i = gridView1.FocusedRowHandle;
            //if (i < 0)
            //{
            //    i = gridView1.DataRowCount;
            //    i--;
            //}
            //DataRow dr = gridView1.GetDataRow(i);

            frmStokKarti StokKarti = new frmStokKarti();

            DB.pkStokKarti = int.Parse(dr["pkStokKarti"].ToString());
            StokKarti.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnYeni_Click(object sender, EventArgs e)
        {
            frmStokKarti StokKarti = new frmStokKarti();

            DB.pkStokKarti = 0;
            StokKarti.ShowDialog();
            stokara("tumu");
        }
Ejemplo n.º 3
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            frmStokKarti StokKarti = new frmStokKarti();

            StokKarti.Barkod.Text = ceBarkod.Text;
            DB.pkStokKarti        = 0;
            StokKarti.ShowDialog();
            Close();
        }
        private void stokKArtıToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (gridView7.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow      dr        = gridView7.GetDataRow(gridView7.FocusedRowHandle);
            frmStokKarti StokKarti = new frmStokKarti();

            DB.pkStokKarti = int.Parse(dr["pkStokKarti"].ToString());
            StokKarti.ShowDialog();
        }
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow      dr        = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            frmStokKarti StokKarti = new frmStokKarti();

            DB.pkStokKarti = int.Parse(dr["pkStokKarti"].ToString());
            StokKarti.ShowDialog();
        }
Ejemplo n.º 6
0
        private void stokKartıToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (gridView2.FocusedRowHandle < 0)
            {
                return;
            }

            DataRow      dr = gridView2.GetDataRow(gridView2.FocusedRowHandle);
            frmStokKarti sk = new frmStokKarti();

            sk.pkStokKarti.Text = dr["pkStokKarti"].ToString();
            sk.ShowDialog();
        }
Ejemplo n.º 7
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (gridView6.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow      dr = gridView6.GetDataRow(gridView6.FocusedRowHandle);
            frmStokKarti sk = new frmStokKarti();

            sk.pkStokKarti.Text = dr["pkStokKarti"].ToString();
            DB.pkStokKarti      = int.Parse(dr["pkStokKarti"].ToString());
            sk.ShowDialog();

            DepoMevcut();
        }
Ejemplo n.º 8
0
        private void stokKartınıDüzenleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (gridView2.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow dr = gridView2.GetDataRow(gridView2.FocusedRowHandle);

            if (dr["pkStokKarti"].ToString() == "")
            {
                formislemleri.Mesajform(dr["StokAdi"].ToString() + " için Stok Kartı tanımlanmamıştır.", "K", 200);
                return;
            }
            frmStokKarti StokKarti = new frmStokKarti();

            StokKarti.pkStokKarti.Text = dr["pkStokKarti"].ToString();
            DB.pkStokKarti             = int.Parse(dr["pkStokKarti"].ToString());
            StokKarti.ShowDialog();
        }
Ejemplo n.º 9
0
        private void simpleButton4_Click(object sender, EventArgs e)
        {
            int secilen = gridView1.FocusedRowHandle;

            if (secilen < 0)
            {
                return;
            }

            DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            frmStokKarti StokKarti = new frmStokKarti();

            DB.pkStokKarti = int.Parse(dr["pkStokKarti"].ToString());
            StokKarti.ShowDialog();

            gridyukle();

            gridView1.FocusedRowHandle = secilen;
        }
Ejemplo n.º 10
0
        private void stokKartıToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (gridView1.DataRowCount == 0)
            {
                return;
            }

            int i = gridView1.FocusedRowHandle;

            if (i < 0)
            {
                i = gridView1.DataRowCount;
                i--;
            }
            DataRow dr = gridView1.GetDataRow(i);

            frmStokKarti StokKarti = new frmStokKarti();

            DB.pkStokKarti = int.Parse(dr["fkStokKarti"].ToString());
            StokKarti.ShowDialog();
        }
        private void stokKartiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int i = gridView1.FocusedRowHandle;

            if (i < 0)
            {
                return;
            }

            DataRow dr = gridView1.GetDataRow(i);

            frmStokKarti StokKarti = new frmStokKarti();

            DB.pkStokKarti             = int.Parse(dr["pkStokKarti"].ToString());
            StokKarti.pkStokKarti.Text = dr["pkStokKarti"].ToString();
            StokKarti.ShowDialog();

            Liste();

            gridView1.FocusedRowHandle = i;
        }
Ejemplo n.º 12
0
        public void StokKarti(bool Ac = false)
        {
            frmStokKarti frm = new frmStokKarti();

            frm.ShowDialog();
        }