CEPropuestaInversion.vb 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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 Property CodigoEmpresa As String
  95. Get
  96. If _CodigoEmpresa Is Nothing Then Return String.Empty Else Return _CodigoEmpresa
  97. End Get
  98. Set(value As String)
  99. _CodigoEmpresa = value
  100. End Set
  101. End Property
  102. Public Property NombreManual As String
  103. Get
  104. If _NombreManual Is Nothing Then Return String.Empty Else Return _NombreManual
  105. End Get
  106. Set(value As String)
  107. _NombreManual = value
  108. End Set
  109. End Property
  110. Public Property CodigoCompra As String
  111. Get
  112. If _CodigoCompra Is Nothing Then Return String.Empty Else Return _CodigoCompra
  113. End Get
  114. Set(value As String)
  115. _CodigoCompra = value
  116. End Set
  117. End Property
  118. Public Property CodigoAsociado As String
  119. Get
  120. If _CodigoAsociado Is Nothing Then Return String.Empty Else Return _CodigoAsociado
  121. End Get
  122. Set(value As String)
  123. _CodigoAsociado = value
  124. End Set
  125. End Property
  126. Public Property EstadoReporto As String
  127. Get
  128. If _EstadoReporto Is Nothing Then Return String.Empty Else Return _EstadoReporto
  129. End Get
  130. Set(value As String)
  131. _EstadoReporto = value
  132. End Set
  133. End Property
  134. Public Property IdEA As Integer
  135. Get
  136. Return _IdEA
  137. End Get
  138. Set(value As Integer)
  139. _IdEA = value
  140. End Set
  141. End Property
  142. Public Property IdFlujo As Integer
  143. Get
  144. Return _IdFlujo
  145. End Get
  146. Set(value As Integer)
  147. _IdFlujo = value
  148. End Set
  149. End Property
  150. Public Property TipoRenta As String
  151. Get
  152. If _TipoRenta Is Nothing Then Return String.Empty Else Return _TipoRenta
  153. End Get
  154. Set(value As String)
  155. _TipoRenta = value
  156. End Set
  157. End Property
  158. Public Property TipoTasa As String
  159. Get
  160. If _TipoTasa Is Nothing Then Return String.Empty Else Return _TipoTasa
  161. End Get
  162. Set(value As String)
  163. _TipoTasa = value
  164. End Set
  165. End Property
  166. Public Property Periodicidad As String
  167. Get
  168. If _Periodicidad Is Nothing Then Return String.Empty Else Return _Periodicidad
  169. End Get
  170. Set(value As String)
  171. _Periodicidad = value
  172. End Set
  173. End Property
  174. Public Property OrigenDeFondos As String
  175. Get
  176. If _OrigendeFondos Is Nothing Then Return String.Empty Else Return _OrigendeFondos
  177. End Get
  178. Set(value As String)
  179. _OrigendeFondos = value
  180. End Set
  181. End Property
  182. Public Property PlazoNumero As Integer
  183. Get
  184. Return _PlazoNumero
  185. End Get
  186. Set(value As Integer)
  187. _PlazoNumero = value
  188. End Set
  189. End Property
  190. Public Property PlazoFactor As String
  191. Get
  192. If _Plazofactor Is Nothing Then Return String.Empty Else Return _Plazofactor
  193. End Get
  194. Set(value As String)
  195. _PlazoFactor = value
  196. End Set
  197. End Property
  198. Public Property MontoInversion As Double
  199. Get
  200. Return _MontoInversion
  201. End Get
  202. Set(value As Double)
  203. _MontoInversion = value
  204. End Set
  205. End Property
  206. Public Property Precio As Double
  207. Get
  208. Return _Precio
  209. End Get
  210. Set(value As Double)
  211. _Precio = value
  212. End Set
  213. End Property
  214. Public Property Rendimiento As Double
  215. Get
  216. Return _Rendimiento
  217. End Get
  218. Set(value As Double)
  219. _Rendimiento = value
  220. End Set
  221. End Property
  222. Public Property Ingresos As Double
  223. Get
  224. Return _Ingresos
  225. End Get
  226. Set(value As Double)
  227. _Ingresos = value
  228. End Set
  229. End Property
  230. Public Property TipoOperacion As String
  231. Get
  232. Return _TipoOperacion
  233. If _TipoOperacion Is Nothing Then Return String.Empty Else Return _TipoOperacion
  234. End Get
  235. Set(value As String)
  236. _TipoOperacion = value
  237. End Set
  238. End Property
  239. Public Property EstadoDocumento As String
  240. Get
  241. If _EstadoDocumento Is Nothing Then Return String.Empty Else Return _EstadoDocumento
  242. End Get
  243. Set(value As String)
  244. _EstadoDocumento = value
  245. End Set
  246. End Property
  247. Public Property EstadoAutorizacion As String
  248. Get
  249. If _EstadoAutorizacion Is Nothing Then Return String.Empty Else Return _EstadoAutorizacion
  250. End Get
  251. Set(value As String)
  252. _EstadoAutorizacion = value
  253. End Set
  254. End Property
  255. Public Property Justificacion As String
  256. Get
  257. Return _Justificacion
  258. End Get
  259. Set(value As String)
  260. _Justificacion = value
  261. End Set
  262. End Property
  263. Public Property Comentarios As String
  264. Get
  265. Return _Comentarios
  266. End Get
  267. Set(value As String)
  268. _Comentarios = value
  269. End Set
  270. End Property
  271. Public Property FechaDocumento As Date
  272. Get
  273. Return _FechaDocumento
  274. End Get
  275. Set(value As Date)
  276. _FechaDocumento = value
  277. End Set
  278. End Property
  279. Public Property Pais As String
  280. Get
  281. Return _Pais
  282. End Get
  283. Set(value As String)
  284. _Pais = value
  285. End Set
  286. End Property
  287. Public Property TipoMercado As String
  288. Get
  289. Return _TipoMercado
  290. End Get
  291. Set(value As String)
  292. _TipoMercado = value
  293. End Set
  294. End Property
  295. Public Sub New()
  296. CodigoEmpresa = String.Empty
  297. Asunto = String.Empty
  298. CodigoInstrumentoFinanciero = String.Empty
  299. MontoInversion = 0
  300. Precio = 0
  301. Rendimiento = 0
  302. PlazoNumero = 0
  303. PlazoFactor = String.Empty
  304. Ingresos = 0
  305. OrigenDeFondos = String.Empty
  306. CodigoEmisor = 0
  307. CodigoCalificacionDeRiesgo = String.Empty
  308. CodigoEmpresaCalificadora = String.Empty
  309. Justificacion = String.Empty
  310. Comentarios = String.Empty
  311. CodigoInversion = String.Empty
  312. EstadoDocumento = String.Empty
  313. FechaDocumento = Date.Now.Date
  314. End Sub
  315. Private Sub ObtenerTipoIF()
  316. Dim oDAOGenral As New DAOGeneral
  317. _TipoIF = oDAOGenral.TipoDeInstrumento(_CodigoIF)
  318. End Sub
  319. End Class