| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Package Information
|
|
|
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/formating.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
17 |
<!--#include file="common/_popup_window_common.asp"-->
|
|
|
18 |
<%
|
|
|
19 |
' Set rfile parameter. This is a return page after Login
|
|
|
20 |
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
|
|
|
21 |
'------------ ACCESS CONTROL ------------------
|
|
|
22 |
%>
|
|
|
23 |
<!--#include file="_access_control_login.asp"-->
|
|
|
24 |
<!--#include file="_access_control_general.asp"-->
|
|
|
25 |
<!--#include file="_access_control_project.asp"-->
|
|
|
26 |
<%
|
|
|
27 |
'------------ Variable Definition -------------
|
|
|
28 |
Dim parPv_id
|
|
|
29 |
Dim query
|
|
|
30 |
Dim rsQry, rsTemp
|
|
|
31 |
Dim checked
|
|
|
32 |
Dim FRdeployableYES, FRdeployableNO
|
|
|
33 |
Dim objFormCollector
|
|
|
34 |
Dim pageIsEditable, criticalSectionIsEditable
|
|
|
35 |
Dim disableCriticalSectionEdit
|
|
|
36 |
Dim Query_String
|
|
|
37 |
'------------ Constants Declaration -----------
|
|
|
38 |
'------------ Variable Init -------------------
|
|
|
39 |
Set objFormCollector = CreateObject("Scripting.Dictionary")
|
|
|
40 |
parPv_id = QStrPar("pv_id")
|
|
|
41 |
'----------------------------------------------
|
|
|
42 |
%>
|
|
|
43 |
<%
|
|
|
44 |
Sub MessageBox()
|
|
|
45 |
%><script language="Javascript">
|
|
|
46 |
alert("You cannot select Generic with other BUILD MACHINE options!")
|
|
|
47 |
history.reload()
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
</script>
|
|
|
51 |
<%
|
|
|
52 |
End Sub
|
|
|
53 |
Sub Get_Form_Details( nPv_id, ByRef objDetails )
|
|
|
54 |
Dim rsTemp, Query_String
|
|
|
55 |
Query_String = _
|
|
|
56 |
" SELECT pkg.pkg_name, pv.pkg_version, pv.pkg_label, pv.src_path, pv.pv_description, pv.pv_overview, pv.v_ext, is_deployable, is_build_env_required, pv.build_type, pv.bs_id, pv.dlocked "&_
|
|
|
57 |
" FROM package_versions pv, packages pkg"&_
|
|
|
58 |
" WHERE pv.pkg_id = pkg.pkg_id"&_
|
|
|
59 |
" AND pv_id = "& nPv_id
|
|
|
60 |
|
|
|
61 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
62 |
If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
|
|
|
63 |
objDetails.Item("pkg_name") = rsTemp("pkg_name")
|
|
|
64 |
objDetails.Item("pkg_version") = rsTemp("pkg_version")
|
|
|
65 |
objDetails.Item("pkg_label") = rsTemp("pkg_label")
|
|
|
66 |
objDetails.Item("src_path") = rsTemp("src_path")
|
|
|
67 |
objDetails.Item("pv_description") = rsTemp("pv_description")
|
|
|
68 |
objDetails.Item("pv_overview") = rsTemp("pv_overview")
|
|
|
69 |
objDetails.Item("v_ext") = rsTemp("v_ext")
|
|
|
70 |
objDetails.Item("is_deployable") = rsTemp("is_deployable")
|
|
|
71 |
objDetails.Item("is_build_env_required") = rsTemp("is_build_env_required")
|
|
|
72 |
objDetails.Item("build_type") = rsTemp("build_type")
|
|
|
73 |
objDetails.Item("bs_id") = rsTemp("bs_id")
|
|
|
74 |
objDetails.Item("dlocked") = rsTemp("dlocked")
|
|
|
75 |
|
|
|
76 |
End If
|
|
|
77 |
|
|
|
78 |
rsTemp.Close
|
|
|
79 |
Set rsTemp = Nothing
|
|
|
80 |
End Sub
|
|
|
81 |
|
|
|
82 |
Sub Update_Pkg_Info ( NNpv_id, NNdeployable, SSLabel, SSPath, SSdesc, SSoverview )
|
|
|
83 |
Dim rsTemp, Query_String
|
|
|
84 |
Query_String = _
|
|
|
85 |
" SELECT pkg_label, src_path, pv_description, pv_overview, is_deployable "&_
|
|
|
86 |
" FROM package_versions"&_
|
|
|
87 |
" WHERE pv_id = "& NNpv_id
|
|
|
88 |
|
|
|
89 |
If SSdesc = "" Then SSdesc = NULL
|
|
|
90 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
91 |
|
|
|
92 |
rsTemp.Edit
|
|
|
93 |
|
|
|
94 |
' Only update build critical sections (label, source path) if allowed
|
|
|
95 |
If criticalSectionIsEditable Then
|
|
|
96 |
If (Request("FRlabelNA") <> "") Then
|
|
|
97 |
rsTemp.Fields("pkg_label").Value = "N/A"
|
|
|
98 |
Else
|
|
|
99 |
rsTemp.Fields("pkg_label").Value = SSLabel
|
|
|
100 |
End If
|
|
|
101 |
|
|
|
102 |
rsTemp.Fields("src_path").Value = SSPath
|
|
|
103 |
End If
|
|
|
104 |
|
|
|
105 |
' Update non-build critical sections
|
|
|
106 |
rsTemp.Fields("pv_description").Value = SSdesc
|
|
|
107 |
rsTemp.Fields("pv_overview").Value = SSoverview
|
|
|
108 |
|
|
|
109 |
If NNdeployable = "1" Then
|
|
|
110 |
rsTemp.Fields("is_deployable").Value = "Y"
|
|
|
111 |
Else
|
|
|
112 |
rsTemp.Fields("is_deployable").Value = NULL
|
|
|
113 |
End If
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
rsTemp.Update
|
|
|
117 |
|
|
|
118 |
rsTemp.Close
|
|
|
119 |
Set rsTemp = nothing
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
'--- Build Env Update
|
|
|
123 |
|
|
|
124 |
' Only update build critical sections (label, source path) if allowed
|
|
|
125 |
If criticalSectionIsEditable Then
|
|
|
126 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
127 |
OraDatabase.Parameters.Add "BS_ID", objFormCollector.Item("bs_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
128 |
If Request("be_id_req") <> "" Then
|
|
|
129 |
OraDatabase.Parameters.Add "BE_ID_LIST", NULL, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
130 |
Else
|
|
|
131 |
OraDatabase.Parameters.Add "BE_ID_LIST", Request("be_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
132 |
End If
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
OraSession.BeginTrans
|
|
|
139 |
|
|
|
140 |
OraDatabase.ExecuteSQL _
|
|
|
141 |
"BEGIN Set_Package_Build_Env_Temp ( :PV_ID, :BE_ID_LIST, :BS_ID ); END;"
|
|
|
142 |
|
|
|
143 |
OraSession.CommitTrans
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
'--- Set Build Types ---
|
|
|
148 |
Dim aBuildEnvList
|
|
|
149 |
Dim OraParameter
|
|
|
150 |
Dim nBuildMachine
|
|
|
151 |
|
|
|
152 |
If Request("be_id_req") = "" Then
|
|
|
153 |
|
|
|
154 |
OraDatabase.Parameters.Add "BSA_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
155 |
OraDatabase.Parameters.Add "BM_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
156 |
|
|
|
157 |
Set OraParameter = OraDatabase.Parameters
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
OraSession.BeginTrans
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
aBuildEnvList = Split( Replace( Request("be_id_list"), " ", "" ) , ",")
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
For Each nBuildMachine In aBuildEnvList
|
|
|
168 |
|
|
|
169 |
'Response.write nBuildEnv &"-"& Request("build_type_comb_"& nBuildEnv) &"<br>"
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
OraParameter("BSA_ID").Value = Request("build_type_comb_"& nBuildMachine)
|
|
|
173 |
OraParameter("BM_ID").Value = nBuildMachine
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
OraDatabase.ExecuteSQL _
|
|
|
177 |
" UPDATE PACKAGE_BUILD_INFO pbinfo SET "&_
|
|
|
178 |
" pbinfo.BSA_ID = :BSA_ID "&_
|
|
|
179 |
" WHERE pbinfo.PV_ID = :PV_ID "&_
|
|
|
180 |
" AND pbinfo.BM_ID = :BM_ID "
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
Next
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
OraSession.CommitTrans
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
OraSession.BeginTrans
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
aBuildEnvList = Split( Replace( Request("be_id_list"), " ", "" ) , ",")
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
For Each nBuildMachine In aBuildEnvList
|
|
|
199 |
|
|
|
200 |
'Response.write nBuildEnv &"-"& Request("build_type_comb_"& nBuildEnv) &"<br>"
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
OraParameter("BSA_ID").Value = Request("build_type_comb_"& nBuildMachine)
|
|
|
204 |
OraParameter("BM_ID").Value = nBuildMachine
|
|
|
205 |
|
|
|
206 |
If objFormCollector.Item("bs_id") = 2 Then
|
|
|
207 |
If nBuildMachine= 1 Then
|
|
|
208 |
OraParameter("BM_ID").Value = 11
|
|
|
209 |
Else
|
|
|
210 |
OraParameter("BM_ID").Value = 12
|
|
|
211 |
End If
|
|
|
212 |
End If
|
|
|
213 |
|
|
|
214 |
OraDatabase.ExecuteSQL _
|
|
|
215 |
" UPDATE PACKAGE_BUILD_ENV pbe SET "&_
|
|
|
216 |
" pbe.BUILD_TYPE = :BSA_ID "&_
|
|
|
217 |
" WHERE pbe.PV_ID = :PV_ID "&_
|
|
|
218 |
" AND pbe.BE_ID = :BM_ID "
|
|
|
219 |
Next
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
OraSession.CommitTrans
|
|
|
223 |
|
|
|
224 |
End If
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
228 |
OraDatabase.Parameters.Remove "BE_ID_LIST"
|
|
|
229 |
End If
|
|
|
230 |
End Sub
|
|
|
231 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
232 |
Function IsBuildTypeSelected ( nBuildTypeValue, nComboItem )
|
|
|
233 |
|
|
|
234 |
IsBuildTypeSelected = ""
|
|
|
235 |
|
|
|
236 |
If IsNull(nBuildTypeValue) OR (nBuildTypeValue = "") Then Exit Function
|
|
|
237 |
|
|
|
238 |
If ( CInt(nComboItem) = CInt(nBuildTypeValue) ) Then
|
|
|
239 |
IsBuildTypeSelected = "selected"
|
|
|
240 |
End If
|
|
|
241 |
|
|
|
242 |
End Function
|
|
|
243 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
244 |
Function ShowHideBuildType( sBuildEnvChecked )
|
|
|
245 |
|
|
|
246 |
ShowHideBuildType = "style='display:none;'"
|
|
|
247 |
|
|
|
248 |
If (sBuildEnvChecked <> "") Then
|
|
|
249 |
ShowHideBuildType = "style='display:block;'"
|
|
|
250 |
End If
|
|
|
251 |
|
|
|
252 |
End Function
|
|
|
253 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
254 |
Sub RenderBuildTypeCombo( nBuildAddendum, nBuildMachine, nBuildStandard )
|
|
|
255 |
|
|
|
256 |
If nBuildStandard = 1 Then
|
|
|
257 |
Query_String = "SELECT * FROM build_standards_addendum WHERE bs_id = 1 ORDER BY bsa_id DESC"
|
|
|
258 |
Else
|
|
|
259 |
Query_String = "SELECT * FROM build_standards_addendum WHERE bs_id = 2 ORDER BY bsa_id DESC"
|
|
|
260 |
End If
|
|
|
261 |
|
|
|
262 |
Response.Write "<select name='build_type_comb_"& nBuildMachine &"' class='form_item'"& disableCriticalSectionEdit &">"
|
|
|
263 |
|
|
|
264 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
265 |
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
|
|
|
266 |
|
|
|
267 |
If nBuildAddendum = rsTemp.Fields("bsa_id") Then
|
|
|
268 |
Response.write "<option value='"& rsTemp.Fields("bsa_id") &"' selected>"& rsTemp.Fields("bsa_name") &"</option>"
|
|
|
269 |
Else
|
|
|
270 |
Response.write "<option value='"& rsTemp.Fields("bsa_id") &"'>"& rsTemp.Fields("bsa_name") &"</option>"
|
|
|
271 |
End If
|
|
|
272 |
rsTemp.MoveNext
|
|
|
273 |
WEnd
|
|
|
274 |
|
|
|
275 |
rsTemp.Close()
|
|
|
276 |
Set rsTemp = nothing
|
|
|
277 |
|
|
|
278 |
|
|
|
279 |
Response.Write "</select>"
|
|
|
280 |
End Sub
|
|
|
281 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
282 |
Function GetRowColor( sRowColor )
|
|
|
283 |
If sRowColor = "#FFFFFF" Then
|
|
|
284 |
GetRowColor = "#F5F5F5"
|
|
|
285 |
Else
|
|
|
286 |
GetRowColor = "#FFFFFF"
|
|
|
287 |
End If
|
|
|
288 |
End Function
|
|
|
289 |
%>
|
|
|
290 |
<%
|
|
|
291 |
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
|
|
|
292 |
Call LoadFieldRules ( "'FRlabel','FRpath','pv_description','pv_overview','be_id_list'", objForm ) ' Load Validation Rules
|
|
|
293 |
Call Get_Form_Details( parPv_id, objFormCollector )
|
|
|
294 |
|
|
|
295 |
'--- From Validation Rule Changes ----
|
|
|
296 |
If objForm.IsPostBack Then
|
|
|
297 |
If (Request("FRlabelNA") = "Y") Then
|
|
|
298 |
objForm.UpdateRules ("id='FRlabel' IsRequired='N'")
|
|
|
299 |
End If
|
|
|
300 |
|
|
|
301 |
If (Request("be_id_req") = "N") Then
|
|
|
302 |
objForm.UpdateRules ("id='be_id_list' IsRequired='N'")
|
|
|
303 |
End If
|
|
|
304 |
|
|
|
305 |
Else
|
|
|
306 |
If objFormCollector.Item("pkg_label") = "N/A" Then
|
|
|
307 |
objForm.UpdateRules ("id='FRlabel' IsRequired='N'")
|
|
|
308 |
End If
|
|
|
309 |
|
|
|
310 |
If objFormCollector.Item("is_build_env_required") = "N" Then
|
|
|
311 |
objForm.UpdateRules ("id='be_id_list' IsRequired='N'")
|
|
|
312 |
End If
|
|
|
313 |
|
|
|
314 |
End If
|
|
|
315 |
|
|
|
316 |
If NOT criticalSectionIsEditable Then
|
|
|
317 |
objForm.UpdateRules ("id='FRlabel' IsRequired='N'")
|
|
|
318 |
objForm.UpdateRules ("id='FRpath' IsRequired='N'")
|
|
|
319 |
objForm.UpdateRules ("id='be_id_list' IsRequired='N'")
|
|
|
320 |
End If
|
|
|
321 |
|
|
|
322 |
|
|
|
323 |
'--- Access Control Setup ------------
|
|
|
324 |
pageIsEditable = Is_Page_Editable ( objFormCollector.Item ("dlocked") )
|
|
|
325 |
criticalSectionIsEditable = Is_Critical_Section_Editable ( objFormCollector.Item("dlocked") )
|
|
|
326 |
|
|
|
327 |
If criticalSectionIsEditable then
|
|
|
328 |
disableCriticalSectionEdit = ""
|
|
|
329 |
Else
|
|
|
330 |
disableCriticalSectionEdit = "disabled"
|
|
|
331 |
End If
|
|
|
332 |
|
|
|
333 |
|
|
|
334 |
'--- Process Submission ---------------
|
|
|
335 |
If CBool(QStrPar("action")) AND objAccessControl.UserLogedIn Then
|
|
|
336 |
If objForm.IsValidOnPostBack Then
|
|
|
337 |
Dim aBuildEnvList, nBuildEnv, display
|
|
|
338 |
display = false
|
|
|
339 |
aBuildEnvList = Split( Replace( Request("be_id_list"), " ", "" ) , ",")
|
|
|
340 |
|
|
|
341 |
If UBound(aBuildEnvList) > 0 Then
|
|
|
342 |
If aBuildEnvList(0) = "4" Then
|
|
|
343 |
display = true
|
|
|
344 |
End If
|
|
|
345 |
End If
|
|
|
346 |
|
|
|
347 |
|
|
|
348 |
For Each nBuildEnv In aBuildEnvList
|
|
|
349 |
If Request("build_type_comb_"& nBuildEnv) = 0 Then
|
|
|
350 |
display = true
|
|
|
351 |
End If
|
|
|
352 |
Next
|
|
|
353 |
|
|
|
354 |
If display then
|
|
|
355 |
Call MessageBox()
|
|
|
356 |
Else
|
|
|
357 |
Call Update_Pkg_Info ( parPv_id, QStrPar("FRdeployable"), QStrPar("FRlabel"), QStrPar("FRpath"), QStrPar("pv_description"), QStrPar("pv_overview") )
|
|
|
358 |
Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
|
|
|
359 |
Call CloseWindow
|
|
|
360 |
End If
|
|
|
361 |
End If
|
|
|
362 |
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
End If
|
|
|
366 |
'--------------------------------------------------------------------------------------------
|
|
|
367 |
%>
|
|
|
368 |
<html>
|
|
|
369 |
<head>
|
|
|
370 |
<title>Release Manager</title>
|
|
|
371 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
372 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
373 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
374 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
375 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
376 |
<!-- TIPS -->
|
|
|
377 |
<script language="JavaScript" src="images/tipster.js"></script>
|
|
|
378 |
<script language="JavaScript" src="images/_help_tips.js"></script>
|
|
|
379 |
<script language="JavaScript" type="text/javascript">
|
|
|
380 |
<!--
|
|
|
381 |
function SetLabel(slabel) {
|
|
|
382 |
if ( MM_findObj('FRlabelNA').checked ) {
|
|
|
383 |
|
|
|
384 |
MM_findObj('FRlabel').value = 'N/A';
|
|
|
385 |
MM_findObj('FRlabel').disabled = true;
|
|
|
386 |
} else {
|
|
|
387 |
MM_findObj('FRlabel').value = slabel;
|
|
|
388 |
MM_findObj('FRlabel').disabled = false;
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
}
|
|
|
392 |
//-->
|
|
|
393 |
</script>
|
|
|
394 |
</head>
|
|
|
395 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
|
|
396 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
397 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
398 |
<!----------------------------------------------------->
|
|
|
399 |
<form name="pkginfo" method="post" action="<%=scriptName%>">
|
|
|
400 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
|
|
401 |
<tr>
|
|
|
402 |
<td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/s_info_off.gif" width="21" height="21" hspace="5" border="0"></td>
|
|
|
403 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> Package Information </td>
|
|
|
404 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
|
|
405 |
<input type="submit" name="btn" value="Submit" <%If pageIsEditable Then%>class="form_btn_comp"<%Else%>disabled class="form_btn_comp_disabled"<%End If%>>
|
|
|
406 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
|
|
407 |
</td>
|
|
|
408 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%" nowrap>
|
|
|
409 |
<img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
|
|
|
410 |
</tr>
|
|
|
411 |
<tr>
|
|
|
412 |
<td height="100%" width="1%"> </td>
|
|
|
413 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
414 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
415 |
<tr>
|
|
|
416 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
|
|
417 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
|
|
418 |
<td nowrap width="1%"> </td>
|
|
|
419 |
<td nowrap width="100%"> </td>
|
|
|
420 |
</tr>
|
|
|
421 |
<tr>
|
|
|
422 |
<td> </td>
|
|
|
423 |
<td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
|
|
|
424 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objFormCollector.Item("pkg_name") &" "& objFormCollector.Item("pkg_version")%></td>
|
|
|
425 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"> </td>
|
|
|
426 |
</tr>
|
|
|
427 |
<tr>
|
|
|
428 |
<td> </td>
|
|
|
429 |
<td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Deployable?<%=Quick_Help ( "deployable" )%></td>
|
|
|
430 |
<%
|
|
|
431 |
FRdeployableYES = ""
|
|
|
432 |
FRdeployableNO = ""
|
|
|
433 |
|
|
|
434 |
If objForm.IsPostBack Then
|
|
|
435 |
If Request("FRdeployable") = "1" Then
|
|
|
436 |
FRdeployableYES = "checked"
|
|
|
437 |
Else
|
|
|
438 |
FRdeployableNO = "checked"
|
|
|
439 |
End If
|
|
|
440 |
|
|
|
441 |
Else
|
|
|
442 |
If objFormCollector.Item("is_deployable") = enumDB_YES Then
|
|
|
443 |
FRdeployableYES = "checked"
|
|
|
444 |
Else
|
|
|
445 |
FRdeployableNO = "checked"
|
|
|
446 |
End If
|
|
|
447 |
|
|
|
448 |
End If
|
|
|
449 |
%>
|
|
|
450 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">Yes<input name="FRdeployable" type="radio" value="1" <%=FRdeployableYES%>>
|
|
|
451 |
No<input name="FRdeployable" type="radio" value="0" <%=FRdeployableNO%>></td>
|
|
|
452 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"> </td>
|
|
|
453 |
</tr>
|
|
|
454 |
<tr>
|
|
|
455 |
<td> </td>
|
|
|
456 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
|
|
|
457 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
458 |
<%
|
|
|
459 |
Dim sDefaultLabel, sLabel, sLabelDisabled, sLabelChecked, sLabelReadOnly
|
|
|
460 |
sLabelDisabled = ""
|
|
|
461 |
sLabelChecked = ""
|
|
|
462 |
sLabelReadOnly = ""
|
|
|
463 |
sDefaultLabel = Default_Label( objFormCollector.Item("pkg_name"), objFormCollector.Item("pkg_version"), objFormCollector.Item("v_ext"))
|
|
|
464 |
|
|
|
465 |
If objFormCollector.Item("build_type") = "A" AND NOT criticalSectionIsEditable Then
|
|
|
466 |
sLabelReadOnly = "readonly"
|
|
|
467 |
End If
|
|
|
468 |
|
|
|
469 |
If objForm.IsPostBack Then
|
|
|
470 |
If (Request("FRlabelNA") <> "") Then
|
|
|
471 |
sLabelDisabled = "disabled"
|
|
|
472 |
sLabelChecked = "checked"
|
|
|
473 |
sLabel = "N/A"
|
|
|
474 |
Else
|
|
|
475 |
sLabel = Request("FRlabel")
|
|
|
476 |
End If
|
|
|
477 |
|
|
|
478 |
Else
|
|
|
479 |
If (objFormCollector.Item("pkg_label") = "N/A") Then
|
|
|
480 |
sLabelDisabled = "disabled"
|
|
|
481 |
sLabelChecked = "checked"
|
|
|
482 |
sLabel = "N/A"
|
|
|
483 |
Else
|
|
|
484 |
If objFormCollector.Item("pkg_label") = "" OR IsNull(objFormCollector.Item("pkg_label")) Then
|
|
|
485 |
sLabel = sDefaultLabel
|
|
|
486 |
Else
|
|
|
487 |
sLabel = objFormCollector.Item("pkg_label")
|
|
|
488 |
End If
|
|
|
489 |
objForm.SetValue "FRlabel", sLabel
|
|
|
490 |
|
|
|
491 |
End If
|
|
|
492 |
|
|
|
493 |
End If
|
|
|
494 |
|
|
|
495 |
|
|
|
496 |
%>
|
|
|
497 |
<%If objFormCollector.Item("build_type") = "M" AND criticalSectionIsEditable Then%>
|
|
|
498 |
<input name="FRlabelNA" type="checkbox" id="FRlabelNA" value="Y" <%=disableCriticalSectionEdit%> onClick="SetLabel('<%=sDefaultLabel%>');" <%=sLabelChecked%>> Label not applicable<br>
|
|
|
499 |
<%End If%>
|
|
|
500 |
<input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> value="<%=sLabel%>" <%=sLabelDisabled%> <%=sLabelReadOnly%>>
|
|
|
501 |
</td>
|
|
|
502 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
|
|
|
503 |
</tr>
|
|
|
504 |
<tr>
|
|
|
505 |
<td> </td>
|
|
|
506 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
|
|
|
507 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
508 |
<input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
|
|
|
509 |
<br>
|
|
|
510 |
Example:<br>
|
|
|
511 |
\MASS_Dev\Infra\core_cs <br>
|
|
|
512 |
</td>
|
|
|
513 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%>
|
|
|
514 |
</td>
|
|
|
515 |
</tr>
|
|
|
516 |
<tr>
|
|
|
517 |
<td> </td>
|
|
|
518 |
<td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Short
|
|
|
519 |
Package Description<%=Quick_Help ( "pkg_info_short_desc" )%></td>
|
|
|
520 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><textarea name="pv_description" cols="57" rows="5" class="form_item" id="pv_description"><%=objForm.GetValue( "pv_description", objFormCollector.Item("pv_description") )%></textarea>
|
|
|
521 |
</td>
|
|
|
522 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("pv_description")%></td>
|
|
|
523 |
</tr>
|
|
|
524 |
<tr>
|
|
|
525 |
<td> </td>
|
|
|
526 |
<td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Package Overview<%=Quick_Help ( "pkg_info_overview" )%></td>
|
|
|
527 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><textarea name="pv_overview" cols="57" rows="10" class="form_item" id="pv_overview"><%=objForm.GetValue( "pv_overview", objFormCollector.Item("pv_overview") )%></textarea>
|
|
|
528 |
</td>
|
|
|
529 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("pv_overview")%></td>
|
|
|
530 |
</tr>
|
|
|
531 |
|
|
|
532 |
<tr>
|
|
|
533 |
<td> </td>
|
|
|
534 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Build Environment<%=Quick_Help ( "build_environment" )%></td>
|
|
|
535 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
536 |
<%
|
|
|
537 |
checked = ""
|
|
|
538 |
If objForm.IsPostBack Then
|
|
|
539 |
If (Request("be_id_req") = "N") Then checked = "checked"
|
|
|
540 |
Else
|
|
|
541 |
If objFormCollector.Item("is_build_env_required") = "N" Then checked = "checked"
|
|
|
542 |
End If
|
|
|
543 |
%>
|
|
|
544 |
<%If objFormCollector.Item("is_build_env_required") = "N" Then%>
|
|
|
545 |
<input type="checkbox" name="be_id_req" value="N" <%=disableCriticalSectionEdit%> onClick="ToggleDisplay('divBuildEnv');" <%=checked%>> Build Environment not applicable
|
|
|
546 |
<%End If%>
|
|
|
547 |
<div id="divBuildEnv" name="divBuildEnv" style="width:320px; height:150px; overflow: auto; <%If (Request("be_id_req") = "N") OR (objFormCollector.Item("is_build_env_required") = "N") Then%>display:none;<%Else%>display:block;<%End If%>">
|
|
|
548 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
549 |
<tr>
|
|
|
550 |
<td bgcolor="#FFFFFF">
|
|
|
551 |
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
|
|
552 |
<%
|
|
|
553 |
OraDatabase.Parameters.Add "PV_ID", parPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
554 |
|
|
|
555 |
query = _
|
|
|
556 |
" SELECT DECODE ( pkgbinfo.BM_ID,"&_
|
|
|
557 |
" bm.BM_ID, 'checked',"&_
|
|
|
558 |
" NULL ) AS checked,"&_
|
|
|
559 |
" bm.BM_ID,"&_
|
|
|
560 |
" bm.BM_NAME, "&_
|
|
|
561 |
" pkgbinfo.BSA_ID"&_
|
|
|
562 |
" FROM BUILD_MACHINES bm,"&_
|
|
|
563 |
" PACKAGE_BUILD_INFO pkgbinfo"&_
|
|
|
564 |
" WHERE pkgbinfo.BM_ID (+)= bm.BM_ID"&_
|
|
|
565 |
" AND pkgbinfo.PV_ID (+)= :PV_ID"&_
|
|
|
566 |
" ORDER BY UPPER(bm.bm_name) "
|
|
|
567 |
|
|
|
568 |
|
|
|
569 |
Set rsQry = OraDatabase.DbCreateDynaset( query, cint(0))
|
|
|
570 |
Dim rowColor
|
|
|
571 |
|
|
|
572 |
rowColor = "#F5F5F5"
|
|
|
573 |
|
|
|
574 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
575 |
checked = ""
|
|
|
576 |
If objForm.IsTicked( "be_id_list", rsQry("bm_id"), rsQry("checked") ) Then
|
|
|
577 |
checked = "checked"
|
|
|
578 |
objForm.SetValue "be_id_list", checked
|
|
|
579 |
End If
|
|
|
580 |
|
|
|
581 |
rowColor = GetRowColor( rowColor )
|
|
|
582 |
%>
|
|
|
583 |
<tr>
|
|
|
584 |
<td nowrap class="form_txt" bgcolor="<%=rowColor%>"><input type="checkbox" name="be_id_list" onClick="ToggleDisplay('build_type_<%=rsQry("bm_id")%>');" <%=disableCriticalSectionEdit%> value="<%=rsQry("bm_id")%>" <%=checked%>></td>
|
|
|
585 |
<td nowrap class="form_txt" bgcolor="<%=rowColor%>"><%=rsQry("bm_name")%></td>
|
|
|
586 |
<td nowrap class="form_txt" bgcolor="<%=rowColor%>"><div id="build_type_<%=rsQry("bm_id")%>" <%=ShowHideBuildType( checked )%>><% Call RenderBuildTypeCombo( rsQry("bsa_id"), rsQry("bm_id"), objFormCollector.Item("bs_id") )%></div></td>
|
|
|
587 |
<%If checked = "checked" AND rsQry("bsa_id") = 0 Then%>
|
|
|
588 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><td background='images/red_dot.gif'><img src='images/spacer.gif' width='1' height='1'></td><td valign='top'><img src='icons/i_bulet_red.gif' width='4' height='4' hspace='3' vspace='4' border='0' align='absmiddle'></td><td class='val_err'>Required</td></td>
|
|
|
589 |
<%End If%>
|
|
|
590 |
</tr>
|
|
|
591 |
<%rsQry.MoveNext
|
|
|
592 |
WEnd
|
|
|
593 |
|
|
|
594 |
rsQry.Close
|
|
|
595 |
Set rsQry = Nothing
|
|
|
596 |
|
|
|
597 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
598 |
%>
|
|
|
599 |
<tr>
|
|
|
600 |
<td width="1"></td>
|
|
|
601 |
<td width="1"></td>
|
|
|
602 |
<td width="100%"></td>
|
|
|
603 |
</tr>
|
|
|
604 |
</table></td>
|
|
|
605 |
</tr>
|
|
|
606 |
</table>
|
|
|
607 |
</div>
|
|
|
608 |
</td>
|
|
|
609 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate("be_id_list")%></td>
|
|
|
610 |
</tr>
|
|
|
611 |
<tr>
|
|
|
612 |
<td> </td>
|
|
|
613 |
<td nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
|
|
614 |
<td nowrap> <p> </p></td>
|
|
|
615 |
<td nowrap> </td>
|
|
|
616 |
</tr>
|
|
|
617 |
</table>
|
|
|
618 |
</td>
|
|
|
619 |
</tr>
|
|
|
620 |
<tr>
|
|
|
621 |
<td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
|
|
622 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
|
|
623 |
</tr>
|
|
|
624 |
</table>
|
|
|
625 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
626 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
627 |
<input type="hidden" name="action" value="true">
|
|
|
628 |
</form>
|
|
|
629 |
</body>
|
|
|
630 |
</html>
|
|
|
631 |
<%
|
|
|
632 |
'------------- RUN AFTER PAGE RENDER ---------------
|
|
|
633 |
Set objFormCollector = Nothing
|
|
|
634 |
'---------------------------------------------------
|
|
|
635 |
%>
|
|
|
636 |
|
|
|
637 |
<!-- DESTRUCTOR ------->
|
|
|
638 |
<!--#include file="common/destructor.asp"-->
|