Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
64 jtweddle 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
Dim DB_PROJ_ID
32
' -- INITIALISATION ----------------------------------
33
isPopupWindow = FALSE
34
 
35
Set objAccessControl = New AccessControl
36
Set objPMod = New PersistanceModule
37
Set objEH = New ExceptionHandler
38
Set oEnumStateTypeNames = CreateObject("Scripting.Dictionary")
39
 
40
Const enumDB_STATE_TYPE_BOM_CREATOR = 1				' Used in [STATES] table
41
Const enumDB_STATE_TYPE_BOM_LOCAL_TESTER = 2		' Used in [STATES] table
42
Const enumDB_STATE_TYPE_BOM_EXTERNAL_TESTER = 3		' Used in [STATES] table
43
oEnumStateTypeNames.Add (CStr(enumDB_STATE_TYPE_BOM_CREATOR)), "BOM CREATORS"
44
oEnumStateTypeNames.Add (CStr(enumDB_STATE_TYPE_BOM_LOCAL_TESTER)), "INTERNAL TESTERS"
45
oEnumStateTypeNames.Add (CStr(enumDB_STATE_TYPE_BOM_EXTERNAL_TESTER)), "EXTERNAL TESTERS"
46
 
47
TIMER_VALUE = DateDiff("N", "1/1/1900 00:00:00 AM", Now )	' Find number of minutes since some very old point in time
48
 
49
Const enumPAR_PROJ_ID 	= 0
50
Const enumPAR_BRANCH_ID = 1
51
Const enumPAR_BOM_ID 	= 2
52
Const enumPAR_NODE_ID 	= 3
53
Const enumPAR_OS_ID 	= 4
54
Const enumPAR_PROD_ID 	= 5
55
Const enumPAR_RFILE 	= 6
56
Const enumPAR_STATE_ID 	= 7
57
Const enumPAR_ROOT_VERSION 	= 8
58
Const enumPAR_BOM_NAME_ID 	= 9
59
aPersistList = Array( "proj_id","branch_id","bom_id","node_id","os_id","prod_id","rfile","state_id","root_version","bom_name_id" )
60
 
61
Const enumADMIN_ZONE_PROJECTS = 0
62
Const enumADMIN_ZONE_VALIDATION_RULES = 2
63
Const enumADMIN_ZONE_ACTION_TRAIL = 4
64
aAdminZones = Array( "Projects", "AdminProject_List.asp", _
65
					 "Validation Rules", "CommingSoon.asp", _
66
					 "Action Trail", "CommingSoon.asp" )
67
 
68
Call GetCurrentParameters( DB_PROJ_ID, -1, -1 )	' These parameters are used 
69
' ----------------------------------------------------
70
%>