示例#1
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            try
            {
                if (String.IsNullOrEmpty(TextBoxX1.Text.Trim()))
                {
                    MessageBox.Show("Ingresar una descripción.", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    TextBoxX1.Focus();
                    return;
                }

                DatosLoadBE oEntity = new DatosLoadBE()
                {
                    OPCION      = 4,
                    USUARIO     = General.General.GetCodigoUsuario,
                    Descripcion = TextBoxX1.Text,
                };
                ds = new DatosLoadBL().ProcesarDatosLoad(oEntity);

                dgvCargaDatos.DataSource = ds.Tables[0];
                lblRegistros.Text        = ds.Tables[0].Rows.Count.ToString() + " registro(s)";

                btnNuevo.Visible = false;
                if (ds.Tables[0].Rows.Count == 0)
                {
                    btnNuevo.Visible = true;
                }
                MessageBox.Show("Proceso terminado", "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
 private void btnLimpiar_Click(object sender, EventArgs e)
 {
     try
     {
         TextBoxX1.Clear();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#3
0
 private void btnLimpiar_Click(object sender, EventArgs e)
 {
     try
     {
         TextBoxX1.Clear();
         cboIdTipoDocumento_tt.SelectedValue = string.Empty;
         txtvNroDocumento.Clear();
         cboIdTipoPersona_tt.SelectedValue = string.Empty;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#4
0
 private void btnLimpiar_Click(object sender, EventArgs e)
 {
     try
     {
         txtIdPagadora.Clear();
         txtDescripcion.Clear();
         TextBoxX1.Clear();
         txtRazonSocialSocio.Clear();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnLimpiar_Click(object sender, EventArgs e)
 {
     TextBoxX1.Clear();
 }