Consolidated ASP Classic MVC framework from best components
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

173 行
3.9KB

  1. <%
  2. ' Auto-generated POBO for table [Households]
  3. ' Generator: GenerateRepo.vbs v1.0
  4. '
  5. ' Dependencies: core/helpers.asp (QuoteValue function)
  6. Class POBO_Households
  7. ' Public array of all property names
  8. Public Properties
  9. Private pAddress
  10. Private pDoNotCall
  11. Private pDoNotCallDate
  12. Private pDoNotCallNotes
  13. Private pDoNotCallPrivateNotes
  14. Private pId
  15. Private pIsBusiness
  16. Private pLatitude
  17. Private pLongitude
  18. Private pStreetName
  19. Private pStreetNumber
  20. Private pTerritoryId
  21. Private Sub Class_Initialize()
  22. pAddress = Null
  23. pDoNotCall = 0
  24. pDoNotCallDate = Null
  25. pDoNotCallNotes = Null
  26. pDoNotCallPrivateNotes = Null
  27. pId = 0
  28. pIsBusiness = 0
  29. pLatitude = Null
  30. pLongitude = Null
  31. pStreetName = Null
  32. pStreetNumber = 0
  33. pTerritoryId = 0
  34. Properties = Array("Address","DoNotCall","DoNotCallDate","DoNotCallNotes","DoNotCallPrivateNotes","Id","IsBusiness","Latitude","Longitude","StreetName","StreetNumber","TerritoryId")
  35. End Sub
  36. Public Property Get PrimaryKey()
  37. PrimaryKey = "Id"
  38. End Property
  39. Public Property Get TableName()
  40. TableName = "Households"
  41. End Property
  42. Public Property Get Address()
  43. Address = pAddress
  44. End Property
  45. Public Property Let Address(val)
  46. pAddress = val
  47. End Property
  48. Public Property Get DoNotCall()
  49. DoNotCall = pDoNotCall
  50. End Property
  51. Public Property Let DoNotCall(val)
  52. If IsNumeric(val) Then
  53. pDoNotCall = CLng(val)
  54. Else
  55. pDoNotCall = val
  56. End If
  57. End Property
  58. Public Property Get DoNotCallDate()
  59. DoNotCallDate = pDoNotCallDate
  60. End Property
  61. Public Property Let DoNotCallDate(val)
  62. If IsNull(val) Then
  63. pDoNotCallDate = Null
  64. ElseIf Trim(CStr(val)) = "" Then
  65. pDoNotCallDate = Null
  66. Else
  67. pDoNotCallDate = CDate(val)
  68. End If
  69. End Property
  70. Public Property Get DoNotCallNotes()
  71. DoNotCallNotes = pDoNotCallNotes
  72. End Property
  73. Public Property Let DoNotCallNotes(val)
  74. pDoNotCallNotes = val
  75. End Property
  76. Public Property Get DoNotCallPrivateNotes()
  77. DoNotCallPrivateNotes = pDoNotCallPrivateNotes
  78. End Property
  79. Public Property Let DoNotCallPrivateNotes(val)
  80. pDoNotCallPrivateNotes = val
  81. End Property
  82. Public Property Get Id()
  83. Id = pId
  84. End Property
  85. Public Property Let Id(val)
  86. If IsNumeric(val) Then
  87. pId = CLng(val)
  88. Else
  89. pId = val
  90. End If
  91. End Property
  92. Public Property Get IsBusiness()
  93. IsBusiness = pIsBusiness
  94. End Property
  95. Public Property Let IsBusiness(val)
  96. If IsNumeric(val) Then
  97. pIsBusiness = CLng(val)
  98. Else
  99. pIsBusiness = val
  100. End If
  101. End Property
  102. Public Property Get Latitude()
  103. Latitude = pLatitude
  104. End Property
  105. Public Property Let Latitude(val)
  106. pLatitude = val
  107. End Property
  108. Public Property Get Longitude()
  109. Longitude = pLongitude
  110. End Property
  111. Public Property Let Longitude(val)
  112. pLongitude = val
  113. End Property
  114. Public Property Get StreetName()
  115. StreetName = pStreetName
  116. End Property
  117. Public Property Let StreetName(val)
  118. pStreetName = val
  119. End Property
  120. Public Property Get StreetNumber()
  121. StreetNumber = pStreetNumber
  122. End Property
  123. Public Property Let StreetNumber(val)
  124. If IsNumeric(val) Then
  125. pStreetNumber = CLng(val)
  126. Else
  127. pStreetNumber = val
  128. End If
  129. End Property
  130. Public Property Get TerritoryId()
  131. TerritoryId = pTerritoryId
  132. End Property
  133. Public Property Let TerritoryId(val)
  134. If IsNumeric(val) Then
  135. pTerritoryId = CLng(val)
  136. Else
  137. pTerritoryId = val
  138. End If
  139. End Property
  140. End Class
  141. %>

Powered by TurnKey Linux.