frmPropuestasDeInversion.vb 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. Public Class frmPropuestasDeInversion
  2. Dim _valor
  3. Public Sub New(valor As String)
  4. _valor = valor
  5. End Sub
  6. Public Sub New()
  7. End Sub
  8. Dim oDAOGeneral As New DAOGeneral
  9. Dim oDAOPropuestasDeInversion As New DAOPropuestaInversion
  10. Dim InstrumentoFinanciero As Object
  11. Dim oCEAcciones As AccionesCE
  12. Dim oCEBonos As BonosCE
  13. Dim oCEDAP As DepositosAPlazoCE
  14. Dim oCELetes As LETESCE
  15. Dim oCEReportos As ReportosCE
  16. Dim ResultadoMsgBox As Integer
  17. Public Modo As String = "N"
  18. Dim DocId As Integer
  19. Private Sub frmPropuestasDeInversion_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  20. Call CargarEstadosDocumento()
  21. Call CargarEmpresas()
  22. Call CargarInstrumentosFinancieros()
  23. Call CargarEmisores()
  24. Call CargarCalificacionDeRiesgo()
  25. Call CargarCalificadoraDeRiesgo()
  26. Call CargarOrigenDeFondos()
  27. If Modo = "N" Then
  28. ModoNuevo()
  29. End If
  30. If Modo = "B" Then
  31. ModoBusqueda()
  32. End If
  33. If Modo = "C" Then
  34. ModoConsulta()
  35. End If
  36. End Sub
  37. 'Activa el modo de busqueda dentro del form'
  38. Sub ModoBusqueda()
  39. Me.Modo = "B"
  40. LimpiarControles()
  41. RestablecerControles()
  42. DeshabilitarControles()
  43. Me.btnAccion.Text = "Buscar"
  44. End Sub
  45. 'Limpia la pantalla para ingresar nuevos datos'
  46. Sub ModoNuevo()
  47. Me.Modo = "N"
  48. LimpiarControles()
  49. HabilitarControles()
  50. Me.cboEstado.SelectedValue = "P"
  51. RestablecerControles()
  52. Me.btnAccion.Text = "Guardar"
  53. End Sub
  54. 'Establece una consulta'
  55. Sub ModoConsulta()
  56. Me.Modo = "C"
  57. RestablecerControles()
  58. Me.btnAccion.Text = "Aceptar"
  59. End Sub
  60. 'Deshabilita los controles para hacer una busqueda'
  61. Sub DeshabilitarControles()
  62. cboOrigenDeFodos.Enabled = False
  63. txtMontoInversion.Enabled = False
  64. txtPrecio.Enabled = False
  65. txtRendimiento.Enabled = False
  66. txtIngresos.Enabled = False
  67. txtJustificacion.Enabled = False
  68. txtComentarios.Enabled = False
  69. End Sub
  70. 'Regresa los controles a su estado inicial'
  71. Sub HabilitarControles()
  72. cboOrigenDeFodos.Enabled = True
  73. txtMontoInversion.Enabled = True
  74. txtPrecio.Enabled = True
  75. txtRendimiento.Enabled = True
  76. txtIngresos.Enabled = True
  77. txtJustificacion.Enabled = True
  78. txtComentarios.Enabled = True
  79. End Sub
  80. 'Restablece los controles nuevamente para su uso'
  81. Sub LimpiarControles()
  82. txtAsunto.Text = ""
  83. cboEmpresas.SelectedIndex = -1
  84. cboInstrumentosFinancieros.SelectedIndex = -1
  85. cboEmisores.SelectedIndex = -1
  86. cboCalificacionDeRiesgo.SelectedIndex = -1
  87. cboCalificadoraDeRiesgo.SelectedIndex = -1
  88. cboOrigenDeFodos.SelectedIndex = -1
  89. txtMontoInversion.Text = ""
  90. txtPrecio.Text = ""
  91. txtRendimiento.Text = ""
  92. txtIngresos.Text = ""
  93. txtCodigoPropuesta.Text = ""
  94. 'If Modo = "N" Then
  95. ' cboEstado.SelectedValue = "P"
  96. 'Else
  97. cboEstado.SelectedIndex = -1
  98. 'End If
  99. txtJustificacion.Text = ""
  100. txtComentarios.Text = ""
  101. End Sub
  102. 'Private Sub txtMontoInversion_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtMontoInversion.KeyPress
  103. ' If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back AndAlso e.KeyChar <> "." Then
  104. ' e.Handled = True
  105. ' End If
  106. 'End Sub
  107. 'El boton de aceptar realiza su funcion dependiendo del estado del modo'
  108. Private Sub btnAccion_Click(sender As Object, e As EventArgs) Handles btnAccion.Click
  109. 'Si el frm esta en modo busqueda'
  110. If Me.Modo = "B" Then
  111. Dim ObjCEPropuestaInversion As New CEPropuestaInversion
  112. ObjCEPropuestaInversion.CodigoInversion = Me.GetCodigoInversion
  113. ObjCEPropuestaInversion.Asunto = Me.GetAsunto
  114. ObjCEPropuestaInversion.CodigoEmpresa = Me.GetEmpresa
  115. ObjCEPropuestaInversion.CodigoInstrumentoFinanciero = Me.GetInstrumento
  116. ObjCEPropuestaInversion.CodigoEmisor = Me.GetEmisor
  117. ObjCEPropuestaInversion.CodigoCalificacionDeRiesgo = Me.GetCalificacionDeRiesgo
  118. ObjCEPropuestaInversion.CodigoEmpresaCalificadora = Me.GetCalificadoraDeRiesgo
  119. ObjCEPropuestaInversion.EstadoDocumento = Me.GetEstadoDoc
  120. frmBuscarDeLista.dgvBuscarDeLista.DataSource = oDAOPropuestasDeInversion.BuscarPropuestasInversion(ObjCEPropuestaInversion).Tables("Resultado")
  121. If frmBuscarDeLista.ShowDialog = DialogResult.OK Then
  122. 'Me.DocId = frmBuscarDeLista.CodigoPrincipal
  123. If Not frmBuscarDeLista.CodigoPrincipal = Nothing Then
  124. CargarRegistro(frmBuscarDeLista.CodigoPrincipal)
  125. End If
  126. End If
  127. End If
  128. 'Es el valor por defecto y sirve para agregar una nueva vista'
  129. If Me.Modo = "N" Then
  130. If ValidarControles() Then
  131. Dim ObjCEPropuestaInversion As New CEPropuestaInversion
  132. ObjCEPropuestaInversion.CodigoInversion = Me.GetCodigoInversion
  133. ObjCEPropuestaInversion.EstadoDocumento = Me.GetEstadoDoc
  134. ObjCEPropuestaInversion.Asunto = Me.GetAsunto
  135. ObjCEPropuestaInversion.CodigoEmpresa = Me.GetEmpresa
  136. ObjCEPropuestaInversion.CodigoInstrumentoFinanciero = Me.GetInstrumento
  137. ObjCEPropuestaInversion.CodigoEmisor = Me.GetEmisor
  138. ObjCEPropuestaInversion.CodigoCalificacionDeRiesgo = Me.GetCalificacionDeRiesgo
  139. ObjCEPropuestaInversion.CodigoEmpresaCalificadora = Me.GetCalificadoraDeRiesgo
  140. ObjCEPropuestaInversion.OrigenDeFondos = Me.GetOrigenDeFondos
  141. ObjCEPropuestaInversion.Comentarios = Me.GetComentarios
  142. ObjCEPropuestaInversion.Justificacion = Me.GetJustificacion
  143. ObjCEPropuestaInversion.TipoOperacion = Me.GetTipoOperacion
  144. If InstrumentoFinanciero Is Nothing Then
  145. ResultadoMsgBox = MessageBox.Show("No se ha ingresado detalles del Instrumento." & vbCrLf & "Desea continuar sin detalles?", "Sin Detalles", MessageBoxButtons.YesNo)
  146. End If
  147. If ResultadoMsgBox = DialogResult.Yes Then
  148. 'oDAOPropuestasDeInversion.NuevaPropuesta(ObjCEPropuestaInversion, InstrumentoFinanciero)
  149. Me.Dispose()
  150. End If
  151. Else
  152. MsgBox("Completar Valores")
  153. End If
  154. End If
  155. End Sub
  156. Private Sub btnNuevo_Click(sender As Object, e As EventArgs) Handles btnNuevo.Click
  157. ModoNuevo() 'Llama al metodo nuevo y me ingresa los datos'
  158. End Sub
  159. Private Sub btnBuscar_Click(sender As Object, e As EventArgs) Handles btnBuscar.Click
  160. ModoBusqueda() 'Activa el modo de busqueda'
  161. End Sub
  162. Sub CargarRegistro(IdRegistro As Integer)
  163. Dim ObjCEPropuestaInversion As New CEPropuestaInversion
  164. 'oDAOPropuestasDeInversion.CargarPropuesta(ObjCEPropuestaInversion, IdRegistro)
  165. Me.txtCodigoPropuesta.Text = ObjCEPropuestaInversion.CodigoInversion
  166. Me.cboEstado.SelectedValue = ObjCEPropuestaInversion.EstadoDocumento
  167. If ObjCEPropuestaInversion.TipoOperacion = "C" Then
  168. Me.rbtnCompra.Checked = True
  169. End If
  170. If ObjCEPropuestaInversion.TipoOperacion = "V" Then
  171. Me.rbtnVenta.Checked = True
  172. End If
  173. Me.txtAsunto.Text = ObjCEPropuestaInversion.Asunto
  174. Me.cboEmpresas.SelectedValue = ObjCEPropuestaInversion.CodigoEmpresa
  175. Me.cboInstrumentosFinancieros.SelectedValue = ObjCEPropuestaInversion.CodigoInstrumentoFinanciero
  176. Me.cboEmisores.SelectedValue = ObjCEPropuestaInversion.CodigoEmisor
  177. Me.cboCalificacionDeRiesgo.SelectedValue = ObjCEPropuestaInversion.CodigoCalificacionDeRiesgo
  178. Me.cboCalificadoraDeRiesgo.SelectedValue = ObjCEPropuestaInversion.CodigoEmpresaCalificadora
  179. Me.cboOrigenDeFodos.SelectedValue = ObjCEPropuestaInversion.OrigenDeFondos
  180. Me.txtJustificacion.Text = ObjCEPropuestaInversion.Justificacion
  181. Me.txtComentarios.Text = ObjCEPropuestaInversion.Comentarios
  182. HabilitarControles()
  183. ModoConsulta()
  184. DocId = IdRegistro
  185. ModoConsulta()
  186. End Sub
  187. Private Sub btnLimpiar_Click(sender As Object, e As EventArgs) Handles btnLimpiar.Click
  188. If Modo = "B" Then 'Si esta en modo busqueda limpia los controles'
  189. Me.LimpiarControles()
  190. End If
  191. End Sub
  192. Sub CargarEstadosDocumento()
  193. Me.cboEstado.DataSource = oDAOPropuestasDeInversion.ListaEstadoDocumento.Tables("EstadosDocumento")
  194. Me.cboEstado.DisplayMember = "Descripcion"
  195. Me.cboEstado.ValueMember = "Codigo"
  196. Me.cboEstado.SelectedIndex = -1
  197. End Sub
  198. Sub CargarEmpresas()
  199. Me.cboEmpresas.DataSource = oDAOGeneral.ListaEmpresas
  200. Me.cboEmpresas.DisplayMember = "Descripcion"
  201. Me.cboEmpresas.ValueMember = "Codigo"
  202. Me.cboEmpresas.SelectedIndex = -1
  203. End Sub
  204. Sub CargarInstrumentosFinancieros()
  205. Me.cboInstrumentosFinancieros.DataSource = oDAOGeneral.ListaInstrumentos("Propuesta")
  206. Me.cboInstrumentosFinancieros.DisplayMember = "Descripcion"
  207. Me.cboInstrumentosFinancieros.ValueMember = "Codigo"
  208. Me.cboInstrumentosFinancieros.SelectedIndex = -1
  209. End Sub
  210. Sub CargarEmisores()
  211. Me.cboEmisores.DataSource = oDAOGeneral.ListaEmisores
  212. Me.cboEmisores.DisplayMember = "Descripcion"
  213. Me.cboEmisores.ValueMember = "Codigo"
  214. Me.cboEmisores.SelectedIndex = -1
  215. End Sub
  216. Sub CargarCalificacionDeRiesgo()
  217. Me.cboCalificacionDeRiesgo.DataSource = oDAOGeneral.ListaCalificacionesDeRiesgo
  218. Me.cboCalificacionDeRiesgo.DisplayMember = "Descripcion"
  219. Me.cboCalificacionDeRiesgo.ValueMember = "Codigo"
  220. Me.cboCalificacionDeRiesgo.SelectedIndex = -1
  221. End Sub
  222. Sub CargarCalificadoraDeRiesgo()
  223. Me.cboCalificadoraDeRiesgo.DataSource = oDAOGeneral.ListaEmpresasCalificadoras
  224. Me.cboCalificadoraDeRiesgo.DisplayMember = "Descripcion"
  225. Me.cboCalificadoraDeRiesgo.ValueMember = "Codigo"
  226. Me.cboCalificadoraDeRiesgo.SelectedIndex = -1
  227. End Sub
  228. Sub CargarOrigenDeFondos()
  229. Me.cboOrigenDeFodos.DataSource = oDAOGeneral.ListaOrigenDeFondos
  230. Me.cboOrigenDeFodos.DisplayMember = "Descripcion"
  231. Me.cboOrigenDeFodos.ValueMember = "Codigo"
  232. Me.cboOrigenDeFodos.SelectedIndex = -1
  233. End Sub
  234. Function GetCodigoInversion() As String
  235. Return txtCodigoPropuesta.Text
  236. End Function
  237. Function GetEstadoDoc() As String
  238. Dim valor As String
  239. If cboEstado.SelectedIndex = -1 Then
  240. valor = ""
  241. Else
  242. valor = cboEstado.SelectedValue
  243. End If
  244. Return valor
  245. End Function
  246. 'valida si la seleccion es de compra o venta,dependiendo de lo que haya seleccionado el usuario'
  247. Function GetTipoOperacion() As String
  248. Dim valor As String = ""
  249. If Me.rbtnCompra.Checked Then
  250. valor = "C"
  251. End If
  252. If Me.rbtnVenta.Checked Then
  253. valor = "V"
  254. End If
  255. Return valor
  256. End Function
  257. 'Retorna el valor del texbox de los asuntos'
  258. Function GetAsunto() As String
  259. Return txtAsunto.Text
  260. End Function
  261. 'Retorna que empresa eligio el usuario'
  262. Function GetEmpresa() As String
  263. Dim valor As String
  264. If cboEmpresas.SelectedIndex = -1 Then
  265. valor = ""
  266. Else
  267. valor = cboEmpresas.SelectedValue
  268. End If
  269. Return valor
  270. End Function
  271. 'Retorna que instrumento financiero selecciono'
  272. Function GetInstrumento() As String
  273. Dim valor As String
  274. If cboInstrumentosFinancieros.SelectedIndex = -1 Then
  275. valor = ""
  276. Else
  277. valor = cboInstrumentosFinancieros.SelectedValue
  278. End If
  279. Return valor
  280. End Function
  281. 'Retorna que entidad sera la que emita'
  282. Function GetEmisor() As Integer
  283. Dim valor As Integer
  284. If cboEmisores.SelectedIndex = -1 Then
  285. valor = 0
  286. Else
  287. valor = cboEmisores.SelectedValue
  288. End If
  289. Return valor
  290. End Function
  291. 'Retorna el valor del calificador de riesgo'
  292. Function GetCalificacionDeRiesgo() As String
  293. Dim valor As String
  294. If cboCalificacionDeRiesgo.SelectedIndex = -1 Then
  295. valor = ""
  296. Else
  297. valor = cboCalificacionDeRiesgo.SelectedValue
  298. End If
  299. Return valor
  300. End Function
  301. 'Retorna el valor de quien sera la calificadora de los riesgos'
  302. Function GetCalificadoraDeRiesgo() As String
  303. Dim valor As String
  304. If cboCalificadoraDeRiesgo.SelectedIndex = -1 Then
  305. valor = ""
  306. Else
  307. valor = cboCalificadoraDeRiesgo.SelectedValue
  308. End If
  309. Return valor
  310. End Function
  311. 'Retorna el valor de los origenes de fondos'
  312. Function GetOrigenDeFondos() As String
  313. Dim valor As String
  314. If cboOrigenDeFodos.SelectedIndex = -1 Then
  315. valor = ""
  316. Else
  317. valor = cboOrigenDeFodos.SelectedValue
  318. End If
  319. Return valor
  320. End Function
  321. 'Devuelve la justificacion de la nueva propuesta de inversion'
  322. Function GetJustificacion() As String
  323. Return txtJustificacion.Text
  324. End Function
  325. 'Devuelve los comentarios extra de la nueva propuesta de inversion'
  326. Function GetComentarios() As String
  327. Return txtComentarios.Text
  328. End Function
  329. 'Reportes de crystal report'
  330. Private Sub btnImprimir_Click(sender As Object, e As EventArgs) Handles btnImprimir.Click
  331. If Not DocId = Nothing Then
  332. Dim Imprimir As New frmImprimir
  333. Imprimir.NombreRPT = "PrintPropuestaDeInversion.rpt"
  334. Imprimir.IdDocumento = DocId
  335. Imprimir.ShowDialog()
  336. End If
  337. End Sub
  338. 'valida los controles'
  339. Function ValidarControles() As Boolean
  340. RestablecerControles()
  341. Dim ControlesValidos As Boolean = True
  342. If GetAsunto.Length = 0 Then
  343. txtAsunto.BackColor = Color.FromArgb(223, 152, 152)
  344. ControlesValidos = False
  345. End If
  346. If GetEmpresa.Length = 0 Then
  347. cboEmpresas.BackColor = Color.FromArgb(223, 152, 152)
  348. ControlesValidos = False
  349. End If
  350. If GetInstrumento.Length = 0 Then
  351. cboInstrumentosFinancieros.BackColor = Color.FromArgb(223, 152, 152)
  352. ControlesValidos = False
  353. End If
  354. If GetEmisor() = 0 Or GetEmisor() = Nothing Then
  355. cboEmisores.BackColor = Color.FromArgb(223, 152, 152)
  356. ControlesValidos = False
  357. End If
  358. If GetCalificacionDeRiesgo.Length = 0 Then
  359. cboCalificacionDeRiesgo.BackColor = Color.FromArgb(223, 152, 152)
  360. ControlesValidos = False
  361. End If
  362. If GetCalificadoraDeRiesgo.Length = 0 Then
  363. cboCalificadoraDeRiesgo.BackColor = Color.FromArgb(223, 152, 152)
  364. ControlesValidos = False
  365. End If
  366. If GetOrigenDeFondos.Length = 0 Then
  367. cboOrigenDeFodos.BackColor = Color.FromArgb(223, 152, 152)
  368. ControlesValidos = False
  369. End If
  370. If GetCodigoInversion.Length = 0 Then
  371. txtCodigoPropuesta.BackColor = Color.FromArgb(223, 152, 152)
  372. ControlesValidos = False
  373. End If
  374. If rbtnCompra.Checked = False And rbtnVenta.Checked = False Then
  375. Me.gbTipoOperacion.BackColor = Color.FromArgb(223, 152, 152)
  376. ControlesValidos = False
  377. End If
  378. Return ControlesValidos
  379. End Function
  380. 'Restablece los colores'
  381. Sub RestablecerControles()
  382. txtAsunto.BackColor = Color.FromArgb(255, 255, 255)
  383. cboEmpresas.BackColor = Color.FromArgb(255, 255, 255)
  384. cboInstrumentosFinancieros.BackColor = Color.FromArgb(255, 255, 255)
  385. cboEmisores.BackColor = Color.FromArgb(255, 255, 255)
  386. cboCalificacionDeRiesgo.BackColor = Color.FromArgb(255, 255, 255)
  387. cboCalificadoraDeRiesgo.BackColor = Color.FromArgb(255, 255, 255)
  388. cboOrigenDeFodos.BackColor = Color.FromArgb(255, 255, 255)
  389. txtMontoInversion.BackColor = Color.FromArgb(255, 255, 255)
  390. txtPrecio.BackColor = Color.FromArgb(255, 255, 255)
  391. txtRendimiento.BackColor = Color.FromArgb(255, 255, 255)
  392. txtIngresos.BackColor = Color.FromArgb(255, 255, 255)
  393. txtCodigoPropuesta.BackColor = Color.FromArgb(255, 255, 255)
  394. Me.gbTipoOperacion.BackColor = Color.FromArgb(255, 255, 255)
  395. End Sub
  396. 'Instrumentos financieros detect cuando se ha detectado un cambio'
  397. Private Sub cboInstrumentosFinancieros_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboInstrumentosFinancieros.SelectedIndexChanged
  398. Dim vCodigoIF As String
  399. Dim vEmpresa As String
  400. Dim vCodigo As String
  401. Try
  402. vEmpresa = Me.cboEmpresas.SelectedValue.ToString
  403. vCodigoIF = Me.cboInstrumentosFinancieros.SelectedValue.ToString
  404. Catch ex As Exception
  405. vEmpresa = ""
  406. vCodigoIF = ""
  407. End Try
  408. If Modo = "N" Then
  409. vCodigo = SeriesDAO.SiguienteCodigoInversion(vEmpresa, vCodigoIF)
  410. Me.txtCodigoPropuesta.Text = vCodigo
  411. End If
  412. End Sub
  413. 'Boton de detalles'
  414. Private Sub btnDetallerIF_Click(sender As Object, e As EventArgs) Handles btnDetallerIF.Click
  415. If GetInstrumento() = "ACC" Then
  416. Dim oFormulario As New frmAcciones
  417. If Modo = "C" Then
  418. oFormulario.CargarRegistro(DocId, "P")
  419. oFormulario.ShowDialog()
  420. End If
  421. If Modo = "N" Then
  422. oFormulario.TipoTransaccion = "N"
  423. If oFormulario.ShowDialog = DialogResult.OK Then
  424. Me.oCEAcciones = New AccionesCE
  425. Me.oCEAcciones = oFormulario.RetornarObjeto
  426. InstrumentoFinanciero = Me.oCEAcciones
  427. oFormulario.Dispose()
  428. End If
  429. End If
  430. End If
  431. If GetInstrumento() = "LETE" Then
  432. Dim oFormulario As New frmLetes
  433. If Modo = "C" Then
  434. oFormulario.CargarRegistro(DocId, "P")
  435. oFormulario.ShowDialog()
  436. End If
  437. If Modo = "N" Then
  438. oFormulario.Modo = "N"
  439. If oFormulario.ShowDialog = DialogResult.OK Then
  440. Me.oCELetes = New LETESCE
  441. Me.oCELetes = oFormulario.RetornarObjeto
  442. InstrumentoFinanciero = Me.oCELetes
  443. oFormulario.Dispose()
  444. End If
  445. End If
  446. End If
  447. If GetInstrumento() = "DAP" Then
  448. Dim oFormulario As New frmDepositosAPlazo
  449. If Modo = "C" Then
  450. oFormulario.CargarRegistro(DocId, "P")
  451. oFormulario.ShowDialog()
  452. End If
  453. If Modo = "N" Then
  454. oFormulario.TipoTransaccion = "N"
  455. If oFormulario.ShowDialog = DialogResult.OK Then
  456. Me.oCEDAP = New DepositosAPlazoCE
  457. Me.oCEDAP = oFormulario.RetornarObjeto
  458. InstrumentoFinanciero = Me.oCEDAP
  459. oFormulario.Dispose()
  460. End If
  461. End If
  462. End If
  463. If GetInstrumento() = "REPO" Then
  464. Dim oFormulario As New frmReporto
  465. If Modo = "C" Then
  466. oFormulario.ShowDialog()
  467. End If
  468. If Modo = "N" Then
  469. oFormulario.Modo = "N"
  470. If oFormulario.ShowDialog = DialogResult.OK Then
  471. Me.oCEReportos = New ReportosCE
  472. InstrumentoFinanciero = oCEReportos
  473. oFormulario.Dispose()
  474. End If
  475. End If
  476. End If
  477. End Sub
  478. Private Sub cboEmpresas_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboEmpresas.SelectedIndexChanged
  479. End Sub
  480. Private Sub ToolStripLabel3_Click(sender As Object, e As EventArgs) Handles ToolStripLabel3.Click
  481. End Sub
  482. End Class