| Line 18... |
Line 18... |
| 18 |
<!--#include file="common/common_subs.asp"-->
|
18 |
<!--#include file="common/common_subs.asp"-->
|
| 19 |
<!--#include file="common/_form_window_common.asp"-->
|
19 |
<!--#include file="common/_form_window_common.asp"-->
|
| 20 |
<%
|
20 |
<%
|
| 21 |
' Set rfile parameter. This is a return page after Login
|
21 |
' Set rfile parameter. This is a return page after Login
|
| 22 |
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
|
22 |
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
|
| 23 |
objPMod.PersistInQryString("proj_id")
|
- |
|
| 24 |
'------------ ACCESS CONTROL ------------------
|
23 |
'------------ ACCESS CONTROL ------------------
|
| 25 |
%>
|
24 |
%>
|
| 26 |
<!--#include file="_access_control_login.asp"-->
|
25 |
<!--#include file="_access_control_login.asp"-->
|
| 27 |
<!--#include file="_access_control_general.asp"-->
|
26 |
<!--#include file="_access_control_general.asp"-->
|
| 28 |
<!--#include file="_access_control_project.asp"-->
|
27 |
<!--#include file="_access_control_project.asp"-->
|
| 29 |
<%
|
28 |
<%
|
| 30 |
'------------ Variable Definition -------------
|
29 |
'------------ Variable Definition -------------
|
| 31 |
Dim objSortHelper
|
30 |
Dim objSortHelper
|
| 32 |
Dim rsQry
|
31 |
Dim rsQry
|
| 33 |
Dim parProjId
|
- |
|
| 34 |
Dim parSourceRtagId
|
- |
|
| 35 |
Dim State
|
32 |
Dim State
|
| 36 |
Dim ctrlDisabled
|
33 |
Dim ctrlDisabled
|
| - |
|
34 |
Dim returnUrl
|
| 37 |
|
35 |
|
| 38 |
'------------ Constants Declaration -----------
|
36 |
'------------ Constants Declaration -----------
|
| 39 |
'------------ Variable Init -------------------
|
37 |
'------------ Variable Init -------------------
|
| 40 |
parProjId = Request("proj_id")
|
- |
|
| 41 |
objPMod.PersistInQryString("proj_id")
|
- |
|
| 42 |
|
- |
|
| 43 |
If NOT objAccessControl.IsActive("CreateNewRelease") Then
|
38 |
If NOT objAccessControl.IsActive("CreateNewRelease") Then
|
| 44 |
ctrlDisabled = "disabled"
|
39 |
ctrlDisabled = "disabled"
|
| 45 |
Else
|
40 |
Else
|
| 46 |
ctrlDisabled = ""
|
41 |
ctrlDisabled = ""
|
| 47 |
End If
|
42 |
End If
|
| 48 |
|
43 |
|
| - |
|
44 |
' Maintain the page to goto after we process this one
|
| - |
|
45 |
' Go back from whence we came
|
| - |
|
46 |
' Grab the referre on the first call so that postback does not confuse us
|
| - |
|
47 |
returnUrl = Request("returnUrl")
|
| - |
|
48 |
If returnUrl = "" Then
|
| - |
|
49 |
returnUrl = Request.ServerVariables ("HTTP_REFERER")
|
| - |
|
50 |
End If
|
| - |
|
51 |
|
| 49 |
'----------------------------------------------
|
52 |
'----------------------------------------------
|
| 50 |
%>
|
53 |
%>
|
| 51 |
<%
|
54 |
<%
|
| 52 |
'--------------------------------------------------------------------------------------------------------------------------
|
55 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 53 |
Sub GetFormDetails ( nRtagId, ByRef outobjDetails )
|
56 |
Sub GetFormDetails ( nRtagId, ByRef outobjDetails )
|
| 54 |
Dim rsQry, query
|
57 |
Dim rsQry, query
|
| 55 |
|
58 |
|
| 56 |
|
- |
|
| 57 |
OraDatabase.Parameters.Add "RTAG_ID", nRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
59 |
OraDatabase.Parameters.Add "RTAG_ID", nRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 58 |
|
60 |
|
| 59 |
query = _
|
61 |
query = _
|
| 60 |
" SELECT rt.* "&_
|
62 |
" SELECT rt.* "&_
|
| 61 |
" FROM RELEASE_TAGS rt"&_
|
63 |
" FROM RELEASE_TAGS rt"&_
|
| 62 |
" WHERE rt.RTAG_ID = :RTAG_ID"
|
64 |
" WHERE rt.RTAG_ID = :RTAG_ID"
|
| 63 |
|
65 |
|
| 64 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
66 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
| 65 |
|
67 |
|
| 66 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
68 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 67 |
|
69 |
|
| 68 |
|
- |
|
| 69 |
|
- |
|
| 70 |
If rsQry.RecordCount > 0 Then
|
70 |
If rsQry.RecordCount > 0 Then
|
| 71 |
outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
|
71 |
outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
|
| - |
|
72 |
outobjDetails.Item ("proj_id") = rsQry("proj_id")
|
| 72 |
outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
|
73 |
outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
|
| 73 |
outobjDetails.Item ("description") = rsQry("description")
|
74 |
outobjDetails.Item ("description") = rsQry("description")
|
| 74 |
outobjDetails.Item ("parent_rtag_id") = rsQry("parent_rtag_id")
|
75 |
outobjDetails.Item ("parent_rtag_id") = rsQry("parent_rtag_id")
|
| 75 |
outobjDetails.Item ("config_spec_branch") = rsQry("config_spec_branch")
|
76 |
outobjDetails.Item ("config_spec_branch") = rsQry("config_spec_branch")
|
| 76 |
outobjDetails.Item ("owner_email") = rsQry("owner_email")
|
77 |
outobjDetails.Item ("owner_email") = rsQry("owner_email")
|
| Line 82... |
Line 83... |
| 82 |
Else
|
83 |
Else
|
| 83 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. nRtagId="& nRtagId
|
84 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. nRtagId="& nRtagId
|
| 84 |
|
85 |
|
| 85 |
End If
|
86 |
End If
|
| 86 |
|
87 |
|
| 87 |
|
- |
|
| 88 |
rsQry.Close
|
88 |
rsQry.Close
|
| 89 |
Set rsQry = Nothing
|
89 |
Set rsQry = Nothing
|
| 90 |
End Sub
|
90 |
End Sub
|
| 91 |
'--------------------------------------------------------------------------------------------------------------------------
|
91 |
'--------------------------------------------------------------------------------------------------------------------------
|
| 92 |
Sub UpdateReleaseDetails ()
|
92 |
Sub UpdateReleaseDetails ()
|
| Line 146... |
Line 146... |
| 146 |
If objForm.IsValidOnPostBack Then
|
146 |
If objForm.IsValidOnPostBack Then
|
| 147 |
' --- Form is Valid ---
|
147 |
' --- Form is Valid ---
|
| 148 |
If objAccessControl.IsActive("CreateNewRelease") Then
|
148 |
If objAccessControl.IsActive("CreateNewRelease") Then
|
| 149 |
Call UpdateReleaseDetails()
|
149 |
Call UpdateReleaseDetails()
|
| 150 |
If objEH.Finally Then
|
150 |
If objEH.Finally Then
|
| 151 |
Call OpenInWindow ( "rtree.asp?DONE=OK&"& objPMod.ComposeURL() )
|
151 |
Call OpenInWindow ( returnUrl )
|
| 152 |
End If
|
152 |
End If
|
| 153 |
Else
|
153 |
Else
|
| 154 |
Call OpenInWindow ( "rtree.asp?DONE=OK&"& objPMod.ComposeURL() )
|
154 |
Call OpenInWindow ( returnUrl )
|
| 155 |
End If
|
155 |
End If
|
| 156 |
End If
|
156 |
End If
|
| 157 |
End If
|
157 |
End If
|
| 158 |
|
158 |
|
| 159 |
'----------------------------------------------
|
159 |
'----------------------------------------------
|
| Line 220... |
Line 220... |
| 220 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
220 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
| 221 |
</tr>
|
221 |
</tr>
|
| 222 |
<tr>
|
222 |
<tr>
|
| 223 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
223 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
| 224 |
<td bgcolor="#FFFFFF" valign="top">
|
224 |
<td bgcolor="#FFFFFF" valign="top">
|
| 225 |
<%
|
- |
|
| 226 |
If parSourceRtagId <> "" Then
|
- |
|
| 227 |
Call Messenger ( "New release will be created from <br>"& objFormCollector.Item("location"), 3, "100%" )
|
- |
|
| 228 |
End If
|
- |
|
| 229 |
%>
|
- |
|
| 230 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
225 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 231 |
<!--#include file="messages/_msg_inline.asp"-->
|
226 |
<!--#include file="messages/_msg_inline.asp"-->
|
| 232 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
227 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 233 |
<br>
|
228 |
<br>
|
| 234 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
229 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
| Line 241... |
Line 236... |
| 241 |
</tr>
|
236 |
</tr>
|
| 242 |
<tr>
|
237 |
<tr>
|
| 243 |
<td nowrap class="form_iname" valign="top">Parent Release </td>
|
238 |
<td nowrap class="form_iname" valign="top">Parent Release </td>
|
| 244 |
<td valign="top" nowrap class="form_iname">
|
239 |
<td valign="top" nowrap class="form_iname">
|
| 245 |
<%
|
240 |
<%
|
| 246 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
241 |
OraDatabase.Parameters.Add "PROJ_ID", objFormCollector.Item("proj_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
| 247 |
|
242 |
|
| 248 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseVersionTree.sql") , ORADYN_DEFAULT )
|
243 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseVersionTree.sql") , ORADYN_DEFAULT )
|
| 249 |
|
244 |
|
| 250 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
245 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
| 251 |
%>
|
246 |
%>
|
| Line 276... |
Line 271... |
| 276 |
|
271 |
|
| 277 |
<td width="72%" valign="top" nowrap><%=objFormComponent.TextBox ( "owner_email", objForm.GetValue( "owner_email", objFormCollector.Item("owner_email") ), "class='form_ivalue' size='60'" )%></td>
|
272 |
<td width="72%" valign="top" nowrap><%=objFormComponent.TextBox ( "owner_email", objForm.GetValue( "owner_email", objFormCollector.Item("owner_email") ), "class='form_ivalue' size='60'" )%></td>
|
| 278 |
<td width="9%" valign="top"></td>
|
273 |
<td width="9%" valign="top"></td>
|
| 279 |
</tr>
|
274 |
</tr>
|
| 280 |
<tr>
|
275 |
<tr>
|
| 281 |
<%If parProjId <> 2 Then%>
|
276 |
<%If objFormCollector.Item("proj_id") <> 2 Then%>
|
| 282 |
<td nowrap class="form_iname" valign="top">Associated MASS REF </td>
|
277 |
<td nowrap class="form_iname" valign="top">Associated MASS REF </td>
|
| 283 |
<td valign="top" nowrap class="form_iname">
|
278 |
<td valign="top" nowrap class="form_iname">
|
| 284 |
<%
|
279 |
<%
|
| 285 |
OraDatabase.Parameters.Add "PROJ_ID", 2, ORAPARM_INPUT, ORATYPE_NUMBER
|
280 |
OraDatabase.Parameters.Add "PROJ_ID", 2, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 286 |
|
281 |
|
| Line 333... |
Line 328... |
| 333 |
<td background="images/bg_action_norm.gif" ></td>
|
328 |
<td background="images/bg_action_norm.gif" ></td>
|
| 334 |
<td align="right" background="images/bg_action_norm.gif" >
|
329 |
<td align="right" background="images/bg_action_norm.gif" >
|
| 335 |
<%If objAccessControl.IsActive("CreateNewRelease") Then%>
|
330 |
<%If objAccessControl.IsActive("CreateNewRelease") Then%>
|
| 336 |
<%=objFormComponent.SubmitButton ( "Submit", "class='form_btn'" )%>
|
331 |
<%=objFormComponent.SubmitButton ( "Submit", "class='form_btn'" )%>
|
| 337 |
<%End If%>
|
332 |
<%End If%>
|
| 338 |
<%=objFormComponent.CancelButton ( "Cancel", "class='form_btn'", "rtree.asp?CANCEL=OK&"& objPMod.ComposeURL() )%>
|
333 |
<%=objFormComponent.CancelButton ( "Cancel", "class='form_btn'", returnUrl )%>
|
| 339 |
<%=objPMod.ComposeHiddenTags()%>
|
334 |
<%=objPMod.ComposeHiddenTags()%>
|
| 340 |
<input type="hidden" name="rtag_id_list" value="<%=Request("rtag_id_list")%>">
|
335 |
<input type="hidden" name="rtag_id_list" value="<%=Request("rtag_id_list")%>">
|
| - |
|
336 |
<input type="hidden" name="returnUrl" value="<%=returnUrl%>">
|
| 341 |
<input type="hidden" name="action" value="true">
|
337 |
<input type="hidden" name="action" value="true">
|
| 342 |
</td>
|
338 |
</td>
|
| 343 |
<td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
339 |
<td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
| 344 |
</tr>
|
340 |
</tr>
|
| 345 |
<tr>
|
341 |
<tr>
|