示例#1
0
        private void BtnEkle_Click(object sender, EventArgs e)
        {
            frmStokislem form = new frmStokislem(new SarpTicariOtomasyon_Entities.Tables.Stok());

            form.ShowDialog();
            if (form.saved)
            {
                Listele();
            }
        }
示例#2
0
        private void BtnDuzenle_Click(object sender, EventArgs e)
        {
            secilen = gridViewStok.GetFocusedRowCellValue(colStokKodu).ToString();
            frmStokislem form = new frmStokislem(stokDal.GetByFilter(context, c => c.StokKodu == secilen));

            form.ShowDialog();
            if (form.saved)
            {
                Listele();
            }
        }
示例#3
0
        private void BtnKopyala_Click(object sender, EventArgs e)
        {
            secilen = gridViewStok.GetFocusedRowCellValue(colStokKodu).ToString();
            SarpTicariOtomasyon_Entities.Tables.Stok StokEntitiy = new SarpTicariOtomasyon_Entities.Tables.Stok();
            StokEntitiy          = stokDal.GetByFilter(context, c => c.StokKodu == secilen);
            StokEntitiy.Id       = -1;
            StokEntitiy.StokKodu = null;
            frmStokislem form = new frmStokislem(StokEntitiy);

            form.ShowDialog();
            if (form.saved)
            {
                Listele();
            }
        }