| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
| 129 |
ghuddy |
4 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
| 129 |
ghuddy |
8 |
' Package Information
|
| 119 |
ghuddy |
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
|
| 129 |
ghuddy |
36 |
Dim Query_String
|
|
|
37 |
Dim parVCSTag
|
|
|
38 |
Dim parBSName
|
|
|
39 |
Dim submit_action_url
|
|
|
40 |
Dim on_submit_validation
|
| 191 |
brianf |
41 |
Dim sDefaultLabel, sLabel, sLabelReadOnly
|
|
|
42 |
Dim isWIP
|
| 119 |
ghuddy |
43 |
'------------ Constants Declaration -----------
|
|
|
44 |
'------------ Variable Init -------------------
|
|
|
45 |
Set objFormCollector = CreateObject("Scripting.Dictionary")
|
|
|
46 |
parPv_id = QStrPar("pv_id")
|
| 129 |
ghuddy |
47 |
parVCSTag = QStrPar("vcs_tag")
|
|
|
48 |
parBSName = QStrPar("bs_name")
|
| 119 |
ghuddy |
49 |
'----------------------------------------------
|
|
|
50 |
%>
|
|
|
51 |
<%
|
| 129 |
ghuddy |
52 |
Sub MessageBox_BM_Exclusivity()
|
| 119 |
ghuddy |
53 |
%><script language="Javascript">
|
|
|
54 |
alert("You cannot select Generic with other BUILD MACHINE options!")
|
|
|
55 |
history.reload()
|
|
|
56 |
|
| 129 |
ghuddy |
57 |
</script>
|
|
|
58 |
<%
|
|
|
59 |
End Sub
|
| 119 |
ghuddy |
60 |
|
| 129 |
ghuddy |
61 |
Sub MessageBox_RequiredFieldsEmpty()
|
|
|
62 |
%><script language="Javascript">
|
|
|
63 |
alert("One or more required fields are still empty!\nFill in and submit, or cancel.")
|
|
|
64 |
history.reload()
|
|
|
65 |
|
| 119 |
ghuddy |
66 |
</script>
|
|
|
67 |
<%
|
|
|
68 |
End Sub
|
|
|
69 |
|
| 129 |
ghuddy |
70 |
Sub MessageBox_Need_A_BuildStandard()
|
|
|
71 |
%><script language="Javascript">
|
|
|
72 |
alert("This is an auto-build package version, and so a build standard/environment is required!\nFill in and re-submit, or cancel.")
|
|
|
73 |
history.reload()
|
| 119 |
ghuddy |
74 |
|
| 129 |
ghuddy |
75 |
</script>
|
|
|
76 |
<%
|
| 119 |
ghuddy |
77 |
End Sub
|
|
|
78 |
|
|
|
79 |
|
| 129 |
ghuddy |
80 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
81 |
' Function to get the build standard name (eg. JATS) from a build standard ID
|
|
|
82 |
Function bs_name_from_bs_id( nBs_Id )
|
|
|
83 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
84 |
|
| 129 |
ghuddy |
85 |
bs_name_from_bs_id = "NONE"
|
| 119 |
ghuddy |
86 |
|
| 129 |
ghuddy |
87 |
If NOT IsNull(nBs_Id) Then
|
|
|
88 |
Query_String = " SELECT * FROM build_standards WHERE bs_id = "& nBs_Id
|
|
|
89 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
90 |
If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
|
|
|
91 |
bs_name_from_bs_id = rsTemp("bs_name")
|
|
|
92 |
End If
|
|
|
93 |
End If
|
|
|
94 |
End Function
|
|
|
95 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
96 |
' Function to get the build standard ID from a build standard name (eg. JATS)
|
|
|
97 |
Function bs_id_from_bs_name( nBs_Name )
|
|
|
98 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
99 |
|
| 129 |
ghuddy |
100 |
bs_id_from_bs_name = 0
|
| 119 |
ghuddy |
101 |
|
| 129 |
ghuddy |
102 |
Query_String = " SELECT * FROM build_standards WHERE bs_name = '"& nBs_Name &"'"
|
|
|
103 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
104 |
If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
|
|
|
105 |
bs_id_from_bs_name = rsTemp("bs_id")
|
|
|
106 |
End If
|
|
|
107 |
End Function
|
|
|
108 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
109 |
' Function to get the Version Control System type ID for ClearCase, based on the assumption that the TAG used for
|
|
|
110 |
' ClearCase is 'CC'
|
|
|
111 |
Function get_clearcase_vcs_type_id()
|
|
|
112 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
113 |
|
| 129 |
ghuddy |
114 |
Query_String = _
|
|
|
115 |
" SELECT * FROM VCS_TYPE WHERE tag = 'CC'"
|
| 119 |
ghuddy |
116 |
|
| 129 |
ghuddy |
117 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
118 |
If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
|
|
|
119 |
get_clearcase_vcs_type_id = rsTemp("vcs_type_id")
|
|
|
120 |
Else
|
| 141 |
ghuddy |
121 |
Call RaiseMsg(enum_MSG_ERROR, "Database is missing a VCS setting for Name: ClearCase, Tag: CC")
|
| 129 |
ghuddy |
122 |
End If
|
|
|
123 |
rsTemp.Close
|
|
|
124 |
Set rsTemp = nothing
|
|
|
125 |
End Function
|
|
|
126 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
127 |
' Function to get the Version Control System type ID for Uncontrolled, based on the assumption that the TAG used for
|
|
|
128 |
' ClearCase is 'UC'
|
|
|
129 |
Function get_uncontrolled_vcs_type_id()
|
|
|
130 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
131 |
|
| 129 |
ghuddy |
132 |
Query_String = _
|
|
|
133 |
" SELECT * FROM VCS_TYPE WHERE tag = 'UC'"
|
| 119 |
ghuddy |
134 |
|
| 129 |
ghuddy |
135 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
136 |
If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
|
|
|
137 |
get_uncontrolled_vcs_type_id = rsTemp("vcs_type_id")
|
|
|
138 |
Else
|
| 141 |
ghuddy |
139 |
Call RaiseMsg(enum_MSG_ERROR, "Database is missing a VCS setting for Name: Uncontrolled, Tag: UC")
|
| 129 |
ghuddy |
140 |
End If
|
|
|
141 |
rsTemp.Close
|
|
|
142 |
Set rsTemp = nothing
|
|
|
143 |
End Function
|
|
|
144 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
145 |
Sub Get_Form_Details( nPv_id, ByRef objDetails )
|
|
|
146 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
147 |
|
| 129 |
ghuddy |
148 |
Dim CC_vcs_type_id
|
|
|
149 |
Dim UC_vcs_type_id
|
| 119 |
ghuddy |
150 |
|
| 129 |
ghuddy |
151 |
' Get VCS type IDs to use when evaluating legacy rows created before the introduction of the VCS tables and logic.
|
|
|
152 |
' These get uses in the query (see below) in the CASE statement.
|
|
|
153 |
CC_vcs_type_id = get_clearcase_vcs_type_id()
|
|
|
154 |
UC_vcs_type_id = get_uncontrolled_vcs_type_id()
|
| 119 |
ghuddy |
155 |
|
| 129 |
ghuddy |
156 |
Query_String = _
|
|
|
157 |
" SELECT pkg.pkg_name, pv.pkg_version, pv.pkg_label, pv.src_path, pv.pv_description,"&_
|
|
|
158 |
" pv.pv_overview, pv.v_ext, is_deployable, is_build_env_required, pv.build_type,"&_
|
|
|
159 |
" pv.bs_id, pv.dlocked,"&_
|
|
|
160 |
" (CASE WHEN pkg_label = 'N/A' AND pv.vcs_type_id IS NULL THEN "& UC_vcs_type_id &_
|
|
|
161 |
" WHEN pv.vcs_type_id IS NULL THEN " & CC_vcs_type_id &_
|
|
|
162 |
" ELSE pv.vcs_type_id END) AS vcs_type_id "&_
|
|
|
163 |
" FROM package_versions pv, packages pkg"&_
|
|
|
164 |
" WHERE pv.pkg_id = pkg.pkg_id"&_
|
|
|
165 |
" AND pv_id = "& nPv_id
|
| 119 |
ghuddy |
166 |
|
|
|
167 |
|
| 129 |
ghuddy |
168 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
169 |
If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
|
|
|
170 |
objDetails.Item("pkg_name") = rsTemp("pkg_name")
|
|
|
171 |
objDetails.Item("pkg_version") = rsTemp("pkg_version")
|
|
|
172 |
objDetails.Item("pkg_label") = rsTemp("pkg_label")
|
|
|
173 |
objDetails.Item("src_path") = rsTemp("src_path")
|
|
|
174 |
objDetails.Item("pv_description") = rsTemp("pv_description")
|
|
|
175 |
objDetails.Item("pv_overview") = rsTemp("pv_overview")
|
|
|
176 |
objDetails.Item("v_ext") = rsTemp("v_ext")
|
|
|
177 |
objDetails.Item("is_deployable") = rsTemp("is_deployable")
|
|
|
178 |
objDetails.Item("is_build_env_required") = rsTemp("is_build_env_required")
|
|
|
179 |
objDetails.Item("build_type") = rsTemp("build_type")
|
|
|
180 |
objDetails.Item("bs_id") = rsTemp("bs_id")
|
|
|
181 |
objDetails.Item("dlocked") = rsTemp("dlocked")
|
|
|
182 |
objDetails.Item("vcs_type_id") = rsTemp("vcs_type_id")
|
| 119 |
ghuddy |
183 |
|
| 129 |
ghuddy |
184 |
rsTemp.Close
|
| 119 |
ghuddy |
185 |
|
| 129 |
ghuddy |
186 |
' This code allows the form to be altered by the user from the original build std configuration to a new
|
|
|
187 |
' one without having to update the database - we only want to do that when the user hits the
|
|
|
188 |
' submit button. The relevant fields in the objDetails are obtained in different ways accordingly.
|
|
|
189 |
If IsNull(parBSName) OR parBSName = "" Then
|
|
|
190 |
objDetails.Item("bs_name") = bs_name_from_bs_id( objDetails.Item("bs_id") )
|
|
|
191 |
Else
|
|
|
192 |
objDetails.Item("bs_id") = bs_id_from_bs_name( parBSName )
|
|
|
193 |
objDetails.Item("bs_name") = parBSName
|
|
|
194 |
End If
|
| 119 |
ghuddy |
195 |
|
| 129 |
ghuddy |
196 |
' Re-evaluate the is_build_env_required flag setting based on the possibly updated bs_name
|
|
|
197 |
If UCase(objDetails.Item("bs_name")) = "NONE" Then
|
|
|
198 |
objDetails.Item("is_build_env_required") = "N"
|
|
|
199 |
Else
|
|
|
200 |
objDetails.Item("is_build_env_required") = "Y"
|
|
|
201 |
End If
|
| 119 |
ghuddy |
202 |
|
| 129 |
ghuddy |
203 |
' This code allows the form to be altered by the user from the original VCS configuration to a new
|
|
|
204 |
' one without having to update the database - we only want to do that when the user hits the
|
|
|
205 |
' submit button. The relevant fields in the objDetails are obtained in different ways accordingly.
|
|
|
206 |
If IsNull(parVCSTag) OR parVCSTag = "" Then
|
|
|
207 |
call vcs_info_from_vcs_type_id( objDetails.Item("vcs_type_id"), objDetails )
|
|
|
208 |
Else
|
|
|
209 |
call vcs_info_from_vcs_tag( parVCSTag, objDetails )
|
|
|
210 |
End If
|
| 119 |
ghuddy |
211 |
|
| 129 |
ghuddy |
212 |
End If
|
| 119 |
ghuddy |
213 |
|
| 129 |
ghuddy |
214 |
rsTemp.Close
|
|
|
215 |
Set rsTemp = Nothing
|
|
|
216 |
End Sub
|
|
|
217 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
218 |
' Updates the database, specifically the is_build_env_required flag setting in the package_versions table
|
|
|
219 |
' The update is only performed if it is needed, ie. if the value is already correct, no update is needed.
|
|
|
220 |
Sub UpdateIsBuildEnvRequired( nPv_id, nBs_name )
|
|
|
221 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
222 |
|
| 129 |
ghuddy |
223 |
Query_String = _
|
|
|
224 |
" SELECT bs_id, is_build_env_required"&_
|
|
|
225 |
" FROM package_versions"&_
|
|
|
226 |
" WHERE pv_id = "& nPv_id
|
| 119 |
ghuddy |
227 |
|
| 129 |
ghuddy |
228 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
| 119 |
ghuddy |
229 |
|
| 129 |
ghuddy |
230 |
If (UCase(nBs_name) = "NONE") AND (IsNull(rsTemp("is_build_env_required")) OR (rsTemp("is_build_env_required") <> "N")) Then
|
|
|
231 |
rsTemp.Edit
|
|
|
232 |
rsTemp.Fields("bs_id").Value = rsTemp("bs_id")
|
|
|
233 |
rsTemp.Fields("is_build_env_required").Value = "N"
|
|
|
234 |
rsTemp.Update
|
|
|
235 |
ElseIf (UCase(nBs_name) <> "NONE") AND (IsNull(rsTemp("is_build_env_required")) OR (rsTemp("is_build_env_required") <> "Y")) Then
|
|
|
236 |
rsTemp.Edit
|
|
|
237 |
rsTemp.Fields("bs_id").Value = rsTemp("bs_id")
|
|
|
238 |
rsTemp.Fields("is_build_env_required").Value = "Y"
|
|
|
239 |
rsTemp.Update
|
|
|
240 |
End If
|
| 119 |
ghuddy |
241 |
|
| 129 |
ghuddy |
242 |
rsTemp.Close
|
|
|
243 |
Set rsTemp = nothing
|
|
|
244 |
End Sub
|
|
|
245 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
246 |
' Deletes the rows belonging to the current PV_ID, from the package_build_info table.
|
|
|
247 |
' This is normally done in preparation for updating the package_build_info table based on the latest
|
|
|
248 |
' (and possibly updated) build standard for the current PV_ID.
|
|
|
249 |
Sub DeletePackageBuildInfo( nPv_id )
|
| 119 |
ghuddy |
250 |
|
| 129 |
ghuddy |
251 |
On Error Resume Next
|
|
|
252 |
objEH.TryORA ( OraSession )
|
| 119 |
ghuddy |
253 |
|
| 129 |
ghuddy |
254 |
OraDatabase.ExecuteSQL _
|
|
|
255 |
"DELETE FROM PACKAGE_BUILD_INFO WHERE PV_ID ="& nPv_id
|
| 119 |
ghuddy |
256 |
|
| 129 |
ghuddy |
257 |
objEH.CatchORA ( OraSession )
|
| 119 |
ghuddy |
258 |
|
| 129 |
ghuddy |
259 |
End Sub
|
|
|
260 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
261 |
' Updates the vcs_type_id column for the current PV_ID, in the package_versions table.
|
|
|
262 |
' The update is only performed if it is necessary, ie. the user has changed the setting via the form, or the existing
|
|
|
263 |
' value is not yet assigned.
|
|
|
264 |
Sub UpdateVCS ( nPv_id, nVcs_type_id, nVcs_name, nVcs_tag )
|
|
|
265 |
Dim rsTemp, Query_String
|
|
|
266 |
Dim new_bs_id
|
| 119 |
ghuddy |
267 |
|
| 129 |
ghuddy |
268 |
Query_String = _
|
|
|
269 |
" SELECT vcs_type_id"&_
|
|
|
270 |
" FROM package_versions"&_
|
|
|
271 |
" WHERE pv_id = "& nPv_id
|
| 119 |
ghuddy |
272 |
|
| 129 |
ghuddy |
273 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
| 119 |
ghuddy |
274 |
|
| 129 |
ghuddy |
275 |
' compare new bs_id to existing bs_id to see if a change has been requested
|
|
|
276 |
If nVcs_type_id <> rsTemp("vcs_type_id") OR IsNull(rsTemp("vcs_type_id")) Then
|
| 119 |
ghuddy |
277 |
|
| 129 |
ghuddy |
278 |
'update fields
|
|
|
279 |
rsTemp.Edit
|
|
|
280 |
rsTemp.Fields("vcs_type_id").Value = nVcs_type_id
|
|
|
281 |
rsTemp.Update
|
| 119 |
ghuddy |
282 |
|
| 129 |
ghuddy |
283 |
Call Log_Action ( nPv_id, "vcs_type_id_update", "VCS Type ID Update: " & nVcs_name )
|
|
|
284 |
End If
|
| 119 |
ghuddy |
285 |
|
| 129 |
ghuddy |
286 |
rsTemp.Close
|
|
|
287 |
Set rsTemp = nothing
|
|
|
288 |
End Sub
|
|
|
289 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
290 |
' Updates the bs_id column value for the current PV_ID in the package_versions table.
|
|
|
291 |
' The update is only performed if it is necessary, ie. the user has changed the setting via the form, or the existing
|
|
|
292 |
' value is not yet assigned.
|
|
|
293 |
Sub UpdateBuildStandard ( nPv_id, nBs_name )
|
|
|
294 |
Dim rsTemp, Query_String
|
|
|
295 |
Dim new_bs_id
|
| 119 |
ghuddy |
296 |
|
| 129 |
ghuddy |
297 |
' get the new bs_id from the bs_name parameter
|
|
|
298 |
new_bs_id = bs_id_from_bs_name(nBs_name)
|
| 119 |
ghuddy |
299 |
|
| 129 |
ghuddy |
300 |
Query_String = _
|
|
|
301 |
" SELECT bs_id, is_build_env_required"&_
|
|
|
302 |
" FROM package_versions"&_
|
|
|
303 |
" WHERE pv_id = "& nPv_id
|
| 119 |
ghuddy |
304 |
|
| 129 |
ghuddy |
305 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
| 119 |
ghuddy |
306 |
|
| 129 |
ghuddy |
307 |
' compare new bs_id to existing bs_id to see if a change has been requested
|
|
|
308 |
If new_bs_id <> rsTemp("bs_id") OR IsNull(rsTemp("bs_id")) Then
|
| 119 |
ghuddy |
309 |
|
| 129 |
ghuddy |
310 |
'update fields
|
|
|
311 |
rsTemp.Edit
|
|
|
312 |
rsTemp.Fields("bs_id").Value = new_bs_id
|
| 119 |
ghuddy |
313 |
|
| 129 |
ghuddy |
314 |
If UCase(nBs_name) = "NONE" Then
|
|
|
315 |
rsTemp.Fields("is_build_env_required").Value = "N"
|
|
|
316 |
Else
|
|
|
317 |
rsTemp.Fields("is_build_env_required").Value = "Y"
|
|
|
318 |
End If
|
|
|
319 |
rsTemp.Update
|
| 119 |
ghuddy |
320 |
|
| 129 |
ghuddy |
321 |
' Clear out the build info table of entries for this PV_ID.
|
|
|
322 |
Call DeletePackageBuildInfo(nPv_id)
|
| 119 |
ghuddy |
323 |
|
| 129 |
ghuddy |
324 |
Call Log_Action ( nPv_id, "build_standard_update", "Build Standard Update: " & nBs_name )
|
|
|
325 |
End If
|
| 119 |
ghuddy |
326 |
|
| 129 |
ghuddy |
327 |
rsTemp.Close
|
|
|
328 |
Set rsTemp = nothing
|
|
|
329 |
End Sub
|
|
|
330 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
331 |
' Updates the package_build_info table for the current PV_ID, based on the latest build_standard settings made
|
|
|
332 |
' by the user on the form
|
|
|
333 |
Sub UpdatePackageBuildInfo( NNpv_id )
|
|
|
334 |
'--- Set Build Types ---
|
|
|
335 |
Dim aBuildEnvList
|
|
|
336 |
Dim OraParameter
|
|
|
337 |
Dim nBuildMachine
|
| 119 |
ghuddy |
338 |
|
| 129 |
ghuddy |
339 |
' Before doing inserts for this PV_ID into the package_build_info table, we need to delete any existing
|
|
|
340 |
' rows for this PV_ID. This may have already been done if the user has changed the build standard, but
|
|
|
341 |
' there is no guarantee at this point that they have done that during this forms display.
|
|
|
342 |
Call DeletePackageBuildInfo( NNpv_id )
|
| 119 |
ghuddy |
343 |
|
| 129 |
ghuddy |
344 |
OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
345 |
OraDatabase.Parameters.Add "BM_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
346 |
OraDatabase.Parameters.Add "BSA_ID", 0, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 119 |
ghuddy |
347 |
|
| 129 |
ghuddy |
348 |
Set OraParameter = OraDatabase.Parameters
|
| 119 |
ghuddy |
349 |
|
| 129 |
ghuddy |
350 |
aBuildEnvList = Split( Replace( Request("be_id_list"), " ", "" ) , ",")
|
| 119 |
ghuddy |
351 |
|
| 129 |
ghuddy |
352 |
On Error Resume Next
|
|
|
353 |
objEH.TryORA ( OraSession )
|
| 119 |
ghuddy |
354 |
|
| 129 |
ghuddy |
355 |
For Each nBuildMachine In aBuildEnvList
|
| 119 |
ghuddy |
356 |
|
| 129 |
ghuddy |
357 |
OraParameter("BM_ID").Value = nBuildMachine
|
|
|
358 |
OraParameter("BSA_ID").Value = Request("build_type_comb_"& nBuildMachine)
|
| 119 |
ghuddy |
359 |
|
| 129 |
ghuddy |
360 |
If Err.Number = 0 Then
|
|
|
361 |
OraDatabase.ExecuteSQL("begin INSERT INTO PACKAGE_BUILD_INFO ( PV_ID, BM_ID, BSA_ID ) "&_
|
|
|
362 |
" VALUES( :PV_ID, :BM_ID, :BSA_ID ); end;")
|
|
|
363 |
End If
|
|
|
364 |
Next
|
| 119 |
ghuddy |
365 |
|
| 129 |
ghuddy |
366 |
objEH.CatchORA ( OraSession )
|
| 119 |
ghuddy |
367 |
|
| 129 |
ghuddy |
368 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
369 |
OraDatabase.Parameters.Remove "BM_ID"
|
|
|
370 |
OraDatabase.Parameters.Remove "BSA_ID"
|
|
|
371 |
End Sub
|
|
|
372 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
373 |
' This is the overall database update function called when the user hits the submit button on the form.
|
|
|
374 |
' It does some minor updates itself, but most of the work is done in subroutines.
|
|
|
375 |
' No attempt is made to keep the entire set of updates atomic. There really is no need to do that.
|
|
|
376 |
Sub Update_Pkg_Info ( NNpv_id, NNdeployable, SSLabel, SSPath, SSdesc, SSoverview )
|
|
|
377 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
378 |
|
| 129 |
ghuddy |
379 |
On Error Resume Next
|
| 119 |
ghuddy |
380 |
|
| 129 |
ghuddy |
381 |
Query_String = _
|
|
|
382 |
" SELECT pkg_label, src_path, pv_description, pv_overview, is_deployable "&_
|
|
|
383 |
" FROM package_versions"&_
|
|
|
384 |
" WHERE pv_id = "& NNpv_id
|
| 119 |
ghuddy |
385 |
|
| 129 |
ghuddy |
386 |
If SSdesc = "" Then SSdesc = NULL
|
|
|
387 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
| 119 |
ghuddy |
388 |
|
| 129 |
ghuddy |
389 |
rsTemp.Edit
|
| 119 |
ghuddy |
390 |
|
| 129 |
ghuddy |
391 |
' Only update build critical sections (label, source path) if allowed
|
|
|
392 |
If criticalSectionIsEditable Then
|
| 119 |
ghuddy |
393 |
|
| 191 |
brianf |
394 |
If (objFormCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) OR _
|
|
|
395 |
(objFormCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then
|
|
|
396 |
rsTemp.Fields("pkg_label").Value = SSLabel
|
|
|
397 |
ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SVN_TAG) and isWIP Then
|
|
|
398 |
rsTemp.Fields("pkg_label").Value = SSLabel
|
| 129 |
ghuddy |
399 |
Else
|
| 191 |
brianf |
400 |
rsTemp.Fields("pkg_label").Value = "N/A"
|
| 129 |
ghuddy |
401 |
End If
|
| 119 |
ghuddy |
402 |
|
| 129 |
ghuddy |
403 |
rsTemp.Fields("src_path").Value = SSPath
|
|
|
404 |
End If
|
| 119 |
ghuddy |
405 |
|
| 129 |
ghuddy |
406 |
' Update non-build critical sections
|
|
|
407 |
rsTemp.Fields("pv_description").Value = SSdesc
|
|
|
408 |
rsTemp.Fields("pv_overview").Value = SSoverview
|
| 119 |
ghuddy |
409 |
|
| 129 |
ghuddy |
410 |
If NNdeployable = "1" Then
|
|
|
411 |
rsTemp.Fields("is_deployable").Value = "Y"
|
|
|
412 |
Else
|
|
|
413 |
rsTemp.Fields("is_deployable").Value = NULL
|
|
|
414 |
End If
|
| 119 |
ghuddy |
415 |
|
| 129 |
ghuddy |
416 |
rsTemp.Update
|
| 119 |
ghuddy |
417 |
|
| 129 |
ghuddy |
418 |
rsTemp.Close
|
|
|
419 |
Set rsTemp = nothing
|
|
|
420 |
|
|
|
421 |
' Only update build critical sections if allowed
|
|
|
422 |
If criticalSectionIsEditable Then
|
|
|
423 |
|
|
|
424 |
' Update the VCS if necessary for this PV_ID
|
|
|
425 |
Call UpdateVCS( NNpv_id, objFormCollector.Item("vcs_type_id"), objFormCollector.Item("vcs_name"), objFormCollector.Item("vcs_tag") )
|
|
|
426 |
|
|
|
427 |
' Update the build standard if necessary for this PV_ID
|
|
|
428 |
Call UpdateBuildStandard( NNpv_id, objFormCollector.Item("bs_name") )
|
|
|
429 |
|
|
|
430 |
' Update the 'is build_env_required' flag for this PV_ID
|
|
|
431 |
Call UpdateIsBuildEnvRequired( NNpv_id, objFormCollector.Item("bs_name") )
|
|
|
432 |
|
|
|
433 |
' Update the package_build_info table for this PV_ID
|
|
|
434 |
Call UpdatePackageBuildInfo( NNpv_id )
|
|
|
435 |
End If
|
|
|
436 |
End Sub
|
| 119 |
ghuddy |
437 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
438 |
Function ShowHideBuildType( sBuildEnvChecked )
|
|
|
439 |
|
| 129 |
ghuddy |
440 |
ShowHideBuildType = "style='display:none;'"
|
| 119 |
ghuddy |
441 |
|
| 129 |
ghuddy |
442 |
If (sBuildEnvChecked <> "") Then
|
|
|
443 |
ShowHideBuildType = "style='display:block;'"
|
|
|
444 |
End If
|
| 119 |
ghuddy |
445 |
|
|
|
446 |
End Function
|
|
|
447 |
'----------------------------------------------------------------------------------------------------------------------
|
| 129 |
ghuddy |
448 |
' Renders the HTML for the build standard addendum drop down list boxes, ie. Prod, Debug, Prod+Debug, Java 1.4, Java 1.5, etc.
|
| 119 |
ghuddy |
449 |
Sub RenderBuildTypeCombo( nBuildAddendum, nBuildMachine, nBuildStandard )
|
|
|
450 |
|
| 129 |
ghuddy |
451 |
Query_String = "SELECT * FROM build_standards_addendum WHERE bs_id ="& nBuildStandard & " ORDER BY bsa_id DESC"
|
| 119 |
ghuddy |
452 |
|
| 129 |
ghuddy |
453 |
Response.Write "<select name='build_type_comb_"& nBuildMachine &"' class='form_item'"& disableCriticalSectionEdit &">"
|
| 119 |
ghuddy |
454 |
|
| 129 |
ghuddy |
455 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
456 |
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
|
| 119 |
ghuddy |
457 |
|
| 129 |
ghuddy |
458 |
If nBuildAddendum = rsTemp.Fields("bsa_id") Then
|
|
|
459 |
Response.write "<option value='"& rsTemp.Fields("bsa_id") &"' selected>"& rsTemp.Fields("bsa_name") &"</option>"
|
|
|
460 |
Else
|
|
|
461 |
Response.write "<option value='"& rsTemp.Fields("bsa_id") &"'>"& rsTemp.Fields("bsa_name") &"</option>"
|
|
|
462 |
End If
|
|
|
463 |
rsTemp.MoveNext
|
|
|
464 |
WEnd
|
|
|
465 |
Response.Write "</select>"
|
| 119 |
ghuddy |
466 |
|
| 129 |
ghuddy |
467 |
rsTemp.Close()
|
|
|
468 |
Set rsTemp = nothing
|
|
|
469 |
End Sub
|
|
|
470 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
471 |
' Renders the HTML for the Version Control Settings drop down list box
|
|
|
472 |
Sub RenderVCSCombo(nTag)
|
| 119 |
ghuddy |
473 |
|
| 129 |
ghuddy |
474 |
Query_String = "SELECT * FROM vcs_type ORDER BY name"
|
| 119 |
ghuddy |
475 |
|
| 129 |
ghuddy |
476 |
Response.Write "<select id='vcs_name_combo' name='vcs_name_combo' class='form_item' "& disableCriticalSectionEdit &" onchange='vcs_changed();'>"
|
|
|
477 |
|
|
|
478 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
479 |
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
|
|
|
480 |
|
|
|
481 |
If nTag = rsTemp.Fields("tag") Then
|
|
|
482 |
Response.write "<option value='"& rsTemp.Fields("name") &"' selected>"& rsTemp.Fields("name") &"</option>"
|
|
|
483 |
Else
|
|
|
484 |
' Add item to drop down only if it is not UC (uncontrolled). If it is UC, then only add it if the package
|
|
|
485 |
' version is a manual build type. It is not valid to allow autobuild packages to be uncontrolled (ie. the
|
|
|
486 |
' build (daemon) tool needs a label or something doesn't it?)
|
|
|
487 |
If rsTemp.Fields("tag") <> enum_VCS_UNCONTROLLED_TAG OR objFormCollector.Item("build_type") = "M" Then
|
|
|
488 |
Response.write "<option value='"& rsTemp.Fields("name") &"'>"& rsTemp.Fields("name") &"</option>"
|
|
|
489 |
End If
|
|
|
490 |
End If
|
|
|
491 |
rsTemp.MoveNext
|
|
|
492 |
WEnd
|
|
|
493 |
Response.Write "</select>"
|
|
|
494 |
|
|
|
495 |
' Create a hidden combo containing tags instead of names - we can use this to get a tag for a name without
|
|
|
496 |
' doing a database query
|
|
|
497 |
Response.Write "<td nowrap background='images/bg_form_lightbluedark.gif'><div id='div_vcs_tag_combo' name='div_vcs_tag_combo' style='visibility:hidden' >"
|
|
|
498 |
Response.Write "<select id='vcs_tag_combo' name='vcs_tag_combo' disabled hidden class='form_item' "& disableCriticalSectionEdit &">"
|
|
|
499 |
rsTemp.MoveFirst
|
|
|
500 |
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
|
|
|
501 |
Response.write "<option value='"& rsTemp.Fields("tag") &"'>"& rsTemp.Fields("tag") &"</option>"
|
|
|
502 |
rsTemp.MoveNext
|
|
|
503 |
WEnd
|
|
|
504 |
Response.Write "</select>"
|
|
|
505 |
Response.Write "</div></td>"
|
|
|
506 |
|
|
|
507 |
rsTemp.Close()
|
|
|
508 |
Set rsTemp = nothing
|
| 119 |
ghuddy |
509 |
End Sub
|
|
|
510 |
'----------------------------------------------------------------------------------------------------------------------
|
| 129 |
ghuddy |
511 |
' Renders the HTML for the build standard drop down list box
|
|
|
512 |
'
|
|
|
513 |
' Typically, this drop down would contain ANT, JATS, and NONE, although ofcoarse this is dependant upon what data is
|
|
|
514 |
' present in the build_standards table of the database
|
|
|
515 |
Sub RenderBldStdCombo(nBldStdName)
|
|
|
516 |
|
|
|
517 |
Query_String = "SELECT * FROM build_standards"
|
|
|
518 |
|
|
|
519 |
Response.Write "<select id='bld_std_combo' name='bld_std_combo' class='form_item' "& disableCriticalSectionEdit &" onchange='bld_std_changed();'>"
|
|
|
520 |
|
|
|
521 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
522 |
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
|
|
|
523 |
|
|
|
524 |
If nBldStdName = rsTemp.Fields("bs_name") Then
|
|
|
525 |
Response.write "<option value='"& rsTemp.Fields("bs_name") &"' selected>"& rsTemp.Fields("bs_name") &"</option>"
|
|
|
526 |
Else
|
|
|
527 |
Response.write "<option value='"& rsTemp.Fields("bs_name") &"'>"& rsTemp.Fields("bs_name") &"</option>"
|
|
|
528 |
End If
|
|
|
529 |
rsTemp.MoveNext
|
|
|
530 |
WEnd
|
|
|
531 |
Response.Write "</select>"
|
|
|
532 |
Response.Write "<td nowrap background='images/bg_form_lightbluedark.gif'> </td>"
|
|
|
533 |
|
|
|
534 |
rsTemp.Close()
|
|
|
535 |
Set rsTemp = nothing
|
|
|
536 |
End Sub
|
|
|
537 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
538 |
' Figures out what the url should be for when the form is submitted, ensuring that all of the paramters are present if
|
|
|
539 |
' need be. Note that the VCS and BSName parameters are optional. They will only be present if the user has made modifications
|
|
|
540 |
' to the respective drop down list boxes before submitting the form.
|
|
|
541 |
Sub Determine_submit_action_url ()
|
|
|
542 |
' Work out what the reload url should be for when the user hits the submit button
|
|
|
543 |
If IsNull(parVCSTag) OR parVCSTag = "" Then
|
|
|
544 |
If IsNull(parBSName) OR parBSName = "" Then
|
|
|
545 |
submit_action_url = scriptName & "?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id
|
|
|
546 |
Else
|
|
|
547 |
submit_action_url = scriptName & "?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id & "&bs_name=" & parBSName
|
|
|
548 |
End If
|
|
|
549 |
Else
|
|
|
550 |
If IsNull(parBSName) OR parBSName = "" Then
|
|
|
551 |
submit_action_url = scriptName & "?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id & "&vcs_tag=" & parVCSTag
|
|
|
552 |
Else
|
|
|
553 |
submit_action_url = scriptName & "?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id & "&vcs_tag=" & parVCSTag & "&bs_name=" & parBSName
|
|
|
554 |
End If
|
|
|
555 |
End If
|
|
|
556 |
End Sub
|
|
|
557 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
558 |
' This subroutine sets up the on_submit_validation string to be used in the form tag to validate certain fields
|
|
|
559 |
' in client-side javascript when a user tries to submit the form
|
|
|
560 |
Sub Determine_On_Submit_Validation
|
|
|
561 |
on_submit_validation = ""
|
|
|
562 |
|
|
|
563 |
If (objFormCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) Then
|
|
|
564 |
' Do clearcase path + label validation
|
|
|
565 |
on_submit_validation = "onSubmit=""MM_validateForm('FRlabel','Label','RisCCLabel','FRpath','Source Path','RisCCPath' ); return document.MM_returnValue"""
|
|
|
566 |
ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then
|
|
|
567 |
' Do subversion tag validation
|
|
|
568 |
on_submit_validation = "onSubmit=""MM_validateForm('FRpath','Subversion TAG','RisSVNTag' ); return document.MM_returnValue"""
|
|
|
569 |
End If
|
|
|
570 |
|
|
|
571 |
End Sub
|
|
|
572 |
'----------------------------------------------------------------------------------------------------------------------
|
|
|
573 |
' This function obtains a BM_ID (build machine ID) from a buidl machine name by querrying the database
|
|
|
574 |
Function Get_BM_ID_for_BM_Name(nBm_Name)
|
|
|
575 |
Dim rsTemp, Query_String
|
|
|
576 |
|
|
|
577 |
Get_BM_ID_for_BM_Name = ""
|
|
|
578 |
|
|
|
579 |
Query_String = "SELECT bm_id FROM build_machines bm WHERE bm.bm_name = '" & nBm_Name & "'"
|
|
|
580 |
|
|
|
581 |
Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
|
|
|
582 |
|
|
|
583 |
Get_BM_ID_for_BM_Name = ""
|
|
|
584 |
|
|
|
585 |
If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
|
|
|
586 |
Get_BM_ID_for_BM_Name = rsTemp("bm_id")
|
|
|
587 |
End If
|
|
|
588 |
|
|
|
589 |
End Function
|
|
|
590 |
'----------------------------------------------------------------------------------------------------------------------
|
| 119 |
ghuddy |
591 |
Function GetRowColor( sRowColor )
|
| 129 |
ghuddy |
592 |
If sRowColor = "#FFFFFF" Then
|
|
|
593 |
GetRowColor = "#F5F5F5"
|
|
|
594 |
Else
|
|
|
595 |
GetRowColor = "#FFFFFF"
|
|
|
596 |
End If
|
| 119 |
ghuddy |
597 |
End Function
|
| 129 |
ghuddy |
598 |
'----------------------------------------------------------------------------------------------------------------------
|
| 119 |
ghuddy |
599 |
%>
|
|
|
600 |
<%
|
|
|
601 |
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
|
| 129 |
ghuddy |
602 |
|
|
|
603 |
Call LoadFieldRules ( "'FRlabel','FRpath','pv_description','pv_overview','be_id_list'", objForm ) ' Load Validation Rules
|
| 119 |
ghuddy |
604 |
Call Get_Form_Details( parPv_id, objFormCollector )
|
|
|
605 |
|
|
|
606 |
|
|
|
607 |
|
| 129 |
ghuddy |
608 |
'--- From Validation Rule Changes ----
|
| 119 |
ghuddy |
609 |
|
| 129 |
ghuddy |
610 |
' Dont need the label if not using clearcase
|
| 139 |
ghuddy |
611 |
If (objFormCollector.Item("vcs_tag") <> enum_VCS_CLEARCASE_TAG) AND (objFormCollector.Item("vcs_tag") <> enum_VCS_CVS_TAG) Then
|
| 129 |
ghuddy |
612 |
objForm.UpdateRules ("id='FRlabel' IsRequired='N'")
|
|
|
613 |
End If
|
| 119 |
ghuddy |
614 |
|
| 129 |
ghuddy |
615 |
' Dont need the path if the package version is uncontrolled
|
|
|
616 |
If (objFormCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG) Then
|
|
|
617 |
objForm.UpdateRules ("id='FRpath' IsRequired='N'")
|
| 119 |
ghuddy |
618 |
End If
|
|
|
619 |
|
| 129 |
ghuddy |
620 |
' Dont need the build environment if the is_build_env_required is "N"
|
|
|
621 |
If objFormCollector.Item("is_build_env_required") = "N" Then
|
|
|
622 |
objForm.UpdateRules ("id='be_id_list' IsRequired='N'")
|
| 119 |
ghuddy |
623 |
End If
|
|
|
624 |
|
|
|
625 |
|
| 129 |
ghuddy |
626 |
|
| 119 |
ghuddy |
627 |
'--- Access Control Setup ------------
|
|
|
628 |
pageIsEditable = Is_Page_Editable ( objFormCollector.Item ("dlocked") )
|
|
|
629 |
criticalSectionIsEditable = Is_Critical_Section_Editable ( objFormCollector.Item("dlocked") )
|
| 191 |
brianf |
630 |
isWIP = PackageExists(parRtag_id,parPv_id,"work_in_progress")
|
| 119 |
ghuddy |
631 |
|
|
|
632 |
If criticalSectionIsEditable then
|
| 129 |
ghuddy |
633 |
disableCriticalSectionEdit = ""
|
| 119 |
ghuddy |
634 |
Else
|
| 129 |
ghuddy |
635 |
disableCriticalSectionEdit = "disabled"
|
| 119 |
ghuddy |
636 |
End If
|
|
|
637 |
|
| 129 |
ghuddy |
638 |
' Disable "Required" warnings for fields that cannot be edited by the current user at this time
|
|
|
639 |
If NOT criticalSectionIsEditable Then
|
|
|
640 |
objForm.UpdateRules ("id='FRlabel' IsRequired='N'")
|
|
|
641 |
objForm.UpdateRules ("id='FRpath' IsRequired='N'")
|
|
|
642 |
objForm.UpdateRules ("id='be_id_list' IsRequired='N'")
|
|
|
643 |
End If
|
| 119 |
ghuddy |
644 |
|
| 129 |
ghuddy |
645 |
|
| 119 |
ghuddy |
646 |
'--- Process Submission ---------------
|
|
|
647 |
|
| 129 |
ghuddy |
648 |
If objForm.IsPostBack Then
|
|
|
649 |
' use of the drop down lists or the submit button gets us in here
|
| 119 |
ghuddy |
650 |
|
| 129 |
ghuddy |
651 |
If objForm.IsValidOnPostBack Then
|
|
|
652 |
' only get here if the form is valid
|
| 119 |
ghuddy |
653 |
|
| 129 |
ghuddy |
654 |
' has the user pressed the submit button?
|
|
|
655 |
If Request("btn") = "Submit" Then
|
| 119 |
ghuddy |
656 |
|
| 129 |
ghuddy |
657 |
If objFormCollector.Item("build_type") = "A" AND UCase(objFormCollector.Item("bs_name")) = "NONE" Then
|
| 119 |
ghuddy |
658 |
|
| 129 |
ghuddy |
659 |
Call MessageBox_Need_A_BuildStandard()
|
| 119 |
ghuddy |
660 |
|
| 129 |
ghuddy |
661 |
Else
|
| 119 |
ghuddy |
662 |
|
| 129 |
ghuddy |
663 |
Dim aBuildEnvList, nBuildEnv, display
|
|
|
664 |
display = false
|
|
|
665 |
|
|
|
666 |
If UCase(objFormCollector.Item("bs_name")) <> "NONE" Then
|
|
|
667 |
' Check for mutual exclusivity rules on the build standard addendum items
|
|
|
668 |
aBuildEnvList = Split( Replace( Request("be_id_list"), " ", "" ) , ",")
|
|
|
669 |
|
|
|
670 |
' If >1 build machine items have been selected....
|
|
|
671 |
If UBound(aBuildEnvList) > 0 Then
|
|
|
672 |
Dim bm_id_generic
|
|
|
673 |
bm_id_generic = Get_BM_ID_for_BM_Name("Generic")
|
|
|
674 |
|
|
|
675 |
' If one of the selected build mnachines is "Generic" then we have a mutual exclusivity violation
|
|
|
676 |
For Each nBuildEnv In aBuildEnvList
|
|
|
677 |
If nBuildEnv = bm_id_generic Then
|
|
|
678 |
display = true
|
|
|
679 |
End If
|
|
|
680 |
Next
|
|
|
681 |
End If
|
|
|
682 |
End If
|
|
|
683 |
|
|
|
684 |
If display then
|
|
|
685 |
Call MessageBox_BM_Exclusivity()
|
|
|
686 |
Else
|
|
|
687 |
Call Update_Pkg_Info ( parPv_id, QStrPar("FRdeployable"), QStrPar("FRlabel"), QStrPar("FRpath"), QStrPar("pv_description"), QStrPar("pv_overview") )
|
|
|
688 |
Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
|
|
|
689 |
Call CloseWindow
|
|
|
690 |
End If
|
|
|
691 |
|
|
|
692 |
End If
|
|
|
693 |
|
|
|
694 |
|
|
|
695 |
Else
|
|
|
696 |
' We come through here when a user modifies the VCS or Build Standard drop down list settings
|
|
|
697 |
' We must stay in the form. There is nothing to do yet. The user may not have finished making their edits yet.
|
|
|
698 |
End If
|
|
|
699 |
Else
|
|
|
700 |
' The form is still invalid but we only want to issue the warning message if the user pressed the submit button
|
|
|
701 |
If Request("btn") = "Submit" Then
|
|
|
702 |
Call MessageBox_RequiredFieldsEmpty()
|
|
|
703 |
End If
|
|
|
704 |
End If
|
| 119 |
ghuddy |
705 |
End If
|
| 129 |
ghuddy |
706 |
|
|
|
707 |
' Determine the URL to use when and if this form is refreshed using F5, or when a user changes the
|
|
|
708 |
' values in one of the drop down lists and the form is reloaded with additional or changed parameters
|
|
|
709 |
' The html form will use the result of this in its action tag.
|
|
|
710 |
Call Determine_submit_action_url()
|
|
|
711 |
|
|
|
712 |
Call Determine_On_Submit_Validation()
|
|
|
713 |
|
| 119 |
ghuddy |
714 |
'--------------------------------------------------------------------------------------------
|
|
|
715 |
%>
|
|
|
716 |
<html>
|
|
|
717 |
<head>
|
|
|
718 |
<title>Release Manager</title>
|
|
|
719 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
720 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
721 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
722 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
723 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
724 |
<!-- TIPS -->
|
|
|
725 |
<script language="JavaScript" src="images/tipster.js"></script>
|
|
|
726 |
<script language="JavaScript" src="images/_help_tips.js"></script>
|
|
|
727 |
<script language="JavaScript" type="text/javascript">
|
|
|
728 |
<!--
|
|
|
729 |
|
| 129 |
ghuddy |
730 |
// This function is the onchange event handler for the Version Control System drop down list box.
|
|
|
731 |
// It will re-format the web page URL to pass the vcs_tag paramter reflecting the users choice in the drop down list,
|
|
|
732 |
// and submit the form using the updated URL.
|
|
|
733 |
function vcs_changed() {
|
|
|
734 |
var f = document.getElementById('pkginfo');
|
|
|
735 |
if (f == null) {
|
|
|
736 |
alert('Javascript Error : Failed to get pkginfo');
|
|
|
737 |
}
|
|
|
738 |
else {
|
| 119 |
ghuddy |
739 |
|
| 129 |
ghuddy |
740 |
var nc = document.getElementById('vcs_name_combo');
|
|
|
741 |
if (nc == null) {
|
|
|
742 |
alert('Javascript Error : Failed to get vcs_name_combo');
|
|
|
743 |
}
|
|
|
744 |
else {
|
|
|
745 |
var tc = document.getElementById('vcs_tag_combo');
|
|
|
746 |
if (tc == null) {
|
|
|
747 |
alert('Javascript Error : Failed to get vcs_tag_combo');
|
|
|
748 |
}
|
|
|
749 |
else {
|
|
|
750 |
// Form the new URL with the updated VCS tag passed as a parameter
|
| 139 |
ghuddy |
751 |
var tc2 = document.getElementById('vcs_name_combo');
|
|
|
752 |
if (tc2.options[nc.selectedIndex].value == 'Concurrent Versions System')
|
|
|
753 |
{
|
|
|
754 |
alert('The Concurrent Versions System (CVS) is not fully supported by ERG.\n' +
|
|
|
755 |
'This means you will have to manually build this package.\n' +
|
| 151 |
ghuddy |
756 |
'Please ensure you assign the version number manually, if that is not already so.\n');
|
| 139 |
ghuddy |
757 |
}
|
| 129 |
ghuddy |
758 |
<%If IsNull(parBSName) OR parBSName = "" Then%>
|
|
|
759 |
f.action = "_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&vcs_tag=" + tc.options[nc.selectedIndex].value;
|
|
|
760 |
<%Else%>
|
|
|
761 |
f.action = "_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&bs_name=<%=parBSName%>&vcs_tag=" + tc.options[nc.selectedIndex].value;
|
|
|
762 |
<%End If%>
|
|
|
763 |
|
|
|
764 |
f.submit();
|
|
|
765 |
}
|
|
|
766 |
}
|
|
|
767 |
}
|
| 119 |
ghuddy |
768 |
}
|
| 129 |
ghuddy |
769 |
|
|
|
770 |
// This function is the onchange event handler for the Build Standard drop down list box.
|
|
|
771 |
// It will re-format the web page URL to pass the vcs_tag paramter reflecting the users choice in the drop down list,
|
|
|
772 |
// and submit the form using the updated URL.
|
|
|
773 |
function bld_std_changed() {
|
|
|
774 |
var f = document.getElementById('pkginfo');
|
|
|
775 |
if (f == null) {
|
|
|
776 |
alert('Javascript Error : Failed to get pkginfo');
|
|
|
777 |
}
|
|
|
778 |
else {
|
|
|
779 |
var nc = document.getElementById('bld_std_combo');
|
|
|
780 |
if (nc == null) {
|
|
|
781 |
alert('Javascript Error : Failed to get bld_std_combo');
|
|
|
782 |
}
|
|
|
783 |
else {
|
|
|
784 |
// Form the new URL with the updated build standard name passed as a parameter
|
|
|
785 |
<%If IsNull(parVCSTag) OR parVCSTag = "" Then%>
|
|
|
786 |
f.action = "_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&bs_name=" + nc.options[nc.selectedIndex].value;
|
|
|
787 |
<%Else%>
|
|
|
788 |
f.action = "_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&vcs_tag=<%=parVCSTag%>&bs_name=" + nc.options[nc.selectedIndex].value;
|
|
|
789 |
<%End If%>
|
|
|
790 |
|
|
|
791 |
f.submit();
|
|
|
792 |
}
|
|
|
793 |
}
|
|
|
794 |
}
|
|
|
795 |
|
|
|
796 |
// This function will replace back slashes with forward slashes and can be used with an onchange event on fields
|
|
|
797 |
// where back slashes may be entered
|
|
|
798 |
function replace_back_slashes(e) {
|
|
|
799 |
var str = e.value;
|
|
|
800 |
e.value = str.replace(/\\/g,"/");
|
|
|
801 |
}
|
|
|
802 |
|
| 119 |
ghuddy |
803 |
//-->
|
|
|
804 |
</script>
|
|
|
805 |
</head>
|
|
|
806 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
|
|
807 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
808 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
809 |
<!----------------------------------------------------->
|
| 129 |
ghuddy |
810 |
<form id="pkginfo" name="pkginfo" method="post" <%=on_submit_validation%> action="<%=submit_action_url%>">
|
|
|
811 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
|
|
812 |
<tr>
|
|
|
813 |
<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>
|
|
|
814 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> Package Information </td>
|
|
|
815 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
|
|
816 |
<input type="submit" name="btn" value="Submit" <%If pageIsEditable Then%>class="form_btn_comp"<%Else%>disabled class="form_btn_comp_disabled"<%End If%>>
|
|
|
817 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="self.close()">
|
|
|
818 |
</td>
|
|
|
819 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%" nowrap>
|
|
|
820 |
<img src="images/h_trsp_dot.gif" width="5" height="22"> </td>
|
|
|
821 |
</tr>
|
| 119 |
ghuddy |
822 |
|
| 129 |
ghuddy |
823 |
<tr>
|
|
|
824 |
<td height="100%" width="1%"> </td>
|
|
|
825 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
826 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
827 |
<tr>
|
|
|
828 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
|
|
829 |
<td width="1%" nowrap class="form_group" valign="bottom"></td>
|
|
|
830 |
<td nowrap width="1%"> </td>
|
|
|
831 |
<td nowrap width="100%"> </td>
|
|
|
832 |
</tr>
|
|
|
833 |
<tr>
|
|
|
834 |
<td> </td>
|
|
|
835 |
<td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
|
|
|
836 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objFormCollector.Item("pkg_name") &" "& objFormCollector.Item("pkg_version")%></td>
|
|
|
837 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"> </td>
|
|
|
838 |
</tr>
|
|
|
839 |
<tr>
|
|
|
840 |
<td> </td>
|
|
|
841 |
<td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Deployable?<%=Quick_Help ( "deployable" )%></td>
|
|
|
842 |
<%
|
|
|
843 |
FRdeployableYES = ""
|
|
|
844 |
FRdeployableNO = ""
|
| 119 |
ghuddy |
845 |
|
| 129 |
ghuddy |
846 |
If objForm.IsPostBack Then
|
|
|
847 |
If Request("FRdeployable") = "1" Then
|
|
|
848 |
FRdeployableYES = "checked"
|
|
|
849 |
Else
|
|
|
850 |
FRdeployableNO = "checked"
|
|
|
851 |
End If
|
| 119 |
ghuddy |
852 |
|
| 129 |
ghuddy |
853 |
Else
|
|
|
854 |
If objFormCollector.Item("is_deployable") = enumDB_YES Then
|
|
|
855 |
FRdeployableYES = "checked"
|
|
|
856 |
Else
|
|
|
857 |
FRdeployableNO = "checked"
|
|
|
858 |
End If
|
| 119 |
ghuddy |
859 |
|
| 129 |
ghuddy |
860 |
End If
|
|
|
861 |
%>
|
|
|
862 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">Yes<input name="FRdeployable" type="radio" value="1" <%=FRdeployableYES%>>
|
|
|
863 |
No<input name="FRdeployable" type="radio" value="0" <%=FRdeployableNO%>></td>
|
|
|
864 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"> </td>
|
|
|
865 |
</tr>
|
|
|
866 |
<tr>
|
|
|
867 |
<td> </td>
|
|
|
868 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Version Control System</td>
|
|
|
869 |
<td nowrap background="images/bg_form_lightbluedark.gif">
|
|
|
870 |
<% Call RenderVCSCombo(objFormCollector.Item("vcs_tag"))%>
|
|
|
871 |
</td>
|
|
|
872 |
</tr>
|
| 119 |
ghuddy |
873 |
|
| 129 |
ghuddy |
874 |
<%If (objFormCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) Then%>
|
|
|
875 |
<tr>
|
|
|
876 |
<td> </td>
|
|
|
877 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
|
|
|
878 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
879 |
<%
|
|
|
880 |
sLabelReadOnly = ""
|
|
|
881 |
sDefaultLabel = Default_Label(parPv_id, objFormCollector.Item("build_type"), objFormCollector.Item("pkg_name"), objFormCollector.Item("pkg_version"), objFormCollector.Item("v_ext"))
|
| 119 |
ghuddy |
882 |
|
| 129 |
ghuddy |
883 |
If objFormCollector.Item("build_type") = "A" AND NOT criticalSectionIsEditable Then
|
|
|
884 |
sLabelReadOnly = "readonly"
|
|
|
885 |
End If
|
| 119 |
ghuddy |
886 |
|
| 129 |
ghuddy |
887 |
If objForm.IsPostBack Then
|
|
|
888 |
sLabel = Request("FRlabel")
|
| 119 |
ghuddy |
889 |
|
| 129 |
ghuddy |
890 |
' If a user has switched the form back and forth between different VCS settings, and the previous one did not utilise a label
|
|
|
891 |
' the FRlabel request we just did will return a null/empty, so set sLabel to the default label once more if this is the case.
|
|
|
892 |
' Also, we use the SetValueForced() function to force the value of sLabel into the object that does some of our validation for us.
|
|
|
893 |
' That function (as opposed to the plain SetValue() function) cares nothing about the setting of the IsPostBack flag in the
|
|
|
894 |
' object. If we didnt do this, the field on the visible form would be highlighted with "Required" because SetValue() just does
|
|
|
895 |
' a Request() in IsPostBack situations, and so our sLabel value will not be acquired by the object for validation.
|
|
|
896 |
If IsNull(sLabel) OR sLabel = "" Then
|
|
|
897 |
sLabel = sDefaultLabel
|
|
|
898 |
objForm.SetValueForced "FRlabel", sLabel
|
|
|
899 |
End If
|
|
|
900 |
Else
|
|
|
901 |
If (objFormCollector.Item("pkg_label") = "N/A") Then
|
|
|
902 |
sLabel = "N/A"
|
|
|
903 |
Else
|
|
|
904 |
If objFormCollector.Item("pkg_label") = "" OR IsNull(objFormCollector.Item("pkg_label")) Then
|
|
|
905 |
sLabel = sDefaultLabel
|
|
|
906 |
Else
|
|
|
907 |
sLabel = objFormCollector.Item("pkg_label")
|
|
|
908 |
End If
|
|
|
909 |
objForm.SetValue "FRlabel", sLabel
|
|
|
910 |
End If
|
|
|
911 |
End If
|
|
|
912 |
%>
|
|
|
913 |
<input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> value="<%=sLabel%>" <%=sLabelReadOnly%>>
|
|
|
914 |
</td>
|
|
|
915 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
|
|
|
916 |
</tr>
|
|
|
917 |
<tr>
|
|
|
918 |
<td> </td>
|
|
|
919 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
|
|
|
920 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
921 |
<input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
|
|
|
922 |
<br>
|
|
|
923 |
Example:<br>/MASS_Dev_Infra/core_cs <br>
|
|
|
924 |
</td>
|
|
|
925 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
|
|
|
926 |
</tr>
|
|
|
927 |
<%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG) Then%>
|
|
|
928 |
<tr>
|
|
|
929 |
<td> </td>
|
|
|
930 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">SubVersion Tag<%=Quick_Help ( "svn_tag" )%></td>
|
|
|
931 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
932 |
<input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
|
|
|
933 |
<br>
|
|
|
934 |
Example:<br>MASS_Dev_Infra/core_cs/trunk@12843 <br>
|
|
|
935 |
</td>
|
|
|
936 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
|
|
|
937 |
</tr>
|
| 191 |
brianf |
938 |
<%If isWIP Then %>
|
|
|
939 |
<tr>
|
|
|
940 |
<td> </td>
|
|
|
941 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">WIP Tag</td>
|
|
|
942 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
943 |
<%
|
|
|
944 |
sLabelReadOnly = ""
|
|
|
945 |
sDefaultLabel = Default_Label(parPv_id, objFormCollector.Item("build_type"), objFormCollector.Item("pkg_name"), objFormCollector.Item("pkg_version"), objFormCollector.Item("v_ext"))
|
|
|
946 |
|
|
|
947 |
If objFormCollector.Item("build_type") = "A" AND NOT criticalSectionIsEditable Then
|
|
|
948 |
sLabelReadOnly = "readonly"
|
|
|
949 |
End If
|
|
|
950 |
|
|
|
951 |
If objForm.IsPostBack Then
|
|
|
952 |
sLabel = Request("FRlabel")
|
|
|
953 |
|
|
|
954 |
' If a user has switched the form back and forth between different VCS settings, and the previous one did not utilise a label
|
|
|
955 |
' the FRlabel request we just did will return a null/empty, so set sLabel to the default label once more if this is the case.
|
|
|
956 |
' Also, we use the SetValueForced() function to force the value of sLabel into the object that does some of our validation for us.
|
|
|
957 |
' That function (as opposed to the plain SetValue() function) cares nothing about the setting of the IsPostBack flag in the
|
|
|
958 |
' object. If we didnt do this, the field on the visible form would be highlighted with "Required" because SetValue() just does
|
|
|
959 |
' a Request() in IsPostBack situations, and so our sLabel value will not be acquired by the object for validation.
|
|
|
960 |
If IsNull(sLabel) OR sLabel = "" Then
|
|
|
961 |
sLabel = sDefaultLabel
|
|
|
962 |
objForm.SetValueForced "FRlabel", sLabel
|
|
|
963 |
End If
|
|
|
964 |
Else
|
|
|
965 |
If (objFormCollector.Item("pkg_label") = "N/A") Then
|
|
|
966 |
sLabel = "N/A"
|
|
|
967 |
Else
|
|
|
968 |
If objFormCollector.Item("pkg_label") = "" OR IsNull(objFormCollector.Item("pkg_label")) Then
|
|
|
969 |
sLabel = sDefaultLabel
|
|
|
970 |
Else
|
|
|
971 |
sLabel = objFormCollector.Item("pkg_label")
|
|
|
972 |
End If
|
|
|
973 |
objForm.SetValue "FRlabel", sLabel
|
|
|
974 |
End If
|
|
|
975 |
End If
|
|
|
976 |
%>
|
|
|
977 |
<input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> value="<%=sLabel%>" <%=sLabelReadOnly%>>
|
|
|
978 |
</td>
|
|
|
979 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
|
|
|
980 |
</tr>
|
|
|
981 |
<%End If%>
|
| 139 |
ghuddy |
982 |
<%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
|
|
|
983 |
<tr>
|
|
|
984 |
<td> </td>
|
|
|
985 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Label<%=Quick_Help ( "pkg_label" )%></td>
|
|
|
986 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
987 |
<input type="text" name="FRlabel" id="FRlabel" maxlength="50" size="60" class="form_item" <%=disableCriticalSectionEdit%> value="<%=objForm.GetValue( "FRlabel", objFormCollector.Item("pkg_label") )%>" >
|
|
|
988 |
</td>
|
|
|
989 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRlabel")%></td>
|
|
|
990 |
</tr>
|
|
|
991 |
<tr>
|
|
|
992 |
<td> </td>
|
|
|
993 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Source Path<%=Quick_Help ( "src_path" )%></td>
|
|
|
994 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
995 |
<input name="FRpath" type="text" class="form_item" <%=disableCriticalSectionEdit%> id="FRpath" onchange="replace_back_slashes(this);" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>" size="60" maxlength="2000">
|
|
|
996 |
<br>
|
|
|
997 |
Example:<br>/MASS_Dev_Infra/core_cs <br>
|
|
|
998 |
</td>
|
|
|
999 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("FRpath")%></td>
|
|
|
1000 |
</tr>
|
| 129 |
ghuddy |
1001 |
<%ElseIf (objFormCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG) Then%>
|
|
|
1002 |
<input name="FRlabel" type="hidden" id="FRlabel" value="<%=sLabel%>">
|
|
|
1003 |
<input name="FRpath" type="hidden" id="FRpath" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>">
|
|
|
1004 |
<%Else%>
|
|
|
1005 |
<tr>
|
|
|
1006 |
<td> </td>
|
|
|
1007 |
<td colspan=3 background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
|
|
|
1008 |
<span class='err_alert'><b>WARNING:</b> Release Manager Website does not currently support the selected Version Control System</span>
|
|
|
1009 |
</td>
|
|
|
1010 |
</tr>
|
|
|
1011 |
<input name="FRlabel" type="hidden" id="FRlabel" value="<%=sLabel%>">
|
|
|
1012 |
<input name="FRpath" type="hidden" id="FRpath" value="<%=objForm.GetValue( "FRpath", objFormCollector.Item("src_path") )%>">
|
|
|
1013 |
<%End If%>
|
| 119 |
ghuddy |
1014 |
|
| 129 |
ghuddy |
1015 |
<tr>
|
|
|
1016 |
<td> </td>
|
|
|
1017 |
<td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Short Package Description<%=Quick_Help ( "pkg_info_short_desc" )%></td>
|
|
|
1018 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
1019 |
<textarea name="pv_description" cols="57" rows="5" class="form_item" id="pv_description"><%=objForm.GetValue( "pv_description", objFormCollector.Item("pv_description") )%></textarea>
|
|
|
1020 |
</td>
|
|
|
1021 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("pv_description")%></td>
|
|
|
1022 |
</tr>
|
|
|
1023 |
<tr>
|
|
|
1024 |
<td> </td>
|
|
|
1025 |
<td valign="top" background="images/bg_form_lightbluedark.gif" class="form_field">Package Overview<%=Quick_Help ( "pkg_info_overview" )%></td>
|
|
|
1026 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
1027 |
<textarea name="pv_overview" cols="57" rows="10" class="form_item" id="pv_overview"><%=objForm.GetValue( "pv_overview", objFormCollector.Item("pv_overview") )%></textarea>
|
|
|
1028 |
</td>
|
|
|
1029 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate ("pv_overview")%></td>
|
|
|
1030 |
</tr>
|
| 119 |
ghuddy |
1031 |
|
| 129 |
ghuddy |
1032 |
<tr>
|
|
|
1033 |
<td> </td>
|
|
|
1034 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Build Standard</td>
|
|
|
1035 |
<td nowrap background="images/bg_form_lightbluedark.gif">
|
|
|
1036 |
<% Call RenderBldStdCombo(objFormCollector.Item("bs_name"))%>
|
|
|
1037 |
</td>
|
|
|
1038 |
</tr>
|
| 119 |
ghuddy |
1039 |
|
| 129 |
ghuddy |
1040 |
<tr>
|
|
|
1041 |
<td> </td>
|
|
|
1042 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Build Environment<%=Quick_Help ( "build_environment" )%></td>
|
|
|
1043 |
<td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
1044 |
<%If objFormCollector.Item("is_build_env_required") = "N" Then%>
|
|
|
1045 |
Build Environment not applicable
|
|
|
1046 |
<%End If%>
|
| 119 |
ghuddy |
1047 |
|
| 129 |
ghuddy |
1048 |
<div id="divBuildEnv" name="divBuildEnv" style="width:320px; height:150px; overflow: auto; <%If (objFormCollector.Item("is_build_env_required") = "N") Then%>display:none;<%Else%>display:block;<%End If%>">
|
|
|
1049 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
1050 |
<tr>
|
|
|
1051 |
<td bgcolor="#FFFFFF">
|
|
|
1052 |
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
|
|
1053 |
<%
|
|
|
1054 |
OraDatabase.Parameters.Add "PV_ID", parPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 119 |
ghuddy |
1055 |
|
| 129 |
ghuddy |
1056 |
query = _
|
|
|
1057 |
" SELECT DECODE ( pkgbinfo.BM_ID,"&_
|
|
|
1058 |
" bm.BM_ID, 'checked',"&_
|
|
|
1059 |
" NULL ) AS checked,"&_
|
|
|
1060 |
" bm.BM_ID,"&_
|
|
|
1061 |
" bm.BM_NAME, "&_
|
|
|
1062 |
" pkgbinfo.BSA_ID"&_
|
|
|
1063 |
" FROM BUILD_MACHINES bm,"&_
|
|
|
1064 |
" PACKAGE_BUILD_INFO pkgbinfo"&_
|
|
|
1065 |
" WHERE pkgbinfo.BM_ID (+)= bm.BM_ID"&_
|
|
|
1066 |
" AND pkgbinfo.PV_ID (+)= :PV_ID"&_
|
|
|
1067 |
" ORDER BY UPPER(bm.bm_name) "
|
| 119 |
ghuddy |
1068 |
|
|
|
1069 |
|
| 129 |
ghuddy |
1070 |
Set rsQry = OraDatabase.DbCreateDynaset( query, cint(0))
|
|
|
1071 |
Dim rowColor
|
| 119 |
ghuddy |
1072 |
|
| 129 |
ghuddy |
1073 |
rowColor = "#F5F5F5"
|
| 119 |
ghuddy |
1074 |
|
| 129 |
ghuddy |
1075 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
1076 |
checked = ""
|
|
|
1077 |
If objForm.IsTicked( "be_id_list", rsQry("bm_id"), rsQry("checked") ) Then
|
|
|
1078 |
checked = "checked"
|
|
|
1079 |
objForm.SetValue "be_id_list", checked
|
|
|
1080 |
End If
|
| 119 |
ghuddy |
1081 |
|
| 129 |
ghuddy |
1082 |
rowColor = GetRowColor( rowColor )
|
|
|
1083 |
%>
|
|
|
1084 |
<tr>
|
|
|
1085 |
<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>
|
|
|
1086 |
<td nowrap class="form_txt" bgcolor="<%=rowColor%>"><%=rsQry("bm_name")%></td>
|
|
|
1087 |
<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>
|
|
|
1088 |
<%If checked = "checked" AND rsQry("bsa_id") = 0 Then%>
|
|
|
1089 |
<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>
|
|
|
1090 |
<%End If%>
|
|
|
1091 |
</tr>
|
|
|
1092 |
<%rsQry.MoveNext
|
|
|
1093 |
WEnd
|
| 119 |
ghuddy |
1094 |
|
| 129 |
ghuddy |
1095 |
rsQry.Close
|
|
|
1096 |
Set rsQry = Nothing
|
|
|
1097 |
|
|
|
1098 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
1099 |
%>
|
|
|
1100 |
<tr>
|
|
|
1101 |
<td width="1"></td>
|
|
|
1102 |
<td width="1"></td>
|
|
|
1103 |
<td width="100%"></td>
|
|
|
1104 |
</tr>
|
|
|
1105 |
</table>
|
|
|
1106 |
</td>
|
|
|
1107 |
</tr>
|
|
|
1108 |
</table>
|
|
|
1109 |
</div>
|
|
|
1110 |
</td>
|
|
|
1111 |
<td valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_txt"><%=objForm.Validate("be_id_list")%></td>
|
|
|
1112 |
</tr>
|
|
|
1113 |
<tr>
|
|
|
1114 |
<td> </td>
|
|
|
1115 |
<td nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="100" height="10"></td>
|
|
|
1116 |
<td nowrap> <p> </p></td>
|
|
|
1117 |
<td nowrap> </td>
|
|
|
1118 |
</tr>
|
|
|
1119 |
</table>
|
|
|
1120 |
</td>
|
|
|
1121 |
</tr>
|
|
|
1122 |
<tr>
|
|
|
1123 |
<td height="1%" width="1%"><img src="images/h_trsp_dot.gif" width="5" height="5"></td>
|
|
|
1124 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/lbox_bg_blue.gif"></td>
|
|
|
1125 |
</tr>
|
|
|
1126 |
</table>
|
|
|
1127 |
<input type="hidden" name="pv_id" id="pv_id" value="<%=parPv_id%>">
|
|
|
1128 |
<input type="hidden" name="rtag_id" id="rtag_id" value="<%=parRtag_id%>">
|
|
|
1129 |
<input type="hidden" name="vcs_tag" id="vcs_tag" value="<%=parVCSTag%>">
|
|
|
1130 |
<input type="hidden" name="bs_name" id="bs_name" value="<%=parBSName%>">
|
| 119 |
ghuddy |
1131 |
</form>
|
|
|
1132 |
</body>
|
|
|
1133 |
</html>
|
|
|
1134 |
<%
|
|
|
1135 |
'------------- RUN AFTER PAGE RENDER ---------------
|
|
|
1136 |
Set objFormCollector = Nothing
|
|
|
1137 |
'---------------------------------------------------
|
|
|
1138 |
%>
|
|
|
1139 |
|
|
|
1140 |
<!-- DESTRUCTOR ------->
|
|
|
1141 |
<!--#include file="common/destructor.asp"-->
|