| Line 51... |
Line 51... |
| 51 |
parPv_id = Request("pv_id")
|
51 |
parPv_id = Request("pv_id")
|
| 52 |
parRepeat = Request("repeat")
|
52 |
parRepeat = Request("repeat")
|
| 53 |
parInst_id = Request("inst_id")
|
53 |
parInst_id = Request("inst_id")
|
| 54 |
parSchDateTime = Request("sdt")
|
54 |
parSchDateTime = Request("sdt")
|
| 55 |
parRfile = Request("rfile")
|
55 |
parRfile = Request("rfile")
|
| - |
|
56 |
parSortOrder = RequestDefault("sort",0)
|
| - |
|
57 |
|
| - |
|
58 |
If parSchDateTime = "" Then
|
| - |
|
59 |
parSchDateTime = DisplayShortDateTimeSecs(Now())
|
| - |
|
60 |
End If
|
| - |
|
61 |
|
| 56 |
ReleaseMode = GetReleaseMode(parRtag_id)
|
62 |
ReleaseMode = GetReleaseMode(parRtag_id)
|
| 57 |
|
63 |
|
| 58 |
parSortOrder = Request("sort")
|
64 |
parSortOrder = Request("sort")
|
| 59 |
If IsNull(parSortOrder) OR parSortOrder = "" Then
|
65 |
If IsNull(parSortOrder) OR parSortOrder = "" Then
|
| 60 |
parSortOrder = "0"
|
66 |
parSortOrder = "0"
|
| 61 |
End If
|
67 |
End If
|
| 62 |
|
68 |
|
| 63 |
Set objFormCollector = CreateObject("Scripting.Dictionary")
|
69 |
Set objFormCollector = CreateObject("Scripting.Dictionary")
|
| 64 |
|
- |
|
| 65 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
70 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
| 66 |
'
|
71 |
'
|
| 67 |
' Add a line of text to the System Message
|
72 |
' Add a line of text to the System Message
|
| 68 |
'
|
73 |
'
|
| 69 |
Sub sMessageAdd(eLevel, text)
|
74 |
Sub sMessageAdd(eLevel, text)
|
| Line 124... |
Line 129... |
| 124 |
Function Get_OpCodes ( NNop_code )
|
129 |
Function Get_OpCodes ( NNop_code )
|
| 125 |
Dim op_code_str_array
|
130 |
Dim op_code_str_array
|
| 126 |
Dim op_code_str
|
131 |
Dim op_code_str
|
| 127 |
Dim op_code_val
|
132 |
Dim op_code_val
|
| 128 |
Dim selectedFound
|
133 |
Dim selectedFound
|
| 129 |
Dim tempLINK
|
- |
|
| 130 |
Dim s
|
134 |
Dim s
|
| 131 |
|
135 |
|
| 132 |
selectedFound = False
|
136 |
selectedFound = False
|
| 133 |
|
137 |
|
| 134 |
' Get the op-codes in terms of human readable string names - these will be used in the drop down select list
|
138 |
' Get the op-codes in terms of human readable string names - these will be used in the drop down select list
|
| 135 |
Call GetDaemonInstructionOperationNameArray(op_code_str_array)
|
139 |
Call GetDaemonInstructionOperationNameArray(op_code_str_array)
|
| 136 |
|
140 |
|
| 137 |
s = "<td width='20%' align='left' class='nowrap'>Operation</td>"
|
141 |
s = "<td width='20%' align='left' class='nowrap'>Operation</td>"
|
| 138 |
s = s + "<td align='left'><select name='op_code_list' id='op_code_list' class='form_item' onchange=""MM_jumpMenu('document',this,0)"">"
|
142 |
s = s + "<td align='left'><select name='op_code' id='op_code' class='form_item' onchange='Refresh_Page()'>"
|
| 139 |
|
143 |
|
| 140 |
For each op_code_str in op_code_str_array
|
144 |
For each op_code_str in op_code_str_array
|
| 141 |
|
145 |
|
| 142 |
' get equivalent op-code value for this op-code string
|
146 |
' get equivalent op-code value for this op-code string
|
| 143 |
op_code_val = DaemonInstructionOperationValue(op_code_str)
|
147 |
op_code_val = DaemonInstructionOperationValue(op_code_str)
|
| 144 |
|
148 |
|
| 145 |
tempLINK = scriptName & "?inst_id="& parInst_id &_
|
- |
|
| 146 |
"&op_code="& op_code_val &_
|
- |
|
| 147 |
"&rtag_id=" & parRtag_id &_
|
- |
|
| 148 |
"&pv_id=" & parPv_id &_
|
- |
|
| 149 |
"&sort=" & parSortOrder &_
|
- |
|
| 150 |
"&sdt="& parSchDateTime &_
|
- |
|
| 151 |
"&repeat="& parRepeat &_
|
- |
|
| 152 |
"&rfile="& parRfile
|
- |
|
| 153 |
|
- |
|
| 154 |
If ((NNop_code = op_code_val) OR (NNop_code = "0")) AND (selectedFound = False) Then
|
149 |
If ((NNop_code = op_code_val) OR (NNop_code = "0")) AND (selectedFound = False) Then
|
| 155 |
s = s + "<option value='"& tempLINK &"' selected>"& op_code_str &"</option>"
|
150 |
s = s + "<option value='"& op_code_val &"' selected>"& op_code_str &"</option>"
|
| 156 |
selectedFound = True
|
151 |
selectedFound = True
|
| 157 |
NNop_code = op_code_val
|
152 |
NNop_code = op_code_val
|
| 158 |
Else
|
153 |
Else
|
| 159 |
s = s + "<option value='"& tempLINK &"'>"& op_code_str &"</option>"
|
154 |
s = s + "<option value='"& op_code_val &"'>"& op_code_str &"</option>"
|
| 160 |
End If
|
155 |
End If
|
| 161 |
Next
|
156 |
Next
|
| 162 |
|
157 |
|
| 163 |
s = s + "</select></td>"
|
158 |
s = s + "</select></td>"
|
| 164 |
Get_OpCodes = s
|
159 |
Get_OpCodes = s
|
| Line 167... |
Line 162... |
| 167 |
' Formulate the HTML for a combo box listing all the Projects, and select the one that matches
|
162 |
' Formulate the HTML for a combo box listing all the Projects, and select the one that matches
|
| 168 |
' the proj-id passed in as a parameter. If the parameter value could not be found, correct it to the first valid proj-id
|
163 |
' the proj-id passed in as a parameter. If the parameter value could not be found, correct it to the first valid proj-id
|
| 169 |
' in the list.
|
164 |
' in the list.
|
| 170 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
165 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
| 171 |
Function Get_Projects ( NNproj_id )
|
166 |
Function Get_Projects ( NNproj_id )
|
| 172 |
Dim rsTemp, Query_String, projName, tempLINK, selectedFound, s
|
167 |
Dim rsTemp, Query_String, projName, selectedFound, s
|
| 173 |
|
168 |
|
| 174 |
selectedFound = False
|
169 |
selectedFound = False
|
| 175 |
Query_String = "SELECT * FROM projects ORDER BY UPPER( proj_name )"
|
170 |
Query_String = "SELECT * FROM projects ORDER BY UPPER( proj_name )"
|
| 176 |
|
171 |
|
| 177 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
172 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 178 |
|
173 |
|
| 179 |
s = "<td class='nowrap'>Project</td>"
|
174 |
s = "<td class='nowrap'>Project</td>"
|
| 180 |
s = s + "<td><select id='proj_id_list' name='proj_id_list' class='form_item' onChange=""MM_jumpMenu('document',this,0)"">"
|
175 |
s = s + "<td><select id='proj_id' name='proj_id' class='form_item' onChange='Refresh_Page()'>"
|
| - |
|
176 |
If NNproj_id <= 0 Then
|
| - |
|
177 |
s = s + "<option value='0' disabled selected>Select Project</option>"
|
| - |
|
178 |
End If
|
| 181 |
|
179 |
|
| 182 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
180 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| 183 |
projName = UCase(rsTemp.Fields("proj_name"))
|
181 |
projName = UCase(rsTemp.Fields("proj_name"))
|
| 184 |
|
182 |
|
| 185 |
tempLINK = scriptName & "?inst_id="& parInst_id &_
|
- |
|
| 186 |
"&op_code="& parOp_code &_
|
- |
|
| 187 |
"&proj_id=" & rsTemp.Fields("proj_id") &_
|
- |
|
| 188 |
"&sdt="& parSchDateTime &_
|
- |
|
| 189 |
"&repeat="& parRepeat &_
|
- |
|
| 190 |
"&sort=" & parSortOrder &_
|
- |
|
| 191 |
"&rfile="& parRfile
|
- |
|
| 192 |
|
- |
|
| 193 |
If ((NNproj_id = Cstr(rsTemp.Fields("proj_id"))) OR (NNproj_id = "0")) AND (selectedFound = False) Then
|
183 |
If (Cstr(NNproj_id) = Cstr(rsTemp.Fields("proj_id"))) AND (selectedFound = False) Then
|
| 194 |
s = s + "<option value='"& tempLINK &"' selected>"& projName &"</option>"
|
184 |
s = s + "<option value='"& Cstr(rsTemp.Fields("proj_id")) &"' selected>"& projName &"</option>"
|
| 195 |
selectedFound = True
|
185 |
selectedFound = True
|
| 196 |
NNproj_id = CStr(rsTemp.Fields("proj_id"))
|
186 |
NNproj_id = CStr(rsTemp.Fields("proj_id"))
|
| 197 |
Else
|
187 |
Else
|
| 198 |
s = s + "<option value='"& tempLINK &"'>"& projName &"</option>"
|
188 |
s = s + "<option value='"& Cstr(rsTemp.Fields("proj_id")) &"'>"& projName &"</option>"
|
| 199 |
End If
|
189 |
End If
|
| 200 |
|
190 |
|
| 201 |
rsTemp.MoveNext
|
191 |
rsTemp.MoveNext
|
| 202 |
WEnd
|
192 |
WEnd
|
| 203 |
s = s + "</select>"
|
193 |
s = s + "</select>"
|
| 204 |
|
194 |
|
| 205 |
' Correct for a situation where selectedFound is still FALSE.
|
- |
|
| 206 |
If NOT selectedFound Then
|
- |
|
| 207 |
rsTemp.MoveFirst
|
- |
|
| 208 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
- |
|
| 209 |
NNproj_id = CStr(rsTemp.Fields("proj_id"))
|
- |
|
| 210 |
Else
|
- |
|
| 211 |
NNproj_id = "0"
|
- |
|
| 212 |
End If
|
- |
|
| 213 |
End If
|
- |
|
| 214 |
|
- |
|
| 215 |
rsTemp.Close
|
195 |
rsTemp.Close
|
| 216 |
Set rsTemp = nothing
|
196 |
Set rsTemp = nothing
|
| 217 |
|
197 |
|
| 218 |
s = s + "</td>"
|
198 |
s = s + "</td>"
|
| 219 |
|
199 |
|
| Line 224... |
Line 204... |
| 224 |
' Formulate the HTML for a combo box listing all the Release for a specified project, and select the one that matches
|
204 |
' Formulate the HTML for a combo box listing all the Release for a specified project, and select the one that matches
|
| 225 |
' the release-tag passed in as a parameter. If the parameter value could not be found, correct it to the first valid release-tag
|
205 |
' the release-tag passed in as a parameter. If the parameter value could not be found, correct it to the first valid release-tag
|
| 226 |
' in the list.
|
206 |
' in the list.
|
| 227 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
207 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
| 228 |
Function Get_Releases ( NNproj_id, NNrtag_id )
|
208 |
Function Get_Releases ( NNproj_id, NNrtag_id )
|
| 229 |
Dim rsTemp, Query_String, releaseName, tempLINK, selectedFound, s, numReleases
|
209 |
Dim rsTemp, Query_String, releaseName, val, selectedFound, s, numReleases
|
| 230 |
|
210 |
|
| 231 |
selectedFound = False
|
211 |
selectedFound = False
|
| 232 |
|
- |
|
| 233 |
numReleases = 0
|
212 |
numReleases = 0
|
| 234 |
|
213 |
|
| 235 |
Query_String = "SELECT rtag_id, rtag_name "&_
|
214 |
Query_String = "SELECT rtag_id, rtag_name "&_
|
| 236 |
" FROM release_tags rt"&_
|
215 |
" FROM release_tags rt"&_
|
| 237 |
" WHERE rt.proj_id = "& NNproj_id &_
|
216 |
" WHERE rt.proj_id = "& NNproj_id &_
|
| 238 |
" AND ((rt.official = 'N') OR (rt.official = 'C') OR (rt.official = 'R'))"&_
|
217 |
" AND ((rt.official = 'N') OR (rt.official = 'C') OR (rt.official = 'R'))"&_
|
| 239 |
" ORDER BY UPPER(rtag_name)"
|
218 |
" ORDER BY UPPER(rtag_name)"
|
| 240 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
219 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 241 |
|
220 |
|
| 242 |
s = "<td class='nowrap'>Release</td>"
|
221 |
s = "<td class='nowrap'>Release</td>"
|
| 243 |
s = s + "<td><select id='rtag_id_list' name='rtag_id_list' class='form_item' onChange=""MM_jumpMenu('document',this,0)"">"
|
222 |
s = s + "<td><select id='rtag_id' name='rtag' class='form_item' onChange='Refresh_Page()'>"
|
| - |
|
223 |
If NNrtag_id <= 0 Then
|
| - |
|
224 |
s = s + "<option value='0' disabled selected>Select Release</option>"
|
| - |
|
225 |
End If
|
| 244 |
|
226 |
|
| 245 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
227 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| 246 |
releaseName = rsTemp.Fields("rtag_name")
|
228 |
releaseName = rsTemp.Fields("rtag_name")
|
| - |
|
229 |
val = CStr(rsTemp.Fields("rtag_id"))
|
| 247 |
|
230 |
|
| 248 |
tempLINK = scriptName & "?inst_id="& parInst_id &_
|
- |
|
| 249 |
"&op_code="& parOp_code &_
|
- |
|
| 250 |
"&proj_id="& NNproj_id &_
|
- |
|
| 251 |
"&rtag_id="& rsTemp.Fields("rtag_id") &_
|
- |
|
| 252 |
"&sdt="& parSchDateTime &_
|
- |
|
| 253 |
"&repeat="& parRepeat &_
|
- |
|
| 254 |
"&sort=" & parSortOrder &_
|
- |
|
| 255 |
"&rfile="& parRfile
|
- |
|
| 256 |
|
- |
|
| 257 |
If ((NNrtag_id = CStr(rsTemp.Fields("rtag_id"))) OR (NNrtag_id = "0")) AND (selectedFound = False) Then
|
231 |
If ((Cstr(NNrtag_id) = val) AND selectedFound = False) Then
|
| 258 |
s = s + "<option value='"& tempLINK &"' selected>"& releaseName &"</option>"
|
232 |
s = s + "<option value='"& val &"' selected>"& releaseName &"</option>"
|
| 259 |
selectedFound = True
|
233 |
selectedFound = True
|
| 260 |
NNrtag_id = Cstr(rsTemp.Fields("rtag_id"))
|
234 |
NNrtag_id = val
|
| 261 |
Else
|
235 |
Else
|
| 262 |
s = s + "<option value='"& tempLINK &"'>"& releaseName &"</option>"
|
236 |
s = s + "<option value='"& val &"'>"& releaseName &"</option>"
|
| 263 |
End If
|
237 |
End If
|
| 264 |
|
238 |
|
| 265 |
numReleases = numReleases + 1
|
239 |
numReleases = numReleases + 1
|
| 266 |
|
240 |
|
| 267 |
rsTemp.MoveNext
|
241 |
rsTemp.MoveNext
|
| 268 |
WEnd
|
242 |
WEnd
|
| 269 |
s = s + "</select>"
|
243 |
s = s + "</select>"
|
| 270 |
|
244 |
|
| 271 |
' Correct for a situation where selectedFound is still FALSE.
|
- |
|
| 272 |
If NOT selectedFound Then
|
- |
|
| 273 |
rsTemp.MoveFirst
|
- |
|
| 274 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
- |
|
| 275 |
NNrtag_id = CStr(rsTemp.Fields("rtag_id"))
|
- |
|
| 276 |
Else
|
- |
|
| 277 |
NNrtag_id = "0"
|
- |
|
| 278 |
End If
|
- |
|
| 279 |
End If
|
- |
|
| 280 |
|
- |
|
| 281 |
' If no releases were found then replace drop down list with some warning text and disable form submission
|
245 |
' If no releases were found then replace drop down list with some warning text and disable form submission
|
| 282 |
If numReleases = 0 Then
|
246 |
If numReleases = 0 Then
|
| 283 |
bPreventSubmit = True
|
247 |
bPreventSubmit = True
|
| - |
|
248 |
s = "<td class='nowrap'>Release</td>"
|
| - |
|
249 |
If NNproj_id > 0 Then
|
| 284 |
s = "<td class='nowrap'>Release</td><td><a style=color:Red>WARNING: No active releases found. The operation cannot be performed.</a></td>"
|
250 |
s = s + "<td><a style=color:Red>WARNING: No active releases found. The operation cannot be performed.</a></td>"
|
| - |
|
251 |
End If
|
| 285 |
Else
|
252 |
Else
|
| 286 |
' If the selected release does not have a daemon configuration, append some warning text to the right of the drop down list.
|
253 |
' If the selected release does not have a daemon configuration, append some warning text to the right of the drop down list.
|
| 287 |
If DaemonsAvailable(NNrtag_id) = False Then
|
254 |
If NNrtag_id > 0 AND DaemonsAvailable(NNrtag_id) = False Then
|
| 288 |
s = s + "<a style=color:Red>WARNING: Release has no build daemon(s)</a>"
|
255 |
s = s + "<br><a style=color:Red>WARNING: Release has no build daemon(s)</a>"
|
| 289 |
End If
|
256 |
End If
|
| 290 |
End If
|
257 |
End If
|
| 291 |
|
258 |
|
| 292 |
rsTemp.Close
|
259 |
rsTemp.Close
|
| 293 |
Set rsTemp = nothing
|
260 |
Set rsTemp = nothing
|
| Line 303... |
Line 270... |
| 303 |
' This function must deal with op-codes that want to read package versions from the work_in_progress table, and op-codes
|
270 |
' This function must deal with op-codes that want to read package versions from the work_in_progress table, and op-codes
|
| 304 |
' that need to read package versions from the release_content table.
|
271 |
' that need to read package versions from the release_content table.
|
| 305 |
' The function should only be called if a package versions drop down list is required for the form.
|
272 |
' The function should only be called if a package versions drop down list is required for the form.
|
| 306 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
273 |
'------------------------------------------------------------------------------------------------------------------------------------------
|
| 307 |
Function Get_Packages ( NNrtag_id, NNpv_id, NNop_code )
|
274 |
Function Get_Packages ( NNrtag_id, NNpv_id, NNop_code )
|
| 308 |
Dim rsTemp, Query_String, pkgName, tempLINK, selectedFound, s, numPackages
|
275 |
Dim rsTemp, Query_String, pkgName, val, selectedFound, s, numPackages
|
| 309 |
|
276 |
|
| 310 |
selectedFound = False
|
277 |
selectedFound = False
|
| 311 |
|
278 |
|
| 312 |
numPackages = 0
|
279 |
numPackages = 0
|
| 313 |
|
280 |
|
| Line 341... |
Line 308... |
| 341 |
s = "<td class='nowrap'>WIP Package</td>"
|
308 |
s = "<td class='nowrap'>WIP Package</td>"
|
| 342 |
Else
|
309 |
Else
|
| 343 |
s = "<td class='nowrap'>Released Package</td>"
|
310 |
s = "<td class='nowrap'>Released Package</td>"
|
| 344 |
End If
|
311 |
End If
|
| 345 |
|
312 |
|
| 346 |
s = s + "<td><select id='pv_id_list' name='pv_id_list' class='form_item' onChange=""MM_jumpMenu('document',this,0)"">"
|
313 |
s = s + "<td><select id='pv_id' name='pv_id' class='form_item' onchange='Refresh_Page()'>"
|
| - |
|
314 |
If NNpv_id <= 0 Then
|
| - |
|
315 |
s = s + "<option value='0' disabled selected>Select Package</option>"
|
| - |
|
316 |
End If
|
| 347 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
317 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
| 348 |
pkgName = rsTemp.Fields("pkg_name") & " " & rsTemp.Fields("pkg_version")
|
318 |
pkgName = rsTemp.Fields("pkg_name") & " " & rsTemp.Fields("pkg_version")
|
| - |
|
319 |
val = rsTemp.Fields("pv_id")
|
| 349 |
|
320 |
|
| 350 |
tempLINK = scriptName & "?inst_id="& parInst_id &_
|
- |
|
| 351 |
"&op_code="& NNop_code &_
|
- |
|
| 352 |
"&proj_id="& parProj_id &_
|
- |
|
| 353 |
"&rtag_id="& NNrtag_id &_
|
- |
|
| 354 |
"&pv_id="& rsTemp.Fields("pv_id") &_
|
- |
|
| 355 |
"&sdt="& parSchDateTime &_
|
- |
|
| 356 |
"&repeat="& parRepeat &_
|
- |
|
| 357 |
"&sort=" & parSortOrder &_
|
- |
|
| 358 |
"&rfile="& parRfile
|
- |
|
| 359 |
|
- |
|
| 360 |
If ((NNpv_id = Cstr(rsTemp.Fields("pv_id"))) OR (NNpv_id = "0")) AND (selectedFound = False) Then
|
321 |
If ((NNpv_id = val) AND selectedFound = False) Then
|
| 361 |
s = s + "<option value='"& tempLINK &"' selected>"& pkgName &"</option>"
|
322 |
s = s + "<option value='"& val &"' selected>"& pkgName &"</option>"
|
| 362 |
selectedFound = True
|
323 |
selectedFound = True
|
| 363 |
NNpv_id = CStr(rsTemp.Fields("pv_id"))
|
324 |
NNpv_id = val
|
| 364 |
Else
|
325 |
Else
|
| 365 |
s = s + "<option value='"& tempLINK &"'>"& pkgName &"</option>"
|
326 |
s = s + "<option value='"& val &"'>"& pkgName &"</option>"
|
| 366 |
End If
|
327 |
End If
|
| 367 |
|
328 |
|
| 368 |
numPackages = numPackages + 1
|
329 |
numPackages = numPackages + 1
|
| 369 |
|
330 |
|
| 370 |
rsTemp.MoveNext
|
331 |
rsTemp.MoveNext
|
| 371 |
WEnd
|
332 |
WEnd
|
| 372 |
s = s + "</select></td>"
|
333 |
s = s + "</select></td>"
|
| 373 |
|
334 |
|
| 374 |
' Correct for a situation where selectedFound is still FALSE.
|
- |
|
| 375 |
If NOT selectedFound Then
|
335 |
If NNrtag_id > 0 Then
|
| 376 |
rsTemp.MoveFirst
|
- |
|
| 377 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
- |
|
| 378 |
NNpv_id = Cstr(rsTemp.Fields("pv_id"))
|
- |
|
| 379 |
Else
|
- |
|
| 380 |
NNpv_id = "0"
|
- |
|
| 381 |
End If
|
- |
|
| 382 |
End If
|
- |
|
| 383 |
|
- |
|
| 384 |
' replace drop down list with a warning if no package versions were found, and ensure that the user cannot submit the form
|
336 |
' replace drop down list with a warning if no package versions were found, and ensure that the user cannot submit the form
|
| 385 |
If numPackages = 0 Then
|
337 |
If numPackages = 0 Then
|
| 386 |
bPreventSubmit = True
|
338 |
bPreventSubmit = True
|
| 387 |
If (NNop_code = OP_CODE_1_TEST_BUILD_PACKAGE) Then
|
339 |
If (NNop_code = OP_CODE_1_TEST_BUILD_PACKAGE) Then
|
| 388 |
s = "<td>Package</td><td><a style=color:Red>WARNING: No WIP package versions found. The operation cannot be performed.</a></td>"
|
340 |
s = "<td>Package</td><td><a style=color:Red>WARNING: No WIP package versions found. The operation cannot be performed.</a></td>"
|
| 389 |
Else
|
341 |
Else
|
| 390 |
s = "<td>Package</td><td><a style=color:Red>WARNING: No released package versions found. The operation cannot be performed.</a></td>"
|
342 |
s = "<td>Package</td><td><a style=color:Red>WARNING: No released package versions found. The operation cannot be performed.</a></td>"
|
| - |
|
343 |
End If
|
| 391 |
End If
|
344 |
End If
|
| - |
|
345 |
Else
|
| - |
|
346 |
s = "<td>Package</td><td></td>"
|
| 392 |
End If
|
347 |
End If
|
| 393 |
|
348 |
|
| 394 |
rsTemp.Close
|
349 |
rsTemp.Close
|
| 395 |
Set rsTemp = nothing
|
350 |
Set rsTemp = nothing
|
| 396 |
|
351 |
|
| Line 567... |
Line 522... |
| 567 |
End If
|
522 |
End If
|
| 568 |
|
523 |
|
| 569 |
' If this form is opened with an OP_CODE, RTAG_ID and PV_ID only, then we need to derive the PROJ_ID before
|
524 |
' If this form is opened with an OP_CODE, RTAG_ID and PV_ID only, then we need to derive the PROJ_ID before
|
| 570 |
' calling Get_Projects() to generate the project drop down list.
|
525 |
' calling Get_Projects() to generate the project drop down list.
|
| 571 |
If parProj_id = "0" AND NOT IsNull(parRtag_id) AND parRtag_id <> "" AND parRtag_id <> "0" Then
|
526 |
If parProj_id = "0" AND NOT IsNull(parRtag_id) AND parRtag_id <> "" AND parRtag_id <> "0" Then
|
| 572 |
parProj_id = Get_Proj_ID(parRtag_id)
|
527 |
parProj_id = DB_PROJ_ID
|
| 573 |
End If
|
528 |
End If
|
| 574 |
|
529 |
|
| 575 |
' Hide the Package drop-down list if the Daemon Instruction does not require it
|
530 |
' Hide the Package drop-down list if the Daemon Instruction does not require it
|
| 576 |
If DaemonInstructionNeedsPV_ID(parOp_code) Then
|
531 |
If DaemonInstructionNeedsPV_ID(parOp_code) Then
|
| 577 |
bHidePackages = False
|
532 |
bHidePackages = False
|
| Line 594... |
Line 549... |
| 594 |
' DaemonsAvailable() functions further below to hide the form submit button.
|
549 |
' DaemonsAvailable() functions further below to hide the form submit button.
|
| 595 |
' It will also support the submit action itself when it takes place during the editing of an existing record where
|
550 |
' It will also support the submit action itself when it takes place during the editing of an existing record where
|
| 596 |
' the user changes (for example) the project without making any changes to release or package and so those items
|
551 |
' the user changes (for example) the project without making any changes to release or package and so those items
|
| 597 |
' are nullified and must be reset to something other than their original values that came through the query string
|
552 |
' are nullified and must be reset to something other than their original values that came through the query string
|
| 598 |
' when the edit form was just opened.
|
553 |
' when the edit form was just opened.
|
| 599 |
Call Get_Projects(parProj_id) ' Ensures parProj_id has a good value
|
554 |
'Call Get_Projects(parProj_id) ' Ensures parProj_id has a good value
|
| 600 |
Call Get_Releases(parProj_id, parRtag_id) ' Ensures parRtag_id has a good value
|
555 |
'Call Get_Releases(parProj_id, parRtag_id) ' Ensures parRtag_id has a good value
|
| 601 |
|
556 |
|
| 602 |
If NOT bHidePackages Then
|
557 |
'If NOT bHidePackages Then
|
| 603 |
Call Get_Packages (parRtag_id, parPv_id, parOp_code)
|
558 |
' Call Get_Packages (parRtag_id, parPv_id, parOp_code)
|
| 604 |
End If
|
559 |
'End If
|
| 605 |
|
560 |
|
| 606 |
' Perform any required actions
|
561 |
' Perform any required actions
|
| 607 |
Call performActions
|
562 |
Call performActions
|
| 608 |
|
563 |
|
| 609 |
'----------------------------------------------
|
564 |
'----------------------------------------------
|
| 610 |
%>
|
565 |
%>
|
| 611 |
<script language="JavaScript" type="text/javascript">
|
566 |
<script language="JavaScript" type="text/javascript">
|
| 612 |
<!--
|
567 |
<!--
|
| 613 |
|
568 |
|
| 614 |
// This function is designed to be called when a repeat radio button is pressed. It reloads the page with an updated query string
|
569 |
// This function is designed to be called when one of the controls is updated
|
| 615 |
// to reflect the new setting of the radio button set
|
570 |
// It will be refresh the page with the current set of values
|
| 616 |
function Refresh_Repeat(newRepeat)
|
571 |
function Refresh_Page()
|
| 617 |
{
|
572 |
{
|
| - |
|
573 |
|
| - |
|
574 |
function defVal(el, def) {
|
| - |
|
575 |
if(el) {
|
| - |
|
576 |
return el.value;
|
| - |
|
577 |
}
|
| - |
|
578 |
return def;
|
| - |
|
579 |
}
|
| - |
|
580 |
|
| - |
|
581 |
function getValDef(name, def) {
|
| - |
|
582 |
return defVal(document.getElementById(name), def);
|
| - |
|
583 |
}
|
| - |
|
584 |
|
| 618 |
var s;
|
585 |
var s;
|
| 619 |
s = '<%=scriptName%>';
|
586 |
s = '<%=scriptName%>';
|
| 620 |
s += '?inst_id=' + document.getElementById('inst_id').value;
|
587 |
s += '?inst_id=' + getValDef('inst_id',0);
|
| 621 |
s += '&op_code=' + document.getElementById('op_code').value;
|
588 |
s += '&op_code=' + getValDef('op_code',0);
|
| 622 |
s += '&proj_id=' + document.getElementById('proj_id').value;
|
589 |
s += '&proj_id=' + getValDef('proj_id',0);
|
| 623 |
s += '&rtag_id=' + document.getElementById('rtag_id').value;
|
590 |
s += '&rtag_id=' + getValDef('rtag_id',0);
|
| 624 |
s += '&pv_id=' + document.getElementById('pv_id').value;
|
591 |
s += '&pv_id=' + getValDef('pv_id',0);
|
| 625 |
s += '&sort=' + document.getElementById('sortOrder').value;
|
592 |
s += '&sdt=' + getValDef('scheduled_time','').substr(4);
|
| 626 |
s += '&sdt=' + document.getElementById('scheduled_time').value;
|
593 |
s += '&repeat=' + defVal(document.querySelector('input[name="repeat_inst"]:checked'),0);
|
| 627 |
s += '&repeat=' + newRepeat;
|
- |
|
| 628 |
s += '&rfile=' + document.getElementById('rfile').value;
|
594 |
s += '&rfile=' + getValDef('rfile','');
|
| 629 |
|
595 |
|
| 630 |
document.location = s;
|
596 |
document.location = s;
|
| 631 |
}
|
597 |
}
|
| 632 |
|
598 |
|
| 633 |
//-->
|
599 |
//-->
|
| Line 668... |
Line 634... |
| 668 |
#ui-datepicker-div {
|
634 |
#ui-datepicker-div {
|
| 669 |
position: absolute !important;
|
635 |
position: absolute !important;
|
| 670 |
top: 0px !important;
|
636 |
top: 0px !important;
|
| 671 |
left: 0px !important;
|
637 |
left: 0px !important;
|
| 672 |
}
|
638 |
}
|
| - |
|
639 |
.ui-datepicker-trigger{
|
| - |
|
640 |
vertical-align: top;
|
| - |
|
641 |
padding-left: 3px;
|
| - |
|
642 |
}
|
| 673 |
</style>
|
643 |
</style>
|
| 674 |
</head>
|
644 |
</head>
|
| 675 |
|
645 |
|
| 676 |
<body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" >
|
646 |
<body leftmargin="0" topmargin="0" >
|
| 677 |
<table class="full_table">
|
- |
|
| 678 |
<%
|
647 |
<%
|
| 679 |
'-- FROM START --------------------------------------------------------------------------------------------------------------
|
648 |
'-- FROM START --------------------------------------------------------------------------------------------------------------
|
| 680 |
objFormComponent.FormName = "DaemonInstruction"
|
649 |
objFormComponent.FormName = "DaemonInstruction"
|
| 681 |
objFormComponent.FormClass = "form_tight"
|
650 |
objFormComponent.FormClass = "form_tight"
|
| 682 |
objFormComponent.Action = ScriptName &_
|
651 |
objFormComponent.Action = ScriptName &_
|
| Line 688... |
Line 657... |
| 688 |
"&sort="& parSortOrder &_
|
657 |
"&sort="& parSortOrder &_
|
| 689 |
"&rfile="& parRfile
|
658 |
"&rfile="& parRfile
|
| 690 |
objFormComponent.OnSubmit = "ShowProgress();"
|
659 |
objFormComponent.OnSubmit = "ShowProgress();"
|
| 691 |
Call objFormComponent.FormStart()
|
660 |
Call objFormComponent.FormStart()
|
| 692 |
%>
|
661 |
%>
|
| - |
|
662 |
<table class="full_table">
|
| 693 |
<tr>
|
663 |
<tr>
|
| 694 |
<td>
|
664 |
<td>
|
| 695 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++ -->
|
665 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 696 |
<%Call Messenger ( sMessage , sMessageType, "100%" )%>
|
666 |
<%Call Messenger ( sMessage , sMessageType, "100%" )%>
|
| 697 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
667 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 698 |
<!--#include file="messages/_msg_inline.asp"-->
|
668 |
<!--#include file="messages/_msg_inline.asp"-->
|
| 699 |
<table class="full_table form_item">
|
669 |
<table class="full_table form_item form_field_bg">
|
| 700 |
<tr>
|
670 |
<tr>
|
| 701 |
<td width="1%" class="nowrap">
|
671 |
<td width="1%" class="nowrap">
|
| 702 |
<%=Get_OpCodes(parOp_code)%>
|
672 |
<%=Get_OpCodes(parOp_code)%>
|
| 703 |
</td>
|
673 |
</td>
|
| 704 |
</tr>
|
674 |
</tr>
|
| Line 741... |
Line 711... |
| 741 |
<%If NOT bHideRepeat Then%>
|
711 |
<%If NOT bHideRepeat Then%>
|
| 742 |
<tr>
|
712 |
<tr>
|
| 743 |
<td>
|
713 |
<td>
|
| 744 |
<td>Repeat</td>
|
714 |
<td>Repeat</td>
|
| 745 |
<td>
|
715 |
<td>
|
| 746 |
<input type="radio" name="repeat_inst" id="repeat_inst_no" value="No" <%If parRepeat = "0" Then%>checked<%End If%> onchange='Refresh_Repeat(0)' >No
|
716 |
<input type="radio" name="repeat_inst" id="repeat_inst_no" value="0" <%If parRepeat = "0" Then%>checked<%End If%> onchange='Refresh_Page()' >No
|
| 747 |
<input type="radio" name="repeat_inst" id="repeat_inst_24hrs" value="24Hrs"<%If parRepeat = "86400" Then%>checked<%End If%> onchange='Refresh_Repeat(86400)' >24 Hrs
|
717 |
<input type="radio" name="repeat_inst" id="repeat_inst_24hrs" value="86400"<%If parRepeat = "86400" Then%>checked<%End If%> onchange='Refresh_Page()' >24 Hrs
|
| 748 |
</td>
|
718 |
</td>
|
| 749 |
</td>
|
719 |
</td>
|
| 750 |
</tr>
|
720 |
</tr>
|
| 751 |
<%End If%>
|
721 |
<%End If%>
|
| 752 |
<tr>
|
722 |
<tr>
|
| 753 |
<td style="height:100px">
|
723 |
<td style="height:100px">
|
| 754 |
</td>
|
724 |
</td>
|
| 755 |
</tr>
|
725 |
</tr>
|
| 756 |
<tr>
|
726 |
<tr>
|
| 757 |
<td background="images/bg_login.gif" colspan=3>
|
727 |
<td class=form_field_hdrgap colspan=3>
|
| 758 |
<table class="full_table">
|
728 |
<table class="full_table">
|
| 759 |
<tr>
|
729 |
<tr>
|
| 760 |
<td><%=ProgressBar()%></td>
|
730 |
<td><%=ProgressBar()%></td>
|
| 761 |
<td align="right" >
|
731 |
<td align="right" >
|
| 762 |
<%
|
732 |
<%
|
| 763 |
Dim disableText : disableText = ""
|
733 |
Dim disableText : disableText = ""
|
| 764 |
If NOT (ReleasesAvailable(parProj_id) AND DaemonsAvailable(parRtag_id) AND NOT bPreventSubmit AND IsNull(sMessage)) Then
|
734 |
If NOT ( (NOT bHidePackages AND parPv_id > 0 ) AND ReleasesAvailable(parProj_id) AND DaemonsAvailable(parRtag_id) AND NOT bPreventSubmit AND IsNull(sMessage)) Then
|
| 765 |
disableText = "disabled=""disabled"""
|
735 |
disableText = "disabled=""disabled"""
|
| 766 |
End If
|
736 |
End If
|
| 767 |
%>
|
737 |
%>
|
| 768 |
<button name="btn" type="submit" <%=disableText%>>Add/Update</button>
|
738 |
<button name="btn" type="submit" <%=disableText%>>Add/Update</button>
|
| 769 |
<button name="btn" type="reset" onclick="parent.closeIFrame();">Cancel</button>
|
739 |
<button name="btn" type="reset" onclick="parent.closeIFrame();">Cancel</button>
|
| 770 |
</td>
|
740 |
</td>
|
| 771 |
</tr>
|
741 |
</tr>
|
| 772 |
</table>
|
742 |
</table>
|
| 773 |
</td>
|
743 |
</td>
|
| 774 |
</tr>
|
744 |
</tr>
|
| 775 |
<tr>
|
- |
|
| 776 |
<td>
|
- |
|
| 777 |
<input type="hidden" id="inst_id" name="inst_id" value="<%=parInst_id%>">
|
- |
|
| 778 |
<input type="hidden" id="op_code" name="op_code" value="<%=parOp_code%>">
|
- |
|
| 779 |
<input type="hidden" id="proj_id" name="proj_id" value="<%=parProj_id%>">
|
- |
|
| 780 |
<input type="hidden" id="rtag_id" name="rtag_id" value="<%=parRtag_id%>">
|
- |
|
| 781 |
<input type="hidden" id="pv_id" name="pv_id" value="<%=parPv_id%>">
|
- |
|
| 782 |
<input type="hidden" id="repeat_secs" name="repeat_secs" value="<%=parRepeat%>">
|
- |
|
| 783 |
<input type="hidden" id="rfile" name="rfile" value="<%=parRfile%>">
|
- |
|
| 784 |
<input type="hidden" id="sortOrder" name="sortOrder" value="<%=parSortOrder%>">
|
- |
|
| 785 |
</td>
|
- |
|
| 786 |
</tr>
|
- |
|
| 787 |
</table>
|
745 |
</table>
|
| 788 |
</td>
|
746 |
</td>
|
| 789 |
</tr>
|
747 |
</tr>
|
| 790 |
<%=objPMod.ComposeHiddenTags()%>
|
- |
|
| 791 |
<input type="hidden" name="action" value="true">
|
- |
|
| 792 |
|
- |
|
| 793 |
<%
|
- |
|
| 794 |
Call objFormComponent.FormEnd()
|
- |
|
| 795 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
- |
|
| 796 |
%>
|
- |
|
| 797 |
</table>
|
748 |
</table>
|
| - |
|
749 |
<input type="hidden" id="inst_id" name="inst_id" value="<%=parInst_id%>">
|
| - |
|
750 |
<input type="hidden" id="repeat_secs" name="repeat_secs" value="<%=parRepeat%>">
|
| - |
|
751 |
<input type="hidden" id="rfile" name="rfile" value="<%=parRfile%>">
|
| - |
|
752 |
<input type="hidden" name="action" value="true">
|
| - |
|
753 |
<%
|
| - |
|
754 |
objPMod.ComposeHiddenTags()
|
| - |
|
755 |
Call objFormComponent.FormEnd()
|
| - |
|
756 |
'-- FROM END ----------------------------------------------------------------------------------------------------------------
|
| - |
|
757 |
%>
|
| 798 |
</body>
|
758 |
</body>
|
| 799 |
</html>
|
759 |
</html>
|
| 800 |
<%
|
760 |
<%
|
| 801 |
'------------ RUN AFTER PAGE RENDER -----------
|
761 |
'------------ RUN AFTER PAGE RENDER -----------
|
| 802 |
Set objFormCollector = Nothing
|
762 |
Set objFormCollector = Nothing
|