private void CargarDatos() { try { SolicitudRegistroBE oEntity = new SolicitudRegistroBE(); oEntity.OPCION = 1; oEntity.USUARIO = General.General.GetUsuario; oEntity.IdSolicitud = Codigo; oEntity.IdTipoRegistro_tt = _IdTipoRegistro_tt; DataSet ds = new SolicitudRegistroBL().ProcesarSolicitudRegistro(oEntity); if (ds.Tables[0].Rows.Count > 0) { cboIdTipoRegistro_tt.SelectedValue = ds.Tables[0].Rows[0]["IdTipoRegistro_tt"].ToString(); txtvTomo.Text = ds.Tables[0].Rows[0]["vTomo"].ToString(); txtvFicha.Text = ds.Tables[0].Rows[0]["vFicha"].ToString(); txtvPartida.Text = ds.Tables[0].Rows[0]["vPartida"].ToString(); dtRegistro.Value = DateTime.Parse(ds.Tables[0].Rows[0]["dtRegistro"].ToString()); txtvLugar.Text = ds.Tables[0].Rows[0]["vLugar"].ToString(); txtvNroPagina.Text = ds.Tables[0].Rows[0]["vNroPagina"].ToString(); txtvCC.Text = ds.Tables[0].Rows[0]["vCC"].ToString(); txtvEP.Text = ds.Tables[0].Rows[0]["vEP"].ToString(); txtvOtro.Text = ds.Tables[0].Rows[0]["vOtro"].ToString(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void CargarDatos() { try { SolicitudRegistroBE oEntity = new SolicitudRegistroBE(); oEntity.OPCION = 1; oEntity.USUARIO = General.General.GetUsuario; oEntity.IdSolicitud = Codigo; DataSet ds = new SolicitudRegistroBL().ProcesarSolicitudRegistro(oEntity); dgvRegistro.DataSource = ds.Tables[0]; } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }