Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

791 řádky
26KB

  1. <%
  2. ' Auto-generated POBO for table [OrderDetails]
  3. ' Generated on 8/4/2026 3:40:46 PM
  4. ' Generator: GenerateRepo.vbs v1.0
  5. '
  6. ' Dependencies: core/helpers.asp (QuoteValue function)
  7. Class POBO_OrderDetails
  8. ' Public array of all property names
  9. Public Properties
  10. Private pBlueDeliveryDate
  11. Private pBlueEnvelopeProvider
  12. Private pBlueHasNonprofitStatus
  13. Private pBlueNonprofitAuthCode
  14. Private pBluePermitCity
  15. Private pBluePermitClass
  16. Private pBluePermitNumber
  17. Private pBluePermitOwnership
  18. Private pBluePrintPermit
  19. Private pBluePrintReturnAddress
  20. Private pBlueWantsQuote
  21. Private pContactName
  22. Private pFutureVoterStickerRolls
  23. Private pIVotedStickerRolls
  24. Private pMailingEstimatedQuantity
  25. Private pMailingHasNonprofitStatus
  26. Private pMailingPickupDate
  27. Private pMailingPostageOption
  28. Private pMailingWantsService
  29. Private pMailingWantsSorting
  30. Private pMunicipality
  31. Private pOrderDetailID
  32. Private pOrderID
  33. Private pPhone
  34. Private pPurpleBlueProvider
  35. Private pPurpleBlueProviderOther
  36. Private pPurpleColorCodingBy
  37. Private pPurpleColorNames
  38. Private pPurpleDeliveryDate
  39. Private pPurpleEnvelopeProvider
  40. Private pPurpleEnvelopeStock
  41. Private pPurpleExtraEnvelopeQty
  42. Private pPurplePrecinctCount
  43. Private pPurplePrintOption
  44. Private pPurplePrintStyle
  45. Private pPurpleTrackMIBallot
  46. Private pPurpleWantsBlueEnvelopes
  47. Private pPurpleWantsQuote
  48. Private pSecrecySleevesQty
  49. Private pSpecialRequests
  50. Private pSubmittedAt
  51. Private Sub Class_Initialize()
  52. pBlueDeliveryDate = Null
  53. pBlueEnvelopeProvider = Null
  54. pBlueHasNonprofitStatus = Null
  55. pBlueNonprofitAuthCode = Null
  56. pBluePermitCity = Null
  57. pBluePermitClass = Null
  58. pBluePermitNumber = Null
  59. pBluePermitOwnership = Null
  60. pBluePrintPermit = False
  61. pBluePrintReturnAddress = False
  62. pBlueWantsQuote = False
  63. pContactName = Null
  64. pFutureVoterStickerRolls = 0
  65. pIVotedStickerRolls = 0
  66. pMailingEstimatedQuantity = 0
  67. pMailingHasNonprofitStatus = Null
  68. pMailingPickupDate = Null
  69. pMailingPostageOption = Null
  70. pMailingWantsService = Null
  71. pMailingWantsSorting = Null
  72. pMunicipality = Null
  73. pOrderDetailID = 0
  74. pOrderID = 0
  75. pPhone = Null
  76. pPurpleBlueProvider = Null
  77. pPurpleBlueProviderOther = Null
  78. pPurpleColorCodingBy = Null
  79. pPurpleColorNames = Null
  80. pPurpleDeliveryDate = Null
  81. pPurpleEnvelopeProvider = Null
  82. pPurpleEnvelopeStock = Null
  83. pPurpleExtraEnvelopeQty = 0
  84. pPurplePrecinctCount = 0
  85. pPurplePrintOption = Null
  86. pPurplePrintStyle = Null
  87. pPurpleTrackMIBallot = Null
  88. pPurpleWantsBlueEnvelopes = Null
  89. pPurpleWantsQuote = Null
  90. pSecrecySleevesQty = 0
  91. pSpecialRequests = Null
  92. pSubmittedAt = #1/1/1970#
  93. Properties = Array("BlueDeliveryDate","BlueEnvelopeProvider","BlueHasNonprofitStatus","BlueNonprofitAuthCode","BluePermitCity","BluePermitClass","BluePermitNumber","BluePermitOwnership","BluePrintPermit","BluePrintReturnAddress","BlueWantsQuote","ContactName","FutureVoterStickerRolls","IVotedStickerRolls","MailingEstimatedQuantity","MailingHasNonprofitStatus","MailingPickupDate","MailingPostageOption","MailingWantsService","MailingWantsSorting","Municipality","OrderDetailID","OrderID","Phone","PurpleBlueProvider","PurpleBlueProviderOther","PurpleColorCodingBy","PurpleColorNames","PurpleDeliveryDate","PurpleEnvelopeProvider","PurpleEnvelopeStock","PurpleExtraEnvelopeQty","PurplePrecinctCount","PurplePrintOption","PurplePrintStyle","PurpleTrackMIBallot","PurpleWantsBlueEnvelopes","PurpleWantsQuote","SecrecySleevesQty","SpecialRequests","SubmittedAt")
  94. End Sub
  95. Public Property Get PrimaryKey()
  96. PrimaryKey = "OrderDetailID"
  97. End Property
  98. Public Property Get TableName()
  99. TableName = "OrderDetails"
  100. End Property
  101. Public Property Get BlueDeliveryDate()
  102. BlueDeliveryDate = pBlueDeliveryDate
  103. End Property
  104. Public Property Let BlueDeliveryDate(val)
  105. On Error Resume Next
  106. If IsNull(val) Or Len(Trim(val & "")) = 0 Then
  107. pBlueDeliveryDate = Null
  108. Else
  109. pBlueDeliveryDate = CDate(val)
  110. End If
  111. If Err.Number <> 0 Then
  112. Err.Raise Err.Number, "POBO_OrderDetails.BlueDeliveryDate", "Invalid value for BlueDeliveryDate: " & Err.Description
  113. End If
  114. On Error GoTo 0
  115. End Property
  116. Public Property Get BlueEnvelopeProvider()
  117. BlueEnvelopeProvider = pBlueEnvelopeProvider
  118. End Property
  119. Public Property Let BlueEnvelopeProvider(val)
  120. On Error Resume Next
  121. If IsNumeric(val) Then
  122. pBlueEnvelopeProvider = CDbl(val)
  123. Else
  124. pBlueEnvelopeProvider = val
  125. End If
  126. If Err.Number <> 0 Then
  127. Err.Raise Err.Number, "POBO_OrderDetails.BlueEnvelopeProvider", "Invalid value for BlueEnvelopeProvider: " & Err.Description
  128. End If
  129. On Error GoTo 0
  130. End Property
  131. Public Property Get BlueHasNonprofitStatus()
  132. BlueHasNonprofitStatus = pBlueHasNonprofitStatus
  133. End Property
  134. Public Property Let BlueHasNonprofitStatus(val)
  135. On Error Resume Next
  136. If IsNull(val) Then
  137. pBlueHasNonprofitStatus = Null
  138. Else
  139. pBlueHasNonprofitStatus = CBool(val)
  140. End If
  141. If Err.Number <> 0 Then
  142. Err.Raise Err.Number, "POBO_OrderDetails.BlueHasNonprofitStatus", "Invalid value for BlueHasNonprofitStatus: " & Err.Description
  143. End If
  144. On Error GoTo 0
  145. End Property
  146. Public Property Get BlueNonprofitAuthCode()
  147. BlueNonprofitAuthCode = pBlueNonprofitAuthCode
  148. End Property
  149. Public Property Let BlueNonprofitAuthCode(val)
  150. On Error Resume Next
  151. pBlueNonprofitAuthCode = val ' kept as text - authorization codes may have leading zeros
  152. If Err.Number <> 0 Then
  153. Err.Raise Err.Number, "POBO_OrderDetails.BlueNonprofitAuthCode", "Invalid value for BlueNonprofitAuthCode: " & Err.Description
  154. End If
  155. On Error GoTo 0
  156. End Property
  157. Public Property Get BluePermitCity()
  158. BluePermitCity = pBluePermitCity
  159. End Property
  160. Public Property Let BluePermitCity(val)
  161. On Error Resume Next
  162. If IsNumeric(val) Then
  163. pBluePermitCity = CDbl(val)
  164. Else
  165. pBluePermitCity = val
  166. End If
  167. If Err.Number <> 0 Then
  168. Err.Raise Err.Number, "POBO_OrderDetails.BluePermitCity", "Invalid value for BluePermitCity: " & Err.Description
  169. End If
  170. On Error GoTo 0
  171. End Property
  172. Public Property Get BluePermitClass()
  173. BluePermitClass = pBluePermitClass
  174. End Property
  175. Public Property Let BluePermitClass(val)
  176. On Error Resume Next
  177. If IsNumeric(val) Then
  178. pBluePermitClass = CDbl(val)
  179. Else
  180. pBluePermitClass = val
  181. End If
  182. If Err.Number <> 0 Then
  183. Err.Raise Err.Number, "POBO_OrderDetails.BluePermitClass", "Invalid value for BluePermitClass: " & Err.Description
  184. End If
  185. On Error GoTo 0
  186. End Property
  187. Public Property Get BluePermitNumber()
  188. BluePermitNumber = pBluePermitNumber
  189. End Property
  190. Public Property Let BluePermitNumber(val)
  191. On Error Resume Next
  192. pBluePermitNumber = val ' kept as text - permit numbers may have leading zeros
  193. If Err.Number <> 0 Then
  194. Err.Raise Err.Number, "POBO_OrderDetails.BluePermitNumber", "Invalid value for BluePermitNumber: " & Err.Description
  195. End If
  196. On Error GoTo 0
  197. End Property
  198. Public Property Get BluePermitOwnership()
  199. BluePermitOwnership = pBluePermitOwnership
  200. End Property
  201. Public Property Let BluePermitOwnership(val)
  202. On Error Resume Next
  203. If IsNumeric(val) Then
  204. pBluePermitOwnership = CDbl(val)
  205. Else
  206. pBluePermitOwnership = val
  207. End If
  208. If Err.Number <> 0 Then
  209. Err.Raise Err.Number, "POBO_OrderDetails.BluePermitOwnership", "Invalid value for BluePermitOwnership: " & Err.Description
  210. End If
  211. On Error GoTo 0
  212. End Property
  213. Public Property Get BluePrintPermit()
  214. BluePrintPermit = pBluePrintPermit
  215. End Property
  216. Public Property Let BluePrintPermit(val)
  217. On Error Resume Next
  218. If IsNull(val) Then
  219. pBluePrintPermit = Null
  220. Else
  221. pBluePrintPermit = CBool(val)
  222. End If
  223. If Err.Number <> 0 Then
  224. Err.Raise Err.Number, "POBO_OrderDetails.BluePrintPermit", "Invalid value for BluePrintPermit: " & Err.Description
  225. End If
  226. On Error GoTo 0
  227. End Property
  228. Public Property Get BluePrintReturnAddress()
  229. BluePrintReturnAddress = pBluePrintReturnAddress
  230. End Property
  231. Public Property Let BluePrintReturnAddress(val)
  232. On Error Resume Next
  233. If IsNull(val) Then
  234. pBluePrintReturnAddress = Null
  235. Else
  236. pBluePrintReturnAddress = CBool(val)
  237. End If
  238. If Err.Number <> 0 Then
  239. Err.Raise Err.Number, "POBO_OrderDetails.BluePrintReturnAddress", "Invalid value for BluePrintReturnAddress: " & Err.Description
  240. End If
  241. On Error GoTo 0
  242. End Property
  243. Public Property Get BlueWantsQuote()
  244. BlueWantsQuote = pBlueWantsQuote
  245. End Property
  246. Public Property Let BlueWantsQuote(val)
  247. On Error Resume Next
  248. If IsNull(val) Then
  249. pBlueWantsQuote = Null
  250. Else
  251. pBlueWantsQuote = CBool(val)
  252. End If
  253. If Err.Number <> 0 Then
  254. Err.Raise Err.Number, "POBO_OrderDetails.BlueWantsQuote", "Invalid value for BlueWantsQuote: " & Err.Description
  255. End If
  256. On Error GoTo 0
  257. End Property
  258. Public Property Get ContactName()
  259. ContactName = pContactName
  260. End Property
  261. Public Property Let ContactName(val)
  262. On Error Resume Next
  263. If IsNumeric(val) Then
  264. pContactName = CDbl(val)
  265. Else
  266. pContactName = val
  267. End If
  268. If Err.Number <> 0 Then
  269. Err.Raise Err.Number, "POBO_OrderDetails.ContactName", "Invalid value for ContactName: " & Err.Description
  270. End If
  271. On Error GoTo 0
  272. End Property
  273. Public Property Get FutureVoterStickerRolls()
  274. FutureVoterStickerRolls = pFutureVoterStickerRolls
  275. End Property
  276. Public Property Let FutureVoterStickerRolls(val)
  277. On Error Resume Next
  278. If IsNumeric(val) Then
  279. pFutureVoterStickerRolls = CDbl(val)
  280. Else
  281. pFutureVoterStickerRolls = val
  282. End If
  283. If Err.Number <> 0 Then
  284. Err.Raise Err.Number, "POBO_OrderDetails.FutureVoterStickerRolls", "Invalid value for FutureVoterStickerRolls: " & Err.Description
  285. End If
  286. On Error GoTo 0
  287. End Property
  288. Public Property Get IVotedStickerRolls()
  289. IVotedStickerRolls = pIVotedStickerRolls
  290. End Property
  291. Public Property Let IVotedStickerRolls(val)
  292. On Error Resume Next
  293. If IsNumeric(val) Then
  294. pIVotedStickerRolls = CDbl(val)
  295. Else
  296. pIVotedStickerRolls = val
  297. End If
  298. If Err.Number <> 0 Then
  299. Err.Raise Err.Number, "POBO_OrderDetails.IVotedStickerRolls", "Invalid value for IVotedStickerRolls: " & Err.Description
  300. End If
  301. On Error GoTo 0
  302. End Property
  303. Public Property Get MailingEstimatedQuantity()
  304. MailingEstimatedQuantity = pMailingEstimatedQuantity
  305. End Property
  306. Public Property Let MailingEstimatedQuantity(val)
  307. On Error Resume Next
  308. If IsNumeric(val) Then
  309. pMailingEstimatedQuantity = CDbl(val)
  310. Else
  311. pMailingEstimatedQuantity = val
  312. End If
  313. If Err.Number <> 0 Then
  314. Err.Raise Err.Number, "POBO_OrderDetails.MailingEstimatedQuantity", "Invalid value for MailingEstimatedQuantity: " & Err.Description
  315. End If
  316. On Error GoTo 0
  317. End Property
  318. Public Property Get MailingHasNonprofitStatus()
  319. MailingHasNonprofitStatus = pMailingHasNonprofitStatus
  320. End Property
  321. Public Property Let MailingHasNonprofitStatus(val)
  322. On Error Resume Next
  323. If IsNumeric(val) Then
  324. pMailingHasNonprofitStatus = CDbl(val)
  325. Else
  326. pMailingHasNonprofitStatus = val
  327. End If
  328. If Err.Number <> 0 Then
  329. Err.Raise Err.Number, "POBO_OrderDetails.MailingHasNonprofitStatus", "Invalid value for MailingHasNonprofitStatus: " & Err.Description
  330. End If
  331. On Error GoTo 0
  332. End Property
  333. Public Property Get MailingPickupDate()
  334. MailingPickupDate = pMailingPickupDate
  335. End Property
  336. Public Property Let MailingPickupDate(val)
  337. On Error Resume Next
  338. If IsNull(val) Or Len(Trim(val & "")) = 0 Then
  339. pMailingPickupDate = Null
  340. Else
  341. pMailingPickupDate = CDate(val)
  342. End If
  343. If Err.Number <> 0 Then
  344. Err.Raise Err.Number, "POBO_OrderDetails.MailingPickupDate", "Invalid value for MailingPickupDate: " & Err.Description
  345. End If
  346. On Error GoTo 0
  347. End Property
  348. Public Property Get MailingPostageOption()
  349. MailingPostageOption = pMailingPostageOption
  350. End Property
  351. Public Property Let MailingPostageOption(val)
  352. On Error Resume Next
  353. If IsNumeric(val) Then
  354. pMailingPostageOption = CDbl(val)
  355. Else
  356. pMailingPostageOption = val
  357. End If
  358. If Err.Number <> 0 Then
  359. Err.Raise Err.Number, "POBO_OrderDetails.MailingPostageOption", "Invalid value for MailingPostageOption: " & Err.Description
  360. End If
  361. On Error GoTo 0
  362. End Property
  363. Public Property Get MailingWantsService()
  364. MailingWantsService = pMailingWantsService
  365. End Property
  366. Public Property Let MailingWantsService(val)
  367. On Error Resume Next
  368. If IsNull(val) Then
  369. pMailingWantsService = Null
  370. Else
  371. pMailingWantsService = CBool(val)
  372. End If
  373. If Err.Number <> 0 Then
  374. Err.Raise Err.Number, "POBO_OrderDetails.MailingWantsService", "Invalid value for MailingWantsService: " & Err.Description
  375. End If
  376. On Error GoTo 0
  377. End Property
  378. Public Property Get MailingWantsSorting()
  379. MailingWantsSorting = pMailingWantsSorting
  380. End Property
  381. Public Property Let MailingWantsSorting(val)
  382. On Error Resume Next
  383. If IsNull(val) Then
  384. pMailingWantsSorting = Null
  385. Else
  386. pMailingWantsSorting = CBool(val)
  387. End If
  388. If Err.Number <> 0 Then
  389. Err.Raise Err.Number, "POBO_OrderDetails.MailingWantsSorting", "Invalid value for MailingWantsSorting: " & Err.Description
  390. End If
  391. On Error GoTo 0
  392. End Property
  393. Public Property Get Municipality()
  394. Municipality = pMunicipality
  395. End Property
  396. Public Property Let Municipality(val)
  397. On Error Resume Next
  398. If IsNumeric(val) Then
  399. pMunicipality = CDbl(val)
  400. Else
  401. pMunicipality = val
  402. End If
  403. If Err.Number <> 0 Then
  404. Err.Raise Err.Number, "POBO_OrderDetails.Municipality", "Invalid value for Municipality: " & Err.Description
  405. End If
  406. On Error GoTo 0
  407. End Property
  408. Public Property Get OrderDetailID()
  409. OrderDetailID = pOrderDetailID
  410. End Property
  411. Public Property Let OrderDetailID(val)
  412. On Error Resume Next
  413. If IsNumeric(val) Then
  414. pOrderDetailID = CDbl(val)
  415. Else
  416. pOrderDetailID = val
  417. End If
  418. If Err.Number <> 0 Then
  419. Err.Raise Err.Number, "POBO_OrderDetails.OrderDetailID", "Invalid value for OrderDetailID: " & Err.Description
  420. End If
  421. On Error GoTo 0
  422. End Property
  423. Public Property Get OrderID()
  424. OrderID = pOrderID
  425. End Property
  426. Public Property Let OrderID(val)
  427. On Error Resume Next
  428. If IsNumeric(val) Then
  429. pOrderID = CDbl(val)
  430. Else
  431. pOrderID = val
  432. End If
  433. If Err.Number <> 0 Then
  434. Err.Raise Err.Number, "POBO_OrderDetails.OrderID", "Invalid value for OrderID: " & Err.Description
  435. End If
  436. On Error GoTo 0
  437. End Property
  438. Public Property Get Phone()
  439. Phone = pPhone
  440. End Property
  441. Public Property Let Phone(val)
  442. On Error Resume Next
  443. pPhone = val ' kept as text - avoids losing formatting/leading zeros
  444. If Err.Number <> 0 Then
  445. Err.Raise Err.Number, "POBO_OrderDetails.Phone", "Invalid value for Phone: " & Err.Description
  446. End If
  447. On Error GoTo 0
  448. End Property
  449. Public Property Get PurpleBlueProvider()
  450. PurpleBlueProvider = pPurpleBlueProvider
  451. End Property
  452. Public Property Let PurpleBlueProvider(val)
  453. On Error Resume Next
  454. If IsNumeric(val) Then
  455. pPurpleBlueProvider = CDbl(val)
  456. Else
  457. pPurpleBlueProvider = val
  458. End If
  459. If Err.Number <> 0 Then
  460. Err.Raise Err.Number, "POBO_OrderDetails.PurpleBlueProvider", "Invalid value for PurpleBlueProvider: " & Err.Description
  461. End If
  462. On Error GoTo 0
  463. End Property
  464. Public Property Get PurpleBlueProviderOther()
  465. PurpleBlueProviderOther = pPurpleBlueProviderOther
  466. End Property
  467. Public Property Let PurpleBlueProviderOther(val)
  468. On Error Resume Next
  469. If IsNumeric(val) Then
  470. pPurpleBlueProviderOther = CDbl(val)
  471. Else
  472. pPurpleBlueProviderOther = val
  473. End If
  474. If Err.Number <> 0 Then
  475. Err.Raise Err.Number, "POBO_OrderDetails.PurpleBlueProviderOther", "Invalid value for PurpleBlueProviderOther: " & Err.Description
  476. End If
  477. On Error GoTo 0
  478. End Property
  479. Public Property Get PurpleColorCodingBy()
  480. PurpleColorCodingBy = pPurpleColorCodingBy
  481. End Property
  482. Public Property Let PurpleColorCodingBy(val)
  483. On Error Resume Next
  484. If IsNumeric(val) Then
  485. pPurpleColorCodingBy = CDbl(val)
  486. Else
  487. pPurpleColorCodingBy = val
  488. End If
  489. If Err.Number <> 0 Then
  490. Err.Raise Err.Number, "POBO_OrderDetails.PurpleColorCodingBy", "Invalid value for PurpleColorCodingBy: " & Err.Description
  491. End If
  492. On Error GoTo 0
  493. End Property
  494. Public Property Get PurpleColorNames()
  495. PurpleColorNames = pPurpleColorNames
  496. End Property
  497. Public Property Let PurpleColorNames(val)
  498. On Error Resume Next
  499. If IsNumeric(val) Then
  500. pPurpleColorNames = CDbl(val)
  501. Else
  502. pPurpleColorNames = val
  503. End If
  504. If Err.Number <> 0 Then
  505. Err.Raise Err.Number, "POBO_OrderDetails.PurpleColorNames", "Invalid value for PurpleColorNames: " & Err.Description
  506. End If
  507. On Error GoTo 0
  508. End Property
  509. Public Property Get PurpleDeliveryDate()
  510. PurpleDeliveryDate = pPurpleDeliveryDate
  511. End Property
  512. Public Property Let PurpleDeliveryDate(val)
  513. On Error Resume Next
  514. If IsNull(val) Or Len(Trim(val & "")) = 0 Then
  515. pPurpleDeliveryDate = Null
  516. Else
  517. pPurpleDeliveryDate = CDate(val)
  518. End If
  519. If Err.Number <> 0 Then
  520. Err.Raise Err.Number, "POBO_OrderDetails.PurpleDeliveryDate", "Invalid value for PurpleDeliveryDate: " & Err.Description
  521. End If
  522. On Error GoTo 0
  523. End Property
  524. Public Property Get PurpleEnvelopeProvider()
  525. PurpleEnvelopeProvider = pPurpleEnvelopeProvider
  526. End Property
  527. Public Property Let PurpleEnvelopeProvider(val)
  528. On Error Resume Next
  529. If IsNumeric(val) Then
  530. pPurpleEnvelopeProvider = CDbl(val)
  531. Else
  532. pPurpleEnvelopeProvider = val
  533. End If
  534. If Err.Number <> 0 Then
  535. Err.Raise Err.Number, "POBO_OrderDetails.PurpleEnvelopeProvider", "Invalid value for PurpleEnvelopeProvider: " & Err.Description
  536. End If
  537. On Error GoTo 0
  538. End Property
  539. Public Property Get PurpleEnvelopeStock()
  540. PurpleEnvelopeStock = pPurpleEnvelopeStock
  541. End Property
  542. Public Property Let PurpleEnvelopeStock(val)
  543. On Error Resume Next
  544. If IsNumeric(val) Then
  545. pPurpleEnvelopeStock = CDbl(val)
  546. Else
  547. pPurpleEnvelopeStock = val
  548. End If
  549. If Err.Number <> 0 Then
  550. Err.Raise Err.Number, "POBO_OrderDetails.PurpleEnvelopeStock", "Invalid value for PurpleEnvelopeStock: " & Err.Description
  551. End If
  552. On Error GoTo 0
  553. End Property
  554. Public Property Get PurpleExtraEnvelopeQty()
  555. PurpleExtraEnvelopeQty = pPurpleExtraEnvelopeQty
  556. End Property
  557. Public Property Let PurpleExtraEnvelopeQty(val)
  558. On Error Resume Next
  559. If IsNumeric(val) Then
  560. pPurpleExtraEnvelopeQty = CDbl(val)
  561. Else
  562. pPurpleExtraEnvelopeQty = val
  563. End If
  564. If Err.Number <> 0 Then
  565. Err.Raise Err.Number, "POBO_OrderDetails.PurpleExtraEnvelopeQty", "Invalid value for PurpleExtraEnvelopeQty: " & Err.Description
  566. End If
  567. On Error GoTo 0
  568. End Property
  569. Public Property Get PurplePrecinctCount()
  570. PurplePrecinctCount = pPurplePrecinctCount
  571. End Property
  572. Public Property Let PurplePrecinctCount(val)
  573. On Error Resume Next
  574. If IsNumeric(val) Then
  575. pPurplePrecinctCount = CDbl(val)
  576. Else
  577. pPurplePrecinctCount = val
  578. End If
  579. If Err.Number <> 0 Then
  580. Err.Raise Err.Number, "POBO_OrderDetails.PurplePrecinctCount", "Invalid value for PurplePrecinctCount: " & Err.Description
  581. End If
  582. On Error GoTo 0
  583. End Property
  584. Public Property Get PurplePrintOption()
  585. PurplePrintOption = pPurplePrintOption
  586. End Property
  587. Public Property Let PurplePrintOption(val)
  588. On Error Resume Next
  589. If IsNumeric(val) Then
  590. pPurplePrintOption = CDbl(val)
  591. Else
  592. pPurplePrintOption = val
  593. End If
  594. If Err.Number <> 0 Then
  595. Err.Raise Err.Number, "POBO_OrderDetails.PurplePrintOption", "Invalid value for PurplePrintOption: " & Err.Description
  596. End If
  597. On Error GoTo 0
  598. End Property
  599. Public Property Get PurplePrintStyle()
  600. PurplePrintStyle = pPurplePrintStyle
  601. End Property
  602. Public Property Let PurplePrintStyle(val)
  603. On Error Resume Next
  604. If IsNumeric(val) Then
  605. pPurplePrintStyle = CDbl(val)
  606. Else
  607. pPurplePrintStyle = val
  608. End If
  609. If Err.Number <> 0 Then
  610. Err.Raise Err.Number, "POBO_OrderDetails.PurplePrintStyle", "Invalid value for PurplePrintStyle: " & Err.Description
  611. End If
  612. On Error GoTo 0
  613. End Property
  614. Public Property Get PurpleTrackMIBallot()
  615. PurpleTrackMIBallot = pPurpleTrackMIBallot
  616. End Property
  617. Public Property Let PurpleTrackMIBallot(val)
  618. On Error Resume Next
  619. If IsNull(val) Then
  620. pPurpleTrackMIBallot = Null
  621. Else
  622. pPurpleTrackMIBallot = CBool(val)
  623. End If
  624. If Err.Number <> 0 Then
  625. Err.Raise Err.Number, "POBO_OrderDetails.PurpleTrackMIBallot", "Invalid value for PurpleTrackMIBallot: " & Err.Description
  626. End If
  627. On Error GoTo 0
  628. End Property
  629. Public Property Get PurpleWantsBlueEnvelopes()
  630. PurpleWantsBlueEnvelopes = pPurpleWantsBlueEnvelopes
  631. End Property
  632. Public Property Let PurpleWantsBlueEnvelopes(val)
  633. On Error Resume Next
  634. If IsNull(val) Then
  635. pPurpleWantsBlueEnvelopes = Null
  636. Else
  637. pPurpleWantsBlueEnvelopes = CBool(val)
  638. End If
  639. If Err.Number <> 0 Then
  640. Err.Raise Err.Number, "POBO_OrderDetails.PurpleWantsBlueEnvelopes", "Invalid value for PurpleWantsBlueEnvelopes: " & Err.Description
  641. End If
  642. On Error GoTo 0
  643. End Property
  644. Public Property Get PurpleWantsQuote()
  645. PurpleWantsQuote = pPurpleWantsQuote
  646. End Property
  647. Public Property Let PurpleWantsQuote(val)
  648. On Error Resume Next
  649. If IsNull(val) Then
  650. pPurpleWantsQuote = Null
  651. Else
  652. pPurpleWantsQuote = CBool(val)
  653. End If
  654. If Err.Number <> 0 Then
  655. Err.Raise Err.Number, "POBO_OrderDetails.PurpleWantsQuote", "Invalid value for PurpleWantsQuote: " & Err.Description
  656. End If
  657. On Error GoTo 0
  658. End Property
  659. Public Property Get SecrecySleevesQty()
  660. SecrecySleevesQty = pSecrecySleevesQty
  661. End Property
  662. Public Property Let SecrecySleevesQty(val)
  663. On Error Resume Next
  664. If IsNumeric(val) Then
  665. pSecrecySleevesQty = CDbl(val)
  666. Else
  667. pSecrecySleevesQty = val
  668. End If
  669. If Err.Number <> 0 Then
  670. Err.Raise Err.Number, "POBO_OrderDetails.SecrecySleevesQty", "Invalid value for SecrecySleevesQty: " & Err.Description
  671. End If
  672. On Error GoTo 0
  673. End Property
  674. Public Property Get SpecialRequests()
  675. SpecialRequests = pSpecialRequests
  676. End Property
  677. Public Property Let SpecialRequests(val)
  678. On Error Resume Next
  679. If IsNumeric(val) Then
  680. pSpecialRequests = CDbl(val)
  681. Else
  682. pSpecialRequests = val
  683. End If
  684. If Err.Number <> 0 Then
  685. Err.Raise Err.Number, "POBO_OrderDetails.SpecialRequests", "Invalid value for SpecialRequests: " & Err.Description
  686. End If
  687. On Error GoTo 0
  688. End Property
  689. Public Property Get SubmittedAt()
  690. SubmittedAt = pSubmittedAt
  691. End Property
  692. Public Property Let SubmittedAt(val)
  693. On Error Resume Next
  694. pSubmittedAt = CDate(val)
  695. If Err.Number <> 0 Then
  696. Err.Raise Err.Number, "POBO_OrderDetails.SubmittedAt", "Invalid value for SubmittedAt: " & Err.Description
  697. End If
  698. On Error GoTo 0
  699. End Property
  700. End Class
  701. %>

Powered by TurnKey Linux.