CEPropuestaInversion.vb 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. Public Class CEPropuestaInversion
  2. Private _IdDeDocumento As Integer = 0
  3. Private _CodigoInversion As String = String.Empty
  4. Private _EstadoDocumento As String = String.Empty
  5. Private _EstadoAutorizacion As String = String.Empty
  6. Private _Asunto As String = String.Empty
  7. Private _CodigoEmpresa As String = String.Empty
  8. Private _CodigoIF As String = String.Empty
  9. Private _TipoIF As String = String.Empty
  10. Private _CodigoEmisor As Integer = 0
  11. Private _CodigoCalificacionDeRiesgo As String = String.Empty
  12. Private _CodigoCalificadoraDeRiesgo As String = String.Empty
  13. Private _OrigendeFondos As String = String.Empty
  14. Private _Comentarios As String = String.Empty
  15. Private _Justificacion As String = String.Empty
  16. Private _TipoOperacion As String = String.Empty
  17. Private _DocumentoBase As Integer = 0
  18. Private _CodigoAsociado As String = String.Empty
  19. Private _NombreManual As String = String.Empty
  20. Private _TipoRenta As String = String.Empty
  21. Private _TipoTasa As String = String.Empty
  22. Private _Periodicidad As String = String.Empty
  23. Private _MontoInversion As Double = 0
  24. Private _Rendimiento As Double = 0
  25. Private _Ingresos As Double = 0
  26. Private _Precio As Double = 0
  27. Private _PlazoNumero As Integer = 0
  28. Private _Plazofactor As String = String.Empty
  29. Private _FechaDocumento As Date = Date.Today.Date
  30. Private _Pais As String = String.Empty
  31. Private _TipoMercado As String = String.Empty
  32. Private _CodigoCompra As String = String.Empty
  33. Private _EstadoReporto As String = String.Empty
  34. Private _IdFlujo As Integer = 0
  35. Private _IdEA As Integer = 0
  36. Private _IdProInv As Integer = 0
  37. Public Property IdDeDocumento As Integer
  38. Get
  39. Return _IdDeDocumento
  40. End Get
  41. Set(value As Integer)
  42. _IdDeDocumento = value
  43. End Set
  44. End Property
  45. Public Property CodigoInversion As String
  46. Get
  47. Return _CodigoInversion
  48. End Get
  49. Set(value As String)
  50. _CodigoInversion = value
  51. End Set
  52. End Property
  53. Public Property CodigoEmisor As Integer
  54. Get
  55. Return _CodigoEmisor
  56. End Get
  57. Set(value As Integer)
  58. _CodigoEmisor = value
  59. End Set
  60. End Property
  61. Public Property CodigoCalificacionDeRiesgo As String
  62. Get
  63. If _CodigoCalificacionDeRiesgo Is Nothing Then Return String.Empty Else Return _CodigoCalificacionDeRiesgo
  64. End Get
  65. Set(value As String)
  66. _CodigoCalificacionDeRiesgo = value
  67. End Set
  68. End Property
  69. Public Property CodigoEmpresaCalificadora As String
  70. Get
  71. If _CodigoCalificadoraDeRiesgo Is Nothing Then Return String.Empty Else Return _CodigoCalificadoraDeRiesgo
  72. End Get
  73. Set(value As String)
  74. _CodigoCalificadoraDeRiesgo = value
  75. End Set
  76. End Property
  77. Public Property Asunto As String
  78. Get
  79. Return _Asunto
  80. End Get
  81. Set(value As String)
  82. _Asunto = value
  83. End Set
  84. End Property
  85. Public Property CodigoInstrumentoFinanciero As String
  86. Get
  87. If _CodigoIF Is Nothing Then Return String.Empty Else Return _CodigoIF
  88. End Get
  89. Set(value As String)
  90. _CodigoIF = value
  91. ObtenerTipoIF()
  92. End Set
  93. End Property
  94. Public ReadOnly Property TipoInstrumentoFinanciero As String
  95. Get
  96. Return _TipoIF
  97. End Get
  98. End Property
  99. Public Property CodigoEmpresa As String
  100. Get
  101. If _CodigoEmpresa Is Nothing Then Return String.Empty Else Return _CodigoEmpresa
  102. End Get
  103. Set(value As String)
  104. _CodigoEmpresa = value
  105. End Set
  106. End Property
  107. Public Property NombreManual As String
  108. Get
  109. If _NombreManual Is Nothing Then Return String.Empty Else Return _NombreManual
  110. End Get
  111. Set(value As String)
  112. _NombreManual = value
  113. End Set
  114. End Property
  115. Public Property CodigoCompra As String
  116. Get
  117. If _CodigoCompra Is Nothing Then Return String.Empty Else Return _CodigoCompra
  118. End Get
  119. Set(value As String)
  120. _CodigoCompra = value
  121. End Set
  122. End Property
  123. Public Property CodigoAsociado As String
  124. Get
  125. If _CodigoAsociado Is Nothing Then Return String.Empty Else Return _CodigoAsociado
  126. End Get
  127. Set(value As String)
  128. _CodigoAsociado = value
  129. End Set
  130. End Property
  131. Public Property EstadoReporto As String
  132. Get
  133. If _EstadoReporto Is Nothing Then Return String.Empty Else Return _EstadoReporto
  134. End Get
  135. Set(value As String)
  136. _EstadoReporto = value
  137. End Set
  138. End Property
  139. Public Property IdEA As Integer
  140. Get
  141. Return _IdEA
  142. End Get
  143. Set(value As Integer)
  144. _IdEA = value
  145. End Set
  146. End Property
  147. Public Property IdProInv As Integer
  148. Get
  149. Return _IdProInv
  150. End Get
  151. Set(value As Integer)
  152. _IdProInv = value
  153. End Set
  154. End Property
  155. Public Property IdFlujo As Integer
  156. Get
  157. Return _IdFlujo
  158. End Get
  159. Set(value As Integer)
  160. _IdFlujo = value
  161. End Set
  162. End Property
  163. Public Property TipoRenta As String
  164. Get
  165. If _TipoRenta Is Nothing Then Return String.Empty Else Return _TipoRenta
  166. End Get
  167. Set(value As String)
  168. _TipoRenta = value
  169. End Set
  170. End Property
  171. Public Property TipoTasa As String
  172. Get
  173. If _TipoTasa Is Nothing Then Return String.Empty Else Return _TipoTasa
  174. End Get
  175. Set(value As String)
  176. _TipoTasa = value
  177. End Set
  178. End Property
  179. Public Property Periodicidad As String
  180. Get
  181. If _Periodicidad Is Nothing Then Return String.Empty Else Return _Periodicidad
  182. End Get
  183. Set(value As String)
  184. _Periodicidad = value
  185. End Set
  186. End Property
  187. Public Property OrigenDeFondos As String
  188. Get
  189. If _OrigendeFondos Is Nothing Then Return String.Empty Else Return _OrigendeFondos
  190. End Get
  191. Set(value As String)
  192. _OrigendeFondos = value
  193. End Set
  194. End Property
  195. Public Property PlazoNumero As Integer
  196. Get
  197. Return _PlazoNumero
  198. End Get
  199. Set(value As Integer)
  200. _PlazoNumero = value
  201. End Set
  202. End Property
  203. Public Property PlazoFactor As String
  204. Get
  205. If _Plazofactor Is Nothing Then Return String.Empty Else Return _Plazofactor
  206. End Get
  207. Set(value As String)
  208. _PlazoFactor = value
  209. End Set
  210. End Property
  211. Public Property MontoInversion As Double
  212. Get
  213. Return _MontoInversion
  214. End Get
  215. Set(value As Double)
  216. _MontoInversion = value
  217. End Set
  218. End Property
  219. Public Property Precio As Double
  220. Get
  221. Return _Precio
  222. End Get
  223. Set(value As Double)
  224. _Precio = value
  225. End Set
  226. End Property
  227. Public Property Rendimiento As Double
  228. Get
  229. Return _Rendimiento
  230. End Get
  231. Set(value As Double)
  232. _Rendimiento = value
  233. End Set
  234. End Property
  235. Public Property Ingresos As Double
  236. Get
  237. Return _Ingresos
  238. End Get
  239. Set(value As Double)
  240. _Ingresos = value
  241. End Set
  242. End Property
  243. Public Property TipoOperacion As String
  244. Get
  245. Return _TipoOperacion
  246. If _TipoOperacion Is Nothing Then Return String.Empty Else Return _TipoOperacion
  247. End Get
  248. Set(value As String)
  249. _TipoOperacion = value
  250. End Set
  251. End Property
  252. Public Property EstadoDocumento As String
  253. Get
  254. If _EstadoDocumento Is Nothing Then Return String.Empty Else Return _EstadoDocumento
  255. End Get
  256. Set(value As String)
  257. _EstadoDocumento = value
  258. End Set
  259. End Property
  260. Public Property EstadoAutorizacion As String
  261. Get
  262. If _EstadoAutorizacion Is Nothing Then Return String.Empty Else Return _EstadoAutorizacion
  263. End Get
  264. Set(value As String)
  265. _EstadoAutorizacion = value
  266. End Set
  267. End Property
  268. Public Property Justificacion As String
  269. Get
  270. Return _Justificacion
  271. End Get
  272. Set(value As String)
  273. _Justificacion = value
  274. End Set
  275. End Property
  276. Public Property Comentarios As String
  277. Get
  278. Return _Comentarios
  279. End Get
  280. Set(value As String)
  281. _Comentarios = value
  282. End Set
  283. End Property
  284. Public Property DocumentoBase As Integer
  285. Get
  286. Return _DocumentoBase
  287. End Get
  288. Set(value As Integer)
  289. _DocumentoBase = value
  290. End Set
  291. End Property
  292. Public Property FechaDocumento As Date
  293. Get
  294. Return _FechaDocumento
  295. End Get
  296. Set(value As Date)
  297. _FechaDocumento = value
  298. End Set
  299. End Property
  300. Public Property Pais As String
  301. Get
  302. Return _Pais
  303. End Get
  304. Set(value As String)
  305. _Pais = value
  306. End Set
  307. End Property
  308. Public Property TipoMercado As String
  309. Get
  310. Return _TipoMercado
  311. End Get
  312. Set(value As String)
  313. _TipoMercado = value
  314. End Set
  315. End Property
  316. Public Sub New()
  317. CodigoEmpresa = String.Empty
  318. Asunto = String.Empty
  319. CodigoInstrumentoFinanciero = String.Empty
  320. MontoInversion = 0
  321. Precio = 0
  322. Rendimiento = 0
  323. PlazoNumero = 0
  324. PlazoFactor = String.Empty
  325. Ingresos = 0
  326. OrigenDeFondos = String.Empty
  327. CodigoEmisor = 0
  328. CodigoCalificacionDeRiesgo = String.Empty
  329. CodigoEmpresaCalificadora = String.Empty
  330. Justificacion = String.Empty
  331. Comentarios = String.Empty
  332. CodigoInversion = String.Empty
  333. EstadoDocumento = String.Empty
  334. FechaDocumento = Date.Now.Date
  335. End Sub
  336. Private Sub ObtenerTipoIF()
  337. Dim oDAOGenral As New DAOGeneral
  338. _TipoIF = oDAOGenral.TipoDeInstrumento(_CodigoIF)
  339. End Sub
  340. End Class