Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Option Explicit On
  2. Option Strict On
  3. 'Tanner Notes:
  4. 'SQL connection automaticall performed in ggBomBas
  5.  
  6.  
  7. Imports Fast
  8.  
  9. Public Class CB_gaTnnInd
  10.     Inherits ggBom.ggBomBas
  11.     Private mDta As New CB_gaTnn.CB_gaTnnDta
  12.     ' Private mcurBalanceThreshold As Decimal 'TODO: apply naming conventions
  13.  
  14.  
  15.  
  16. #Region "Execute"
  17.     Public Sub Execute(pcurBalanceThreshold As Decimal)
  18.  
  19.         If pcurBalanceThreshold <= 0 Then
  20.             Throw New Exception("Invalid Balance Threshold. The parameter must be a positive value.")
  21.         ElseIf pcurBalanceThreshold = vbNull Then
  22.             Throw New Exception("A decimal parameter is required.")
  23.         End If
  24.  
  25.         ' mcurBalanceThreshold = pcurBalanceThreshold 'set as global variable
  26.  
  27.         Dim custFDA As New ggFda.ggFdaCls
  28.         custFDA = mDta.getBalances(pcurBalanceThreshold)
  29.  
  30.  
  31.  
  32.  
  33.  
  34.         '  Stage = MustBeSet
  35.  
  36.  
  37.  
  38.     End Sub
  39.  
  40.     Public Sub IndicateDangerous()
  41.         'TODO: if called, account is above threshold, so indicate it as "dangerous"
  42.    End Sub
  43. #End Region
  44.  
  45. #Region "Retrieval"
  46.  
  47.  
  48.  
  49.     Public Sub GetTotalBalance()
  50.         'TODO: get total balance of customer across multiple accounts
  51.    End Sub
  52.  
  53.  
  54.  
  55. #End Region
  56.  
  57.  
  58. #Region "Transaction Requirement"
  59.     Public Overrides ReadOnly Property TransactionRequirement() As ggBom.ggBomBas.TransactionSetting
  60.         Get
  61.             Return ggBom.ggBomBas.TransactionSetting.Supported
  62.         End Get
  63.     End Property
  64. #End Region
  65.  
  66. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement