private void save()
 {
     if (u_Validate())
     {
         tmpcursor = null;
         var BL = new tb_plla_tab0100BL();
         var BE = new tb_plla_tab0100();
         BE.norden = 0;
         tmpcursor = BL.TeleCredito_CONSULTA(VariablesPublicas.EmpresaID, BE).Tables[0];
         var ofila = tmpcursor.NewRow();
         ofila = VariablesPublicas.INSERTINTOTABLE(tmpcursor);
         ofila["codigo"] = Examinar.Rows[Examinar.CurrentRow.Index].Cells["codigo"].Value;
         for (lc_cont = 0; lc_cont <= Examinar.ColumnCount - 1; lc_cont++)
         {
             xnomcampo = Examinar.Columns[lc_cont].Name;
             ofila[xnomcampo] = Examinar.Rows[Examinar.CurrentRow.Index].Cells[lc_cont].Value;
         }
         ofila["codigo"] = txtcodigo.Text.Trim();
         ofila["descripcion"] = txtDescripcion.Text.Trim();
         ofila["valor"] = txtvalor.Text.Trim();
         tmpcursor.Rows.Add(ofila);
         if (BL.TeleCredito_InsertUpdate(VariablesPublicas.EmpresaID, BE, tmpcursor))
         {
             U_CancelarEdicion(0);
         }
         else
         {
             Frm_Class.ShowError(BL.Sql_Error, this);
         }
     }
 }