rptPortafolio.vb 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. '------------------------------------------------------------------------------
  2. ' <auto-generated>
  3. ' Este código fue generado por una herramienta.
  4. ' Versión de runtime:4.0.30319.42000
  5. '
  6. ' Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
  7. ' se vuelve a generar el código.
  8. ' </auto-generated>
  9. '------------------------------------------------------------------------------
  10. Option Strict Off
  11. Option Explicit On
  12. Imports CrystalDecisions.CrystalReports.Engine
  13. Imports CrystalDecisions.ReportSource
  14. Imports CrystalDecisions.Shared
  15. Imports System
  16. Imports System.ComponentModel
  17. Public Class rptPortafolio
  18. Inherits ReportClass
  19. Public Sub New()
  20. MyBase.New
  21. End Sub
  22. Public Overrides Property ResourceName() As String
  23. Get
  24. Return "rptPortafolio.rpt"
  25. End Get
  26. Set
  27. 'Do nothing
  28. End Set
  29. End Property
  30. Public Overrides Property NewGenerator() As Boolean
  31. Get
  32. Return true
  33. End Get
  34. Set
  35. 'Do nothing
  36. End Set
  37. End Property
  38. Public Overrides Property FullResourceName() As String
  39. Get
  40. Return "Inversiones.rptPortafolio.rpt"
  41. End Get
  42. Set
  43. 'Do nothing
  44. End Set
  45. End Property
  46. <Browsable(false), _
  47. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  48. Public ReadOnly Property Section1() As CrystalDecisions.CrystalReports.Engine.Section
  49. Get
  50. Return Me.ReportDefinition.Sections(0)
  51. End Get
  52. End Property
  53. <Browsable(false), _
  54. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  55. Public ReadOnly Property Section2() As CrystalDecisions.CrystalReports.Engine.Section
  56. Get
  57. Return Me.ReportDefinition.Sections(1)
  58. End Get
  59. End Property
  60. <Browsable(false), _
  61. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  62. Public ReadOnly Property Section3() As CrystalDecisions.CrystalReports.Engine.Section
  63. Get
  64. Return Me.ReportDefinition.Sections(2)
  65. End Get
  66. End Property
  67. <Browsable(false), _
  68. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  69. Public ReadOnly Property Section4() As CrystalDecisions.CrystalReports.Engine.Section
  70. Get
  71. Return Me.ReportDefinition.Sections(3)
  72. End Get
  73. End Property
  74. <Browsable(false), _
  75. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  76. Public ReadOnly Property Section5() As CrystalDecisions.CrystalReports.Engine.Section
  77. Get
  78. Return Me.ReportDefinition.Sections(4)
  79. End Get
  80. End Property
  81. End Class
  82. <System.Drawing.ToolboxBitmapAttribute(GetType(CrystalDecisions.[Shared].ExportOptions), "report.bmp")> _
  83. Public Class CachedrptPortafolio
  84. Inherits Component
  85. Implements ICachedReport
  86. Public Sub New()
  87. MyBase.New
  88. End Sub
  89. <Browsable(false), _
  90. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  91. Public Overridable Property IsCacheable() As Boolean Implements CrystalDecisions.ReportSource.ICachedReport.IsCacheable
  92. Get
  93. Return true
  94. End Get
  95. Set
  96. '
  97. End Set
  98. End Property
  99. <Browsable(false), _
  100. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  101. Public Overridable Property ShareDBLogonInfo() As Boolean Implements CrystalDecisions.ReportSource.ICachedReport.ShareDBLogonInfo
  102. Get
  103. Return false
  104. End Get
  105. Set
  106. '
  107. End Set
  108. End Property
  109. <Browsable(false), _
  110. DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)> _
  111. Public Overridable Property CacheTimeOut() As System.TimeSpan Implements CrystalDecisions.ReportSource.ICachedReport.CacheTimeOut
  112. Get
  113. Return CachedReportConstants.DEFAULT_TIMEOUT
  114. End Get
  115. Set
  116. '
  117. End Set
  118. End Property
  119. Public Overridable Function CreateReport() As CrystalDecisions.CrystalReports.Engine.ReportDocument Implements CrystalDecisions.ReportSource.ICachedReport.CreateReport
  120. Dim rpt As rptPortafolio = New rptPortafolio()
  121. rpt.Site = Me.Site
  122. Return rpt
  123. End Function
  124. Public Overridable Function GetCustomizedCacheKey(ByVal request As RequestContext) As String Implements CrystalDecisions.ReportSource.ICachedReport.GetCustomizedCacheKey
  125. Dim key As [String] = Nothing
  126. '// The following is the code used to generate the default
  127. '// cache key for caching report jobs in the ASP.NET Cache.
  128. '// Feel free to modify this code to suit your needs.
  129. '// Returning key == null causes the default cache key to
  130. '// be generated.
  131. '
  132. 'key = RequestContext.BuildCompleteCacheKey(
  133. ' request,
  134. ' null, // sReportFilename
  135. ' this.GetType(),
  136. ' this.ShareDBLogonInfo );
  137. Return key
  138. End Function
  139. End Class