| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501 |
- Public Class frmTitularizacion
- Dim oCEBonos As BonosCE
- Dim oDAOBonos As BonosDAO
- Dim oDAOGeneral As New DAOGeneral
- Dim TotalValorCupones As Double
- Private _Modo As String
- Private _IdDocumento As Integer
- Private _TipoDocumento As String
- 'PROPIEDADES EMISION DEL TITULO
- Private _EmisionTotal As Double
- Private _FechaEmision As Date
- Private _TasaEmision As Double
- Private _PeriodicidadEmision As Integer
- Private _NumeroPeriodosEmision As Integer = 0
- Private _MontoCompraEmision As Double
- Private _MontoCompraPrimario As Double
- Private _CesionFlujo1 As Double
- Public Property Modo As String
- Get
- Return _Modo
- End Get
- Set(value As String)
- _Modo = value
- End Set
- End Property
- Private Property IdDocumento As Integer
- Get
- Return _IdDocumento
- End Get
- Set(value As Integer)
- _IdDocumento = value
- End Set
- End Property
- Private Property TipoDocumento As String
- Get
- Return _TipoDocumento
- End Get
- Set(value As String)
- _TipoDocumento = value
- End Set
- End Property
- 'PROPIEDADES EMISION DEL TITULO
- Private Property EmisionTotal As Double
- Get
- Return _EmisionTotal
- End Get
- Set(value As Double)
- _EmisionTotal = value
- End Set
- End Property
- Private Property FechaEmision As Date
- Get
- Return _FechaEmision
- End Get
- Set(value As Date)
- _FechaEmision = value
- End Set
- End Property
- Private Property TasaEmision As Double
- Get
- Return _TasaEmision
- End Get
- Set(value As Double)
- _TasaEmision = value / 100
- End Set
- End Property
- Private Property PeriodicidadEmision As Integer
- Get
- Return _PeriodicidadEmision
- End Get
- Set(value As Integer)
- _PeriodicidadEmision = value
- End Set
- End Property
- Private Property NumeroPeriodosEmision As Integer
- Get
- Return _NumeroPeriodosEmision
- End Get
- Set(value As Integer)
- _NumeroPeriodosEmision = value
- End Set
- End Property
- Private Property MontoCompraEmision As Double
- Get
- Return _MontoCompraEmision
- End Get
- Set(value As Double)
- _MontoCompraEmision = value
- End Set
- End Property
- Private Property MontoCompraPrimario As Double
- Get
- Return _MontoCompraPrimario
- End Get
- Set(value As Double)
- _MontoCompraPrimario = value
- End Set
- End Property
- Private Property CesionFlujo1 As Double
- Get
- Return _CesionFlujo1
- End Get
- Set(value As Double)
- _CesionFlujo1 = value
- End Set
- End Property
- Private Sub frmBonos_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- Call CargarCasas()
- Call CargarPeriodos()
- 'VARIOS
- FechaEmision = dtpFechaEmision.Value.Date
- End Sub
- 'GETS COMPRA
- Function GetValorNominalCompra() As Double
- Dim valor As Double
- If Me.txtValorNominalCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtValorNominalCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetUltimaFechaCuponCompra() As Date
- Dim valor As Date
- valor = Me.dtpUltimaFechaCuponCompra.Value.Date
- Return valor
- End Function
- Function GetSiguienteFechaCuponCompra() As Date
- Dim valor As Date
- valor = Me.dtpSiguienteFechaCuponCompra.Value.Date
- Return valor
- End Function
- Function GetFechaLiquidacionCompra() As Date
- Dim valor As Date
- valor = Me.dtpFechaLiquidacionCompra.Value.Date
- Return valor
- End Function
- Function GetFechaVencimientoCompra() As Date
- Dim valor As Date
- valor = Me.dtpFechaVencimientoCompra.Value.Date
- Return valor
- End Function
- Function GetPorcentajeCuponCompra() As Double
- Dim valor As Double
- If Me.txtPorcentajeCuponCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeCuponCompra.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetYTMAlVencimientoCompra() As Double
- Dim valor As Double
- If Me.txtYTMAlVencimientoCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtYTMAlVencimientoCompra.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetComisionCasaCompra() As Double
- Dim valor As Double
- If Me.txtComisionCasaCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtComisionCasaCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetDiasAlVencimientoCompra() As Double
- Dim valor As Double
- If Me.txtDiasAlVencimientoCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtDiasAlVencimientoCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetComisionBolsaCompra() As Double
- Dim valor As Double
- If Me.txtComisionBolsaCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtComisionBolsaCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetDiasAcumuladosCompra() As Integer
- Dim valor As Integer
- If Me.txtDiasAcumuladosCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtDiasAcumuladosCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetInteresAcumuladoCompra() As Double
- Dim valor As Double
- If Me.txtInteresAcumuladoCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtInteresAcumuladoCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioCompra() As Double
- Dim valor As Double
- If Me.txtPrecioCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPorcentajeInteresAcumuladoCompra() As Double
- Dim valor As Double
- If Me.txtPorcentajeInteresAcumuladoCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeInteresAcumuladoCompra.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPorcentajeComisionCasaCompra() As Double
- Dim valor As Double
- If Me.txtPorcentajeComisionCasaCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeComisionCasaCompra.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetValorTransadoCompra() As Double
- Dim valor As Double
- If Me.txtValorTransadoCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtValorTransadoCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPorcentajeComisionBolsaCompra() As Double
- Dim valor As Double
- If Me.txtPorcentajeComisionBolsaCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeComisionBolsaCompra.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetCostoTransferenciaCompra() As Double
- Dim valor As Double
- If Me.txtCostoTransferenciaCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtCostoTransferenciaCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetCasaCompra() As String
- Dim valor As String
- If Me.cboCasa_C.SelectedIndex = -1 Then
- valor = ""
- Else
- valor = Me.cboCasa_C.SelectedValue
- End If
- Return valor
- End Function
- Function GetYTMAlVencimientoComisionCompra() As Double
- Dim valor As Double
- If Me.txtYTMAlVencimientoComisionCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtYTMAlVencimientoComisionCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioAlVencimientoCompra() As Double
- Dim valor As Double
- If Me.txtPrecioAlVencimientoCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioAlVencimientoCompra.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetDiasBaseCompra() As Integer
- Dim valor As Integer
- If Me.cboAnioBaseC.SelectedIndex = -1 Then
- valor = 0
- Else
- Try
- valor = Me.cboAnioBaseC.SelectedItem
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioSucioCompra() As Double
- Dim valor As Double
- If Me.txtPrecioSucioCompra.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioSucioCompra.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetMontoAPagarCompra() As Double
- Dim valor As Double
- If Me.txtMontoAPagar.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtMontoAPagar.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPeriodicidadCompra() As String
- Dim valor As String
- If Me.cboPeriodosC.SelectedIndex = -1 Then
- valor = "NA"
- Else
- valor = Me.cboPeriodosC.SelectedValue.ToString
- End If
- Return valor
- End Function
- 'CALCULOS COMPRA
- Function CalcularSiguienteFechaCuponCompra() As Date
- Dim valor As Date
- Dim vUltimaFechCupon As Date = GetUltimaFechaCuponCompra()
- Dim vPeriodicidad As String = GetPeriodicidadCompra()
- Dim vDiasPeriodo As Integer = Utilidades.DiasDeUnPeriodo(vPeriodicidad)
- valor = vUltimaFechCupon.AddDays(vDiasPeriodo + 1)
- Return valor
- End Function
- Function CalcularYTMAlVencimientoCompra() As Double
- Dim valor As Double
- Return valor
- End Function
- Function CalcularYTMAlVencimientoComisionCompra() As Double
- Dim valor As Double
- Dim vYTMAlVencimiento As Double = GetYTMAlVencimientoCompra()
- Dim vComisionCasa As Double = GetPorcentajeComisionCasaCompra()
- Dim vAnioBase As Integer = GetDiasBaseCompra()
- Dim vDiasAlVencimiento As Integer = GetDiasAlVencimientoCompra()
- Dim vComisionBolsa As Double = GetPorcentajeComisionBolsaCompra()
- Try
- valor = vYTMAlVencimiento - (vComisionBolsa * vAnioBase / vDiasAlVencimiento) - (vComisionBolsa * vAnioBase / vDiasAlVencimiento)
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularDiasAcumuladosCompra() As Integer
- Dim valor As Integer
- Dim vUltimaFechaCupon As DateTime = GetUltimaFechaCuponCompra()
- Dim vFechaLiquidacion As DateTime = GetFechaLiquidacionCompra()
- valor = Utilidades.Days360(vUltimaFechaCupon, vFechaLiquidacion)
- Return valor
- End Function
- Function CalcularDiasAlVencimientoCompra() As Integer
- Dim valor As Integer
- Dim vFechaVencimiento As DateTime = GetFechaVencimientoCompra()
- Dim vFechaLiquidacion As DateTime = GetFechaLiquidacionCompra()
- If GetDiasBaseCompra() = 360 Then
- valor = Utilidades.Days360(vFechaLiquidacion, vFechaVencimiento)
- Else
- valor = DateDiff(DateInterval.Day, vFechaLiquidacion, vFechaVencimiento)
- End If
- Return valor
- End Function
- Function CalcularInteresAcumuladoCompra() As Double
- Dim valor As Double
- Dim vValorNominal As Double = GetValorNominalCompra()
- Dim vPorcentajeCupon As Double = GetPorcentajeCuponCompra()
- Dim vDiasAcumulados As Integer = GetDiasAcumuladosCompra()
- Dim vAnioBase As Integer = GetDiasBaseCompra()
- Try
- valor = vValorNominal * vPorcentajeCupon * vDiasAcumulados / vAnioBase
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularPorcentajeInteresAcumuladoCompra() As Double
- Dim valor As Double
- Dim vInteresAcumulado As Double = GetInteresAcumuladoCompra()
- Dim vValorNominal As Double = GetValorNominalCompra()
- Dim vAnioBase As Integer = GetDiasBaseCompra()
- Dim vPeriodididad As String = GetPeriodicidadCompra()
- Dim vDiasPeriodo As Integer = Utilidades.DiasDeUnPeriodo(vPeriodididad)
- Try
- valor = vInteresAcumulado / vValorNominal * vAnioBase / vDiasPeriodo
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularPrecioSucioCompra() As Double
- Dim valor As Double
- Dim vPrecioCompra As Double = GetPrecioCompra()
- Dim vPorcentajeInteresAcumuladoCompra As Double = GetPorcentajeInteresAcumuladoCompra()
- Try
- valor = vPrecioCompra * 0.01 + vPorcentajeInteresAcumuladoCompra
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularValorTransadoCompra() As Double
- Dim valor As Double
- Dim vPrecioCompra As Double = GetPrecioCompra()
- Dim vValorNominal As Double = GetValorNominalCompra()
- valor = (vPrecioCompra / 100) * vValorNominal
- Return valor
- End Function
- Function CalcularComisionCasaCompra() As Double
- Dim valor As Double
- Dim vPorcentajeComisionCasa As Double = GetPorcentajeComisionCasaCompra()
- Dim vValorTransado As Double = GetValorTransadoCompra()
- Try
- valor = vPorcentajeComisionCasa * vValorTransado
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularComisionBolsaCompra() As Double
- Dim valor As Double
- Dim vPorcentajeComisionBolsa As Double = GetPorcentajeComisionBolsaCompra()
- Dim vValorTransado As Double = GetValorTransadoCompra()
- Try
- valor = vPorcentajeComisionBolsa * vValorTransado
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularMontoAPagarCompra() As Double
- Dim valor As Double
- Dim vValorTransado As Double = GetValorTransadoCompra()
- Dim vComisionCasa As Double = GetComisionCasaCompra()
- Dim vComisionBolsa As Double = GetComisionBolsaCompra()
- Dim vInteresAcumulado As Double = GetInteresAcumuladoCompra()
- Dim vCostoTransferencia As Double = GetCostoTransferenciaCompra()
- Try
- valor = vValorTransado + vComisionCasa + vComisionBolsa + vInteresAcumulado + vCostoTransferencia
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- 'GETS VENTA
- Function GetFechaLiquidacionVenta() As Date
- Dim valor As Date
- valor = dtpFechaLiquidacionVenta.Value.Date
- Return valor
- End Function
- Function GetFechaVencimientoVenta() As Date
- Dim valor As Date
- valor = Me.dtpFechaVencimientoVenta.Value.Date
- Return valor
- End Function
- Function GetUltimaFechaCuponVenta() As Date
- Dim valor As Date
- valor = Me.dtpUltimaFechaCuponVenta.Value.Date
- Return valor
- End Function
- Function GetYTMAlVencimientoVenta() As Double
- Dim valor As Double
- If Me.txtYTMAlVencimientoVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtYTMAlVencimientoVenta.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPorcentajeComisionCasaVenta() As Double
- Dim valor As Double
- If Me.txtPorcentajeComisionCasaVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeComisionCasaVenta.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetDiasAlVencimientoVenta() As Integer
- Dim valor As Integer
- If Me.txtDiasAlVencimientoVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtDiasAlVencimientoVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPorcentajeComisionBolsaVenta() As Double
- Dim valor As Double
- If Me.txtPorcentajeComisionBolsaVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeComisionBolsaVenta.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPorcentajeCuponVenta() As Double
- Dim valor As Double
- If Me.txtPorcentajeCuponVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeCuponVenta.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioVenta() As Double
- Dim valor As Double
- If Me.txtPrecioVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioAlVencimientoVenta() As Double
- Dim valor As Double
- If Me.txtPrecioAlVencimientoVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioAlVencimientoVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetValorNominalVenta() As Double
- Dim valor As Double
- If Me.txtValorNominalVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtValorNominalVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetSiguienteFechaCuponVenta() As Date
- Dim valor As Date
- valor = dtpSiguienteFechaCuponVenta.Value.Date
- Return valor
- End Function
- Function GetYTMAlVencimientoComisionVenta() As Double
- Dim valor As Double
- If Me.txtYTMAlVencimientoComisionVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtYTMAlVencimientoComisionVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetDiasBaseVenta() As Integer
- Dim valor As Integer
- If Me.cboAnioBaseV.SelectedIndex = -1 Then
- valor = 0
- Else
- Try
- valor = Me.cboAnioBaseV.SelectedItem
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetDiasAcumuladosVenta() As Integer
- Dim valor As Integer
- If Me.txtDiasAcumuladosVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtDiasAcumuladosVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPorcentajeInteresAcumuladoVenta() As Double
- Dim valor As Double
- If Me.txtPorcentajeInteresAcumuladoVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPorcentajeInteresAcumuladoVenta.Text
- valor = valor / 100
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetInteresAcumuladoVenta() As Double
- Dim valor As Double
- If Me.txtInteresAcumuladoVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtInteresAcumuladoVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioSucioVenta() As Double
- Dim valor As Double
- If Me.txtPrecioSucioVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioSucioVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetValorTransadoVenta() As Double
- Dim valor As Double
- If Me.txtValorTransadoVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtValorTransadoVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetMontoAPagarVenta() As Double
- Dim valor As Double
- If Me.txtMontoARecibir.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtMontoARecibir.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetCostoTransferenciaVenta() As Double
- Dim valor As Double
- If Me.txtCostoTransferenciaVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtCostoTransferenciaVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetComisionBolsaVenta() As Double
- Dim valor As Double
- If Me.txtComisionBolsaVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtComisionBolsaVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetComisionCasaVenta() As Double
- Dim valor As Double
- If Me.txtComisionCasaVenta.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtComisionCasaVenta.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPeriodicidadVenta() As String
- Dim valor As String
- If Me.cboPeriodosV.SelectedIndex = -1 Then
- valor = "NA"
- Else
- Try
- valor = Me.cboPeriodosV.SelectedValue
- Catch ex As Exception
- valor = ""
- End Try
- End If
- Return valor
- End Function
- 'GETS RO
- Function GetValorNominalRO() As Double
- Dim valor As Double
- If Me.txtValorNominal_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtValorNominal_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPlazoRO() As Double
- Dim valor As Double
- If Me.txtPlazo_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPlazo_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioCompraRO() As Double
- Dim valor As Double
- If Me.txtPrecioCompra_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioCompra_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetPrecioVentaRO() As Double
- Dim valor As Double
- If Me.txtPrecioVenta_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtPrecioVenta_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetGananciaPerdidaDeCapital() As Double
- Dim valor As Double
- If Me.txtGananciaPerdidaCapital_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtGananciaPerdidaCapital_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetIngresoPorInteres() As Double
- Dim valor As Double
- If Me.txtIngresosPorIntereses_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtIngresosPorIntereses_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetCostosTotales() As Double
- Dim valor As Double
- If Me.txtCostosTotales_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtCostosTotales_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetGananciaPerdidaTotal() As Double
- Dim valor As Double
- If Me.txtGananciaPerdidaTotal_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtGananciaPerdidaTotal_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetRendimientoGananciaPerdida() As Double
- Dim valor As Double
- If Me.txtRendimientoGananciaPerdida_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtRendimientoGananciaPerdida_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetRendimientoDeIntereses() As Double
- Dim valor As Double
- If Me.txtRendimientoIntereses_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtRendimientoIntereses_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetRendimientoAntesImpuestos() As Double
- Dim valor As Double
- If Me.txtRendimientoAntesISR_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtRendimientoAntesISR_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- Function GetRendimientoDespuesImpuestos() As Double
- Dim valor As Double
- If Me.txtRendimientoDespuesISR_Op.Text.Length = 0 Then
- valor = 0
- Else
- Try
- valor = Me.txtRendimientoDespuesISR_Op.Text
- Catch ex As Exception
- valor = 0
- End Try
- End If
- Return valor
- End Function
- 'CALCULOS VENTA
- Function CalcularPeriodicidadVenta() As String
- Dim valor As String
- If Me.cboPeriodosC.SelectedIndex = -1 Then
- valor = ""
- Else
- Try
- valor = cboPeriodosC.SelectedValue
- Catch ex As Exception
- valor = ""
- End Try
- End If
- Return valor
- End Function
- Function CalcularUltimaFechaCuponVenta() As Date
- Dim valor As Date
- Dim vSiguienteFechaCupon As Date = GetSiguienteFechaCuponCompra()
- Dim vPeriodicidad As String = GetPeriodicidadVenta()
- Dim vDiasPeriodo As Integer = Utilidades.DiasDeUnPeriodo(vPeriodicidad)
- Try
- vSiguienteFechaCupon.AddDays(vDiasPeriodo + 1)
- valor = vSiguienteFechaCupon
- Catch ex As Exception
- valor = Date.Now.Date
- End Try
- Return valor
- End Function
- Function CalcularSiguienteFechaCuponVenta() As Date
- Dim valor As Date
- Dim vUltimaFechaCupon As DateTime = GetUltimaFechaCuponVenta()
- Dim vPeriodicidad As String = GetPeriodicidadVenta()
- Dim vDiasPeriodo As Integer = Utilidades.DiasDeUnPeriodo(vPeriodicidad)
- valor = vUltimaFechaCupon.AddDays(vDiasPeriodo + 1)
- Return valor
- End Function
- Function CalcularFechaLiquidacionVenta() As Date
- Dim valor As Date
- valor = DateTime.Now.Date + DateTime.Now.AddDays(3)
- Return valor
- End Function
- Function CalcularYTMAlVencimientoComisionVenta() As Double
- Dim valor As Double
- Dim vYTMAlVencimiento As Double = GetYTMAlVencimientoVenta()
- Dim vPorcentajeComisionCasa As Double = GetPorcentajeComisionCasaVenta()
- Dim vAnioBase As Integer = GetDiasBaseVenta()
- Dim vDiasAlVencimiento As Integer = GetDiasAlVencimientoVenta()
- Dim vPorcentajeComisionBolsa As Double = GetPorcentajeComisionBolsaVenta()
- Try
- valor = vYTMAlVencimiento - (vPorcentajeComisionCasa * vAnioBase / vDiasAlVencimiento) - (vPorcentajeComisionBolsa * vAnioBase / vDiasAlVencimiento)
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularYTMAlVencimientoVenta() As Double
- Dim valor As Double
- Dim vFechaLiquidacion As DateTime = GetFechaLiquidacionVenta()
- Dim vFechaVencimiento As DateTime = GetFechaVencimientoVenta()
- Dim vPorcentajeCupon As Double = GetPorcentajeCuponVenta()
- Dim vPrecioVenta As Double = GetPrecioVenta()
- Dim vPrecioAlVencimiento As Double = GetPrecioAlVencimientoVenta()
- 'FALTA CALCULO
- valor = 0
- Return valor
- End Function
- Function CalcularDiasAcumuladosVenta() As Integer
- Dim valor As Integer
- Dim vUltimaFechaCupon As Date
- Dim vFechaLiquidacion As Date
- Dim vAnioBase As Integer = GetDiasBaseVenta()
- vUltimaFechaCupon = GetUltimaFechaCuponVenta()
- vFechaLiquidacion = GetFechaLiquidacionVenta()
- If vAnioBase = 360 Then
- valor = Utilidades.Days360(vUltimaFechaCupon, vFechaLiquidacion)
- Else
- valor = DateDiff(DateInterval.Day, vUltimaFechaCupon, vFechaLiquidacion)
- End If
- Return valor
- End Function
- Function CalcularDiasAlVencimientoVenta() As Integer
- Dim valor As Integer
- Dim vFechaLiquidacion As Date
- Dim vFechaVencimiento As Date
- Dim vAnioBase As Integer = GetDiasBaseVenta()
- vFechaLiquidacion = GetFechaLiquidacionVenta()
- vFechaVencimiento = GetFechaVencimientoVenta()
- If vAnioBase = 360 Then
- valor = Utilidades.Days360(vFechaLiquidacion, vFechaVencimiento)
- Else
- valor = DateDiff(DateInterval.Day, vFechaLiquidacion, vFechaVencimiento)
- End If
- Return valor
- End Function
- Function CalcularInteresAcumuladoVenta() As Double
- Dim valor As Double
- Dim vValorNominal As Double
- Dim vPorcentajeCupon As Double
- Dim vDiasAcumulados As Integer
- Dim vDiasBase As Integer = GetDiasBaseVenta()
- vValorNominal = GetValorNominalVenta()
- vPorcentajeCupon = GetPorcentajeCuponVenta()
- vDiasAcumulados = GetDiasAcumuladosVenta()
- Try
- valor = vValorNominal * vPorcentajeCupon * vDiasAcumulados / vDiasBase
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularInteresAcumuladoPorcentajeVenta() As Double
- Dim valor As Double
- Dim vInteresAcumulado As Double
- Dim vValorNominal As Double
- Dim vDiasBase As Integer = GetDiasBaseVenta()
- Dim vPeriodicidad As String = GetPeriodicidadVenta()
- Dim vDiasPeriodo As Integer = Utilidades.DiasDeUnPeriodo(vPeriodicidad)
- vInteresAcumulado = GetInteresAcumuladoVenta()
- vValorNominal = GetValorNominalVenta()
- Try
- valor = vInteresAcumulado / vValorNominal * vDiasBase / vDiasPeriodo
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularPrecioSucioVenta() As Double
- Dim valor As Double
- Dim vPrecioVenta As Double
- Dim vNumero As Double
- Dim vPorcentajeInteresAcumulado As Double
- vPrecioVenta = GetPrecioVenta()
- vNumero = 0.01
- vPorcentajeInteresAcumulado = GetPorcentajeInteresAcumuladoVenta()
- Try
- valor = vPrecioVenta * vNumero + vPorcentajeInteresAcumulado
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularValorTransadoVenta() As Double
- Dim valor As Double
- Dim vPrecioVenta As Double
- Dim vValorNominal As Double
- vPrecioVenta = GetPrecioVenta()
- vValorNominal = GetValorNominalVenta()
- Try
- valor = (vPrecioVenta / 100) * vValorNominal
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularComisionCasaVenta() As Double
- Dim valor As Double
- Dim vPorcentajeComisionCasa As Double
- Dim vValorTransado As Double
- vPorcentajeComisionCasa = GetPorcentajeComisionCasaVenta()
- vValorTransado = GetValorTransadoVenta()
- Try
- valor = vPorcentajeComisionCasa * vValorTransado
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularComisionBolsaVenta() As Double
- Dim valor As Double
- Dim vPorcentajeComisionBolsa As Double
- Dim vValorTransado As Double
- vPorcentajeComisionBolsa = GetPorcentajeComisionBolsaVenta()
- vValorTransado = GetValorTransadoVenta()
- Try
- valor = vPorcentajeComisionBolsa * vValorTransado
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularMontoARecibirVenta() As Double
- Dim valor As Double
- Dim vValorTransado As Double
- Dim vComisionBolsa As Double
- Dim vComisionCasa As Double
- Dim vInteresAcumulado As Double
- vValorTransado = GetValorTransadoVenta()
- vComisionBolsa = GetComisionBolsaVenta()
- vComisionCasa = GetComisionCasaVenta()
- vInteresAcumulado = GetInteresAcumuladoVenta()
- Try
- valor = vValorTransado - vComisionBolsa - vComisionCasa + vInteresAcumulado
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- 'CALCULOS RO
- Function CalcularDiasPlazoRO() As Integer
- Dim valor As Integer
- Dim vFechaLiquidacionCompra As Date = GetFechaLiquidacionCompra()
- Dim vFechaLiquidacionVenta As Date = GetFechaLiquidacionVenta()
- Dim vAnioBase As Integer = GetDiasBaseCompra()
- If vAnioBase = 360 Then
- valor = Utilidades.Days360(vFechaLiquidacionCompra, vFechaLiquidacionVenta)
- Else
- valor = DateDiff(DateInterval.Day, vFechaLiquidacionCompra, vFechaLiquidacionVenta)
- End If
- Return valor
- End Function
- Function CalcularGananciaDeCapital() As Double
- Dim valor As Double
- Dim vValorTransadoVenta As Double = GetValorTransadoVenta()
- Dim vValorTransadoCompra As Double = GetValorTransadoCompra()
- valor = vValorTransadoVenta - vValorTransadoCompra
- Return valor
- End Function
- Function CalcularGananciaDeIntereses() As Double
- Dim valor As Double
- 'Dim vCuponesPagados As Double = 0 'FALTA VALOR
- 'Dim vInteresAcumulado As Double = GetInteresAcumuladoCompra()
- 'valor = vCuponesPagados + vInteresAcumulado
- valor = TotalValorCupones
- Return valor
- End Function
- Function CalcularGananciaTotal() As Double
- Dim valor As Double
- Dim vGananciaDeCapital As Double = GetGananciaPerdidaDeCapital()
- Dim vGananciaDeIntereses As Double = GetIngresoPorInteres()
- valor = vGananciaDeCapital + vGananciaDeIntereses
- Return valor
- End Function
- Function CalcularRentabilidadPorGananciaDeCapital() As Double
- Dim valor As Double
- Dim vGananciaDeCapital As Double = GetGananciaPerdidaDeCapital()
- Dim vValorTransadoCompra As Double = GetValorTransadoCompra()
- Dim vDiasPLazo As Integer = GetPlazoRO()
- Dim vAnioBase As Integer = GetDiasBaseCompra()
- Try
- valor = vGananciaDeCapital / vValorTransadoCompra * vAnioBase / vDiasPLazo
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularRentabilidadPorIntereses() As Double
- Dim valor As Double
- Dim vGananciaPorIntereses As Double = GetIngresoPorInteres()
- Dim vValorTransadoCompra As Double = GetValorTransadoCompra()
- Dim vAnioBase As Integer = GetDiasBaseCompra()
- Dim vDiasPlazo As Integer = GetPlazoRO()
- Try
- valor = vGananciaPorIntereses / vValorTransadoCompra * vAnioBase / vDiasPlazo
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- Function CalcularRentabilidadTotal() As Double
- Dim valor As Double
- Dim vGAnanciaTotal As Double = GetGananciaPerdidaTotal()
- Dim vValorTransadoCompra As Double = GetValorTransadoCompra()
- Dim vAnioBase As Integer = GetDiasBaseCompra()
- Dim vDiasPlazo As Integer = GetPlazoRO()
- Try
- valor = vGAnanciaTotal / vValorTransadoCompra * vAnioBase / vDiasPlazo
- valor = valor * 100
- Catch ex As Exception
- valor = 0
- End Try
- Return valor
- End Function
- 'REFRESCAR
- Sub RefrescarSiguienteFechaCuponCompra()
- Me.dtpSiguienteFechaCuponCompra.Value = CalcularSiguienteFechaCuponCompra()
- End Sub
- Sub RefrescarYTMAlVencimientoComisionCompra()
- Me.txtYTMAlVencimientoComisionCompra.Text = CalcularYTMAlVencimientoComisionCompra().ToString
- End Sub
- Sub RefrescarYTMAlVencimientoCompra()
- 'Me.txtYTMAlVencimientoCompra.Text = CalcularYTMAlVencimientoCompra().ToString
- 'ACTIVAR DESPUES DE ENCONTRAR FORMULA
- End Sub
- Sub RefrescarDiasAcumuladosCompra()
- Me.txtDiasAcumuladosCompra.Text = CalcularDiasAcumuladosCompra().ToString
- End Sub
- Sub RefrescarDiasAlVencimientoCompra()
- Me.txtDiasAlVencimientoCompra.Text = CalcularDiasAlVencimientoCompra().ToString
- End Sub
- Sub RefrescarInteresAcumuladoCompra()
- Me.txtInteresAcumuladoCompra.Text = CalcularInteresAcumuladoCompra().ToString
- End Sub
- Sub RefrescarPorcentajeInteresAcumuladoCompra()
- Me.txtPorcentajeInteresAcumuladoCompra.Text = CalcularPorcentajeInteresAcumuladoCompra().ToString
- End Sub
- Sub RefrescarPorcentajePrecioSucioCompra()
- Me.txtPrecioSucioCompra.Text = CalcularPrecioSucioCompra().ToString
- End Sub
- Sub RefrescarValorTransadoCompra()
- Me.txtValorTransadoCompra.Text = CalcularValorTransadoCompra().ToString
- End Sub
- Sub RefrescarComisionCasaCompra()
- Me.txtComisionCasaCompra.Text = CalcularComisionCasaCompra().ToString
- End Sub
- Sub RefrescarComisionBolsaCompra()
- Me.txtComisionBolsaCompra.Text = CalcularComisionBolsaCompra().ToString
- End Sub
- Sub RefrescarMontoAPagarCompra()
- Me.txtMontoAPagar.Text = CalcularMontoAPagarCompra().ToString
- End Sub
- 'VENTA
- Sub RefrescarPeriodicidadVenta()
- Me.cboPeriodosV.SelectedValue = CalcularPeriodicidadVenta()
- End Sub
- Sub RefrescarUltimaFechaCuponVenta()
- Me.dtpUltimaFechaCuponVenta.Value = CalcularUltimaFechaCuponVenta()
- End Sub
- Sub RefrescarSiguienteFechaCuponVenta()
- Me.dtpSiguienteFechaCuponVenta.Value = CalcularSiguienteFechaCuponVenta()
- End Sub
- Sub RefrescarFechaLiquidacionVenta()
- Me.dtpFechaLiquidacionVenta.Value = CalcularFechaLiquidacionVenta()
- End Sub
- Sub RefrescarFechaVencimientoVenta()
- Me.dtpFechaVencimientoVenta.Value = Me.dtpFechaVencimientoCompra.Value
- End Sub
- Sub RefrescarPorcentajeCuponVenta()
- Me.txtPorcentajeCuponVenta.Text = Me.txtPorcentajeCuponCompra.Text
- End Sub
- Sub RefrescarYTMAlVencimientoComisionVenta()
- Me.txtYTMAlVencimientoComisionVenta.Text = CalcularYTMAlVencimientoComisionVenta().ToString
- End Sub
- Sub RefrescarYTMAlVencimientoVenta()
- 'Me.txtYTMAlVencimientoVenta.Text = CalcularYTMAlVencimientoVenta().ToString
- End Sub
- Sub RefrescarDiasAcumuladosVenta()
- Me.txtDiasAcumuladosVenta.Text = CalcularDiasAcumuladosVenta().ToString
- End Sub
- Sub RefrescarDiasAlVencimientoVenta()
- Me.txtDiasAlVencimientoVenta.Text = CalcularDiasAlVencimientoVenta().ToString
- End Sub
- Sub RefrescarInteresAcumuladoVenta()
- Me.txtInteresAcumuladoVenta.Text = CalcularInteresAcumuladoVenta().ToString
- End Sub
- Sub RefrescarPorcentajeInteresAcumuladoVenta()
- Me.txtPorcentajeInteresAcumuladoVenta.Text = CalcularInteresAcumuladoPorcentajeVenta().ToString
- End Sub
- Sub RefrescarPrecioSucioVenta()
- Me.txtPrecioSucioVenta.Text = CalcularPrecioSucioVenta().ToString
- End Sub
- Sub RefrescarValorTransadoVenta()
- Me.txtValorTransadoVenta.Text = CalcularValorTransadoVenta().ToString
- End Sub
- Sub RefrescarComisionCasaVenta()
- Me.txtComisionCasaVenta.Text = CalcularComisionCasaVenta().ToString
- End Sub
- Sub RefrescarComisionBolsaVenta()
- Me.txtComisionBolsaVenta.Text = CalcularComisionBolsaVenta().ToString
- End Sub
- Sub RefrescarMontoARecibirVenta()
- Me.txtMontoARecibir.Text = CalcularMontoARecibirVenta()
- End Sub
- Sub RefrescarValorNominalVenta()
- Me.txtValorNominalVenta.Text = GetValorNominalCompra()
- End Sub
- Sub RefrescarPorcentajeComisionCasaVenta()
- Me.txtPorcentajeComisionCasaVenta.Text = GetPorcentajeComisionCasaCompra().ToString
- End Sub
- Sub RefrescarPorcentajeComisionBolsaVenta()
- Me.txtPorcentajeComisionBolsaVenta.Text = GetPorcentajeComisionBolsaCompra().ToString
- End Sub
- 'RO
- Sub RefrescarValorNominalRO()
- Me.txtValorNominal_Op.Text = GetValorNominalCompra.ToString
- End Sub
- Sub RefrescarPLazoRO()
- Me.txtPlazo_Op.Text = CalcularDiasPlazoRO()
- End Sub
- Sub RefrescarPrecioCompraRO()
- Me.txtPrecioCompra_Op.Text = GetPrecioCompra()
- End Sub
- Sub RefrescarPrecioVentaRO()
- Me.txtPrecioVenta_Op.Text = GetPrecioVenta()
- End Sub
- Sub RefrescarGananciaDeCapital()
- Me.txtGananciaPerdidaCapital_Op.Text = CalcularGananciaDeCapital()
- End Sub
- Sub RefrescarGananciaDeIntereses()
- Me.txtIngresosPorIntereses_Op.Text = CalcularGananciaDeIntereses()
- End Sub
- Sub RefrescarGananciaTotal()
- Me.txtGananciaPerdidaTotal_Op.Text = CalcularGananciaTotal()
- End Sub
- Sub RefrescarRentabilidadPorGananciaDeCapital()
- Me.txtRendimientoGananciaPerdida_Op.Text = CalcularRentabilidadPorGananciaDeCapital()
- End Sub
- Sub RefrescarRentabilidadPorIntereses()
- Me.txtRendimientoIntereses_Op.Text = CalcularRentabilidadPorIntereses()
- End Sub
- Sub RefrescarRentabilidadTotal()
- Me.txtRendimientoDespuesISR_Op.Text = CalcularRentabilidadTotal()
- End Sub
- Sub CargarCasas()
- Me.cboCasa_C.DataSource = oDAOGeneral.ListaCasasCorredoras.Tables("CasasCorredoras")
- Me.cboCasa_C.DisplayMember = "Descripcion"
- Me.cboCasa_C.ValueMember = "Codigo"
- Me.cboCasa_C.SelectedValue = -1
- Me.cboCasa_V.DataSource = oDAOGeneral.ListaCasasCorredoras.Tables("CasasCorredoras")
- Me.cboCasa_V.DisplayMember = "Descripcion"
- Me.cboCasa_V.ValueMember = "Codigo"
- Me.cboCasa_V.SelectedValue = -1
- End Sub
- Private Sub btnAceptar_Click(sender As Object, e As EventArgs) Handles btnAceptar.Click
- oCEBonos = New BonosCE
- 'oCEBonos.CodigoCasaCompra = Me.GetCasaCompra
- oCEBonos.ValorNominalCompra = Me.GetValorNominalCompra
- oCEBonos.UltimaFechaCuponCompra = Me.GetUltimaFechaCuponCompra
- oCEBonos.SiguienteFechaCuponCompra = Me.GetSiguienteFechaCuponCompra
- oCEBonos.FechaLiquidacionCompra = Me.GetFechaLiquidacionCompra
- oCEBonos.FechaVencimientoCompra = Me.GetFechaVencimientoCompra
- oCEBonos.PorcentajeCuponCompra = Me.GetPorcentajeCuponCompra
- 'oCEBonos.YTMAlVencimientoComisionCompra = Me.GetYTMAlVencimientoComisionCompra
- 'oCEBonos.YTMAlVencimientoCompra = GetYTMAlVencimientoCompra()
- oCEBonos.PrecioAlVencimientoCompra = GetPrecioAlVencimientoCompra()
- oCEBonos.PrecioCompra = GetPrecioCompra()
- oCEBonos.DiasBaseCompra = GetDiasBaseCompra()
- 'oCEBonos.DiasAcumuladosCompra = GetDiasAcumuladosCompra()
- 'oCEBonos.DiasAlVencimientoCompra = GetDiasAlVencimientoCompra()
- 'oCEBonos.PorcentajeInteresAcumuladoCompra = GetPorcentajeInteresAcumuladoCompra()
- 'oCEBonos.InteresAcumuladoCompra = GetInteresAcumuladoCompra()
- 'oCEBonos.PrecioSucioCompra = GetPrecioSucioCompra()
- 'oCEBonos.ValorTransadoCompra = GetValorTransadoCompra()
- 'oCEBonos.MontoAPagarCompra = GetMontoAPagarCompra()
- oCEBonos.CostoDeTransferenciaCompra = GetCostoTransferenciaCompra()
- oCEBonos.ValorNominalVenta = GetValorNominalVenta()
- oCEBonos.UltimaFechaCuponVenta = GetUltimaFechaCuponVenta()
- oCEBonos.SiguienteFechaCuponVenta = GetSiguienteFechaCuponVenta()
- oCEBonos.FechaLiquidacionVenta = GetFechaLiquidacionVenta()
- oCEBonos.FechaVencimientoVenta = GetFechaVencimientoVenta()
- oCEBonos.PorcentajeCuponVenta = GetPorcentajeCuponVenta()
- 'oCEBonos.YTMAlVencimientoComisionVenta = GetYTMAlVencimientoComisionVenta()
- 'oCEBonos.YTMAlVencimientoVenta = GetYTMAlVencimientoVenta()
- oCEBonos.PrecioAlVencimientoVenta = GetPrecioAlVencimientoVenta()
- oCEBonos.PrecioVenta = GetPrecioVenta()
- oCEBonos.DiasBaseVenta = GetDiasBaseVenta()
- 'oCEBonos.DiasAcumuladosVenta = GetDiasAcumuladosVenta()
- 'oCEBonos.DiasAlVencimientoVenta = GetDiasAlVencimientoVenta()
- 'oCEBonos.PorcentajeInteresAcumuladoVenta = GetPorcentajeInteresAcumuladoVenta()
- 'oCEBonos.InteresAcumuladoVenta = GetInteresAcumuladoVenta()
- 'oCEBonos.PrecioSucioVenta = GetPrecioSucioVenta()
- 'oCEBonos.ValorTransadoVenta = GetValorTransadoVenta()
- 'oCEBonos.MontoAPagarVenta = GetMontoAPagarVenta()
- oCEBonos.CostoDeTransferenciaVenta = GetCostoTransferenciaVenta()
- 'oCEBonos.ValorNominalRO = GetValorNominalRO()
- 'oCEBonos.PlazoRO = GetPlazoRO()
- 'oCEBonos.PrecioCompraRO = GetPrecioCompraRO()
- 'oCEBonos.PrecioVentaRO = GetPrecioVentaRO()
- 'oCEBonos.GananciaPerdidaDeCapital = GetGananciaPerdidaDeCapital()
- 'oCEBonos.IngresoPorInteres = GetIngresoPorInteres()
- 'oCEBonos.CostosTotales = GetCostosTotales()
- 'oCEBonos.GananciaPerdidaTotal = GetGananciaPerdidaTotal()
- 'oCEBonos.RendimientoGananciaPerdida = GetRendimientoGananciaPerdida()
- 'oCEBonos.RendimientoDeIntereses = GetRendimientoDeIntereses()
- 'oCEBonos.RendimientoAntesImpuestos = GetRendimientoAntesImpuestos()
- 'oCEBonos.RendimientoDespuesImpuestos = GetRendimientoDespuesImpuestos()
- End Sub
- Function RetornarObjeto()
- Return oCEBonos
- End Function
- Public Sub CargarRegistro(vId As Integer, vTipo As String)
- Modo = "C"
- IdDocumento = vId
- TipoDocumento = vTipo
- End Sub
- Private Sub CargarRegistroBD()
- oCEBonos = New BonosCE
- oDAOBonos = New BonosDAO
- oDAOBonos.CargarRegistro(oCEBonos, TipoDocumento, IdDocumento)
- 'Dim vCodigoCasaCompra As String = oCEBonos.CodigoCasaCompra
- Dim vValorNominalCompra As Double = oCEBonos.ValorNominalCompra
- Dim vUltimaFechaCuponCompra As Date = oCEBonos.UltimaFechaCuponCompra
- Dim vSiguienteFechaCuponCompra As Date = oCEBonos.SiguienteFechaCuponCompra
- Dim vFechaLiquidacionCompra As Date = oCEBonos.FechaLiquidacionCompra
- Dim vFechaVencimientoCompra As Date = oCEBonos.FechaVencimientoCompra
- Dim vPorcentajeCuponCompra As Double = oCEBonos.PorcentajeCuponCompra
- Dim vYTMAlVencimientoComisionCompra As Double = oCEBonos.YTMAlVencimientoComisionCompra
- Dim vYTMAlVencimientoCompra As Double = oCEBonos.YTMAlVencimientoCompra
- Dim vPrecioAlVencimientoCompra As Double = oCEBonos.PrecioAlVencimientoCompra
- Dim vPrecioCompra As Double = oCEBonos.PrecioCompra
- Dim vDiasBaseCompra As Integer = oCEBonos.DiasBaseCompra
- Dim vDiasAcumuladosCompra As Integer = oCEBonos.DiasAcumuladosCompra
- Dim vDiasAlVencimientoCompra As Integer = oCEBonos.DiasAlVencimientoCompra
- Dim vPorcentajeInteresAcumuladoCompra As Double = oCEBonos.PorcentajeInteresAcumuladoCompra
- Dim vInteresAcumuladoCompra As Double = oCEBonos.InteresAcumuladoCompra
- Dim vPrecioSucioCompra As Double = oCEBonos.PrecioSucioCompra
- Dim vValorTransadoCompra As Double = oCEBonos.ValorTransadoCompra
- Dim vMontoAPagarCompra As Double = oCEBonos.MontoAPagarCompra
- Dim vCostoDeTransferenciaCompra As Double = oCEBonos.CostoDeTransferenciaCompra
- 'Dim vCodigoCasaVenta As String = oCEBonos.CodigoCasaVenta
- Dim vValorNominalVenta As Double = oCEBonos.ValorNominalVenta
- Dim vUltimaFechaCuponVenta As Date = oCEBonos.UltimaFechaCuponVenta
- Dim vSiguienteFechaCuponVenta As Date = oCEBonos.SiguienteFechaCuponVenta
- Dim vFechaLiquidacionVenta As Date = oCEBonos.FechaLiquidacionVenta
- Dim vFechaVencimientoVenta As Date = oCEBonos.FechaVencimientoVenta
- Dim vPorcentajeCuponVenta As Double = oCEBonos.PorcentajeCuponVenta
- Dim vYTMAlVencimientoComisionVenta As Double = oCEBonos.YTMAlVencimientoComisionVenta
- Dim vYTMAlVencimientoVenta As Double = oCEBonos.YTMAlVencimientoVenta
- Dim vPrecioAlVencimientoVenta As Double = oCEBonos.PrecioAlVencimientoVenta
- Dim vPrecioVenta As Double = oCEBonos.PrecioVenta
- Dim vDiasBaseVenta As Integer = oCEBonos.DiasBaseVenta
- Dim vDiasAcumuladosVenta As Integer = oCEBonos.DiasAcumuladosVenta
- Dim vDiasAlVencimientoVenta As Integer = oCEBonos.DiasAlVencimientoVenta
- Dim vPorcentajeInteresAcumuladoVenta As Double = oCEBonos.InteresAcumuladoPorcentajeVenta
- Dim vInteresAcumuladoVenta As Integer = oCEBonos.InteresAcumuladoVenta
- Dim vPrecioSucioVenta As Double = oCEBonos.PrecioSucioVenta
- Dim vValorTransadoVenta As Double = oCEBonos.ValorTransadoVenta
- 'Dim vMontoAPagarVenta As Double = oCEBonos.MontoAPagarVenta
- Dim vCostoDeTransferenciaVenta As Double = oCEBonos.CostoDeTransferenciaVenta
- Dim vValorNominalRO As Double = oCEBonos.ValorNominalRO
- 'Dim vPlazoRO As Double = oCEBonos.PlazoRO
- Dim vPrecioCompraRO As Double = oCEBonos.PrecioCompraRO
- Dim vPrecioVentaRO As Double = oCEBonos.PrecioVentaRO
- Dim vGananciaPerdidaDeCapital As Double = oCEBonos.GananciaPerdidaDeCapital
- Dim vIngresoPorInteres As Double = oCEBonos.IngresoPorInteres
- Dim vCostosTotales As Double = oCEBonos.CostosTotales
- Dim vGananciaPerdidaTotal As Double = oCEBonos.GananciaPerdidaTotal
- Dim vRendimientoGananciaPerdida As Double = oCEBonos.RendimientoGananciaPerdida
- Dim vRendimientoDeIntereses As Double = oCEBonos.RendimientoDeIntereses
- Dim vRendimientoAntesImpuestos As Double = oCEBonos.RendimientoAntesImpuestos
- Dim vRendimientoDespuesImpuestos As Double = oCEBonos.RendimientoDespuesImpuestos
- 'Me.cboCasa_C.SelectedValue = vCodigoCasaCompra
- Me.txtValorNominalCompra.Text = vValorNominalCompra
- Me.dtpUltimaFechaCuponCompra.Value = vUltimaFechaCuponCompra
- Me.dtpSiguienteFechaCuponCompra.Value = vSiguienteFechaCuponCompra
- Me.dtpFechaLiquidacionCompra.Value = vFechaLiquidacionCompra
- Me.dtpFechaVencimientoCompra.Value = vFechaVencimientoCompra
- Me.txtPorcentajeCuponCompra.Text = vPorcentajeCuponCompra
- Me.txtYTMAlVencimientoComisionCompra.Text = vYTMAlVencimientoComisionCompra
- Me.txtYTMAlVencimientoCompra.Text = vYTMAlVencimientoCompra
- Me.txtPrecioAlVencimientoCompra.Text = vPrecioAlVencimientoCompra
- Me.txtPrecioCompra.Text = vPrecioCompra
- Me.cboAnioBaseC.SelectedItem = vDiasBaseCompra
- Me.txtDiasAcumuladosCompra.Text = vDiasAcumuladosCompra
- Me.txtDiasAlVencimientoCompra.Text = vDiasAlVencimientoCompra
- Me.txtPorcentajeInteresAcumuladoCompra.Text = vPorcentajeInteresAcumuladoCompra
- Me.txtInteresAcumuladoCompra.Text = vInteresAcumuladoCompra
- Me.txtPrecioSucioCompra.Text = vPrecioSucioCompra
- Me.txtValorTransadoCompra.Text = vValorTransadoCompra
- Me.txtMontoAPagar.Text = vMontoAPagarCompra
- Me.txtCostoTransferenciaCompra.Text = vCostoDeTransferenciaCompra
- 'Me.cboCasa_V.SelectedValue = vCodigoCasaVenta
- Me.txtValorNominalVenta.Text = vValorNominalVenta
- Me.dtpUltimaFechaCuponVenta.Value = vUltimaFechaCuponVenta
- Me.dtpSiguienteFechaCuponVenta.Value = vSiguienteFechaCuponVenta
- Me.dtpFechaLiquidacionVenta.Value = vFechaLiquidacionVenta
- Me.dtpFechaVencimientoVenta.Value = vFechaVencimientoVenta
- Me.txtPorcentajeCuponVenta.Text = vPorcentajeCuponVenta
- Me.txtYTMAlVencimientoComisionVenta.Text = vYTMAlVencimientoComisionVenta
- Me.txtYTMAlVencimientoVenta.Text = vYTMAlVencimientoVenta
- Me.txtPrecioAlVencimientoVenta.Text = vPrecioAlVencimientoVenta
- Me.txtPrecioVenta.Text = vPrecioVenta
- Me.cboAnioBaseV.SelectedItem = vDiasBaseVenta
- Me.txtDiasAcumuladosVenta.Text = vDiasAcumuladosVenta
- Me.txtDiasAlVencimientoVenta.Text = vDiasAlVencimientoVenta
- Me.txtPorcentajeInteresAcumuladoVenta.Text = vPorcentajeInteresAcumuladoVenta
- Me.txtInteresAcumuladoVenta.Text = vInteresAcumuladoVenta
- Me.txtPrecioSucioVenta.Text = vPrecioSucioVenta
- Me.txtValorTransadoVenta.Text = vValorTransadoVenta
- 'Me.txtMontoARecibir.Text = vMontoAPagarVenta
- Me.txtCostoTransferenciaVenta.Text = vCostoDeTransferenciaVenta
- Me.txtValorNominal_Op.Text = vValorNominalRO
- 'Me.txtPlazo_Op.Text = vPlazoRO
- Me.txtPrecioCompra_Op.Text = vPrecioCompraRO
- Me.txtPrecioVenta_Op.Text = vPrecioVentaRO
- Me.txtGananciaPerdidaCapital_Op.Text = vGananciaPerdidaDeCapital
- Me.txtIngresosPorIntereses_Op.Text = vIngresoPorInteres
- Me.txtCostosTotales_Op.Text = vCostosTotales
- Me.txtGananciaPerdidaTotal_Op.Text = vGananciaPerdidaTotal
- Me.txtRendimientoGananciaPerdida_Op.Text = vRendimientoGananciaPerdida
- Me.txtRendimientoIntereses_Op.Text = vRendimientoDeIntereses
- Me.txtRendimientoAntesISR_Op.Text = vRendimientoAntesImpuestos
- Me.txtRendimientoDespuesISR_Op.Text = vRendimientoDespuesImpuestos
- End Sub
- Private Sub txtValorNominalCompra_TextChanged(sender As Object, e As EventArgs) Handles txtValorNominalCompra.TextChanged
- RefrescarInteresAcumuladoCompra()
- RefrescarPorcentajeInteresAcumuladoCompra()
- RefrescarValorTransadoCompra()
- RefrescarValorNominalVenta()
- RefrescarValorNominalRO()
- RefrescarTablaIngresos()
- End Sub
- Private Sub dtpUltimaFechaCuponCompra_ValueChanged(sender As Object, e As EventArgs) Handles dtpUltimaFechaCuponCompra.ValueChanged
- RefrescarSiguienteFechaCuponCompra()
- End Sub
- Private Sub dtpSiguienteFechaCuponCompra_ValueChanged(sender As Object, e As EventArgs) Handles dtpSiguienteFechaCuponCompra.ValueChanged
- RefrescarDiasAcumuladosCompra()
- RefrescarUltimaFechaCuponVenta()
- RefrescarTablaIngresos()
- End Sub
- Private Sub dtpFechaLiquidacionCompra_ValueChanged(sender As Object, e As EventArgs) Handles dtpFechaLiquidacionCompra.ValueChanged
- RefrescarYTMAlVencimientoCompra()
- RefrescarDiasAcumuladosCompra()
- RefrescarDiasAlVencimientoCompra()
- RefrescarPLazoRO()
- RefrescarTablaIngresos()
- End Sub
- Private Sub dtpFechaVencimientoCompra_ValueChanged(sender As Object, e As EventArgs) Handles dtpFechaVencimientoCompra.ValueChanged
- RefrescarYTMAlVencimientoCompra()
- RefrescarDiasAlVencimientoCompra()
- RefrescarFechaVencimientoVenta()
- End Sub
- Private Sub txtPorcentajeCuponCompra_TextChanged(sender As Object, e As EventArgs) Handles txtPorcentajeCuponCompra.TextChanged
- RefrescarYTMAlVencimientoCompra()
- RefrescarInteresAcumuladoCompra()
- RefrescarPorcentajeCuponVenta()
- RefrescarTablaIngresos()
- End Sub
- Private Sub txtYTMAlVencimientoCompra_TextChanged(sender As Object, e As EventArgs) Handles txtYTMAlVencimientoCompra.TextChanged
- RefrescarYTMAlVencimientoComisionCompra()
- End Sub
- Private Sub txtPorcentajeComisionCasaCompra_TextChanged(sender As Object, e As EventArgs) Handles txtPorcentajeComisionCasaCompra.TextChanged
- RefrescarYTMAlVencimientoComisionCompra()
- RefrescarComisionCasaCompra()
- RefrescarPorcentajeComisionCasaVenta()
- End Sub
- Private Sub txtDiasAlVencimientoCompra_TextChanged(sender As Object, e As EventArgs) Handles txtDiasAlVencimientoCompra.TextChanged
- RefrescarYTMAlVencimientoComisionCompra()
- End Sub
- Private Sub txtPrecioCompra_TextChanged(sender As Object, e As EventArgs) Handles txtPrecioCompra.TextChanged
- RefrescarValorTransadoCompra()
- RefrescarPorcentajePrecioSucioCompra()
- RefrescarValorTransadoCompra()
- RefrescarPrecioCompraRO()
- End Sub
- Private Sub txtPrecioAlVencimientoCompra_TextChanged(sender As Object, e As EventArgs) Handles txtPrecioAlVencimientoCompra.TextChanged
- RefrescarYTMAlVencimientoCompra()
- End Sub
- Private Sub txtDiasAcumuladosCompra_TextChanged(sender As Object, e As EventArgs) Handles txtDiasAcumuladosCompra.TextChanged
- RefrescarInteresAcumuladoCompra()
- End Sub
- Private Sub txtInteresAcumuladoCompra_TextChanged(sender As Object, e As EventArgs) Handles txtInteresAcumuladoCompra.TextChanged
- RefrescarPorcentajeInteresAcumuladoCompra()
- RefrescarPorcentajePrecioSucioCompra()
- RefrescarMontoAPagarCompra()
- RefrescarGananciaDeIntereses()
- End Sub
- Private Sub txtValorTransadoCompra_TextChanged(sender As Object, e As EventArgs) Handles txtValorTransadoCompra.TextChanged
- RefrescarComisionCasaCompra()
- RefrescarComisionBolsaCompra()
- RefrescarMontoAPagarCompra()
- RefrescarGananciaDeCapital()
- RefrescarRentabilidadPorGananciaDeCapital()
- RefrescarRentabilidadPorIntereses()
- RefrescarRentabilidadTotal()
- End Sub
- Private Sub txtPorcentajeComisionBolsaCompra_TextChanged(sender As Object, e As EventArgs) Handles txtPorcentajeComisionBolsaCompra.TextChanged
- RefrescarComisionBolsaCompra()
- RefrescarPorcentajeComisionBolsaVenta()
- End Sub
- Private Sub txtComisionBolsaCompra_TextChanged(sender As Object, e As EventArgs) Handles txtComisionBolsaCompra.TextChanged
- RefrescarMontoAPagarCompra()
- End Sub
- Private Sub txtComisionCasaCompra_TextChanged(sender As Object, e As EventArgs) Handles txtComisionCasaCompra.TextChanged
- RefrescarMontoAPagarCompra()
- End Sub
- Private Sub txtCostoTransferenciaCompra_TextChanged(sender As Object, e As EventArgs) Handles txtCostoTransferenciaCompra.TextChanged
- RefrescarMontoAPagarCompra()
- End Sub
- Private Sub dtpFechaLiquidacionVenta_ValueChanged(sender As Object, e As EventArgs) Handles dtpFechaLiquidacionVenta.ValueChanged
- 'RefrescarUltimaFechaCuponVenta()
- RefrescarYTMAlVencimientoVenta()
- RefrescarDiasAcumuladosVenta()
- RefrescarDiasAlVencimientoVenta()
- RefrescarPLazoRO()
- RefrescarTablaIngresos()
- End Sub
- Private Sub dtpFechaVencimientoVenta_ValueChanged(sender As Object, e As EventArgs) Handles dtpFechaVencimientoVenta.ValueChanged
- 'RefrescarUltimaFechaCuponVenta()
- RefrescarYTMAlVencimientoVenta()
- RefrescarDiasAlVencimientoVenta()
- End Sub
- Private Sub dtpUltimaFechaCuponVenta_ValueChanged(sender As Object, e As EventArgs) Handles dtpUltimaFechaCuponVenta.ValueChanged
- RefrescarSiguienteFechaCuponVenta()
- RefrescarDiasAcumuladosVenta()
- End Sub
- Private Sub txtYTMAlVencimientoVenta_TextChanged(sender As Object, e As EventArgs) Handles txtYTMAlVencimientoVenta.TextChanged
- RefrescarYTMAlVencimientoComisionVenta()
- End Sub
- Private Sub txtPorcentajeComisionCasaVenta_TextChanged(sender As Object, e As EventArgs) Handles txtPorcentajeComisionCasaVenta.TextChanged
- RefrescarYTMAlVencimientoComisionVenta()
- RefrescarComisionCasaVenta()
- End Sub
- Private Sub txtDiasAlVencimientoVenta_TextChanged(sender As Object, e As EventArgs) Handles txtDiasAlVencimientoVenta.TextChanged
- RefrescarYTMAlVencimientoComisionVenta()
- End Sub
- Private Sub txtPorcentajeComisionBolsaVenta_TextChanged(sender As Object, e As EventArgs) Handles txtPorcentajeComisionBolsaVenta.TextChanged
- RefrescarYTMAlVencimientoComisionVenta()
- RefrescarComisionBolsaVenta()
- End Sub
- Private Sub txtPorcentajeCuponVenta_TextChanged(sender As Object, e As EventArgs) Handles txtPorcentajeCuponVenta.TextChanged
- RefrescarYTMAlVencimientoVenta()
- RefrescarInteresAcumuladoVenta()
- End Sub
- Private Sub txtPrecioVenta_TextChanged(sender As Object, e As EventArgs) Handles txtPrecioVenta.TextChanged
- RefrescarYTMAlVencimientoVenta()
- RefrescarPrecioSucioVenta()
- RefrescarValorTransadoVenta()
- RefrescarPrecioVentaRO()
- End Sub
- Private Sub txtPrecioAlVencimientoVenta_TextChanged(sender As Object, e As EventArgs) Handles txtPrecioAlVencimientoVenta.TextChanged
- RefrescarYTMAlVencimientoVenta()
- End Sub
- Private Sub txtValorNominalVenta_TextChanged(sender As Object, e As EventArgs) Handles txtValorNominalVenta.TextChanged
- RefrescarInteresAcumuladoVenta()
- RefrescarPorcentajeInteresAcumuladoVenta()
- RefrescarValorTransadoVenta()
- End Sub
- Private Sub txtDiasAcumuladosVenta_TextChanged(sender As Object, e As EventArgs) Handles txtDiasAcumuladosVenta.TextChanged
- RefrescarInteresAcumuladoVenta()
- End Sub
- Private Sub txtInteresAcumuladoVenta_TextChanged(sender As Object, e As EventArgs) Handles txtInteresAcumuladoVenta.TextChanged
- RefrescarPorcentajeInteresAcumuladoVenta()
- RefrescarMontoARecibirVenta()
- RefrescarGananciaDeIntereses()
- End Sub
- Private Sub txtPorcentajeInteresAcumuladoVenta_TextChanged(sender As Object, e As EventArgs) Handles txtPorcentajeInteresAcumuladoVenta.TextChanged
- RefrescarPrecioSucioVenta()
- End Sub
- Private Sub txtValorTransadoVenta_TextChanged(sender As Object, e As EventArgs) Handles txtValorTransadoVenta.TextChanged
- RefrescarComisionCasaVenta()
- RefrescarComisionBolsaVenta()
- RefrescarMontoARecibirVenta()
- RefrescarGananciaDeCapital()
- End Sub
- Private Sub txtComisionBolsaVenta_TextChanged(sender As Object, e As EventArgs) Handles txtComisionBolsaVenta.TextChanged
- RefrescarMontoARecibirVenta()
- End Sub
- Private Sub txtComisionCasaVenta_TextChanged(sender As Object, e As EventArgs) Handles txtComisionCasaVenta.TextChanged
- RefrescarMontoARecibirVenta()
- End Sub
- Private Sub Label13_Click(sender As Object, e As EventArgs) Handles Label13.Click
- End Sub
- Private Sub cboAnioBaseC_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboAnioBaseC.SelectedIndexChanged
- RefrescarInteresAcumuladoCompra()
- RefrescarDiasAlVencimientoCompra()
- RefrescarDiasAcumuladosCompra()
- RefrescarRentabilidadPorGananciaDeCapital()
- RefrescarRentabilidadPorIntereses()
- RefrescarRentabilidadTotal()
- RefrescarTablaIngresos()
- End Sub
- Private Sub cboAnioBaseV_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboAnioBaseV.SelectedIndexChanged
- RefrescarInteresAcumuladoVenta()
- RefrescarDiasAlVencimientoVenta()
- RefrescarDiasAcumuladosVenta()
- End Sub
- Sub CargarPeriodos()
- Me.cboPeriodosC.DataSource = oDAOGeneral.ListaPeriodicidad
- Me.cboPeriodosC.ValueMember = "Codigo"
- Me.cboPeriodosC.DisplayMember = "Descripcion"
- Me.cboPeriodosC.SelectedIndex = -1
- Me.cboPeriodosV.DataSource = oDAOGeneral.ListaPeriodicidad
- Me.cboPeriodosV.ValueMember = "Codigo"
- Me.cboPeriodosV.DisplayMember = "Descripcion"
- Me.cboPeriodosV.SelectedIndex = -1
- End Sub
- Private Sub Label11_Click(sender As Object, e As EventArgs) Handles Label11.Click
- End Sub
- Private Sub cboPeriodosC_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboPeriodosC.SelectedIndexChanged
- RefrescarSiguienteFechaCuponCompra()
- RefrescarPorcentajeInteresAcumuladoCompra()
- RefrescarPeriodicidadVenta()
- RefrescarTablaIngresos()
- End Sub
- Private Sub cboPeriodosV_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboPeriodosV.SelectedIndexChanged
- RefrescarUltimaFechaCuponVenta()
- RefrescarSiguienteFechaCuponVenta()
- RefrescarPorcentajeInteresAcumuladoVenta()
- End Sub
- Private Sub txtPrecioCompra_Op_TextChanged(sender As Object, e As EventArgs) Handles txtPrecioCompra_Op.TextChanged
- End Sub
- Private Sub txtPrecioVenta_Op_TextChanged(sender As Object, e As EventArgs) Handles txtPrecioVenta_Op.TextChanged
- End Sub
- Private Sub txtGananciaPerdidaCapital_Op_TextChanged(sender As Object, e As EventArgs) Handles txtGananciaPerdidaCapital_Op.TextChanged
- RefrescarGananciaTotal()
- RefrescarRentabilidadPorGananciaDeCapital()
- End Sub
- Private Sub txtIngresosPorIntereses_Op_TextChanged(sender As Object, e As EventArgs) Handles txtIngresosPorIntereses_Op.TextChanged
- RefrescarGananciaTotal()
- RefrescarRentabilidadPorIntereses()
- End Sub
- Private Sub txtGananciaPerdidaTotal_Op_TextChanged(sender As Object, e As EventArgs) Handles txtGananciaPerdidaTotal_Op.TextChanged
- RefrescarRentabilidadTotal()
- End Sub
- Private Sub txtPlazo_Op_TextChanged(sender As Object, e As EventArgs) Handles txtPlazo_Op.TextChanged
- RefrescarRentabilidadPorGananciaDeCapital()
- RefrescarRentabilidadPorIntereses()
- RefrescarRentabilidadTotal()
- End Sub
- Function CalcularCupones() As DataTable
- Dim dtCupones As New DataTable
- Dim vFechaLiquidacionCompra As Date = GetFechaLiquidacionCompra()
- Dim vFechaLiquidacionVenta As Date = GetFechaLiquidacionVenta()
- Dim vSiguienteFechaCuponCompra As Date = GetSiguienteFechaCuponCompra()
- Dim vPeriodicidad As String = GetPeriodicidadCompra()
- Dim vValorNominalCompra As Double = GetValorNominalCompra()
- Dim vPorcentajeCuponCompra As Double = GetPorcentajeCuponCompra()
- Dim vAnioBaseCompra As Integer = GetDiasBaseCompra()
- Dim vColumnas As DataColumn
- Dim vFilas As DataRow
- Dim vEstaFecha As Date
- Dim vSiguienteFecha As Date
- Dim vDias As Integer
- Dim vValor As Double
- 'CREAMOS COLUMNAS
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Date)
- vColumnas.ColumnName = "FechaCupon"
- vColumnas.Caption = "Fecha Cupon"
- vColumnas.AllowDBNull = False
- dtCupones.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Integer)
- vColumnas.ColumnName = "Dias"
- vColumnas.Caption = "Dias"
- vColumnas.AllowDBNull = False
- dtCupones.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "Valor"
- vColumnas.Caption = "Valor Cupon"
- vColumnas.AllowDBNull = False
- dtCupones.Columns.Add(vColumnas)
- vSiguienteFecha = vSiguienteFechaCuponCompra
- vDias = DateDiff(DateInterval.Day, vFechaLiquidacionCompra, vSiguienteFechaCuponCompra)
- Dim ControlBucle As Integer = 1
- While vSiguienteFecha <= vFechaLiquidacionVenta
- vEstaFecha = vSiguienteFecha
- vFilas = dtCupones.NewRow
- vFilas("FechaCupon") = vSiguienteFecha
- vFilas("Dias") = vDias
- Try
- vValor = vValorNominalCompra * vPorcentajeCuponCompra * vDias / vAnioBaseCompra
- Catch ex As Exception
- vValor = 0
- End Try
- vFilas("Valor") = vValor
- dtCupones.Rows.Add(vFilas)
- If vPeriodicidad = "S" Then
- vSiguienteFecha = vSiguienteFecha.AddMonths(6)
- ElseIf vPeriodicidad = "M" Then
- vSiguienteFecha = vSiguienteFecha.AddMonths(1)
- Else
- Exit While
- End If
- If vAnioBaseCompra = 360 Then
- vDias = Utilidades.Days360(vEstaFecha, vSiguienteFecha)
- Else
- vDias = DateDiff(DateInterval.Day, vEstaFecha, vSiguienteFecha)
- End If
- End While
- Try
- TotalValorCupones = dtCupones.Compute("SUM(Valor)", "")
- Catch ex As Exception
- TotalValorCupones = 0
- End Try
- Me.txtTotalIngresoCupones.Text = TotalValorCupones.ToString
- Return dtCupones
- dtCupones.Dispose()
- End Function
- Private Sub btnRefrescarIngresos_Click(sender As Object, e As EventArgs) Handles btnRefrescarIngresos.Click
- Me.dgvIngresos.DataSource = CalcularCupones()
- End Sub
- Sub RefrescarTablaIngresos()
- Me.dgvIngresos.DataSource = CalcularCupones()
- End Sub
- Function AmortizacionDeCapital() As DataTable
- Dim dtAmortizacionDeCapital As New DataTable
- Dim vColumnas As DataColumn
- Dim vFilas As DataRow
- Dim vSiguienteFecha As Date
- Dim vCesionDeFlujo As Double
- 'AGREGO COLUMNAS
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Date)
- vColumnas.ColumnName = "Fecha"
- vColumnas.Caption = "Fecha"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "CesionDeFlujo"
- vColumnas.Caption = "Cesion De Flujo"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "AmortDeCapEmis"
- vColumnas.Caption = "Amortización de Capital Emision"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "InteresEmis"
- vColumnas.Caption = "Interes Emision"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "PorcCapAmort"
- vColumnas.Caption = "Porcentaje Cap. Amortizado"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "SaldoEmis"
- vColumnas.Caption = "Saldo Emision"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Integer)
- vColumnas.ColumnName = "Dias"
- vColumnas.Caption = "Dias"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "Cuota"
- vColumnas.Caption = "Cuota"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "AmortCap"
- vColumnas.Caption = "Amortizacion de Capital"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "InteresTit"
- vColumnas.Caption = "Interes Titularizacion"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vColumnas = New DataColumn
- vColumnas.DataType = GetType(Double)
- vColumnas.ColumnName = "SaldoTit"
- vColumnas.Caption = "Saldo Titularizacion"
- vColumnas.AllowDBNull = False
- dtAmortizacionDeCapital.Columns.Add(vColumnas)
- vSiguienteFecha = FechaEmision.AddMonths(1)
- vCesionDeFlujo = CesionFlujo1
- For i As Integer = 1 To NumeroPeriodosEmision
- vFilas = dtAmortizacionDeCapital.NewRow
- vFilas("Fecha") = vSiguienteFecha
- vFilas("CesionDeFlujo") = 1
- vFilas("AmortDeCapEmis") = 2
- vFilas("InteresEmis") = 3
- vFilas("PorcCapAmort") = 4
- vFilas("SaldoEmis") = 5
- vFilas("Dias") = 6
- vFilas("Cuota") = 7
- vFilas("AmortCap") = 8
- vFilas("InteresTit") = 9
- vFilas("SaldoTit") = 10
- dtAmortizacionDeCapital.Rows.Add(vFilas)
- vSiguienteFecha = FechaEmision.AddMonths(1)
- Next
- Return dtAmortizacionDeCapital
- dtAmortizacionDeCapital.Dispose()
- End Function
- Private Sub txtEmisionTotal_TextChanged(sender As Object, e As EventArgs) Handles txtEmisionTotal.TextChanged
- Double.TryParse(txtEmisionTotal.Text, EmisionTotal)
- End Sub
- Private Sub txtEmisionTotal_LostFocus(sender As Object, e As EventArgs) Handles txtEmisionTotal.LostFocus
- Double.TryParse(txtEmisionTotal.Text, EmisionTotal)
- txtEmisionTotal.Text = EmisionTotal.ToString(Configuraciones.CodigoTXTMontos)
- End Sub
- Private Sub txtTasaEmision_TextChanged(sender As Object, e As EventArgs) Handles txtTasaEmision.TextChanged
- Double.TryParse(txtTasaEmision.Text, TasaEmision)
- End Sub
- Private Sub txtTasaEmision_LostFocus(sender As Object, e As EventArgs) Handles txtTasaEmision.LostFocus
- Double.TryParse(txtTasaEmision.Text, TasaEmision)
- txtTasaEmision.Text = TasaEmision.ToString(Configuraciones.CodigoTXTPorcentaje)
- End Sub
- Private Sub txtPeriodicidadEmision_TextChanged(sender As Object, e As EventArgs) Handles txtPeriodicidadEmision.TextChanged
- Integer.TryParse(Me.txtPeriodicidadEmision.Text, PeriodicidadEmision)
- End Sub
- Private Sub txtPeriodosEmision_TextChanged(sender As Object, e As EventArgs) Handles txtPeriodosEmision.TextChanged
- Integer.TryParse(Me.txtPeriodosEmision.Text, NumeroPeriodosEmision)
- End Sub
- Private Sub txtMontoCompraEmision_TextChanged(sender As Object, e As EventArgs) Handles txtMontoCompraEmision.TextChanged
- Double.TryParse(Me.txtMontoCompraEmision.Text, MontoCompraEmision)
- End Sub
- Private Sub txtMontoCompraPrimario_TextChanged(sender As Object, e As EventArgs) Handles txtMontoCompraPrimario.TextChanged
- Double.TryParse(Me.txtMontoCompraPrimario.Text, MontoCompraPrimario)
- End Sub
- Private Sub txtCesionFlujo1_TextChanged(sender As Object, e As EventArgs) Handles txtCesionFlujo1.TextChanged
- Double.TryParse(Me.txtCesionFlujo1.Text, CesionFlujo1)
- End Sub
- Private Sub txtPeriodicidadEmision_LostFocus(sender As Object, e As EventArgs) Handles txtPeriodicidadEmision.LostFocus
- Integer.TryParse(Me.txtPeriodicidadEmision.Text, PeriodicidadEmision)
- Me.txtPeriodicidadEmision.Text = PeriodicidadEmision.ToString
- End Sub
- Private Sub txtPeriodosEmision_LostFocus(sender As Object, e As EventArgs) Handles txtPeriodosEmision.LostFocus
- Integer.TryParse(txtPeriodosEmision.Text, NumeroPeriodosEmision)
- txtPeriodosEmision.Text = NumeroPeriodosEmision.ToString
- End Sub
- Private Sub txtMontoCompraEmision_LostFocus(sender As Object, e As EventArgs) Handles txtMontoCompraEmision.LostFocus
- Double.TryParse(Me.txtMontoCompraEmision.Text, MontoCompraEmision)
- Me.txtMontoCompraEmision.Text = MontoCompraEmision.ToString(Configuraciones.CodigoTXTMontos)
- End Sub
- Private Sub txtMontoCompraPrimario_LostFocus(sender As Object, e As EventArgs) Handles txtMontoCompraPrimario.LostFocus
- Double.TryParse(txtMontoCompraPrimario.Text, MontoCompraPrimario)
- txtMontoCompraPrimario.Text = MontoCompraPrimario.ToString(Configuraciones.CodigoTXTMontos)
- End Sub
- Private Sub txtCesionFlujo1_LostFocus(sender As Object, e As EventArgs) Handles txtCesionFlujo1.LostFocus
- Double.TryParse(txtCesionFlujo1.Text, CesionFlujo1)
- txtCesionFlujo1.Text = CesionFlujo1.ToString(Configuraciones.CodigoTXTMontos)
- End Sub
- Private Sub dtpFechaEmision_ValueChanged(sender As Object, e As EventArgs) Handles dtpFechaEmision.ValueChanged
- FechaEmision = dtpFechaEmision.Value.Date
- End Sub
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- dgvAmortizacionDeCapital.DataSource = AmortizacionDeCapital()
- End Sub
- Private Sub label27_Click(sender As Object, e As EventArgs) Handles label27.Click
- End Sub
- Private Sub Label23_Click(sender As Object, e As EventArgs) Handles Label23.Click
- End Sub
- Private Sub Label25_Click(sender As Object, e As EventArgs) Handles Label25.Click
- End Sub
- Private Sub Label35_Click(sender As Object, e As EventArgs) Handles Label35.Click
- End Sub
- Private Sub Label26_Click(sender As Object, e As EventArgs) Handles Label26.Click
- End Sub
- Private Sub lblIngresosPorIntereses_Op_Click(sender As Object, e As EventArgs) Handles lblIngresosPorIntereses_Op.Click
- End Sub
- Private Sub Label24_Click(sender As Object, e As EventArgs) Handles Label24.Click
- End Sub
- Private Sub lblCostosTotales_Op_Click(sender As Object, e As EventArgs) Handles lblCostosTotales_Op.Click
- End Sub
- Private Sub lblGananciaPerdidaTotal_Op_Click(sender As Object, e As EventArgs) Handles lblGananciaPerdidaTotal_Op.Click
- End Sub
- Private Sub lblRendimientoGananciaPerdida_Op_Click(sender As Object, e As EventArgs) Handles lblRendimientoGananciaPerdida_Op.Click
- End Sub
- Private Sub lblRendimientoIntereses_Op_Click(sender As Object, e As EventArgs) Handles lblRendimientoIntereses_Op.Click
- End Sub
- Private Sub lblRendimientoAntesISR_Op_Click(sender As Object, e As EventArgs) Handles lblRendimientoAntesISR_Op.Click
- End Sub
- Private Sub lblRendimientoDespuesISR_Op_Click(sender As Object, e As EventArgs) Handles lblRendimientoDespuesISR_Op.Click
- End Sub
- Private Sub txtRendimientoDespuesISR_Op_TextChanged(sender As Object, e As EventArgs) Handles txtRendimientoDespuesISR_Op.TextChanged
- End Sub
- Private Sub txtRendimientoAntesISR_Op_TextChanged(sender As Object, e As EventArgs) Handles txtRendimientoAntesISR_Op.TextChanged
- End Sub
- Private Sub txtRendimientoIntereses_Op_TextChanged(sender As Object, e As EventArgs) Handles txtRendimientoIntereses_Op.TextChanged
- End Sub
- Private Sub txtRendimientoGananciaPerdida_Op_TextChanged(sender As Object, e As EventArgs) Handles txtRendimientoGananciaPerdida_Op.TextChanged
- End Sub
- Private Sub txtCostosTotales_Op_TextChanged(sender As Object, e As EventArgs) Handles txtCostosTotales_Op.TextChanged
- End Sub
- Private Sub txtValorNominal_Op_TextChanged(sender As Object, e As EventArgs) Handles txtValorNominal_Op.TextChanged
- End Sub
- End Class
|