| 119 |
ghuddy |
1 |
<%
|
|
|
2 |
'=====================================================
|
|
|
3 |
' GLOBALS
|
|
|
4 |
'=====================================================
|
|
|
5 |
%>
|
|
|
6 |
<!--#include file="../class/classPersistanceModule.asp"-->
|
|
|
7 |
<!--#include file="../class/classAccessControl.asp"-->
|
|
|
8 |
<!--#include file="../class/classExceptionHandler.asp"-->
|
|
|
9 |
<%
|
|
|
10 |
' -- Variable Definition ------------------------------
|
|
|
11 |
Dim parRtag_id
|
|
|
12 |
Dim pkgInfoHash
|
|
|
13 |
Dim objAccessControl
|
|
|
14 |
Dim objPMod
|
|
|
15 |
Dim objEH
|
|
|
16 |
Dim objTabControl
|
|
|
17 |
Dim aPersistList
|
|
|
18 |
Dim isPopupWindow
|
|
|
19 |
Dim DB_PROJ_ID, DB_RTAG_ID, DB_PV_ID
|
|
|
20 |
Dim TIMER_VALUE
|
| 3959 |
dpurdie |
21 |
Dim rmDebug ' Will display text in the footer area
|
| 5085 |
dpurdie |
22 |
Dim bJqueryDataTables
|
|
|
23 |
Dim bJqueryForms
|
| 119 |
ghuddy |
24 |
' -- Variable Initialisation --------------------------
|
| 4063 |
dpurdie |
25 |
rmDebug = ""
|
|
|
26 |
isPopupWindow = FALSE
|
| 119 |
ghuddy |
27 |
parRtag_id = QStrPar("rtag_id")
|
|
|
28 |
Set objAccessControl = New AccessControl
|
|
|
29 |
Set objPMod = New PersistanceModule
|
|
|
30 |
Set objEH = New ExceptionHandler
|
| 4063 |
dpurdie |
31 |
Call GetCurrentParameters( DB_PROJ_ID, DB_RTAG_ID, DB_PV_ID ) ' These parameters are used
|
| 5102 |
dpurdie |
32 |
'-- rmDebug = rmDebug & "Proj:" & DB_PROJ_ID & ",Rtag:" & DB_RTAG_ID & ",Pvid:" & DB_PV_ID
|
| 119 |
ghuddy |
33 |
TIMER_VALUE = DateDiff("N", "1/1/1900 00:00:00 AM", Now ) ' Find number of minutes since some very old point in time
|
| 5085 |
dpurdie |
34 |
bJqueryDataTables = FALSE
|
|
|
35 |
bJqueryForms = FALSE
|
| 119 |
ghuddy |
36 |
' -- Constants ----------------------------------------
|
|
|
37 |
Const enumPAR_PROJ_ID = 0
|
|
|
38 |
Const enumPAR_RTAG_ID = 1
|
|
|
39 |
Const enumPAR_PV_ID = 2
|
|
|
40 |
Const enumPAR_RFILE = 3
|
|
|
41 |
Const enumPAR_ADD_TYPE = 4
|
|
|
42 |
Const enumPAR_DPV_ID = 5
|
|
|
43 |
aPersistList = Array( "proj_id","rtag_id","pv_id","rfile","add_type","dpv_id" )
|
| 5098 |
dpurdie |
44 |
' -- Very Baisc Functions -----------------------------
|
|
|
45 |
' Determine if a variable or Const exists and is not empty
|
|
|
46 |
' Use to check if a vbscript variable has been declared and contains a non-empty value
|
|
|
47 |
Function isDefined( var)
|
| 5102 |
dpurdie |
48 |
If (not IsEmpty(Eval(var))) AND Eval(var & " <> """"") Then
|
| 5098 |
dpurdie |
49 |
isDefined = TRUE
|
|
|
50 |
Else
|
|
|
51 |
isDefined = FALSE
|
|
|
52 |
End If
|
|
|
53 |
End Function
|
| 119 |
ghuddy |
54 |
'-------------------------------------------------------
|
|
|
55 |
%>
|