Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Class ViewerManager(Of ViewTable)
  2.  
  3. Protected ReadOnly Property StoredView As ViewTable
  4.  
  5. #Region "View Object Properties"
  6.  
  7. Enum ViewerManagerTemplate
  8. Unkown = 1
  9. TblMemorizedFilterPage = 2
  10. TblMemorizedAEV = 3
  11. End Enum
  12.  
  13. Protected _ManagerTemplate As ViewerManagerTemplate = ViewerManagerTemplate.Unkown
  14. Protected ReadOnly Property ManagerTemplate As ViewerManagerTemplate
  15. Get
  16. If _ManagerTemplate = ViewerManagerTemplate.Unkown Then
  17. If PageID > 0 Then
  18. _ManagerTemplate = ViewerManagerTemplate.TblMemorizedFilterPage
  19. Else
  20. _ManagerTemplate = ViewerManagerTemplate.TblMemorizedAEV
  21. End If
  22. End If
  23. Return _ManagerTemplate
  24. End Get
  25. End Property
  26.  
  27. Protected InitializedStoredView As Boolean = False
  28. Protected _StoredView As ViewTable = Nothing
  29. Protected ReadOnly Property StoredView As ViewTable
  30. Get
  31. If Not InitializedStoredView Then
  32. InitializedStoredView = True
  33. Select Case ManagerTemplate
  34. Case ViewerManagerTemplate.TblMemorizedFilterPage
  35. If PageObject.StoredViewID > 0 Then
  36. _StoredView = CType(CType(BOs.CustomGridBO.GetMemorizedFilterPage(PageObject.StoredViewID), Object), ViewTable)
  37. End If
  38. End Select
  39. End If
  40. Return _StoredView
  41. End Get
  42. End Property
  43. #End Region
  44.  
  45. _StoredView = CType(CType(BOs.CustomGridBO.GetMemorizedFilterPage(PageObject.StoredViewID), Object), ViewTable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement