private usp_Participantes_Listar_Result leerCodigo() { pro = new usp_Participantes_Listar_Result() { IdParticipante = int.Parse(txtappaterno.Text) }; return(pro); }
private usp_Participantes_Listar_Result leerParticipante() { pro = new usp_Participantes_Listar_Result(); pro.IdParticipante = int.Parse(txtappaterno.Text); pro.NombreParticipante = txtNombre.Text; pro.IdProveedor = (int)cboProveedor.SelectedValue; pro.IdCategoría = (int)cboCategoria.SelectedValue; pro.PrecioUnidad = decimal.Parse(txtCorreo.Text); pro.UnidadesEnExistencia = Convert.ToInt16(numCantidad.Value); return(pro); }
private void consultarParticipante() { pro = obj.ParticipanteBuscar(leerCodigo()); if (pro != null) { txtNombre.Text = pro.NombreParticipante; txtCorreo.Text = pro.PrecioUnidad.ToString(); cboProveedor.SelectedValue = pro.IdProveedor; cboCategoria.SelectedValue = pro.IdCategoría; numCantidad.Value = (int)pro.UnidadesEnExistencia; } else { MessageBox.Show("Participante no existe", "Aviso"); txtappaterno.SelectAll(); txtappaterno.Focus(); } }