| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| RTREE |
|
|
|
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="common/_rtree_common.asp"-->
|
|
|
20 |
<%
|
|
|
21 |
' Make sure rtag_id is always present
|
|
|
22 |
If Request("proj_id") = "" Then
|
|
|
23 |
Response.Redirect("index.asp")
|
|
|
24 |
End If
|
|
|
25 |
'------------ ACCESS CONTROL ------------------
|
|
|
26 |
%>
|
|
|
27 |
<!--#include file="_access_control_general.asp"-->
|
|
|
28 |
<%
|
|
|
29 |
'------------ Variable Definition -------------
|
|
|
30 |
Dim objSortHelper
|
|
|
31 |
Dim ViewType
|
|
|
32 |
Dim rsQry
|
|
|
33 |
Dim parProjId
|
|
|
34 |
Dim nProjTreeVersion
|
|
|
35 |
Dim objBtnControl
|
|
|
36 |
Dim currLevel, lastLevel, lastRow, aVersions, i
|
|
|
37 |
'------------ Constants Declaration -----------
|
|
|
38 |
'Const LIMG_TREE_I_HALF = "<img src='images/spacer.gif' width='5' height='1'><img src='icons/tree_i_half.gif' align='absmiddle'>"
|
|
|
39 |
'Const LIMG_TREE_I_FULL = "<img src='images/spacer.gif' width='5' height='1'><img src='icons/tree_i.gif' align='absmiddle'>"
|
|
|
40 |
'Const LIMG_TREE_T = "<img src='images/spacer.gif' width='5' height='1'><img src='icons/tree_t.gif' align='absmiddle'>"
|
|
|
41 |
Const LIMG_TREE_I_HALF = "<img src='images/spacer.gif' width='20' height='1'>"
|
|
|
42 |
Const LIMG_TREE_I_FULL = "<img src='images/dot1.gif' width='30' height='15'>"
|
|
|
43 |
Const LIMG_TREE_T = "<img src='images/dot1.gif' width='30' height='15'>"
|
|
|
44 |
Const LIMG_LIST_VIEW = "<img src='images/abtn_list_view.gif' border='0' align=absmiddle' name='imgviewtype' usemap='#mapviewtype' id='imgviewtype'>"
|
|
|
45 |
Const LIMG_TREE_VIEW = "<img src='images/abtn_tree_view.gif' border='0' align=absmiddle' name='imgviewtype' usemap='#mapviewtype' id='imgviewtype'>"
|
|
|
46 |
Const LCONST_LIST_VIEW = 1
|
|
|
47 |
Const LCONST_TREE_VIEW = 2
|
|
|
48 |
'------------ Variable Init -------------------
|
|
|
49 |
parProjId = Request("proj_id")
|
|
|
50 |
nProjTreeVersion = GetProjTreeVersion( parProjId )
|
|
|
51 |
Set objBtnControl = New ActionButtonControl
|
|
|
52 |
objPMod.PersistInQryString("proj_id")
|
|
|
53 |
'----------------------------------------------
|
|
|
54 |
%>
|
|
|
55 |
<%
|
|
|
56 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
57 |
Function GetProjTreeVersion ( nProjId )
|
|
|
58 |
Dim rsTemp, QueryString
|
|
|
59 |
|
|
|
60 |
QueryString = _
|
|
|
61 |
" SELECT rt.RTAG_VERSION "&_
|
|
|
62 |
" FROM RELEASE_TAGS rt "&_
|
|
|
63 |
" WHERE rt.PROJ_ID = :PROJ_ID "&_
|
|
|
64 |
" AND rt.RTAG_ID = rt.PARENT_RTAG_ID"
|
|
|
65 |
|
|
|
66 |
OraDatabase.Parameters.Add "PROJ_ID", nProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
67 |
|
|
|
68 |
Set rsTemp = OraDatabase.DbCreateDynaset( QueryString, cint(0))
|
|
|
69 |
|
|
|
70 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
|
|
75 |
GetProjTreeVersion = rsTemp("rtag_version")
|
|
|
76 |
Else
|
|
|
77 |
GetProjTreeVersion = NULL
|
|
|
78 |
End If
|
|
|
79 |
|
|
|
80 |
rsTemp.Close
|
|
|
81 |
Set rsTemp = nothing
|
|
|
82 |
End Function
|
|
|
83 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
84 |
Sub RenderRowConnectors ( nLastLevel, nCurrLevel )
|
|
|
85 |
Dim i, LastLine
|
|
|
86 |
|
|
|
87 |
'-- Initial Draw --
|
|
|
88 |
If nLastLevel = 0 Then
|
|
|
89 |
nLastLevel = nCurrLevel
|
|
|
90 |
Exit Sub
|
|
|
91 |
End If
|
|
|
92 |
|
|
|
93 |
'-- Calculate number of half lines rendered
|
|
|
94 |
If nLastLevel < nCurrLevel Then
|
|
|
95 |
LastLine = nLastLevel
|
|
|
96 |
Else
|
|
|
97 |
LastLine = nCurrLevel
|
|
|
98 |
End If
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
'-- Render half lines
|
|
|
102 |
For i = 1 To LastLine
|
|
|
103 |
Response.write LIMG_TREE_I_HALF
|
|
|
104 |
Next
|
|
|
105 |
|
|
|
106 |
End Sub
|
|
|
107 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
108 |
Sub RenderIndent ( nLastLevel, nCurrLevel )
|
|
|
109 |
Dim i
|
|
|
110 |
|
|
|
111 |
If nCurrLevel <= 1 Then Exit Sub
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
'-- Render half lines
|
|
|
115 |
If nCurrLevel > 2 Then
|
|
|
116 |
For i = 1 To nCurrLevel - 2
|
|
|
117 |
Response.write LIMG_TREE_I_FULL
|
|
|
118 |
Next
|
|
|
119 |
End If
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
'-- Render branch or line
|
|
|
123 |
If nLastLevel < nCurrLevel Then
|
|
|
124 |
Response.write LIMG_TREE_T
|
|
|
125 |
Else
|
|
|
126 |
Response.write LIMG_TREE_I_FULL
|
|
|
127 |
End If
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
End Sub
|
|
|
133 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
134 |
Function GetLevel ( sRtagVersion )
|
|
|
135 |
Dim tempArr
|
|
|
136 |
|
|
|
137 |
If InStr( sRtagVersion, "." ) > 0 Then
|
|
|
138 |
'-- Dot separator found --
|
|
|
139 |
|
|
|
140 |
'-- Split version --
|
|
|
141 |
tempArr = Split( sRtagVersion, "." )
|
|
|
142 |
|
|
|
143 |
GetLevel = UBound( tempArr ) + 1
|
|
|
144 |
|
|
|
145 |
Else
|
|
|
146 |
GetLevel = 1
|
|
|
147 |
|
|
|
148 |
End If
|
|
|
149 |
|
|
|
150 |
End Function
|
|
|
151 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
152 |
Sub NewRelease ()
|
|
|
153 |
On Error Resume Next
|
|
|
154 |
|
|
|
155 |
objEH.Try
|
|
|
156 |
If NOT IsNumeric(Request("rtag_id_list")) Then
|
|
|
157 |
Err.Raise 8, "Please select one release only.", "No further details available."
|
|
|
158 |
|
|
|
159 |
Else
|
|
|
160 |
Call OpenInWindow ( "new_release.asp?rtag_id_list="& Replace( Request("rtag_id_list"), " ","" ) &"&"& objPMod.ComposeURL() )
|
|
|
161 |
|
|
|
162 |
End If
|
|
|
163 |
|
|
|
164 |
objEH.Catch
|
|
|
165 |
|
|
|
166 |
End Sub
|
|
|
167 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
168 |
Sub DestroyRelease ()
|
|
|
169 |
On Error Resume Next
|
|
|
170 |
|
|
|
171 |
objEH.Try
|
|
|
172 |
If NOT IsNumeric(Request("rtag_id_list")) Then
|
|
|
173 |
Err.Raise 8, "Please select one release only.", "No further details available."
|
|
|
174 |
|
|
|
175 |
Else
|
|
|
176 |
If Request("rtag_id_list") = "" Then
|
|
|
177 |
Err.Raise 8, "Please select one release.", "No further details available."
|
|
|
178 |
Else
|
|
|
179 |
Call OpenInWindow ( "_destroy_release.asp?rtag_id_list="& Replace( Request("rtag_id_list"), " ","" ) &"&"& objPMod.ComposeURL() )
|
|
|
180 |
End If
|
|
|
181 |
|
|
|
182 |
End If
|
|
|
183 |
|
|
|
184 |
objEH.Catch
|
|
|
185 |
|
|
|
186 |
End Sub
|
|
|
187 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
188 |
Sub EditRelease ()
|
|
|
189 |
On Error Resume Next
|
|
|
190 |
|
|
|
191 |
objEH.Try
|
|
|
192 |
If NOT IsNumeric(Request("rtag_id_list")) Then
|
|
|
193 |
Err.Raise 8, "Please select one release only.", "No further details available."
|
|
|
194 |
|
|
|
195 |
Else
|
|
|
196 |
If Request("rtag_id_list") = "" Then
|
|
|
197 |
Err.Raise 8, "Please select one release.", "No further details available."
|
|
|
198 |
Else
|
|
|
199 |
Call OpenInWindow ( "form_edit_release.asp?rtag_id_list="& Replace( Request("rtag_id_list"), " ","" ) &"&"& objPMod.ComposeURL() )
|
|
|
200 |
End If
|
|
|
201 |
|
|
|
202 |
End If
|
|
|
203 |
|
|
|
204 |
objEH.Catch
|
|
|
205 |
|
|
|
206 |
End Sub
|
|
|
207 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
208 |
Sub MoveRelease ()
|
|
|
209 |
On Error Resume Next
|
|
|
210 |
|
|
|
211 |
objEH.Try
|
|
|
212 |
If NOT IsNumeric(Request("rtag_id_list")) Then
|
|
|
213 |
Err.Raise 8, "Please select one release only.", "No further details available."
|
|
|
214 |
|
|
|
215 |
Else
|
|
|
216 |
If Request("rtag_id_list") = "" Then
|
|
|
217 |
Err.Raise 8, "Please select one release.", "No further details available."
|
|
|
218 |
Else
|
|
|
219 |
Call OpenInWindow ( "form_move_release.asp?rtag_id_list="& Replace( Request("rtag_id_list"), " ","" ) &"&"& objPMod.ComposeURL() )
|
|
|
220 |
End If
|
|
|
221 |
|
|
|
222 |
End If
|
|
|
223 |
|
|
|
224 |
objEH.Catch
|
|
|
225 |
|
|
|
226 |
End Sub
|
|
|
227 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
228 |
Sub MergeManager ()
|
|
|
229 |
Dim aReleases
|
|
|
230 |
On Error Resume Next
|
|
|
231 |
|
|
|
232 |
objEH.Try
|
|
|
233 |
|
|
|
234 |
If Request("rtag_id_list") <> "" Then
|
|
|
235 |
aReleases = Split ( Replace( Request("rtag_id_list"), " ", ""), "," )
|
|
|
236 |
|
|
|
237 |
If UBound(aReleases) = 0 Then
|
|
|
238 |
' Open Merge Manager
|
|
|
239 |
Call OpenInWindow ( "diff.asp?rtagA="& aReleases(0) )
|
|
|
240 |
|
|
|
241 |
|
|
|
242 |
ElseIf UBound(aReleases) = 1 Then
|
|
|
243 |
' Open Merge Manager
|
|
|
244 |
Call OpenInWindow ( "diff.asp?rtagA="& aReleases(0) &"&rtagB="& aReleases(1) )
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
Else
|
|
|
248 |
Err.Raise 8, "Please select maximum two release.", "No further details available."
|
|
|
249 |
|
|
|
250 |
End If
|
|
|
251 |
|
|
|
252 |
Else
|
|
|
253 |
' Open Merge Manager without parameters
|
|
|
254 |
Call OpenInWindow ( "diff.asp" )
|
|
|
255 |
|
|
|
256 |
End If
|
|
|
257 |
|
|
|
258 |
objEH.Catch
|
|
|
259 |
|
|
|
260 |
End Sub
|
|
|
261 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
262 |
Function GetViewType ()
|
|
|
263 |
Dim CookieViewType
|
|
|
264 |
|
|
|
265 |
CookieViewType = Request.Cookies (COOKIE_RELEASE_MANAGER_MEMORY)("RELEASE_VIEW")
|
|
|
266 |
|
|
|
267 |
If CookieViewType <> "" Then
|
|
|
268 |
' Get current view type from cookie
|
|
|
269 |
GetViewType = CInt(CookieViewType)
|
|
|
270 |
|
|
|
271 |
Else
|
|
|
272 |
' Set current view to list view
|
|
|
273 |
Response.Cookies (COOKIE_RELEASE_MANAGER_MEMORY)("RELEASE_VIEW") = LCONST_LIST_VIEW
|
|
|
274 |
GetViewType = LCONST_LIST_VIEW
|
|
|
275 |
|
|
|
276 |
End If
|
|
|
277 |
|
|
|
278 |
End Function
|
|
|
279 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
280 |
Sub SetViewType ()
|
|
|
281 |
|
|
|
282 |
If Request("viewtype") = "" Then Exit Sub ' Nothing to do
|
|
|
283 |
|
|
|
284 |
Response.Cookies (COOKIE_RELEASE_MANAGER_MEMORY)("RELEASE_VIEW") = Request("viewtype")
|
|
|
285 |
|
|
|
286 |
End Sub
|
|
|
287 |
'----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
288 |
%>
|
|
|
289 |
<%
|
|
|
290 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
291 |
If (Request("action") <> "") Then
|
|
|
292 |
'-- Select Action
|
|
|
293 |
|
|
|
294 |
Select Case Request("action")
|
|
|
295 |
Case "btnNewRelease"
|
|
|
296 |
Call NewRelease()
|
|
|
297 |
|
|
|
298 |
Case "btnDestroyRelease"
|
|
|
299 |
Call DestroyRelease()
|
|
|
300 |
|
|
|
301 |
Case "btnEditRelease"
|
|
|
302 |
Call EditRelease()
|
|
|
303 |
|
|
|
304 |
Case "btnMoveRelease"
|
|
|
305 |
Call MoveRelease()
|
|
|
306 |
|
|
|
307 |
Case "btnMergeManager"
|
|
|
308 |
Call MergeManager()
|
|
|
309 |
|
|
|
310 |
Case "btnAdminView"
|
|
|
311 |
Call OpenInWindow ( "form_edit_project_view.asp?proj_id="&Request("proj_id"))
|
|
|
312 |
|
|
|
313 |
End Select
|
|
|
314 |
|
|
|
315 |
End If
|
|
|
316 |
|
|
|
317 |
' Set view type if required
|
|
|
318 |
Call SetViewType ()
|
|
|
319 |
|
|
|
320 |
' Get current view type
|
|
|
321 |
ViewType = GetViewType()
|
|
|
322 |
'----------------------------------------------
|
|
|
323 |
%>
|
|
|
324 |
|
|
|
325 |
<html>
|
|
|
326 |
<head>
|
|
|
327 |
<%
|
|
|
328 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT PROJ_NAME FROM PROJECTS WHERE PROJ_ID="& Request("proj_id"), ORADYN_DEFAULT )
|
|
|
329 |
%>
|
|
|
330 |
<title><%=rsQry("proj_name")%></title>
|
|
|
331 |
<%
|
|
|
332 |
rsQry.Close
|
|
|
333 |
Set rsQry = Nothing
|
|
|
334 |
%>
|
|
|
335 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
336 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
337 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
338 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
339 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
340 |
|
|
|
341 |
<!-- DROPDOWN MENUS -->
|
|
|
342 |
<!--#include file="_menu_def.asp"-->
|
|
|
343 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
344 |
|
|
|
345 |
</head>
|
|
|
346 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
|
|
|
347 |
<!-- MENU LAYERS -------------------------------------->
|
|
|
348 |
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
|
|
|
349 |
</div>
|
|
|
350 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
351 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
352 |
<!----------------------------------------------------->
|
|
|
353 |
<!-- HEADER -->
|
|
|
354 |
<!--#include file="_header.asp"-->
|
|
|
355 |
<!-- BODY ---->
|
|
|
356 |
|
|
|
357 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
358 |
<tr>
|
|
|
359 |
<td width="1" background="images/bg_home_orange.gif" valign="top">
|
|
|
360 |
</td>
|
|
|
361 |
<td rowspan="2" valign="top" width="100%">
|
|
|
362 |
|
|
|
363 |
<!-- ACTION BUTTONS ---------------------------------------------->
|
|
|
364 |
<table width="100%" border="0" cellspacing="0" cellpadding="7">
|
|
|
365 |
<tr>
|
|
|
366 |
<td width="1" bgcolor="#DAD7C8">
|
|
|
367 |
<%
|
|
|
368 |
If ViewType = LCONST_TREE_VIEW Then
|
|
|
369 |
Response.write LIMG_TREE_VIEW
|
|
|
370 |
Else
|
|
|
371 |
Response.write LIMG_LIST_VIEW
|
|
|
372 |
End If
|
|
|
373 |
|
|
|
374 |
%>
|
|
|
375 |
</td>
|
|
|
376 |
<td width="100%" bgcolor="#DAD7C8">
|
|
|
377 |
<%
|
|
|
378 |
Dim aBtnsDef
|
|
|
379 |
' Define action buttons
|
|
|
380 |
aBtnsDef = Array("btnNewRelease", "btnEditRelease", "btnMoveRelease", "width=20", "btnDestroyRelease", "width=20", "btnMergeManager", "width=20", "btnAdminView")
|
|
|
381 |
|
|
|
382 |
' Load action buttons from database
|
|
|
383 |
Call objBtnControl.LoadActionButtons ( aBtnsDef, OraDatabase )
|
|
|
384 |
|
|
|
385 |
' Set spacing to minimum between buttons
|
|
|
386 |
objBtnControl.ButtonSpacer = 0
|
|
|
387 |
objBtnControl.ImageHspace = 2
|
|
|
388 |
|
|
|
389 |
' Access Control
|
|
|
390 |
If NOT objAccessControl.IsActive("CreateNewRelease") Then Call objBtnControl.Active ( "btnNewRelease", "N" )
|
|
|
391 |
If NOT objAccessControl.IsActive("CreateNewRelease") Then Call objBtnControl.Active ( "btnEditRelease", "N" )
|
|
|
392 |
If NOT objAccessControl.IsActive("DestroyRelease") Then Call objBtnControl.Active ( "btnDestroyRelease", "N" )
|
|
|
393 |
If NOT objAccessControl.IsActive("CreateNewRelease") Then Call objBtnControl.Active ( "btnMoveRelease", "N" )
|
|
|
394 |
|
|
|
395 |
' -- Render Buttons
|
|
|
396 |
Call objBtnControl.Render ( aBtnsDef, objAccessControl )
|
|
|
397 |
%>
|
|
|
398 |
</td>
|
|
|
399 |
</tr>
|
|
|
400 |
</table>
|
|
|
401 |
<!-- ACTION BUTTONS END ------------------------------------------>
|
|
|
402 |
|
|
|
403 |
<table width="100%" border="0" cellspacing="10" cellpadding="0">
|
|
|
404 |
<form name="FormName" method="post" action="<%=ScriptName%>">
|
|
|
405 |
<tr>
|
|
|
406 |
<td>
|
|
|
407 |
|
|
|
408 |
<!-- TREE VIEW ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
409 |
<%If ViewType = LCONST_TREE_VIEW Then%>
|
|
|
410 |
|
|
|
411 |
<table width="100%" border="0" cellspacing="1" cellpadding="1">
|
|
|
412 |
<tr>
|
|
|
413 |
|
|
|
414 |
|
|
|
415 |
<td width="40%" bgcolor="#E4E9EC" class="body_txt">Release Name </td>
|
|
|
416 |
|
|
|
417 |
<%If parProjId <> 2 Then %>
|
|
|
418 |
<td width="15%" bgcolor="#E4E9EC" class="body_txt">Associated MASS_REF </td>
|
|
|
419 |
<td width="45%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
|
|
420 |
<%Else%>
|
|
|
421 |
<td width="30%" bgcolor="#E4E9EC" class="body_txt">Used By </td>
|
|
|
422 |
<td width="30%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
|
|
423 |
<%End If%>
|
|
|
424 |
|
|
|
425 |
</tr>
|
|
|
426 |
|
|
|
427 |
|
|
|
428 |
|
|
|
429 |
<%
|
|
|
430 |
'OraDatabase.Parameters.Add "TREE_VERSION", nProjTreeVersion, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
431 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
432 |
|
|
|
433 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseVersionTree.sql") , ORADYN_DEFAULT )
|
|
|
434 |
lastLevel = 0
|
|
|
435 |
|
|
|
436 |
'OraDatabase.Parameters.Remove "TREE_VERSION"
|
|
|
437 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
438 |
|
|
|
439 |
Dim lastRtagId, parentRtag_id
|
|
|
440 |
|
|
|
441 |
If rsQry.RecordCount > 0 Then
|
|
|
442 |
|
|
|
443 |
'aVersions = rsQry.GetRows()
|
|
|
444 |
'lastRow = UBound( aVersions, 2 )
|
|
|
445 |
|
|
|
446 |
'Set objSortHelper = New SortHelper
|
|
|
447 |
|
|
|
448 |
' Sort versions
|
|
|
449 |
'Call objSortHelper.VersionSort( aVersions, 0, lastRow, rsQry.FieldIndex("version") )
|
|
|
450 |
|
|
|
451 |
|
|
|
452 |
|
|
|
453 |
'For i = 0 To lastRow ' Ascending order
|
|
|
454 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
455 |
|
|
|
456 |
'currLevel = GetLevel ( aVersions( rsQry.FieldIndex("rtag_version"), i ) )
|
|
|
457 |
currLevel = CInt(rsQry("hierarchy"))
|
|
|
458 |
'lastLevel = currLevel - 1
|
|
|
459 |
%>
|
|
|
460 |
|
|
|
461 |
|
|
|
462 |
<tr>
|
|
|
463 |
<td bgcolor="#F5F5F5" class="body_rowg"><%Call RenderIndent( lastLevel, currLevel )%><input type="checkbox" name="rtag_id_list" value="<%=rsQry("rtag_id")%>" style="vertical-align:middle;">
|
|
|
464 |
<%If rsQry("official") <> "A" Then%><a href="dependencies.asp?rtag_id=<%=rsQry("rtag_id")%>" class="body_link" title="<%=HTMLEncode( rsQry("description") ) %>" ><%End If%><%=ReleaseIcon( rsQry("official") )%> <%=rsQry("rtag_name")%></a>
|
|
|
465 |
|
|
|
466 |
<%
|
|
|
467 |
If parProjId <> 2 Then
|
|
|
468 |
Dim assocMASSREF, rsQryAssoc, assocMASSREFName, link
|
|
|
469 |
assocMASSREF = rsQry("assoc_mass_ref")
|
|
|
470 |
If assocMASSREF <> "" Then
|
|
|
471 |
Set rsQryAssoc = OraDatabase.DbCreateDynaset("SELECT RTAG_NAME, RTAG_ID FROM RELEASE_TAGS WHERE RTAG_ID="&assocMASSREF , ORADYN_DEFAULT)
|
|
|
472 |
assocMASSREFName = rsQryAssoc("RTAG_NAME")
|
|
|
473 |
link = "dependencies.asp?rtag_id="&rsQryAssoc("rtag_id")
|
|
|
474 |
rsQryAssoc.Close
|
|
|
475 |
Set rsQryAssoc = Nothing
|
|
|
476 |
Else
|
|
|
477 |
assocMASSREFName = "None."
|
|
|
478 |
End If
|
|
|
479 |
End If%>
|
|
|
480 |
<%If parProjId <> 2 Then%>
|
|
|
481 |
<%If assocMASSREFName <> "None." Then%>
|
|
|
482 |
<td bgcolor="#F5F5F5" class="body_rowg"><a href=<%=link%>><%=assocMASSREFName%></a></td>
|
|
|
483 |
<%Else%>
|
|
|
484 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=assocMASSREFName%></td>
|
|
|
485 |
<%End If%>
|
|
|
486 |
<%Else
|
|
|
487 |
Dim UsedBy, rsQryUse, comment, linkB
|
|
|
488 |
UsedBy = rsQry("rtag_id")
|
|
|
489 |
If UsedBy <> "" Then
|
|
|
490 |
Set rsQryUse = OraDatabase.DbCreateDynaset("SELECT * FROM RELEASE_TAGS RT, PROJECTS P WHERE RT.ASSOC_MASS_REF="&rsQry("rtag_id")&" AND RT.PROJ_ID=P.PROJ_ID", ORADYN_DEFAULT)
|
|
|
491 |
|
|
|
492 |
|
|
|
493 |
While ((NOT rsQryUse.BOF) AND (NOT rsQryUse.EOF))
|
|
|
494 |
If rsQryUse("assoc_mass_ref") = UsedBy Then
|
|
|
495 |
linkB = "dependencies.asp?rtag_id="&rsQryUse("rtag_id")
|
|
|
496 |
If comment = "" Then
|
|
|
497 |
comment = rsQryUse("proj_name") & " -> <a href="&linkB&">"& rsQryUse("rtag_name") &"</a>"
|
|
|
498 |
Else
|
|
|
499 |
comment = comment &" <br> " & rsQryUse("proj_name") & " -> <a href="&linkB&">"& rsQryUse("rtag_name") &"</a>"
|
|
|
500 |
End If
|
|
|
501 |
rsQryUse.MoveNext
|
|
|
502 |
End If
|
|
|
503 |
WEnd
|
|
|
504 |
End If
|
|
|
505 |
%>
|
|
|
506 |
<%If comment <> "" Then %>
|
|
|
507 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=comment%></td>
|
|
|
508 |
<%Else%>
|
|
|
509 |
<td bgcolor="#F5F5F5" class="body_rowg">None.</td>
|
|
|
510 |
<%End If%>
|
|
|
511 |
<%End If%>
|
|
|
512 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=NewLine_To_BR(rsQry("description"))%></td>
|
|
|
513 |
|
|
|
514 |
|
|
|
515 |
|
|
|
516 |
|
|
|
517 |
</tr>
|
|
|
518 |
|
|
|
519 |
|
|
|
520 |
<%
|
|
|
521 |
lastLevel = currLevel
|
|
|
522 |
rsQry.MoveNext
|
|
|
523 |
comment = ""
|
|
|
524 |
WEnd
|
|
|
525 |
'Next
|
|
|
526 |
|
|
|
527 |
End If
|
|
|
528 |
|
|
|
529 |
|
|
|
530 |
rsQry.Close
|
|
|
531 |
Set rsQry = Nothing
|
|
|
532 |
%>
|
|
|
533 |
</table>
|
|
|
534 |
|
|
|
535 |
<!-- LIST VIEW ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
536 |
<%Else%>
|
|
|
537 |
|
|
|
538 |
|
|
|
539 |
<table width="100%" border="0" cellspacing="1" cellpadding="3">
|
|
|
540 |
<tr>
|
|
|
541 |
<td width="1" bgcolor="#E4E9EC"> </td>
|
|
|
542 |
<td width="30%" bgcolor="#E4E9EC" class="body_txt">Release Name </td>
|
|
|
543 |
|
|
|
544 |
<%If parProjId <> 2 Then %>
|
|
|
545 |
<td width="1" bgcolor="#E4E9EC"> </td>
|
|
|
546 |
<td width="15%" bgcolor="#E4E9EC" class="body_txt">Associated MASS_REF </td>
|
|
|
547 |
<td width="55%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
|
|
548 |
<%Else%>
|
|
|
549 |
<td width="1" bgcolor="#E4E9EC"> </td>
|
|
|
550 |
<td width="30%" bgcolor="#E4E9EC" class="body_txt">Used By </td>
|
|
|
551 |
<td width="40%" bgcolor="#E4E9EC" class="body_txt">Comments</td>
|
|
|
552 |
<%End If%>
|
|
|
553 |
|
|
|
554 |
</tr>
|
|
|
555 |
<%
|
|
|
556 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
557 |
|
|
|
558 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseVersionList.sql") , ORADYN_DEFAULT )
|
|
|
559 |
lastLevel = 0
|
|
|
560 |
|
|
|
561 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
562 |
|
|
|
563 |
|
|
|
564 |
If rsQry.RecordCount > 0 Then
|
|
|
565 |
|
|
|
566 |
aVersions = rsQry.GetRows()
|
|
|
567 |
lastRow = UBound( aVersions, 2 )
|
|
|
568 |
|
|
|
569 |
'Set objSortHelper = New SortHelper
|
|
|
570 |
|
|
|
571 |
' Sort versions
|
|
|
572 |
'Call objSortHelper.VersionSort( aVersions, 0, lastRow, rsQry.FieldIndex("version") )
|
|
|
573 |
|
|
|
574 |
|
|
|
575 |
|
|
|
576 |
For i = 0 To lastRow ' Ascending order
|
|
|
577 |
|
|
|
578 |
'currLevel = GetLevel ( aVersions( rsQry.FieldIndex("rtag_version"), i ) )
|
|
|
579 |
%>
|
|
|
580 |
<tr>
|
|
|
581 |
<td bgcolor="#F5F5F5" class="body_txt" valign="top">
|
|
|
582 |
<input type="checkbox" name="rtag_id_list" value="<%=aVersions( rsQry.FieldIndex("rtag_id"), i )%>">
|
|
|
583 |
</td>
|
|
|
584 |
<td bgcolor="#F5F5F5" valign="top"><a href="dependencies.asp?rtag_id=<%=aVersions( rsQry.FieldIndex("rtag_id"), i )%>" class="body_link" title="Open Release..."><%=ReleaseIcon( aVersions( rsQry.FieldIndex("official"), i ) )%> <%=aVersions( rsQry.FieldIndex("rtag_name"), i )%></a></td>
|
|
|
585 |
|
|
|
586 |
<%
|
|
|
587 |
If parProjId <> 2 Then
|
|
|
588 |
assocMASSREF = aVersions( rsQry.FieldIndex("assoc_mass_ref"), i )
|
|
|
589 |
If assocMASSREF <> "" Then
|
|
|
590 |
Set rsQryAssoc = OraDatabase.DbCreateDynaset("SELECT RTAG_NAME, RTAG_ID FROM RELEASE_TAGS WHERE RTAG_ID="&assocMASSREF , ORADYN_DEFAULT)
|
|
|
591 |
assocMASSREFName = rsQryAssoc("RTAG_NAME")
|
|
|
592 |
link = rsQryAssoc("rtag_id")
|
|
|
593 |
rsQryAssoc.Close
|
|
|
594 |
Set rsQryAssoc = Nothing
|
|
|
595 |
Else
|
|
|
596 |
assocMASSREFName = "None."
|
|
|
597 |
End If
|
|
|
598 |
End If%>
|
|
|
599 |
<%If parProjId <> 2 Then%>
|
|
|
600 |
<%If assocMASSREFName <> "None." Then%>
|
|
|
601 |
<td bgcolor="#F5F5F5" class="body_txt" valign="top">
|
|
|
602 |
<input type="checkbox" name="rtag_id_list" value="<%=link%>">
|
|
|
603 |
</td>
|
|
|
604 |
<td bgcolor="#F5F5F5" class="body_rowg"><a href=dependencies.asp?rtag_id=<%=link%>><%=assocMASSREFName%></a></td>
|
|
|
605 |
<%Else%>
|
|
|
606 |
<td width="1" bgcolor="#E4E9EC"> </td>
|
|
|
607 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=assocMASSREFName%></td>
|
|
|
608 |
<%End If%>
|
|
|
609 |
<%Else
|
|
|
610 |
|
|
|
611 |
UsedBy = aVersions( rsQry.FieldIndex("rtag_id"), i )
|
|
|
612 |
If UsedBy <> "" Then
|
|
|
613 |
Set rsQryUse = OraDatabase.DbCreateDynaset("SELECT * FROM RELEASE_TAGS RT, PROJECTS P WHERE RT.ASSOC_MASS_REF="&aVersions( rsQry.FieldIndex("rtag_id"), i )&" AND RT.PROJ_ID=P.PROJ_ID", ORADYN_DEFAULT)
|
|
|
614 |
|
|
|
615 |
While ((NOT rsQryUse.BOF) AND (NOT rsQryUse.EOF))
|
|
|
616 |
If rsQryUse("assoc_mass_ref") = UsedBy Then
|
|
|
617 |
linkB = rsQryUse("rtag_id")
|
|
|
618 |
If comment = "" Then
|
|
|
619 |
comment = rsQryUse("proj_name") & " -> <a href=dependencies.asp?rtag_id="&linkB&">"& rsQryUse("rtag_name") &"</a>"
|
|
|
620 |
Else
|
|
|
621 |
comment = comment &" <br> " & rsQryUse("proj_name") & " -> <a href=dependencies.asp?rtag_id="&linkB&">"& rsQryUse("rtag_name") &"</a>"
|
|
|
622 |
End If
|
|
|
623 |
rsQryUse.MoveNext
|
|
|
624 |
End If
|
|
|
625 |
WEnd
|
|
|
626 |
End If
|
|
|
627 |
%>
|
|
|
628 |
<%If comment <> "" Then %>
|
|
|
629 |
<td bgcolor="#F5F5F5" class="body_txt" valign="top">
|
|
|
630 |
<input type="checkbox" name="rtag_id_list" value="<%=linkB%>">
|
|
|
631 |
</td>
|
|
|
632 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=comment%></td>
|
|
|
633 |
<%Else%>
|
|
|
634 |
<td width="1" bgcolor="#E4E9EC"> </td>
|
|
|
635 |
<td bgcolor="#F5F5F5" class="body_rowg">None.</td>
|
|
|
636 |
<%End If%>
|
|
|
637 |
<%End If%>
|
|
|
638 |
<td bgcolor="#F5F5F5" class="body_rowg"><%=NewLine_To_BR( aVersions( rsQry.FieldIndex("description"), i ) )%></td>
|
|
|
639 |
</tr>
|
|
|
640 |
<%
|
|
|
641 |
'lastLevel = currLevel
|
|
|
642 |
comment = ""
|
|
|
643 |
Next
|
|
|
644 |
|
|
|
645 |
End If
|
|
|
646 |
|
|
|
647 |
|
|
|
648 |
rsQry.Close
|
|
|
649 |
Set rsQry = Nothing
|
|
|
650 |
%>
|
|
|
651 |
</table>
|
|
|
652 |
<br>
|
|
|
653 |
<%
|
|
|
654 |
Call Messenger ( "Note that Closed releases are not shown in this view.<br>Switch to Tree View to see all release for this project.", 3, "400" )
|
|
|
655 |
%>
|
|
|
656 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
657 |
<!--#include file="messages/_msg_inline.asp"-->
|
|
|
658 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
659 |
|
|
|
660 |
<%End If%>
|
|
|
661 |
<!-- LIST VIEW END ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
662 |
|
|
|
663 |
<hr noshade color="#CAC5B8" width="100%" size="1">
|
|
|
664 |
</td>
|
|
|
665 |
</tr>
|
|
|
666 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
667 |
<input type="hidden" name="action" value="true">
|
|
|
668 |
</form>
|
|
|
669 |
</table>
|
|
|
670 |
|
|
|
671 |
<table width="118" border="0" align="left">
|
|
|
672 |
<tr>
|
|
|
673 |
<td bgcolor="#E4E9EC" width="26"><span class="body_txt">Icon</span></td>
|
|
|
674 |
<td bgcolor="#E4E9EC" width="82"><span class="body_txt">Release State </span></td>
|
|
|
675 |
</tr>
|
|
|
676 |
<tr>
|
|
|
677 |
<td bgcolor="#F5F5F5"><img src="images/i_rtag_open_mode.gif" width="15" height="13"></td>
|
|
|
678 |
<td bgcolor="#F5F5F5"><span class="body_txt">Open Mode</span></td>
|
|
|
679 |
</tr>
|
|
|
680 |
<tr>
|
|
|
681 |
<td bgcolor="#F5F5F5"><img src="images/i_rtag_restrictive_mode.gif" width="15" height="15"></td>
|
|
|
682 |
<td bgcolor="#F5F5F5"><span class="body_txt">Restrictive Mode</span></td>
|
|
|
683 |
</tr>
|
|
|
684 |
<tr>
|
|
|
685 |
<td bgcolor="#F5F5F5"><img src="images/i_rtag_ccb_mode.gif" width="15" height="15"></td>
|
|
|
686 |
<td bgcolor="#F5F5F5"><span class="body_txt">CCB Mode</span></td>
|
|
|
687 |
</tr>
|
|
|
688 |
<tr>
|
|
|
689 |
<td bgcolor="#F5F5F5"><img src="images/i_rtag_closed_mode.gif" width="15" height="14"></td>
|
|
|
690 |
<td bgcolor="#F5F5F5"><span class="body_txt">Closed Mode</span></td>
|
|
|
691 |
</tr>
|
|
|
692 |
<tr>
|
|
|
693 |
<td bgcolor="#F5F5F5"><img src="images/i_rtag_archive_mode.gif" width="15" height="14"></td>
|
|
|
694 |
<td bgcolor="#F5F5F5"><span class="body_txt">Archive Mode</span></td>
|
|
|
695 |
</tr>
|
|
|
696 |
</table>
|
|
|
697 |
<p> </p></td>
|
|
|
698 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
699 |
</tr>
|
|
|
700 |
<tr>
|
|
|
701 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
|
|
|
702 |
<td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
|
|
|
703 |
</tr>
|
|
|
704 |
</table>
|
|
|
705 |
|
|
|
706 |
|
|
|
707 |
<!-- FOOTER -->
|
|
|
708 |
<!--#include file="_footer.asp"-->
|
|
|
709 |
<map name="mapviewtype">
|
|
|
710 |
<area shape="rect" coords="2,2,69,23" href="<%=ScriptName%>?viewtype=1&<%=objPMod.ComposeURL()%>" title="Switch to List View">
|
|
|
711 |
<area shape="rect" coords="73,2,143,23" href="<%=ScriptName%>?viewtype=2&<%=objPMod.ComposeURL()%>" title="Switch to Tree View">
|
|
|
712 |
</map>
|
|
|
713 |
</body>
|
|
|
714 |
</html>
|
|
|
715 |
<%
|
|
|
716 |
Call Destroy_All_Objects
|
|
|
717 |
%>
|