| 62 |
rsolanki |
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)"
|
| 64 |
jtweddle |
74 |
ElseIf objAccessControl.IsActive("UK") Then
|
|
|
75 |
Display = "UK STAGE COACH PRODUCTION (SSWProd)"
|
| 62 |
rsolanki |
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>
|