frmFiltrosReporte.vb 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Public Class frmFiltrosReporte
  2. Dim oDAOGeneral As New DAOGeneral
  3. Private Sub FiltrosReporte_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  4. Call CargarInstrumentosFinancieros()
  5. End Sub
  6. Private Sub CargarInstrumentosFinancieros()
  7. Me.cboInstrumento.DataSource = oDAOGeneral.ListaInstrumentos
  8. Me.cboInstrumento.DisplayMember = "Descripcion"
  9. Me.cboInstrumento.ValueMember = "Codigo"
  10. Me.cboInstrumento.SelectedIndex = -1
  11. End Sub
  12. Private Sub btnBuscar_Click(sender As Object, e As EventArgs) Handles btnBuscar.Click
  13. Variables.CodigoInstrumento = cboInstrumento.SelectedValue
  14. If (cboInstrumento.SelectedValue = "REPO") Then
  15. frmRegistroReportos.Show()
  16. Me.Close()
  17. End If
  18. If (cboInstrumento.SelectedValue = "LETE" Or cboInstrumento.SelectedValue = "PBUR" Or cboInstrumento.SelectedValue = "VCN") Then
  19. frmRegistroLetes.Show()
  20. Me.Close()
  21. End If
  22. If (cboInstrumento.SelectedValue = "PPER") Then
  23. frmRegistroPrestamoPersonal.Show()
  24. Me.Close()
  25. End If
  26. If (cboInstrumento.SelectedValue = "PEMP") Then
  27. frmResgistrosPrestamoEmpresarial.Show()
  28. Me.Close()
  29. End If
  30. If (cboInstrumento.SelectedValue = "FINV") Then
  31. frmRegitrosFondoInversion.Show()
  32. Me.Close()
  33. End If
  34. If (cboInstrumento.SelectedValue = "ACCNC" Or cboInstrumento.SelectedValue = "ACCNP" Or cboInstrumento.SelectedValue = "ACCI") Then
  35. frmRegistroAcciones.Show()
  36. Me.Close()
  37. End If
  38. If (cboInstrumento.SelectedValue = "FUTU" Or cboInstrumento.SelectedValue = "OPC") Then
  39. frmRegistroFuturosOpciones.Show()
  40. Me.Close()
  41. End If
  42. End Sub
  43. End Class