コード例 #1
0
ファイル: frmCari.cs プロジェクト: damar89/EmdErp
 private void btnKopyala_Click(object sender, EventArgs e)
 {
     try
     {
         if (gridView1.RowCount != 0)
         {
             secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
             Entities.Tables.Cari cariEntity = new Entities.Tables.Cari();
             cariEntity = cariDal.GetByFilter(context, c => c.Id == secilen);
             frmCariIslem form = new frmCariIslem(cariEntity, true);
             form.ShowDialog();
             if (form.saved)
             {
                 GetAll();
             }
         }
         else
         {
             MessageBox.Show("Seçili Cari Bulunamadı");
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Seçili Cari Bulunamadı");
     }
 }
コード例 #2
0
ファイル: frmCari.cs プロジェクト: damar89/EmdErp
        private void btnEkle_Click(object sender, EventArgs e)
        {
            frmCariIslem form = new frmCariIslem(new Entities.Tables.Cari());

            form.ShowDialog();
            if (form.saved)
            {
                GetAll();
            }
        }
コード例 #3
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
            frmCariIslem form = new frmCariIslem(cariDal.GetByFilter(context, c => c.Id == secilen));

            form.ShowDialog();
            if (form.saved)
            {
                GetAll();
            }
        }
コード例 #4
0
ファイル: frmCari.cs プロジェクト: damar89/EmdErp
 private void btnCariKopyalaHizli_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
         Entities.Tables.Cari cariEntity = new Entities.Tables.Cari();
         cariEntity = cariDal.GetByFilter(context, c => c.Id == secilen);
         frmCariIslem form = new frmCariIslem(cariEntity, true);
         form.ShowDialog();
         if (form.saved)
         {
             GetAll();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #5
0
ファイル: frmCari.cs プロジェクト: damar89/EmdErp
 private void btnDuzenle_Click(object sender, EventArgs e)
 {
     try
     {
         if (gridView1.RowCount != 0)
         {
             secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
             frmCariIslem form = new frmCariIslem(cariDal.GetByFilter(context, c => c.Id == secilen));
             form.ShowDialog();
             if (form.saved)
             {
             }
         }
         else
         {
             MessageBox.Show("Seçili Cari Bulunamadı");
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Seçili Cari Bulunamadı");
     }
 }
コード例 #6
0
 private void brnCariDuzenle_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         if (gridView1.RowCount != 0)
         {
             sec = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colId));
             frmCariIslem form = new frmCariIslem(cariDal.GetByFilter(context, c => c.Id == sec));
             form.ShowDialog();
             if (form.saved)
             {
                 gridControl1.DataSource = cariDal.GetCariler(context);
             }
         }
         else
         {
             MessageBox.Show("Seçili Cari Bulunamadı");
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Seçili Cari Bulunamadı");
     }
 }