<% Dim cnConnection Dim rsTX Dim rsTX2 Dim rsInstanceByTypeID Dim oChart Dim oChartTwo Dim oFSO Dim c Dim strInstance Dim bolInstanceByTypeID Dim iInstance Dim strCERFileName Dim strCERTransID Dim strStatus Dim strType Dim strOuterTable Dim strStopCode Dim strClassid Dim strDisplay Dim strTrackID Dim strPDisplay Dim strPath Dim strCERFileList Dim strNULL Dim strMessage Dim strBucket Dim strisBucket Dim strsBucketType Dim strgBucketType Dim sBucket Dim gBucket Dim gsBucket Dim ssBucket Dim iMess Dim i Dim x Dim y Dim iCount Dim iMoreInfo Dim iTDCount Dim iTDCountTwo Dim iTDCountFile Dim bolNewRow Dim bolNewChildTable Dim categories() Dim seriesNames(0) Dim values() bolInstanceByTypeID = false strCERFileName = unescape(Request.Cookies("CERFileName")) if strCERFileName = "~|~|" then strCERFileName = "" strCERTransID = unescape(Request.Cookies("CERTransID")) iTDCount = 0 iTDCountTwo = 0 iTDCountFile = 0 Call CVerifyPassport Call CCreateObjects Call CCreateConnection Call CGetTransactions Call CGetInstanceByTypeID if rsInstanceByTypeID.State = adStateOpen then if rsInstanceByTypeID.RecordCount > 0 then set rsInstanceByTypeID.ActiveConnection = nothing end if end if if rsTX.State = adStateOpen then if rsTX.RecordCount > 0 then set rsTX.ActiveConnection = nothing if cnConnection.State = adStateOpen then cnConnection.Close set cnConnection = nothing end if end if end if set rsTX2 = rsTX.Clone(adLockReadOnly) cnConnection.Close Private Sub CGetInstanceByTypeID Set rsInstanceByTypeID = cnConnection.Execute("InstanceByTypeID " & strCERTransID) if cnConnection.Errors.Count > 0 then strTemp = "http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") Response.Write "

" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "

" Response.Write "

" & L_COMMENTS_DATABASE_FAILED_TEXT & "

" %> <% Call CDestroyObjects Response.End end if End Sub Private Sub CGetTransactions set rsTX = cnConnection.Execute("GetTransactionIncidents " & strCERTransID) if cnConnection.Errors.Count > 0 then strTemp = "http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") Response.Write "

" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "

" Response.Write "

" & L_COMMENTS_DATABASE_FAILED_TEXT & "

" %> <% Call CDestroyObjects Response.End end if End Sub Private Sub CVerifyPassport on error resume next If not (oPassMgrObj.IsAuthenticated(TimeWindow, ForceLogin)) then Response.Write "

" & L_CUSTOMER_PASSPORT_TITLE_TEXT Response.Write "

" & L_CUSTOMER_PASSPORT_INFO_TEXT Response.Write "" & L_WELCOME_PASSPORT_LINK_TEXT & "

" Response.write oPassMgrObj.LogoTag(Server.URLEncode(ThisPageURL), TimeWindow, ForceLogin, CoBrandArgs, strLCID, Secure) Response.Write "

" Response.Write "
" Response.End end if End Sub Private Sub CCreateObjects on error resume next set cnConnection = CreateObject("ADODB.Connection")'Create Connection Object set rsTX = CreateObject("ADODB.Recordset")'Create Recordset Object set rsTX2 = CreateObject("ADODB.Recordset") Set oFSO = CreateObject("Scripting.FileSystemObject") set oChart = CreateObject("OWC.Chart") Set oChartTwo = CreateObject("OWC.Chart") Set rsInstanceByTypeID = CreateObject("ADODB.Recordset") End Sub Private Sub CDestroyObjects on error resume next if rsTX.State = adStateOpen then rsTX.Close set rsTX = nothing if rsTX2.State = adStateOpen then rsTX2.Close set rsTX2 = nothing if rsInstanceByTypeID.State = adStateOpen then rsInstanceByTypeID.Close set rsInstanceByTypeID = nothing if cnConnection.State = adStateOpen then cnConnection.Close set cnConnection = nothing Set oFSO = nothing Set oChart = nothing End Sub Private Sub CCreateConnection on error resume next with cnConnection .ConnectionString = strCustomer .CursorLocation = adUseClient .ConnectionTimeout = strGlobalConnectionTimeout .Open end with 'Catch errors and display to user if cnConnection.State = adStateClosed then Response.Write "

" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "

" Response.Write "

" & L_COMMENTS_CONNECTION_FAILED_TEXT & "

" cnConnection.Errors.Clear %> <% Call CDestroyObjects Response.End end if End Sub %>
<% Call CDestroyObjects %>