| 13 |
rsolanki |
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 parProj_id ' This par has the value of Request( par )
|
|
|
12 |
Dim parBranch_id ' This par has the value of Request( par )
|
|
|
13 |
Dim parBom_id ' This par has the value of Request( par )
|
|
|
14 |
Dim parNode_id ' This par has the value of Request( par )
|
|
|
15 |
Dim parOs_id ' This par has the value of Request( par )
|
|
|
16 |
Dim parProd_id ' This par has the value of Request( par )
|
|
|
17 |
Dim dbPARproj_id, dbPARbranch_id, dbPARbom_id, dbPARnode_id, dbPARos_id, dbPARprod_id ' These pars has -1 if Request( par ) is empty. Used mostly by DB bind params.
|
|
|
18 |
Dim objPMod ' Persistance Module
|
|
|
19 |
Dim objEH ' Exception Handler
|
|
|
20 |
Dim objCrumbs ' Crumbs
|
|
|
21 |
Dim objAccessControl ' Access Control
|
|
|
22 |
Dim aPersistList
|
|
|
23 |
Dim AT_BOM_LEVEL
|
|
|
24 |
Dim AT_NODE_LEVEL
|
|
|
25 |
Dim AT_OS_LEVEL
|
|
|
26 |
Dim AT_PROD_LEVEL
|
|
|
27 |
Dim isPopupWindow
|
|
|
28 |
Dim aAdminZones
|
|
|
29 |
Dim oEnumStateTypeNames
|
|
|
30 |
Dim TIMER_VALUE
|
|
|
31 |
' -- INITIALISATION ----------------------------------
|
|
|
32 |
isPopupWindow = FALSE
|
|
|
33 |
|
|
|
34 |
Set objAccessControl = New AccessControl
|
|
|
35 |
Set objPMod = New PersistanceModule
|
|
|
36 |
Set objEH = New ExceptionHandler
|
|
|
37 |
Set oEnumStateTypeNames = CreateObject("Scripting.Dictionary")
|
|
|
38 |
|
|
|
39 |
Const enumDB_STATE_TYPE_BOM_CREATOR = 1 ' Used in [STATES] table
|
|
|
40 |
Const enumDB_STATE_TYPE_BOM_LOCAL_TESTER = 2 ' Used in [STATES] table
|
|
|
41 |
Const enumDB_STATE_TYPE_BOM_EXTERNAL_TESTER = 3 ' Used in [STATES] table
|
|
|
42 |
oEnumStateTypeNames.Add (CStr(enumDB_STATE_TYPE_BOM_CREATOR)), "BOM CREATORS"
|
|
|
43 |
oEnumStateTypeNames.Add (CStr(enumDB_STATE_TYPE_BOM_LOCAL_TESTER)), "INTERNAL TESTERS"
|
|
|
44 |
oEnumStateTypeNames.Add (CStr(enumDB_STATE_TYPE_BOM_EXTERNAL_TESTER)), "EXTERNAL TESTERS"
|
|
|
45 |
|
|
|
46 |
TIMER_VALUE = DateDiff("N", "1/1/1900 00:00:00 AM", Now ) ' Find number of minutes since some very old point in time
|
|
|
47 |
|
|
|
48 |
Const enumPAR_PROJ_ID = 0
|
|
|
49 |
Const enumPAR_BRANCH_ID = 1
|
|
|
50 |
Const enumPAR_BOM_ID = 2
|
|
|
51 |
Const enumPAR_NODE_ID = 3
|
|
|
52 |
Const enumPAR_OS_ID = 4
|
|
|
53 |
Const enumPAR_PROD_ID = 5
|
|
|
54 |
Const enumPAR_RFILE = 6
|
|
|
55 |
Const enumPAR_STATE_ID = 7
|
|
|
56 |
Const enumPAR_ROOT_VERSION = 8
|
|
|
57 |
Const enumPAR_BOM_NAME_ID = 9
|
|
|
58 |
aPersistList = Array( "proj_id","branch_id","bom_id","node_id","os_id","prod_id","rfile","state_id","root_version","bom_name_id" )
|
|
|
59 |
|
|
|
60 |
Const enumADMIN_ZONE_PROJECTS = 0
|
|
|
61 |
Const enumADMIN_ZONE_VALIDATION_RULES = 2
|
|
|
62 |
Const enumADMIN_ZONE_ACTION_TRAIL = 4
|
|
|
63 |
aAdminZones = Array( "Projects", "AdminProject_List.asp", _
|
|
|
64 |
"Validation Rules", "CommingSoon.asp", _
|
|
|
65 |
"Action Trail", "CommingSoon.asp" )
|
|
|
66 |
|
|
|
67 |
' ----------------------------------------------------
|
|
|
68 |
%>
|