Esempio n. 1
0
 private void toolEdit_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         if (DBGrid.CurrentRow == null)
         {
             return;
         }
         modAccCheckForm  mod = (modAccCheckForm)DBGrid.CurrentRow.DataBoundItem;
         EditAccCheckForm frm = new EditAccCheckForm();
         frm.EditItem(mod.FormId);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Esempio n. 2
0
 private void mnuAccCredenceList_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         if (DBGrid.CurrentRow == null)
         {
             return;
         }
         modAccCheckList mod = (modAccCheckList)DBGrid.CurrentRow.DataBoundItem;
         if (mod.Status == 0)
         {
             EditAccCredenceList frm = new EditAccCredenceList();
             frm.EditItem(mod.AccName, mod.AccSeq);
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 LoadData();
             }
         }
         else
         {
             EditAccCheckForm frm   = new EditAccCheckForm();
             dalAccCheckForm  dalcf = new dalAccCheckForm();
             modAccCheckForm  modcf = dalcf.GetItembyCheckid(mod.Id, out Util.emsg);
             if (modcf != null)
             {
                 frm.EditItem(modcf.FormId);
                 frm.ShowDialog();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Esempio n. 3
0
 private void toolNew_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         EditAccCheckForm frm = new EditAccCheckForm();
         frm.AddItem(Util.retValue1);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             rbStatus0.Checked = true;
             LoadData();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }