| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| Edit 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 objSortHelper
|
|
|
32 |
Dim rsQry
|
|
|
33 |
Dim parProjId
|
|
|
34 |
Dim parSourceRtagId
|
|
|
35 |
Dim State
|
|
|
36 |
'------------ Constants Declaration -----------
|
|
|
37 |
'------------ Variable Init -------------------
|
|
|
38 |
parProjId = Request("proj_id")
|
|
|
39 |
objPMod.PersistInQryString("proj_id")
|
|
|
40 |
'----------------------------------------------
|
|
|
41 |
%>
|
|
|
42 |
<%
|
|
|
43 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
44 |
Sub GetFormDetails ( nRtagId, ByRef outobjDetails )
|
|
|
45 |
Dim rsQry, query
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
OraDatabase.Parameters.Add "RTAG_ID", nRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
49 |
|
|
|
50 |
query = _
|
|
|
51 |
" SELECT rt.* "&_
|
|
|
52 |
" FROM RELEASE_TAGS rt"&_
|
|
|
53 |
" WHERE rt.RTAG_ID = :RTAG_ID"
|
|
|
54 |
|
|
|
55 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
|
|
56 |
|
|
|
57 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
If rsQry.RecordCount > 0 Then
|
|
|
62 |
outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
|
|
|
63 |
outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
|
|
|
64 |
outobjDetails.Item ("description") = rsQry("description")
|
|
|
65 |
outobjDetails.Item ("parent_rtag_id") = rsQry("parent_rtag_id")
|
|
|
66 |
outobjDetails.Item ("config_spec_branch") = rsQry("config_spec_branch")
|
|
|
67 |
outobjDetails.Item ("owner_email") = rsQry("owner_email")
|
|
|
68 |
outobjDetails.Item ("product_state_used") = rsQry("product_state_used")
|
|
|
69 |
If rsQry("assoc_mass_ref") <> "" Then
|
|
|
70 |
outobjDetails.Item ("massref_rtag_id") = rsQry("assoc_mass_ref")
|
|
|
71 |
End If
|
|
|
72 |
Else
|
|
|
73 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. nRtagId="& nRtagId
|
|
|
74 |
|
|
|
75 |
End If
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
rsQry.Close
|
|
|
79 |
Set rsQry = Nothing
|
|
|
80 |
End Sub
|
|
|
81 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
82 |
Sub UpdateReleaseDetails ()
|
|
|
83 |
On Error Resume Next
|
|
|
84 |
|
|
|
85 |
If request("product_state_used") = "on" Then
|
|
|
86 |
State = "Y"
|
|
|
87 |
Else
|
|
|
88 |
State = NULL
|
|
|
89 |
End If
|
|
|
90 |
|
|
|
91 |
OraDatabase.Parameters.Add "RTAG_ID", Request("rtag_id_list"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
92 |
OraDatabase.Parameters.Add "RTAG_NAME", Request("rtag_name"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
93 |
OraDatabase.Parameters.Add "RTAG_DESCRIPTION", Request("rtag_description"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
94 |
OraDatabase.Parameters.Add "CONFIG_SPEC_BRANCH", Request("config_spec_branch"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
95 |
OraDatabase.Parameters.Add "OWNER_EMAIL", Request("owner_email"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
96 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
97 |
OraDatabase.Parameters.Add "PARENT_RTAG_ID", Request("parent_rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
98 |
OraDatabase.Parameters.Add "MASSREF_RTAG_ID", Request("massref_rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
99 |
OraDatabase.Parameters.Add "STATE", State, ORAPARM_INPUT, ORATYPE_VARCHAR
|
|
|
100 |
|
|
|
101 |
objEH.TryORA ( OraSession )
|
|
|
102 |
|
|
|
103 |
OraDatabase.ExecuteSQL _
|
|
|
104 |
"BEGIN PK_RELEASE.UPDATE_RELEASE ( :RTAG_ID, :RTAG_NAME, :RTAG_DESCRIPTION, :PARENT_RTAG_ID, :MASSREF_RTAG_ID, :CONFIG_SPEC_BRANCH, :OWNER_EMAIL, :USER_ID, :STATE ); END;"
|
|
|
105 |
|
|
|
106 |
objEH.CatchORA ( OraSession )
|
|
|
107 |
|
|
|
108 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
109 |
OraDatabase.Parameters.Remove "RTAG_NAME"
|
|
|
110 |
OraDatabase.Parameters.Remove "RTAG_DESCRIPTION"
|
|
|
111 |
OraDatabase.Parameters.Remove "CONFIG_SPEC_BRANCH"
|
|
|
112 |
OraDatabase.Parameters.Remove "OWNER_EMAIL"
|
|
|
113 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
114 |
OraDatabase.Parameters.Remove "PARENT_RTAG_ID"
|
|
|
115 |
OraDatabase.Parameters.Remove "MASSREF_RTAG_ID"
|
|
|
116 |
OraDatabase.Parameters.Remove "STATE"
|
|
|
117 |
|
|
|
118 |
End Sub
|
|
|
119 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
120 |
%>
|
|
|
121 |
<%
|
|
|
122 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
123 |
' --- Get Form details from DB ---
|
|
|
124 |
Call GetFormDetails ( Request("rtag_id_list"), objFormCollector )
|
|
|
125 |
|
|
|
126 |
' --- Load Validation Rules ---
|
|
|
127 |
Call objForm.LoadValidationRules ( Array("rtag_name","rtag_description", "config_spec_branch"), OraDatabase ) ' Load Validation Rules
|
|
|
128 |
|
|
|
129 |
' --- Enter Form Validation Rule Changes here... ----
|
|
|
130 |
'----------------------------------------------------
|
|
|
131 |
|
|
|
132 |
' --- RUN onPostBack ---
|
|
|
133 |
If Request("action") <> "" Then
|
|
|
134 |
If objForm.IsValidOnPostBack Then
|
|
|
135 |
' --- Form is Valid ---
|
|
|
136 |
Call UpdateReleaseDetails()
|
|
|
137 |
If objEH.Finally Then
|
|
|
138 |
Call OpenInWindow ( "rtree.asp?DONE=OK&"& objPMod.ComposeURL() )
|
|
|
139 |
End If
|
|
|
140 |
|
|
|
141 |
End If
|
|
|
142 |
|
|
|
143 |
End If
|
|
|
144 |
|
|
|
145 |
'----------------------------------------------
|
|
|
146 |
%>
|
|
|
147 |
|
|
|
148 |
<html>
|
|
|
149 |
<head>
|
|
|
150 |
<title>Release Manager</title>
|
|
|
151 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
152 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
153 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
154 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
155 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
156 |
|
|
|
157 |
<!-- DROPDOWN MENUS -->
|
|
|
158 |
<!--#include file="_menu_def.asp"-->
|
|
|
159 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
160 |
|
|
|
161 |
</head>
|
|
|
162 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onLoad="FormName.rtag_name.focus();">
|
|
|
163 |
<!-- MENU LAYERS -------------------------------------->
|
|
|
164 |
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
|
|
|
165 |
</div>
|
|
|
166 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
167 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
168 |
<!----------------------------------------------------->
|
|
|
169 |
<!-- HEADER -->
|
|
|
170 |
<!--#include file="_header.asp"-->
|
|
|
171 |
<!-- BODY ---->
|
|
|
172 |
|
|
|
173 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
174 |
<%
|
|
|
175 |
'-- FROM START ---------------------------------------------------------------------------------------------------------
|
|
|
176 |
objFormComponent.FormName = "FormName"
|
|
|
177 |
objFormComponent.Action = ScriptName
|
|
|
178 |
Call objFormComponent.FormStart()
|
|
|
179 |
%>
|
|
|
180 |
<tr>
|
|
|
181 |
<td width="1" background="images/bg_home_orange.gif" valign="top">
|
|
|
182 |
</td>
|
|
|
183 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF"><table width="10" border="0" cellspacing="0" cellpadding="0">
|
|
|
184 |
<tr>
|
|
|
185 |
<td width="1%"></td>
|
|
|
186 |
<td width="100%">
|
|
|
187 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
188 |
<tr>
|
|
|
189 |
<td nowrap class="form_ttl">EDIT RELEASE DETAILS </td>
|
|
|
190 |
<td align="right" valign="bottom"></td>
|
|
|
191 |
</tr>
|
|
|
192 |
</table></td>
|
|
|
193 |
<td width="1%"></td>
|
|
|
194 |
</tr>
|
|
|
195 |
<tr>
|
|
|
196 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
|
|
197 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
|
|
198 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
|
|
199 |
</tr>
|
|
|
200 |
<tr>
|
|
|
201 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
202 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
203 |
<%
|
|
|
204 |
If parSourceRtagId <> "" Then
|
|
|
205 |
Call Messenger ( "New release will be created from <br>"& objFormCollector.Item("location"), 3, "100%" )
|
|
|
206 |
End If
|
|
|
207 |
%>
|
|
|
208 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
209 |
<!--#include file="messages/_msg_inline.asp"-->
|
|
|
210 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
211 |
<br>
|
|
|
212 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
|
|
213 |
<tr>
|
|
|
214 |
<td width="19%" valign="top" nowrap class="form_iname">Release Name </td>
|
|
|
215 |
<td width="72%" valign="top" nowrap><%=objFormComponent.TextBox ( "rtag_name", objForm.GetValue( "rtag_name", objFormCollector.Item("rtag_name") ), "class='form_ivalue' size='60'" )%></td>
|
|
|
216 |
<td width="9%" valign="top"><%=objForm.Validate ("rtag_name")%></td>
|
|
|
217 |
</tr>
|
|
|
218 |
<tr>
|
|
|
219 |
<td nowrap class="form_iname" valign="top">Parent Release </td>
|
|
|
220 |
<td valign="top" nowrap class="form_iname">
|
|
|
221 |
<%
|
|
|
222 |
OraDatabase.Parameters.Add "PROJ_ID", parProjId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
223 |
|
|
|
224 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseVersionTree.sql") , ORADYN_DEFAULT )
|
|
|
225 |
|
|
|
226 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
227 |
%>
|
|
|
228 |
<select name="parent_rtag_id" class="form_item">
|
|
|
229 |
<option value="<%=objFormCollector.Item("rtag_id")%>">---ROOT---</option>
|
|
|
230 |
<%While (NOT rsQry.BOF) AND (NOT rsQry.EOF)%>
|
|
|
231 |
<option value="<%=rsQry("rtag_id")%>" <%If ( CInt( rsQry("rtag_id") ) = CInt(objFormCollector.Item("parent_rtag_id")) ) Then%>selected<%End If%>><%=rsQry("rtag_name")%></option>
|
|
|
232 |
<%
|
|
|
233 |
rsQry.MoveNext
|
|
|
234 |
WEnd%>
|
|
|
235 |
</select>
|
|
|
236 |
</td>
|
|
|
237 |
<td valign="top"></td>
|
|
|
238 |
</tr>
|
|
|
239 |
<tr>
|
|
|
240 |
<td valign="top" nowrap class="form_iname">Comments</td>
|
|
|
241 |
<td valign="top"><%=objFormComponent.TextArea ( "rtag_description", objForm.GetValue( "rtag_description", objFormCollector.Item("description") ), 10, 60, "class='form_ivalue'" )%></td>
|
|
|
242 |
<td valign="top"><%=objForm.Validate ("rtag_description")%></td>
|
|
|
243 |
</tr>
|
|
|
244 |
<tr>
|
|
|
245 |
<td width="19%" valign="top" nowrap class="form_iname">Clearcase Support Profile Branch</td>
|
|
|
246 |
|
|
|
247 |
<td width="72%" valign="top" nowrap><%=objFormComponent.TextBox ( "config_spec_branch", objForm.GetValue( "config_spec_branch", objFormCollector.Item("config_spec_branch") ), "class='form_ivalue' size='60'" )%></td>
|
|
|
248 |
<td width="9%" valign="top"><%=objForm.Validate ("config_spec_branch")%></td>
|
|
|
249 |
</tr>
|
|
|
250 |
<tr>
|
|
|
251 |
<td width="19%" valign="top" nowrap class="form_iname">Autobuild Notification Emails</td>
|
|
|
252 |
|
|
|
253 |
<td width="72%" valign="top" nowrap><%=objFormComponent.TextBox ( "owner_email", objForm.GetValue( "owner_email", objFormCollector.Item("owner_email") ), "class='form_ivalue' size='60'" )%></td>
|
|
|
254 |
<td width="9%" valign="top"></td>
|
|
|
255 |
</tr>
|
|
|
256 |
<tr>
|
|
|
257 |
<%If parProjId <> 2 Then%>
|
|
|
258 |
<td nowrap class="form_iname" valign="top">Associated MASS REF </td>
|
|
|
259 |
<td valign="top" nowrap class="form_iname">
|
|
|
260 |
<%
|
|
|
261 |
OraDatabase.Parameters.Add "PROJ_ID", 2, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
262 |
|
|
|
263 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery ("ReleaseVersionTree.sql") , ORADYN_DEFAULT )
|
|
|
264 |
|
|
|
265 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
266 |
%>
|
|
|
267 |
<select name="massref_rtag_id" class="form_item">
|
|
|
268 |
<option value="">---None---</option>
|
|
|
269 |
<%While (NOT rsQry.BOF) AND (NOT rsQry.EOF)%>
|
|
|
270 |
<option value="<%=rsQry("rtag_id")%>" <%If ( CInt( rsQry("rtag_id") ) = CInt(objFormCollector.Item("massref_rtag_id")) ) Then%>selected<%End If%>><%=rsQry("rtag_name")%></option>
|
|
|
271 |
<%
|
|
|
272 |
rsQry.MoveNext
|
|
|
273 |
WEnd%>
|
|
|
274 |
</select>
|
|
|
275 |
</td>
|
|
|
276 |
<td valign="top"></td>
|
|
|
277 |
<%End If%>
|
|
|
278 |
</tr>
|
|
|
279 |
<tr>
|
|
|
280 |
<td width="19%" valign="top" nowrap class="form_iname">Configured To Use Product States</td>
|
|
|
281 |
<%If IsNull(objFormCollector.Item("product_state_used")) Then%>
|
|
|
282 |
<td valign="top"><input type="checkbox" name="product_state_used"></td>
|
|
|
283 |
<%Else%>
|
|
|
284 |
<td valign="top"><input type="checkbox" name="product_state_used" checked></td>
|
|
|
285 |
<%End If%>
|
|
|
286 |
<td width="9%" valign="top"></td>
|
|
|
287 |
</tr>
|
|
|
288 |
<tr>
|
|
|
289 |
<td class="form_iname"> </td>
|
|
|
290 |
<td> </td>
|
|
|
291 |
<td class="val_err"></td>
|
|
|
292 |
</tr>
|
|
|
293 |
</table>
|
|
|
294 |
|
|
|
295 |
</td>
|
|
|
296 |
<td background="images/lbox_bgside_white.gif"> </td>
|
|
|
297 |
</tr>
|
|
|
298 |
<tr>
|
|
|
299 |
<td background="images/bg_action_norm.gif" ></td>
|
|
|
300 |
<td align="right" background="images/bg_action_norm.gif" >
|
|
|
301 |
<%=objFormComponent.SubmitButton ( "Submit", "class='form_btn'" )%>
|
|
|
302 |
<%=objFormComponent.CancelButton ( "Cancel", "class='form_btn'", "rtree.asp?CANCEL=OK&"& objPMod.ComposeURL() )%>
|
|
|
303 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
304 |
<input type="hidden" name="rtag_id_list" value="<%=Request("rtag_id_list")%>">
|
|
|
305 |
<input type="hidden" name="action" value="true">
|
|
|
306 |
</td>
|
|
|
307 |
<td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
|
|
308 |
</tr>
|
|
|
309 |
<tr>
|
|
|
310 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
|
|
311 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
312 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
|
|
313 |
</tr>
|
|
|
314 |
</table>
|
|
|
315 |
|
|
|
316 |
<!-- ACTION BUTTONS ---------------------------------------------->
|
|
|
317 |
<!-- ACTION BUTTONS END ------------------------------------------></td>
|
|
|
318 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
319 |
</tr>
|
|
|
320 |
<tr>
|
|
|
321 |
<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>
|
|
|
322 |
<td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
|
|
|
323 |
</tr>
|
|
|
324 |
<%
|
|
|
325 |
Call objFormComponent.FormEnd()
|
|
|
326 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
|
|
327 |
%>
|
|
|
328 |
</table>
|
|
|
329 |
|
|
|
330 |
|
|
|
331 |
<!-- FOOTER -->
|
|
|
332 |
<!--#include file="_footer.asp"-->
|
|
|
333 |
</body>
|
|
|
334 |
</html>
|
|
|
335 |
<%
|
|
|
336 |
Call Destroy_All_Objects
|
|
|
337 |
%>
|