예제 #1
0
파일: FrmStok.cs 프로젝트: mguler1/Erp
        private void btnStokEkle_Click(object sender, EventArgs e)
        {
            FrmStokİslem f = new FrmStokİslem(new Entities.Tables.Stok());

            f.ShowDialog();
            GetAll();
        }
예제 #2
0
파일: FrmStok.cs 프로젝트: mguler1/Erp
        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();
        }
예제 #3
0
파일: FrmStok.cs 프로젝트: mguler1/Erp
        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();
        }