示例#1
0
        void Modificar()
        {
            n_QueHace                = 2;
            booAgregando             = true;
            Tab1.TabPages[0].Enabled = false;
            Blanquea();
            Bloquea();
            ActivarTool();

            int intIdRegistro = Convert.ToInt32(DgLista.Columns[0].CellValue(DgLista.Row).ToString());

            VerRegistro(intIdRegistro);
            LblTitulo2.Text    = "Modificando Registro";
            Tab1.SelectedIndex = 1;
            CmdCtaDeb.Focus();
            booAgregando = false;
        }
示例#2
0
 void Nuevo()
 {
     n_QueHace = 1;
     Tab1.TabPages[0].Enabled = false;
     Blanquea();
     Bloquea();
     ActivarTool();
     LblTitulo2.Text    = "Agregando Nuevo Registro";
     Tab1.SelectedIndex = 1;
     TxtCtaCom.Focus();
     if (n_tipo == 1)
     {
         OptIng.Checked = true;
         OptEgr.Checked = false;
     }
     else
     {
         OptIng.Checked = false;
         OptEgr.Checked = true;
     }
     CmdCtaDeb.Focus();
 }