private void CargarSolicitudCheckList(string IdTipo_tt) { try { SolicitudCheckListBE oEntity = new SolicitudCheckListBE(); oEntity.USUARIO = General.General.GetCodigoUsuario; oEntity.OPCION = 1; oEntity.IdSolicitud = Codigo; oEntity.IdTipo_tt = IdTipo_tt; DataSet ds = new SolicitudCheckListBL().ProcesarSolicitudCheckList(oEntity); if (IdTipo_tt.Equals("00321")) // Socio { dgvCheckListSocio.DataSource = ds.Tables[0]; } else { dgvCheckListPagador.DataSource = ds.Tables[0]; } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void CargaDatos() { try { SolicitudCheckListBE oEntity = new SolicitudCheckListBE(); oEntity.OPCION = 1; oEntity.IdSolicitud = Codigo; oEntity.IdDocumento_tt = _IdDocumento_tt; oEntity.IdTipo_tt = _IdTipo_tt; DataSet ds = new DataSet(); ds = new SolicitudCheckListBL().ProcesarSolicitudCheckList(oEntity); if (ds.Tables[0].Rows.Count > 0) { cboIdDocumento_tt.SelectedValue = ds.Tables[0].Rows[0]["IdDocumento_tt"].ToString(); txtvDocumento.Text = ds.Tables[0].Rows[0]["vDocumento"].ToString(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void cboIdTipoSolicitud_tt_SelectedIndexChanged(object sender, EventArgs e) { try { txtiPlazo.Enabled = true; dtVencimiento.Enabled = true; if (cboIdTipoSolicitud_tt.SelectedValue.ToString().Equals("00288")) { txtiPlazo.Enabled = false; dtVencimiento.Enabled = false; } if (!ChkIncluyeLC.Checked) { TabControlPagadora.Enabled = false; } btnAgregarDocumentoSocio.Enabled = true; if (cboIdTipoSolicitud_tt.SelectedValue.ToString().Equals("00300")) //00300 Estudio Poderes Pagadora { TabControlPagadora.Enabled = true; btnAgregarDocumentoSocio.Enabled = false; } if (!string.IsNullOrEmpty(cboIdTipoSolicitud_tt.SelectedValue.ToString())) { SolicitudCheckListBE oEntity = new SolicitudCheckListBE(); oEntity.OPCION = 4; oEntity.USUARIO = General.General.GetCodigoUsuario; oEntity.IdTipo_tt = cboIdTipoSolicitud_tt.SelectedValue.ToString(); DataSet ds = new DataSet(); ds = new SolicitudCheckListBL().ProcesarSolicitudCheckList(oEntity); //if (ds.Tables.Count > 0) //{ dgvCheckListSocio.DataSource = ds.Tables[0]; //} string IdTipo_tt = "X"; if (ChkIncluyeLC.Checked || cboIdTipoSolicitud_tt.SelectedValue.ToString().Equals("00300")) //Estudio pagadoras { IdTipo_tt = cboIdTipoSolicitud_tt.SelectedValue.ToString(); } oEntity = new SolicitudCheckListBE(); oEntity.OPCION = 5; oEntity.USUARIO = General.General.GetCodigoUsuario; oEntity.IdTipo_tt = IdTipo_tt; DataSet dsP = new DataSet(); dsP = new SolicitudCheckListBL().ProcesarSolicitudCheckList(oEntity); //if (dsP.Tables.Count > 0) //{ dgvCheckListPagador.DataSource = dsP.Tables[0]; //} } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }