| Line 1... |
Line -... |
| 1 |
<%@LANGUAGE="VBSCRIPT"%>
|
- |
|
| 2 |
<%
|
- |
|
| 3 |
'=====================================================
|
- |
|
| 4 |
'| |
|
- |
|
| 5 |
'| INDEX |
|
- |
|
| 6 |
'| |
|
- |
|
| 7 |
'=====================================================
|
- |
|
| 8 |
%>
|
- |
|
| 9 |
<%
|
- |
|
| 10 |
Option explicit
|
- |
|
| 11 |
Response.Expires = 0
|
- |
|
| 12 |
%>
|
- |
|
| 13 |
<!--#include file="common/globals.asp"-->
|
- |
|
| 14 |
<!--#include file="common/config.asp"-->
|
- |
|
| 15 |
<!--#include file="common/common_subs.asp"-->
|
- |
|
| 16 |
<!--#include file="common/_form_window_common.asp"-->
|
- |
|
| 17 |
<!--#include file="class/classRepeater.asp"-->
|
- |
|
| 18 |
<%
|
- |
|
| 19 |
'------------ VARIABLE DEFINITION -------------
|
- |
|
| 20 |
Dim objRepeater
|
- |
|
| 21 |
'------------ CONSTANTS DECLARATION -----------
|
- |
|
| 22 |
'------------ VARIABLE INIT -------------------
|
- |
|
| 23 |
objAccessControl.objOraSession = OraSession ' Create database link for orasession
|
- |
|
| 24 |
objAccessControl.objOraDatabase = OraDatabase ' Create database link for oradatabase
|
- |
|
| 25 |
Set objRepeater = New Repeater
|
- |
|
| 26 |
'------------ CONDITIONS ----------------------
|
- |
|
| 27 |
'----------------------------------------------
|
- |
|
| 28 |
%>
|
- |
|
| 29 |
<!--#include file="_access_control_general.asp"-->
|
- |
|
| 30 |
<html>
|
- |
|
| 31 |
<head>
|
- |
|
| 32 |
<title>Production Manager</title>
|
- |
|
| 33 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
- |
|
| 34 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
- |
|
| 35 |
<link rel="stylesheet" href="images/production_manager_style.css" type="text/css">
|
- |
|
| 36 |
<script language="JavaScript" src="images/common.js"></script>
|
- |
|
| 37 |
</head>
|
- |
|
| 38 |
<!-- HEADER ++++++++++++++++ -->
|
- |
|
| 39 |
<!--#include file="_header.asp"-->
|
- |
|
| 40 |
<!-- +++++++++++++++++++++++ -->
|
- |
|
| 41 |
<!-- MAIN MENU + CRUMBS ++++++++++++++++ -->
|
- |
|
| 42 |
<!--#include file="_main_menu.asp"-->
|
- |
|
| 43 |
<%
|
- |
|
| 44 |
Dim rsQry
|
- |
|
| 45 |
|
- |
|
| 46 |
'Set fs = Server.CreateObject("Scripting.FileSystemObject")
|
- |
|
| 47 |
'Set rootFolders = fs.GetFolder("E:\wwwTRD\manager_suite_DEVELOPMENT\production_manager\XMLBOMS\")
|
- |
|
| 48 |
'Set subFolders = rootFolders.subFolders
|
- |
|
| 49 |
'Response.Write(objAccessControl.UserId)
|
- |
|
| 50 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
- |
|
| 51 |
objFormComponent.FormName = "FormName"
|
- |
|
| 52 |
objFormComponent.Action = ScriptName
|
- |
|
| 53 |
Call objFormComponent.FormStart()
|
- |
|
| 54 |
%>
|
- |
|
| 55 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
- |
|
| 56 |
<tr>
|
- |
|
| 57 |
<td width="30%" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2">
|
- |
|
| 58 |
<tr>
|
- |
|
| 59 |
<td align="center" nowrap background="images/bg_table_col.gif" class="body_col"> Production BOM</td>
|
- |
|
| 60 |
</tr>
|
- |
|
| 61 |
</table></td>
|
- |
|
| 62 |
|
- |
|
| 63 |
</tr>
|
- |
|
| 64 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
- |
|
| 65 |
<%
|
- |
|
| 66 |
Dim Display
|
- |
|
| 67 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ProductionBrowser.sql") , ORADYN_DEFAULT )
|
- |
|
| 68 |
If objAccessControl.IsActive("GMPTE") Then
|
- |
|
| 69 |
Display = "GMPTE/PCL (GMP)"
|
- |
|
| 70 |
ElseIf objAccessControl.IsActive("Vasttrafik") Then
|
- |
|
| 71 |
Display = "VÄSTTRAFIK PRODUCTION (VTProd)"
|
- |
|
| 72 |
ElseIf objAccessControl.IsActive("SanFrancisco") Then
|
- |
|
| 73 |
Display = "SAN FRANCISCO PRODUCTION (SFOProd)"
|
- |
|
| 74 |
ElseIf objAccessControl.IsActive("UK") Then
|
- |
|
| 75 |
Display = "UK STAGE COACH PRODUCTION (SSWProd)"
|
- |
|
| 76 |
End If
|
- |
|
| 77 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
- |
|
| 78 |
If rsQry("proj_name") = Display Then
|
- |
|
| 79 |
%>
|
- |
|
| 80 |
<tr>
|
- |
|
| 81 |
<td bgcolor='#FFFFFF' class='body_row' align="center" valign='top'><img src='icons/i_world.gif' hspace='5' align='absmiddle'><a href=bom_home.asp?bom_id=<%=rsQry("bom_id")%>><%=rsQry("bom_name")%></a></td>
|
- |
|
| 82 |
</tr>
|
- |
|
| 83 |
<tr>
|
- |
|
| 84 |
<td colspan="2" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
- |
|
| 85 |
</tr>
|
- |
|
| 86 |
<%
|
- |
|
| 87 |
End If
|
- |
|
| 88 |
rsQry.MoveNext()
|
- |
|
| 89 |
|
- |
|
| 90 |
Wend
|
- |
|
| 91 |
|
- |
|
| 92 |
rsQry.Close()
|
- |
|
| 93 |
Set rsQry = nothing
|
- |
|
| 94 |
%>
|
- |
|
| 95 |
|
- |
|
| 96 |
|
- |
|
| 97 |
|
- |
|
| 98 |
|
- |
|
| 99 |
|
- |
|
| 100 |
|
- |
|
| 101 |
</table>
|
- |
|
| 102 |
<!--#include file="common/globals_destructor.asp"-->
|
- |
|
| 103 |
|
- |
|
| 104 |
|
- |
|
| 105 |
</html>
|
- |
|
| 106 |
|
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
| - |
|
2 |
<%
|
| - |
|
3 |
'=====================================================
|
| - |
|
4 |
'| |
|
| - |
|
5 |
'| INDEX |
|
| - |
|
6 |
'| |
|
| - |
|
7 |
'=====================================================
|
| - |
|
8 |
%>
|
| - |
|
9 |
<%
|
| - |
|
10 |
Option explicit
|
| - |
|
11 |
Response.Expires = 0
|
| - |
|
12 |
%>
|
| - |
|
13 |
<!--#include file="common/globals.asp"-->
|
| - |
|
14 |
<!--#include file="common/config.asp"-->
|
| - |
|
15 |
<!--#include file="common/common_subs.asp"-->
|
| - |
|
16 |
<!--#include file="common/_form_window_common.asp"-->
|
| - |
|
17 |
<!--#include file="class/classRepeater.asp"-->
|
| - |
|
18 |
<%
|
| - |
|
19 |
'------------ VARIABLE DEFINITION -------------
|
| - |
|
20 |
Dim objRepeater
|
| - |
|
21 |
'------------ CONSTANTS DECLARATION -----------
|
| - |
|
22 |
'------------ VARIABLE INIT -------------------
|
| - |
|
23 |
objAccessControl.objOraSession = OraSession ' Create database link for orasession
|
| - |
|
24 |
objAccessControl.objOraDatabase = OraDatabase ' Create database link for oradatabase
|
| - |
|
25 |
Set objRepeater = New Repeater
|
| - |
|
26 |
'------------ CONDITIONS ----------------------
|
| - |
|
27 |
'----------------------------------------------
|
| - |
|
28 |
%>
|
| - |
|
29 |
<!--#include file="_access_control_general.asp"-->
|
| - |
|
30 |
<html>
|
| - |
|
31 |
<head>
|
| - |
|
32 |
<title>Production Manager</title>
|
| - |
|
33 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
| - |
|
34 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
| - |
|
35 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| - |
|
36 |
<link rel="stylesheet" href="images/production_manager_style.css" type="text/css">
|
| - |
|
37 |
<script language="JavaScript" src="images/common.js"></script>
|
| - |
|
38 |
</head>
|
| - |
|
39 |
<!-- HEADER ++++++++++++++++ -->
|
| - |
|
40 |
<!--#include file="_header.asp"-->
|
| - |
|
41 |
<!-- +++++++++++++++++++++++ -->
|
| - |
|
42 |
<!-- MAIN MENU + CRUMBS ++++++++++++++++ -->
|
| - |
|
43 |
<!--#include file="_main_menu.asp"-->
|
| - |
|
44 |
<%
|
| - |
|
45 |
Dim rsQry
|
| - |
|
46 |
|
| - |
|
47 |
'Set fs = Server.CreateObject("Scripting.FileSystemObject")
|
| - |
|
48 |
'Set rootFolders = fs.GetFolder("E:\wwwTRD\manager_suite_DEVELOPMENT\production_manager\XMLBOMS\")
|
| - |
|
49 |
'Set subFolders = rootFolders.subFolders
|
| - |
|
50 |
'Response.Write(objAccessControl.UserId)
|
| - |
|
51 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
| - |
|
52 |
objFormComponent.FormName = "FormName"
|
| - |
|
53 |
objFormComponent.Action = ScriptName
|
| - |
|
54 |
Call objFormComponent.FormStart()
|
| - |
|
55 |
%>
|
| - |
|
56 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
| - |
|
57 |
<tr>
|
| - |
|
58 |
<td width="30%" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| - |
|
59 |
<tr>
|
| - |
|
60 |
<td align="center" nowrap background="images/bg_table_col.gif" class="body_col"> Production BOM</td>
|
| - |
|
61 |
</tr>
|
| - |
|
62 |
</table></td>
|
| - |
|
63 |
|
| - |
|
64 |
</tr>
|
| - |
|
65 |
<table width="100%" border="0" cellspacing="3" cellpadding="0">
|
| - |
|
66 |
<%
|
| - |
|
67 |
Dim Display
|
| - |
|
68 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ProductionBrowser.sql") , ORADYN_DEFAULT )
|
| - |
|
69 |
If objAccessControl.IsActive("GMPTE") Then
|
| - |
|
70 |
Display = "GMPTE/PCL (GMP)"
|
| - |
|
71 |
ElseIf objAccessControl.IsActive("Vasttrafik") Then
|
| - |
|
72 |
Display = "VÄSTTRAFIK PRODUCTION (VTProd)"
|
| - |
|
73 |
ElseIf objAccessControl.IsActive("SanFrancisco") Then
|
| - |
|
74 |
Display = "SAN FRANCISCO PRODUCTION (SFOProd)"
|
| - |
|
75 |
ElseIf objAccessControl.IsActive("UK") Then
|
| - |
|
76 |
Display = "UK STAGE COACH PRODUCTION (SSWProd)"
|
| - |
|
77 |
End If
|
| - |
|
78 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
| - |
|
79 |
If rsQry("proj_name") = Display Then
|
| - |
|
80 |
%>
|
| - |
|
81 |
<tr>
|
| - |
|
82 |
<td bgcolor='#FFFFFF' class='body_row' align="center" valign='top'><img src='icons/i_world.gif' hspace='5' align='absmiddle'><a href=bom_home.asp?bom_id=<%=rsQry("bom_id")%>><%=rsQry("bom_name")%></a></td>
|
| - |
|
83 |
</tr>
|
| - |
|
84 |
<tr>
|
| - |
|
85 |
<td colspan="2" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
86 |
</tr>
|
| - |
|
87 |
<%
|
| - |
|
88 |
End If
|
| - |
|
89 |
rsQry.MoveNext()
|
| - |
|
90 |
|
| - |
|
91 |
Wend
|
| - |
|
92 |
|
| - |
|
93 |
rsQry.Close()
|
| - |
|
94 |
Set rsQry = nothing
|
| - |
|
95 |
%>
|
| - |
|
96 |
|
| - |
|
97 |
</table>
|
| - |
|
98 |
</body>
|
| - |
|
99 |
<!-- FOOTER ++++++++++++++++ -->
|
| - |
|
100 |
<!--#include file="_footer.asp"-->
|
| - |
|
101 |
<!-- +++++++++++++++++++++++ -->
|
| - |
|
102 |
</html>
|
| - |
|
103 |
<!--#include file="common/globals_destructor.asp"-->
|
| - |
|
104 |
|