Ejemplo n.º 1
0
        private void btnStokEkle_Click(object sender, EventArgs e)
        {
            FrmStokİslem f = new FrmStokİslem(new Entities.Tables.Stok());

            f.ShowDialog();
            GetAll();
        }
Ejemplo n.º 2
0
        private void btnStokDuzenle_Click(object sender, EventArgs e)
        {
            string       secilen = gridView1.GetFocusedRowCellValue(colStokKodu).ToString();
            FrmStokİslem f       = new FrmStokİslem(stokdal.GetByFilter(context, c => c.StokKodu == secilen));

            f.Show();
        }
Ejemplo n.º 3
0
        private void btnStokKopyala_Click(object sender, EventArgs e)
        {
            //var olan kaydı seçip koyalayıp  üzerinde tekrar kayıt yapmak için  id -1 dedik stokkodu benzersiz olacağı için null atadım.
            string secilen = gridView1.GetFocusedRowCellValue(colStokKodu).ToString();

            Entities.Tables.Stok stokEntity = new Entities.Tables.Stok();
            stokEntity          = stokdal.GetByFilter(context, c => c.StokKodu == secilen);
            stokEntity.Id       = -1;
            stokEntity.StokKodu = null;
            FrmStokİslem f = new FrmStokİslem(stokEntity);

            f.ShowDialog();
        }