| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| Move Release |
|
|
|
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/_form_window_common.asp"-->
|
|
|
20 |
<%
|
|
|
21 |
' Set rfile parameter. This is a return page after Login
|
|
|
22 |
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
|
|
|
23 |
objPMod.PersistInQryString("proj_id")
|
|
|
24 |
'------------ ACCESS CONTROL ------------------
|
|
|
25 |
%>
|
|
|
26 |
<!--#include file="_access_control_login.asp"-->
|
|
|
27 |
<!--#include file="_access_control_general.asp"-->
|
|
|
28 |
<!--#include file="_access_control_project.asp"-->
|
|
|
29 |
<%
|
|
|
30 |
'------------ Variable Definition -------------
|
|
|
31 |
Dim rsQry
|
|
|
32 |
Dim parProjId
|
|
|
33 |
'------------ Constants Declaration -----------
|
|
|
34 |
'------------ Variable Init -------------------
|
|
|
35 |
parProjId = Request("proj_id")
|
|
|
36 |
objPMod.PersistInQryString("proj_id")
|
|
|
37 |
'----------------------------------------------
|
|
|
38 |
%>
|
|
|
39 |
<%
|
|
|
40 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
41 |
Sub GetFormDetails ( nRtagId, ByRef outobjDetails )
|
|
|
42 |
Dim rsQry, query
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
OraDatabase.Parameters.Add "RTAG_ID", nRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
46 |
|
|
|
47 |
query = _
|
|
|
48 |
" SELECT rt.* "&_
|
|
|
49 |
" FROM RELEASE_TAGS rt"&_
|
|
|
50 |
" WHERE rt.RTAG_ID = :RTAG_ID"
|
|
|
51 |
|
|
|
52 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
|
|
53 |
|
|
|
54 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
If rsQry.RecordCount > 0 Then
|
|
|
59 |
outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
|
|
|
60 |
outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
|
|
|
61 |
outobjDetails.Item ("description") = rsQry("description")
|
|
|
62 |
outobjDetails.Item ("parent_rtag_id") = rsQry("parent_rtag_id")
|
|
|
63 |
outobjDetails.Item ("proj_id") = rsQry("proj_id")
|
|
|
64 |
|
|
|
65 |
Else
|
|
|
66 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. nRtagId="& nRtagId
|
|
|
67 |
|
|
|
68 |
End If
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
rsQry.Close
|
|
|
72 |
Set rsQry = Nothing
|
|
|
73 |
End Sub
|
|
|
74 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
75 |
Sub MoveRelease ()
|
|
|
76 |
Dim sRtagIdOrderList
|
|
|
77 |
|
|
|
78 |
'-- Check cookie for new soring list
|
|
|
79 |
If Request.Cookies("sort-list") = "" Then Exit Sub
|
|
|
80 |
|
|
|
81 |
'-- Replace pipe separated values with comma for database use
|
|
|
82 |
sRtagIdOrderList = Replace( Request.Cookies("sort-list") , "|", "," )
|
|
|
83 |
|
|
|
84 |
On Error Resume Next
|
|
|
85 |
|
|
|
86 |
OraDatabase.Parameters.Add "RTAG_ID_ORDER", sRtagIdOrderList, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
87 |
OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
88 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
objEH.TryORA ( OraSession )
|
|
|
92 |
|
|
|
93 |
OraDatabase.ExecuteSQL _
|
|
|
94 |
"BEGIN PK_RELEASE.MOVE_RELEASE ( :RTAG_ID_ORDER, :PROJ_ID, :USER_ID ); END;"
|
|
|
95 |
|
|
|
96 |
objEH.CatchORA ( OraSession )
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
OraDatabase.Parameters.Remove "RTAG_ID_ORDER"
|
|
|
100 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
101 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
102 |
|
|
|
103 |
End Sub
|
|
|
104 |
|
|
|
105 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
106 |
%>
|
|
|
107 |
<%
|
|
|
108 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
109 |
' --- Get Form details from DB ---
|
|
|
110 |
Call GetFormDetails ( Request("rtag_id_list"), objFormCollector )
|
|
|
111 |
|
|
|
112 |
' --- Enter Form Validation Rule Changes here... ----
|
|
|
113 |
'----------------------------------------------------
|
|
|
114 |
|
|
|
115 |
' --- RUN onPostBack ---
|
|
|
116 |
If Request("action") <> "" Then
|
|
|
117 |
If objForm.IsValidOnPostBack Then
|
|
|
118 |
' --- Form is Valid ---
|
|
|
119 |
Call MoveRelease()
|
|
|
120 |
|
|
|
121 |
If objEH.Finally Then
|
|
|
122 |
Call OpenInWindow ( "rtree.asp?DONE=OK&"& objPMod.ComposeURL() )
|
|
|
123 |
End If
|
|
|
124 |
|
|
|
125 |
End If
|
|
|
126 |
|
|
|
127 |
End If
|
|
|
128 |
|
|
|
129 |
'----------------------------------------------
|
|
|
130 |
%>
|
|
|
131 |
|
|
|
132 |
<html>
|
|
|
133 |
<head>
|
|
|
134 |
<title>Release Manager</title>
|
|
|
135 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
136 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
137 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
| 6579 |
dpurdie |
138 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
139 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
140 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
141 |
|
|
|
142 |
<!-- DROPDOWN MENUS -->
|
|
|
143 |
<!--#include file="_menu_def.asp"-->
|
| 6579 |
dpurdie |
144 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
145 |
|
|
|
146 |
<!-- Drag and Drop modules +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 6676 |
dpurdie |
147 |
<script language="JavaScript" type="text/javascript" src="scripts/dragdrop/tool-man/core.js?ver=<%=VixVerNum%>"></script>
|
|
|
148 |
<script language="JavaScript" type="text/javascript" src="scripts/dragdrop/tool-man/events.js?ver=<%=VixVerNum%>"></script>
|
|
|
149 |
<script language="JavaScript" type="text/javascript" src="scripts/dragdrop/tool-man/css.js?ver=<%=VixVerNum%>"></script>
|
|
|
150 |
<script language="JavaScript" type="text/javascript" src="scripts/dragdrop/tool-man/coordinates.js?ver=<%=VixVerNum%>"></script>
|
|
|
151 |
<script language="JavaScript" type="text/javascript" src="scripts/dragdrop/tool-man/drag.js?ver=<%=VixVerNum%>"></script>
|
|
|
152 |
<script language="JavaScript" type="text/javascript" src="scripts/dragdrop/tool-man/dragsort.js?ver=<%=VixVerNum%>"></script>
|
|
|
153 |
<script language="JavaScript" type="text/javascript" src="scripts/dragdrop/tool-man/cookies.js?ver=<%=VixVerNum%>"></script>
|
| 5357 |
dpurdie |
154 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
155 |
|
|
|
156 |
<script language="JavaScript" type="text/javascript"><!--
|
|
|
157 |
var dragsort = ToolMan.dragsort()
|
|
|
158 |
var junkdrawer = ToolMan.junkdrawer()
|
|
|
159 |
|
|
|
160 |
window.onload = function() {
|
|
|
161 |
self.focus();
|
|
|
162 |
|
|
|
163 |
dragsort.makeListSortable(document.getElementById("list"),
|
|
|
164 |
verticalOnly, saveOrder);
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
function verticalOnly(item) {
|
|
|
168 |
item.toolManDragGroup.verticalOnly()
|
|
|
169 |
}
|
|
|
170 |
|
|
|
171 |
function saveOrder(item) {
|
|
|
172 |
var group = item.toolManDragGroup
|
|
|
173 |
var list = group.element.parentNode
|
|
|
174 |
var id = list.getAttribute("id")
|
|
|
175 |
if (id == null) return
|
|
|
176 |
group.register('dragend', function() {
|
|
|
177 |
ToolMan.cookies().set("sort-" + id,
|
|
|
178 |
junkdrawer.serializeList(list), 365)
|
|
|
179 |
})
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
//-->
|
|
|
183 |
</script>
|
|
|
184 |
|
|
|
185 |
</head>
|
|
|
186 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
|
|
187 |
<!-- HEADER -->
|
|
|
188 |
<!--#include file="_header.asp"-->
|
|
|
189 |
<!-- BODY ---->
|
|
|
190 |
|
|
|
191 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
192 |
<%
|
|
|
193 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
194 |
objFormComponent.FormName = "FormName"
|
|
|
195 |
objFormComponent.Action = ScriptName
|
|
|
196 |
Call objFormComponent.FormStart()
|
|
|
197 |
%>
|
|
|
198 |
<tr>
|
| 6876 |
dpurdie |
199 |
<td class='bg_panel'>
|
| 5357 |
dpurdie |
200 |
</td>
|
|
|
201 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF"><table width="10" border="0" cellspacing="0" cellpadding="0">
|
|
|
202 |
<tr>
|
|
|
203 |
<td width="1%"></td>
|
|
|
204 |
<td width="100%">
|
|
|
205 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
206 |
<tr>
|
|
|
207 |
<td nowrap class="form_ttl">MOVE RELEASES </td>
|
|
|
208 |
<td align="right" valign="bottom"></td>
|
|
|
209 |
</tr>
|
|
|
210 |
</table></td>
|
|
|
211 |
<td width="1%"></td>
|
|
|
212 |
</tr>
|
|
|
213 |
<tr>
|
|
|
214 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
|
|
215 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
|
|
216 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
|
|
217 |
</tr>
|
|
|
218 |
<tr>
|
|
|
219 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
220 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
221 |
<%
|
|
|
222 |
Call Messenger ( "Click and Drag releases up/down.", 3, "100%" )
|
|
|
223 |
%>
|
|
|
224 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
225 |
<!--#include file="messages/_msg_inline.asp"-->
|
|
|
226 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
227 |
<br>
|
|
|
228 |
<!-- SORT PRODUCT +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
229 |
<ul id="list" class="boxy">
|
|
|
230 |
<%
|
|
|
231 |
OraDatabase.Parameters.Add "PARENT_RTAG_ID", objFormCollector.Item("parent_rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
232 |
OraDatabase.Parameters.Add "PROJ_ID", objFormCollector.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
If (objFormCollector.Item("rtag_id") = objFormCollector.Item("parent_rtag_id")) Then
|
|
|
236 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseRootElements.sql"), ORADYN_DEFAULT )
|
|
|
237 |
Else
|
|
|
238 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseChildrenElements.sql"), ORADYN_DEFAULT )
|
|
|
239 |
End If
|
|
|
240 |
|
|
|
241 |
|
|
|
242 |
OraDatabase.Parameters.Remove "PARENT_RTAG_ID"
|
|
|
243 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
247 |
%>
|
|
|
248 |
|
|
|
249 |
<li id="<%=rsQry("rtag_id")%>"><%=ReleaseIcon( rsQry("official") )%> <%=rsQry("rtag_name")%></li>
|
|
|
250 |
|
|
|
251 |
<%rsQry.MoveNext%>
|
|
|
252 |
<%
|
|
|
253 |
WEnd
|
|
|
254 |
|
|
|
255 |
rsQry.Close()
|
|
|
256 |
Set rsQry = Nothing
|
|
|
257 |
%>
|
|
|
258 |
</ul>
|
|
|
259 |
<br>
|
|
|
260 |
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
261 |
|
|
|
262 |
</td>
|
|
|
263 |
<td background="images/lbox_bgside_white.gif"> </td>
|
|
|
264 |
</tr>
|
|
|
265 |
<tr>
|
| 6877 |
dpurdie |
266 |
<td class='bg_dialog'></td>
|
|
|
267 |
<td align="right" class='bg_dialog' >
|
| 5357 |
dpurdie |
268 |
<%=objFormComponent.SubmitButton ( "Submit", "class='form_btn'" )%>
|
|
|
269 |
<%=objFormComponent.CancelButton ( "Cancel", "class='form_btn'", "rtree.asp?CANCEL=OK&"& objPMod.ComposeURL() )%>
|
|
|
270 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
271 |
<input type="hidden" name="rtag_id_list" value="<%=Request("rtag_id_list")%>">
|
|
|
272 |
<input type="hidden" name="action" value="true">
|
|
|
273 |
</td>
|
| 6877 |
dpurdie |
274 |
<td class='bg_dialog'><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
| 5357 |
dpurdie |
275 |
</tr>
|
|
|
276 |
<tr>
|
|
|
277 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
|
|
278 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
279 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
|
|
280 |
</tr>
|
|
|
281 |
</table>
|
|
|
282 |
|
|
|
283 |
<!-- ACTION BUTTONS ---------------------------------------------->
|
|
|
284 |
<!-- ACTION BUTTONS END ------------------------------------------></td>
|
|
|
285 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
286 |
</tr>
|
|
|
287 |
<tr>
|
| 6876 |
dpurdie |
288 |
<td class='bg_panel_btm'><img src="images/img_vtree.gif" width="86" height="99" vspace="20" hspace="30"></td>
|
| 5357 |
dpurdie |
289 |
<td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
|
|
|
290 |
</tr>
|
|
|
291 |
<%
|
|
|
292 |
Call objFormComponent.FormEnd()
|
|
|
293 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
294 |
%>
|
|
|
295 |
</table>
|
|
|
296 |
<!-- FOOTER -->
|
|
|
297 |
<!--#include file="_footer.asp"-->
|
|
|
298 |
</body>
|
|
|
299 |
</html>
|