| 5355 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| BomStates |
|
|
|
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/_explorer_common.asp"-->
|
|
|
17 |
<%
|
|
|
18 |
'------------ ACCESS CONTROL ------------------
|
|
|
19 |
%>
|
|
|
20 |
<!--#include file="_access_control_general.asp"-->
|
|
|
21 |
<%
|
|
|
22 |
'------------ VARIABLE DEFINITION -------------
|
|
|
23 |
Dim rsQry
|
|
|
24 |
Dim StateId, StateTypeEnum
|
|
|
25 |
Dim objFormCollector
|
|
|
26 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
27 |
'------------ VARIABLE INIT -------------------
|
|
|
28 |
parBranch_id = Request("branch_id")
|
|
|
29 |
Set objFormCollector = CreateObject("Scripting.Dictionary")
|
|
|
30 |
'------------ CONDITIONS ----------------------
|
|
|
31 |
'----------------------------------------------
|
|
|
32 |
%>
|
|
|
33 |
<%
|
|
|
34 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
35 |
Sub GetFormDetails ( nBranch_id, ByRef outobjDetails )
|
|
|
36 |
Dim rsQry, query
|
|
|
37 |
OraDatabase.Parameters.Add "BRANCH_ID", nBranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
38 |
|
|
|
39 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("BranchDetails.sql"), ORADYN_DEFAULT )
|
|
|
40 |
|
|
|
41 |
If rsQry.RecordCount > 0 Then
|
|
|
42 |
outobjDetails.Item ("branch_id") = rsQry("branch_id")
|
|
|
43 |
outobjDetails.Item ("branch_name") = rsQry("branch_name").Value
|
|
|
44 |
outobjDetails.Item ("proj_name") = rsQry("proj_name").Value
|
|
|
45 |
|
|
|
46 |
End If
|
|
|
47 |
|
|
|
48 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
|
|
49 |
|
|
|
50 |
rsQry.Close
|
|
|
51 |
Set rsQry = Nothing
|
|
|
52 |
End Sub
|
|
|
53 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
54 |
Sub NewBOMList ( rsQry )
|
|
|
55 |
%>
|
|
|
56 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
|
|
57 |
<tr>
|
|
|
58 |
<td width="1"><img src="images/spacer.gif" width="20" height="1"></td>
|
|
|
59 |
<td width="100%" nowrap class="body_scol">BOM Version</td>
|
|
|
60 |
<td width="1" align="right" nowrap class="body_scol">Arrived</td>
|
|
|
61 |
</tr>
|
|
|
62 |
<tr>
|
|
|
63 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
64 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="165" height="1"></td>
|
|
|
65 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
66 |
</tr>
|
|
|
67 |
<%rsQry.MoveNext%>
|
|
|
68 |
<%If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then%>
|
|
|
69 |
<%
|
|
|
70 |
If (NOT IsNull(rsQry("bom_id"))) Then
|
|
|
71 |
Dim RowColor
|
|
|
72 |
RowColor = NULL
|
|
|
73 |
|
|
|
74 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF) AND (NOT IsNull(rsQry("bom_id"))))
|
|
|
75 |
|
|
|
76 |
If IsNull( RowColor ) Then
|
|
|
77 |
RowColor = "bgcolor='#F5F5F5'"
|
|
|
78 |
Else
|
|
|
79 |
RowColor = NULL
|
|
|
80 |
End If
|
|
|
81 |
%>
|
|
|
82 |
<tr>
|
|
|
83 |
<td <%=RowColor%>><input type="checkbox" name="bom_id_list" value="<%=rsQry("bom_id")%>"></td>
|
|
|
84 |
<td <%=RowColor%> nowrap><a href="Bom_Home.asp?bom_id=<%=rsQry("bom_id")%>" class="menu_link"><%=BomIcon( rsQry("is_readonly"), rsQry("is_rejected") )%><%=rsQry("bom_name").Value &" "& rsQry("bom_version") &"."& rsQry("bom_lifecycle")%></a></td>
|
|
|
85 |
<td <%=RowColor%> align="left" nowrap class="body_txt"> <%=objFormater.FormatDate ( rsQry("date_stamp"), 1 ) %></td>
|
|
|
86 |
</tr>
|
|
|
87 |
|
|
|
88 |
<%
|
|
|
89 |
rsQry.MoveNext
|
|
|
90 |
WEnd
|
|
|
91 |
|
|
|
92 |
End If
|
|
|
93 |
|
|
|
94 |
rsQry.MovePrevious
|
|
|
95 |
%>
|
|
|
96 |
<%Else
|
|
|
97 |
rsQry.MovePrevious
|
|
|
98 |
%>
|
|
|
99 |
<%End If%>
|
|
|
100 |
<tr>
|
|
|
101 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
102 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
103 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
104 |
</tr>
|
|
|
105 |
</table>
|
|
|
106 |
<%
|
|
|
107 |
End Sub
|
|
|
108 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
109 |
Sub NewState ( rsQry )
|
|
|
110 |
%>
|
|
|
111 |
<td valign="top">
|
|
|
112 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
113 |
<tr>
|
|
|
114 |
<td class="body_txt"><b><%=rsQry("state_name").Value%></b></td>
|
|
|
115 |
</tr>
|
|
|
116 |
</table>
|
|
|
117 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
118 |
<form name="FormState<%=StateId%>" method="post" action="<%=SCRIPT_NAME%>">
|
|
|
119 |
<tr>
|
|
|
120 |
<td width="1"><img src="images/spacer.gif" width="10" height="1"></td>
|
|
|
121 |
<td width="1" background="images/bg_bage_2.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
122 |
<td width="100%" valign="top">
|
|
|
123 |
<%
|
|
|
124 |
'-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-
|
|
|
125 |
'objAccessControl.BeginRegion ( "SomeName" )
|
|
|
126 |
%>
|
|
|
127 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
128 |
<tr>
|
|
|
129 |
<td width="1" valign="top"><img src="<%=GetStateImage( StateTypeEnum )%>"></td>
|
|
|
130 |
<!-- OPTIONS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
131 |
<!--#include file="_state_menu_options.asp"-->
|
|
|
132 |
<!-- OPTIONS END ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
133 |
</td>
|
|
|
134 |
</tr>
|
|
|
135 |
</table>
|
|
|
136 |
<%
|
|
|
137 |
'objAccessControl.EndRegion ( "SomeName" )
|
|
|
138 |
'-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-ACCESSMANAGER-
|
|
|
139 |
%>
|
|
|
140 |
<%Call NewBOMList( rsQry )%>
|
|
|
141 |
<a href="StateExplorer.asp?state_id=<%=StateId%>&<%=objPMod.ComposeURL()%>" class="body_linkdb">More...</a>
|
|
|
142 |
</td>
|
|
|
143 |
</tr>
|
|
|
144 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
145 |
<input type="hidden" name="state_id" value="<%=StateId%>">
|
|
|
146 |
<input type="hidden" name="action" value="true">
|
|
|
147 |
</form>
|
|
|
148 |
</table>
|
|
|
149 |
</td>
|
|
|
150 |
<%
|
|
|
151 |
End Sub
|
|
|
152 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
153 |
%>
|
|
|
154 |
<%
|
|
|
155 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
156 |
Call GetFormDetails ( parBranch_id, objFormCollector )
|
|
|
157 |
|
|
|
158 |
If (Request("action") <> "") Then
|
|
|
159 |
'-- Select Action
|
|
|
160 |
Call ActionRedirection ( Request("action") )
|
|
|
161 |
|
|
|
162 |
End If
|
|
|
163 |
'----------------------------------------------
|
|
|
164 |
%>
|
|
|
165 |
<html>
|
|
|
166 |
<head>
|
|
|
167 |
<title>Deployment Manager</title>
|
|
|
168 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
169 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
170 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6663 |
dpurdie |
171 |
<link href="scripts/deployment_manager.css?ver=<%=VixVerNum%>" rel="stylesheet" type="text/css">
|
|
|
172 |
<script language="JavaScript" src="scripts/common.js?ver=<%=VixVerNum%>"></script>
|
| 5355 |
dpurdie |
173 |
</head>
|
|
|
174 |
|
|
|
175 |
<body leftmargin="0" topmargin="0">
|
|
|
176 |
<!-- HEADER ++++++++++++++++ -->
|
|
|
177 |
<!--#include file="_header.asp"-->
|
|
|
178 |
<!-- +++++++++++++++++++++++ -->
|
|
|
179 |
<!-- MAIN MENU + CRUMBS ++++++++++++++++ -->
|
|
|
180 |
<!--#include file="_main_menu.asp"-->
|
|
|
181 |
<!-- +++++++++++++++++++++++++++++++++++++ -->
|
|
|
182 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
183 |
<tr>
|
|
|
184 |
<td width="1%" background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
185 |
<td width="100%" background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
186 |
</tr>
|
|
|
187 |
<tr>
|
|
|
188 |
<td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="17" height="30"></td>
|
|
|
189 |
<td background="images/bg_bage_0.gif">
|
|
|
190 |
<!-- BUTTONS CONTROL +++++++++++++++++++ -->
|
|
|
191 |
<!-- +++++++++++++++++++++++++++++++++++ -->
|
|
|
192 |
</td>
|
|
|
193 |
</tr>
|
|
|
194 |
<tr>
|
|
|
195 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
196 |
<td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
197 |
</tr>
|
|
|
198 |
<tr>
|
|
|
199 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
200 |
<td><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
201 |
</tr>
|
|
|
202 |
<tr>
|
|
|
203 |
<td> </td>
|
|
|
204 |
<td class="body_ttl1">Release Explorer</td>
|
|
|
205 |
</tr>
|
|
|
206 |
<tr>
|
|
|
207 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
208 |
<td><img src="images/spacer.gif" width="1" height="30"><a href="Default.asp?BACK=OK<%=objPMod.ComposeURLWithout("branch_id")%>" class="body_link"><img src="icons/i_caretone.gif" width="11" height="7" hspace="2" border="0"><%=objFormCollector.Item("proj_name")%></a></td>
|
|
|
209 |
</tr>
|
|
|
210 |
</table>
|
|
|
211 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
212 |
<tr>
|
|
|
213 |
<td width="1%"> </td>
|
|
|
214 |
<td width="100%" rowspan="2" valign="top">
|
|
|
215 |
<!-- PAGE DETAILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
216 |
|
|
|
217 |
<!-- STATES ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
218 |
<%If (dbPARproj_id <> enumDB_DEFAULT_EMPTY) AND (dbPARbranch_id <> enumDB_DEFAULT_EMPTY) Then%>
|
|
|
219 |
<table width="10" border="0" cellspacing="0" cellpadding="0">
|
|
|
220 |
<tr>
|
|
|
221 |
<%
|
|
|
222 |
OraDatabase.Parameters.Add "PROJ_ID", dbPARproj_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
223 |
OraDatabase.Parameters.Add "BRANCH_ID", dbPARbranch_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
224 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("BomStatesMain.sql") , ORADYN_DEFAULT )
|
|
|
225 |
Dim tempCnt
|
|
|
226 |
tempCnt = 0
|
|
|
227 |
|
|
|
228 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF) AND (tempCnt < 50))
|
|
|
229 |
StateId = rsQry("state_id")
|
|
|
230 |
StateTypeEnum = rsQry("state_type_enum")
|
|
|
231 |
|
|
|
232 |
Call NewState ( rsQry )
|
|
|
233 |
|
|
|
234 |
rsQry.MoveNext
|
|
|
235 |
tempCnt = tempCnt + 1
|
|
|
236 |
WEnd
|
|
|
237 |
|
|
|
238 |
'Response.write tempCnt
|
|
|
239 |
rsQry.Close
|
|
|
240 |
Set rsQry = Nothing
|
|
|
241 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
242 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
|
|
243 |
%>
|
|
|
244 |
|
|
|
245 |
</tr>
|
|
|
246 |
</table>
|
|
|
247 |
<%End If%>
|
|
|
248 |
<!-- STATES END +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
249 |
<br><br>
|
|
|
250 |
<!-- PAGE DETAILS END ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
251 |
</td>
|
|
|
252 |
</tr>
|
|
|
253 |
<tr>
|
|
|
254 |
<td valign="bottom"><img src="images/ill_bom_location.jpg" width="146" height="300"></td>
|
|
|
255 |
</tr>
|
|
|
256 |
</table>
|
|
|
257 |
|
|
|
258 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
259 |
<tr>
|
|
|
260 |
<td><img src="images/spacer.gif" width="8" height="20"></td>
|
|
|
261 |
</tr>
|
|
|
262 |
</table>
|
|
|
263 |
<!-- FOOTER ++++++++++++++++ -->
|
|
|
264 |
<!--#include file="_footer.asp"-->
|
|
|
265 |
<!-- +++++++++++++++++++++++ -->
|
|
|
266 |
</body>
|
|
|
267 |
</html>
|