| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
'| |
|
|
|
5 |
'| Build Status Information |
|
|
|
6 |
'| |
|
|
|
7 |
'=====================================================
|
|
|
8 |
%>
|
|
|
9 |
<%
|
|
|
10 |
Option explicit
|
|
|
11 |
' Good idea to set when using redirect
|
|
|
12 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
13 |
%>
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="common/_form_window_common.asp"-->
|
|
|
20 |
<!--#include file="_action_buttons.asp"-->
|
|
|
21 |
<!--#include file="class/classActionButtonControl.asp"-->
|
|
|
22 |
<!--#include file="common/daemon_instructions.asp"-->
|
|
|
23 |
<%
|
|
|
24 |
'------------ ACCESS CONTROL ------------------
|
|
|
25 |
'Let users view the build status without being logged in, but as soon as they try and
|
|
|
26 |
'submit the form, check their login status.
|
|
|
27 |
If Request("action") <> "" AND NOT objAccessControl.UserLogedIn Then%>
|
|
|
28 |
<!--#include file="_access_control_login.asp"-->
|
|
|
29 |
<!--#include file="_access_control_project.asp"-->
|
|
|
30 |
<%End If%>
|
|
|
31 |
<!--#include file="_access_control_general.asp"-->
|
|
|
32 |
<% '------------ Scripts -------------------------- %>
|
|
|
33 |
<%
|
|
|
34 |
'------------ Variable Definition -------------
|
|
|
35 |
Dim objSortHelper
|
|
|
36 |
Dim rsQry
|
|
|
37 |
Dim parRtagId
|
|
|
38 |
Dim query_string
|
|
|
39 |
Dim rcon_id
|
|
|
40 |
Dim shref_base
|
|
|
41 |
'------------ Constants Declaration -----------
|
|
|
42 |
'------------ Variable Init -------------------
|
|
|
43 |
parRtagId = Request("rtag_id")
|
|
|
44 |
objPMod.PersistInQryString("rtag_id")
|
|
|
45 |
|
|
|
46 |
'----------------------------------------------
|
|
|
47 |
%>
|
|
|
48 |
<%
|
|
|
49 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
50 |
Sub GetFormDetails ( parRtagId, ByRef outobjDetails )
|
|
|
51 |
Dim rsQry, query
|
|
|
52 |
OraDatabase.Parameters.Add "RTAG_ID", parRtagId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
53 |
query = _
|
|
|
54 |
" SELECT * "&_
|
|
|
55 |
" FROM RELEASE_TAGS rt"&_
|
|
|
56 |
" WHERE rt.RTAG_ID = :RTAG_ID"
|
|
|
57 |
|
|
|
58 |
Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
|
|
|
59 |
|
|
|
60 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
61 |
|
|
|
62 |
If rsQry.RecordCount > 0 Then
|
|
|
63 |
outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
|
|
|
64 |
outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
|
|
|
65 |
Else
|
|
|
66 |
Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. parRtagId="& parRtagId
|
|
|
67 |
End If
|
|
|
68 |
|
|
|
69 |
rsQry.Close
|
|
|
70 |
Set rsQry = Nothing
|
|
|
71 |
End Sub
|
|
|
72 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
73 |
Sub RipplePackage (flag)
|
|
|
74 |
|
|
|
75 |
On Error Resume Next
|
|
|
76 |
objEH.ErrorRedirect = TRUE
|
|
|
77 |
OraDatabase.Parameters.Add "PV_ID_LIST", Request("pv_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
78 |
OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
79 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
80 |
|
|
|
81 |
objEH.TryORA ( OraSession )
|
|
|
82 |
|
|
|
83 |
If flag Then
|
|
|
84 |
OraDatabase.ExecuteSQL _
|
|
|
85 |
"BEGIN Ripple_Package( :PV_ID_LIST, :RTAG_ID, :USER_ID ); END;"
|
|
|
86 |
Else
|
|
|
87 |
OraDatabase.ExecuteSQL _
|
|
|
88 |
"BEGIN UnRipple_Package( :PV_ID_LIST, :RTAG_ID, :USER_ID ); END;"
|
|
|
89 |
End If
|
|
|
90 |
|
|
|
91 |
objEH.CatchORA ( OraSession )
|
|
|
92 |
|
|
|
93 |
OraDatabase.Parameters.Remove "PV_ID_LIST"
|
|
|
94 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
95 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
96 |
|
|
|
97 |
End Sub
|
|
|
98 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
99 |
Function PrettyDelta( delta, daemonState,pkgId )
|
|
|
100 |
Dim style
|
|
|
101 |
style = ""
|
|
|
102 |
|
|
|
103 |
If (delta > 600) AND (IsNull(pkgId) OR pkgId = "") Then
|
|
|
104 |
style = "style=color:Red"
|
|
|
105 |
If (delta > 86400 ) Then
|
|
|
106 |
Dim bdate, dd,mm,yy
|
|
|
107 |
bdate = DateAdd("s", - delta,Now())
|
|
|
108 |
dd = Day(bdate)
|
|
|
109 |
mm = MonthName(Month(bdate),1)
|
|
|
110 |
yy = Year( bdate)
|
|
|
111 |
delta = dd & "-" & mm & "-" & yy
|
|
|
112 |
If ( daemonState >= 2 ) Then
|
|
|
113 |
style = ""
|
|
|
114 |
End If
|
|
|
115 |
ElseIf ( delta > 60*60 ) Then
|
|
|
116 |
'Dim bdate, hh, mins, ss
|
|
|
117 |
bdate = DateAdd("s", - delta,Now())
|
|
|
118 |
delta = TimeValue( bdate)
|
|
|
119 |
'delta = hh & ":" & mins & ":" & ss
|
|
|
120 |
End If
|
|
|
121 |
End If
|
|
|
122 |
|
|
|
123 |
If style <> "" Then
|
|
|
124 |
delta = "<span " & style & ">" & delta & "</span>"
|
|
|
125 |
End If
|
|
|
126 |
PrettyDelta = delta
|
|
|
127 |
End Function
|
|
|
128 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
129 |
Function Get_Daemon_Mode( cMode )
|
|
|
130 |
|
|
|
131 |
If cMode = "S" Then
|
|
|
132 |
Get_Daemon_Mode = "Slave"
|
|
|
133 |
ElseIf cMode = "M" Then
|
|
|
134 |
Get_Daemon_Mode = "Master"
|
|
|
135 |
End If
|
|
|
136 |
|
|
|
137 |
End Function
|
|
|
138 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
139 |
Function Get_Run_Level( nLevel, indefinitePause, astate)
|
|
|
140 |
|
|
|
141 |
If indefinitePause Then
|
|
|
142 |
Get_Run_Level = "<span class='err_alert'>Stopped</span>"
|
|
|
143 |
ElseIf astate = 1 Then ' if build daemon paused
|
|
|
144 |
Get_Run_Level = "Paused"
|
|
|
145 |
ElseIf astate = 2 Then ' if build daemon disabled
|
|
|
146 |
Get_Run_Level = "Disabled"
|
|
|
147 |
ElseIf astate = 0 Then ' if build daemon enabled
|
|
|
148 |
If nLevel = 1 Then
|
|
|
149 |
Get_Run_Level = "Cannot Continue"
|
|
|
150 |
ElseIf nLevel = 2 Then
|
|
|
151 |
Get_Run_Level = "Paused"
|
|
|
152 |
ElseIf nLevel = 3 Then
|
|
|
153 |
Get_Run_Level = "Building"
|
|
|
154 |
ElseIf nLevel = 4 Then
|
|
|
155 |
Get_Run_Level = "Idle"
|
|
|
156 |
ElseIf nLevel = 5 Then
|
|
|
157 |
Get_Run_Level = "Waiting"
|
|
|
158 |
ElseIf nLevel = 6 Then
|
|
|
159 |
Get_Run_Level = "Publishing"
|
|
|
160 |
Else
|
|
|
161 |
Get_Run_Level = "<span class='err_alert'>Unknown!</span>"
|
|
|
162 |
End If
|
|
|
163 |
End If
|
|
|
164 |
|
|
|
165 |
End Function
|
|
|
166 |
|
|
|
167 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
168 |
Function Get_Package_Name( sPackageName,nRtagId,nPkgPvid )
|
|
|
169 |
|
|
|
170 |
If IsNull(sPackageName) Then
|
|
|
171 |
Get_Package_Name = "None"
|
|
|
172 |
ElseIf IsNull(nPkgPvid) or nPkgPvid <= 0 Then
|
|
|
173 |
Get_Package_Name = sPackageName
|
|
|
174 |
Else
|
|
|
175 |
Get_Package_Name = "<a class=""txt_linked"" href=""dependencies.asp?pv_id=" + nPkgPvid + "&rtag_id=" + nRtagId + """>" + sPackageName + "</a>"
|
|
|
176 |
End If
|
|
|
177 |
|
|
|
178 |
End Function
|
|
|
179 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
180 |
Function GetLastBuildAge( rtagid)
|
|
|
181 |
Dim query_string, rsQry
|
|
|
182 |
query_string = "SELECT TRUNC (86400*(SYSDATE - rl.LAST_BUILD)) as delta," &_
|
|
|
183 |
" TO_CHAR(rl.LAST_BUILD, 'DD-Mon-YYYY') as last_build," &_
|
|
|
184 |
" TO_CHAR(rl.LAST_BUILD, 'HH:MM:SS PM') as last_build_hours," &_
|
|
|
185 |
" TRUNC (SYSDATE - rl.LAST_BUILD) as last_build_days" &_
|
|
|
186 |
" FROM RELEASE_CONFIG rc, RUN_LEVEL rl, BUILD_MACHINE_CONFIG bm " &_
|
|
|
187 |
" WHERE rc.RTAG_ID =" &rtagid &_
|
|
|
188 |
" AND rc.bmcon_id is not null" &_
|
|
|
189 |
" AND rl.RCON_ID = rc.RCON_ID" &_
|
|
|
190 |
" AND rc.bmcon_id = bm.bmcon_id(+)"
|
|
|
191 |
|
|
|
192 |
Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
193 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
|
|
|
194 |
Dim delta, last_build, last_build_time, last_build_days
|
|
|
195 |
If IsNull(rsQry("delta")) Then
|
|
|
196 |
delta = 0
|
|
|
197 |
Else
|
|
|
198 |
delta = CLng(rsQry("delta"))
|
|
|
199 |
End If
|
|
|
200 |
last_build = rsQry("last_build")
|
|
|
201 |
last_build_time = rsQry("last_build_hours")
|
|
|
202 |
last_build_days = rsQry("last_build_days")
|
|
|
203 |
If delta < (60*60*24) Then
|
|
|
204 |
GetLastBuildAge = last_build_time
|
|
|
205 |
Else
|
|
|
206 |
GetLastBuildAge = last_build
|
|
|
207 |
End If
|
|
|
208 |
End If
|
|
|
209 |
rsQry.Close()
|
|
|
210 |
Set rsQry = nothing
|
|
|
211 |
|
|
|
212 |
End Function
|
|
|
213 |
|
|
|
214 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
215 |
Function GetModifiedSeqNo( rtagid)
|
|
|
216 |
Dim query_string, rsQry
|
|
|
217 |
query_string = "SELECT SEQNUM FROM RELEASE_MODIFIED WHERE RTAG_ID = " & rtagid
|
|
|
218 |
|
|
|
219 |
Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
220 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
|
|
|
221 |
GetModifiedSeqNo = rsQry("SEQNUM")
|
|
|
222 |
Else
|
|
|
223 |
GetModifiedSeqNo = "-"
|
|
|
224 |
End If
|
|
|
225 |
rsQry.Close()
|
|
|
226 |
Set rsQry = nothing
|
|
|
227 |
|
|
|
228 |
End Function
|
|
|
229 |
|
|
|
230 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
231 |
%>
|
|
|
232 |
<%
|
|
|
233 |
'------------ RUN BEFORE PAGE RENDER ----------
|
|
|
234 |
shref_base = "http://" & archive_server & "/devl/abtlog/"
|
|
|
235 |
|
|
|
236 |
' --- Get Form details from DB ---
|
|
|
237 |
Call GetFormDetails ( Request("rtag_id"), objFormCollector )
|
|
|
238 |
|
|
|
239 |
' --- Load Validation Rules ---
|
|
|
240 |
'Call objForm.LoadValidationRules ( Array("rtag_name","rtag_description", "config_spec_branch"), OraDatabase ) ' Load Validation Rules
|
|
|
241 |
|
|
|
242 |
' --- Enter Form Validation Rule Changes here... ----
|
|
|
243 |
'----------------------------------------------------
|
|
|
244 |
|
|
|
245 |
' --- RUN onPostBack ---
|
|
|
246 |
If Request("action") <> "" AND objAccessControl.UserLogedIn Then
|
|
|
247 |
|
|
|
248 |
If objEH.Finally Then
|
|
|
249 |
If Request("action") = "include" Then
|
|
|
250 |
Call RipplePackage (True)
|
|
|
251 |
' Redirect to the current page so that a refesh will not
|
|
|
252 |
' cause a form re-submit.
|
|
|
253 |
Response.Redirect(ScriptName & "?rtag_id=" & parRtagId)
|
|
|
254 |
Else
|
|
|
255 |
Call OpenInWindow ( "dependencies.asp?rtag_id="& parRtagId )
|
|
|
256 |
End If
|
|
|
257 |
End If
|
|
|
258 |
|
|
|
259 |
End If
|
|
|
260 |
|
|
|
261 |
'----------------------------------------------
|
|
|
262 |
%>
|
|
|
263 |
<script language="JavaScript" type="text/JavaScript">
|
|
|
264 |
|
|
|
265 |
window.addEventListener ?
|
|
|
266 |
window.addEventListener("load",InitShow,false) :
|
|
|
267 |
window.attachEvent && window.attachEvent("onload",InitShow);
|
|
|
268 |
|
|
|
269 |
function InitShow(e)
|
|
|
270 |
{
|
|
|
271 |
toggleDispClass('rootCause',0);
|
|
|
272 |
toggleDispClass('rootNoEnv',0);
|
|
|
273 |
toggleDispClass('rootFile',0);
|
|
|
274 |
toggleDispClass('rootIndirect',0);
|
|
|
275 |
toggleDispClass('manualCause',0);
|
|
|
276 |
}
|
|
|
277 |
|
|
|
278 |
function toggleDispClass(cname,flip)
|
|
|
279 |
{
|
|
|
280 |
var cookieName = 'RELMGR_BUILDSTATUS';
|
|
|
281 |
var cv = JSON.parse(getCookie(cookieName));
|
|
|
282 |
if (!cv)
|
|
|
283 |
cv = new Object;
|
|
|
284 |
if (!cv.BuildStatus)
|
|
|
285 |
cv.BuildStatus = new Object;
|
|
|
286 |
|
|
|
287 |
var state = cv.BuildStatus[cname];
|
|
|
288 |
if (state === undefined)
|
|
|
289 |
state = true;
|
|
|
290 |
|
|
|
291 |
if (flip>0)
|
|
|
292 |
state = !state;
|
|
|
293 |
|
|
|
294 |
cv.BuildStatus[cname] = state;
|
|
|
295 |
|
|
|
296 |
// Reflect the current state in the checkbox
|
|
|
297 |
var de = document.getElementById(cname);
|
|
|
298 |
if (de)
|
|
|
299 |
de.checked = state;
|
|
|
300 |
|
|
|
301 |
var elements = new Array();
|
|
|
302 |
elements = getElementsByClassName(cname);
|
|
|
303 |
for(i in elements ){
|
|
|
304 |
if (state) {
|
|
|
305 |
elements[i].style.display = "";
|
|
|
306 |
}
|
|
|
307 |
else {
|
|
|
308 |
elements[i].style.display = "none";
|
|
|
309 |
}
|
|
|
310 |
}
|
|
|
311 |
setCookie(cookieName, JSON.stringify(cv), 365 );
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
</script>
|
|
|
315 |
|
|
|
316 |
<html>
|
|
|
317 |
<head>
|
|
|
318 |
<title>Release Manager</title>
|
|
|
319 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
320 |
<meta http-equiv="Pragma" content="no-cache">
|
|
|
321 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
322 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
323 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
324 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
325 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
326 |
<!-- TIPS -->
|
|
|
327 |
<script type="text/javascript" src="scripts/json2.js"></script>
|
|
|
328 |
<script language="JavaScript" src="images/tipster.js"></script>
|
|
|
329 |
<script language="JavaScript" src="images/_help_tips.js"></script>
|
|
|
330 |
<script language="JavaScript" type="text/JavaScript">
|
|
|
331 |
formTips.tips.h_shedtime = stdTip(200, 'Color Code', '<SPAN style=color:Red>Red</SPAN> = overdue<br><SPAN style=color:Green>Green</SPAN> = ready' );
|
|
|
332 |
</script>
|
|
|
333 |
<!-- DROPDOWN MENUS -->
|
|
|
334 |
<!--#include file="_menu_def.asp"-->
|
|
|
335 |
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
|
|
|
336 |
</head>
|
|
|
337 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="isChecked('pv_id_list','submit');">
|
|
|
338 |
<!-- MENU LAYERS -------------------------------------->
|
|
|
339 |
<div id="popmenu" class="menuskin" onmouseover="clearhidemenu();highlightmenu(event,'on')" onmouseout="highlightmenu(event,'off');dynamichide(event)"></div>
|
|
|
340 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
341 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
342 |
<!----------------------------------------------------->
|
|
|
343 |
<!-- HEADER -->
|
|
|
344 |
<!--#include file="_header.asp"-->
|
|
|
345 |
<!-- BODY ---->
|
|
|
346 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
347 |
<tr>
|
|
|
348 |
<td width="1" background="images/bg_home_orange.gif" valign="top"></td>
|
|
|
349 |
<td width="100%" rowspan="1" align="center" valign="top" bgcolor="#EEEFEF">
|
|
|
350 |
<!-- FORM START -->
|
|
|
351 |
<%
|
|
|
352 |
objFormComponent.FormName = "FormName"
|
|
|
353 |
objFormComponent.Action = ScriptName &"?rtag_id="& parRtagId
|
|
|
354 |
Call objFormComponent.FormStart()
|
|
|
355 |
%>
|
|
|
356 |
<table width="10" border="0" cellspacing="0" cellpadding="0">
|
|
|
357 |
<tr>
|
|
|
358 |
<td width="1%"></td>
|
|
|
359 |
<td width="100%">
|
|
|
360 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
361 |
<tr>
|
|
|
362 |
<td nowrap class="body_txt"></td>
|
|
|
363 |
</tr>
|
|
|
364 |
</table>
|
|
|
365 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
366 |
<tr>
|
|
|
367 |
<td nowrap class="form_ttl"><p> </p>
|
|
|
368 |
<p>BUILD STATUS INFORMATION</p>
|
|
|
369 |
</td>
|
|
|
370 |
<td align="right" valign="bottom"></td>
|
|
|
371 |
</tr>
|
|
|
372 |
</table>
|
|
|
373 |
</td>
|
|
|
374 |
<td width="1%"></td>
|
|
|
375 |
</tr>
|
|
|
376 |
<tr>
|
|
|
377 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
|
|
378 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
|
|
379 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
|
|
380 |
</tr>
|
|
|
381 |
<tr>
|
|
|
382 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
383 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
384 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
385 |
<!--#include file="messages/_msg_inline.asp"-->
|
|
|
386 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
387 |
<br>
|
|
|
388 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
|
|
389 |
<tr><td colspan=4 class='err_alert'>
|
|
|
390 |
<font size='2'><b>Packages Excluded From Build</b></font>
|
|
|
391 |
</td>
|
|
|
392 |
</tr>
|
|
|
393 |
<td></td>
|
|
|
394 |
<td colspan=3 class="body_row">
|
|
|
395 |
<fieldset class="fset" align="right" style=" border: 1px groove; ">
|
|
|
396 |
Show
|
|
|
397 |
<input type="checkbox" checked value=0 name="showManual" id="manualCause" onClick="toggleDispClass('manualCause',1);">Manual Exclusions
|
|
|
398 |
<input type="checkbox" checked value=0 name="showCause" id="rootCause" onClick="toggleDispClass('rootCause',1);">Config Errors
|
|
|
399 |
<input type="checkbox" checked value=0 name="showNoEnv" id="rootNoEnv" onClick="toggleDispClass('rootNoEnv',1);">Env Errors
|
|
|
400 |
<input type="checkbox" checked value=0 name="showFile" id="rootFile" onClick="toggleDispClass('rootFile',1);">Build Errors
|
|
|
401 |
<input type="checkbox" checked value=0 name="showIndirect" id="rootIndirect" onClick="toggleDispClass('rootIndirect',1);">Indirect Exclusions
|
|
|
402 |
</fieldset>
|
|
|
403 |
</td>
|
|
|
404 |
</tr>
|
|
|
405 |
|
|
|
406 |
<tr>
|
|
|
407 |
<td background="images/bg_table_col.gif" class="err_alert"><b>Directly</b></td>
|
|
|
408 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
|
|
|
409 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
|
|
|
410 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Root Cause</td>
|
|
|
411 |
</tr>
|
|
|
412 |
<tr>
|
|
|
413 |
<%
|
|
|
414 |
query_string = " select pkg.pkg_name, pv.pkg_version, pv.pv_id, dnr.rtag_id, dnr.root_cause, dnr.root_file, pv.pv_description"&_
|
|
|
415 |
" from do_not_ripple dnr, package_versions pv, packages pkg"&_
|
|
|
416 |
" where dnr.rtag_id = "& parRtagId &_
|
|
|
417 |
" and pv.pv_id = dnr.pv_id"&_
|
|
|
418 |
" and pkg.pkg_id = pv.pkg_id"&_
|
|
|
419 |
" and dnr.root_pv_id is null"&_
|
|
|
420 |
" order by pkg_name"
|
|
|
421 |
Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
422 |
'--- Render rows ---
|
|
|
423 |
Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
424 |
Dim rowClass
|
|
|
425 |
Dim rowData
|
|
|
426 |
'
|
|
|
427 |
' Manually excluded packages have no root_cause or root_file or root_pv_id
|
|
|
428 |
'
|
|
|
429 |
' root_file, if supplied, indicates a build failure log file exists
|
|
|
430 |
' this should always prevail over the textual root_cause
|
|
|
431 |
'
|
|
|
432 |
If (IsNull(rsQry("root_file")) AND IsNull(rsQry("root_cause"))) Then
|
|
|
433 |
rowData = "Manually Excluded"
|
|
|
434 |
rowClass = "manualCause"
|
|
|
435 |
|
|
|
436 |
ElseIf IsNull(rsQry("root_file")) Then
|
|
|
437 |
rowData = rsQry("root_cause")
|
|
|
438 |
If InStr(rowData, "no build env") Then
|
|
|
439 |
rowClass = "rootNoEnv"
|
|
|
440 |
Else
|
|
|
441 |
rowClass = "rootCause"
|
|
|
442 |
End If
|
|
|
443 |
|
|
|
444 |
Else
|
|
|
445 |
rowClass = "rootFile"
|
|
|
446 |
rowData = "<a class=""txt_linked"" title=""" & rsQry("root_file") &_
|
|
|
447 |
" Log file may have expired."" " &_
|
|
|
448 |
"href=""" & shref_base & rsQry("root_file") & """>" &_
|
|
|
449 |
"Build Failure Log File</a>"
|
|
|
450 |
End If
|
|
|
451 |
%>
|
|
|
452 |
<tr class="<%=rowClass%>">
|
|
|
453 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
454 |
</tr>
|
|
|
455 |
<tr class="<%=rowClass%>">
|
|
|
456 |
<td nowrap width="1%">
|
|
|
457 |
<!-- The use of the isChecked() javascript function below, enables the submit button if any checkboxes are checked, -->
|
|
|
458 |
<!-- else it will disable the submit button. The function is badly named, but nevertheless, that is what it does. -->
|
|
|
459 |
<a name="PkgName_<%=rsQry("pkg_name")%>">
|
|
|
460 |
<input type="checkbox" value="<%=rsQry("pv_id")%>" name="pv_id_list" id="pv_id_list" onClick="isChecked('pv_id_list','IncludeSubmit');">
|
|
|
461 |
</a>
|
|
|
462 |
</td>
|
|
|
463 |
<td nowrap class="body_rowg"><a class="txt_linked" href="dependencies.asp?pv_id=<%=rsQry("pv_id")%>&rtag_id=<%=rsQry("rtag_id")%>" title="<%=rsQry("pv_description")%>"><%=rsQry("pkg_name")%></a></td>
|
|
|
464 |
<td nowrap class="body_rowg"><%=rsQry("pkg_version")%></td>
|
|
|
465 |
<td nowrap class="body_rowg"><%=rowData%></td>
|
|
|
466 |
</tr>
|
|
|
467 |
<%
|
|
|
468 |
rsQry.MoveNext
|
|
|
469 |
Loop%>
|
|
|
470 |
<tr>
|
|
|
471 |
<td background="images/bg_table_col.gif" class="err_alert"><b>Indirectly</b></td>
|
|
|
472 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
|
|
|
473 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
|
|
|
474 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Root Cause Package</td>
|
|
|
475 |
</tr>
|
|
|
476 |
<%
|
|
|
477 |
query_string = " select pv.pv_id, pkg.pkg_name, pv.pkg_version, qkg.pkg_name, dnr.rtag_id, pv.pv_description"&_
|
|
|
478 |
" from do_not_ripple dnr, package_versions pv, package_versions qv, packages pkg, packages qkg"&_
|
|
|
479 |
" where dnr.rtag_id = "& parRtagId &_
|
|
|
480 |
" and pv.pv_id = dnr.pv_id"&_
|
|
|
481 |
" and pkg.pkg_id = pv.pkg_id"&_
|
|
|
482 |
" and qv.pv_id = dnr.root_pv_id"&_
|
|
|
483 |
" and qkg.pkg_id = qv.pkg_id"&_
|
|
|
484 |
" and dnr.root_pv_id is not null"&_
|
|
|
485 |
" order by pkg.pkg_name"
|
|
|
486 |
Dim rsQry2
|
|
|
487 |
Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
488 |
'--- Render rows ---
|
|
|
489 |
Do While (NOT rsQry2.BOF) AND (NOT rsQry2.EOF)%>
|
|
|
490 |
<tr class="rootIndirect">
|
|
|
491 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
492 |
</tr>
|
|
|
493 |
<tr class="rootIndirect">
|
|
|
494 |
|
|
|
495 |
<td nowrap width="1%">
|
|
|
496 |
<input type="checkbox" value=0 disabled=true name="notused" id="notused">
|
|
|
497 |
</td>
|
|
|
498 |
<td nowrap class="body_rowg"><a class="txt_linked" href="dependencies.asp?pv_id=<%=rsQry2(0)%>&rtag_id=<%=rsQry2(4)%>" title="<%=rsQry2(5)%>"><%=rsQry2(1)%></a></td>
|
|
|
499 |
<td nowrap class="body_rowg"><%=rsQry2(2)%></td>
|
|
|
500 |
<td nowrap class="body_rowg"><a href="#PkgName_<%=rsQry2(3)%>" style="text-decoration: none;">» <%=rsQry2(3)%></a></td>
|
|
|
501 |
</tr>
|
|
|
502 |
<%
|
|
|
503 |
rsQry2.MoveNext
|
|
|
504 |
Loop%>
|
|
|
505 |
</table>
|
|
|
506 |
</td>
|
|
|
507 |
<td background="images/lbox_bgside_white.gif"> </td>
|
|
|
508 |
</tr>
|
|
|
509 |
<%If rsQry.RecordCount > 0 Then%>
|
|
|
510 |
<tr>
|
|
|
511 |
<td background="images/bg_action_norm.gif"></td>
|
|
|
512 |
<td align="right" background="images/bg_action_norm.gif">
|
|
|
513 |
<%
|
|
|
514 |
Response.Write(objFormComponent.SubmitButton ( "Include", "name='IncludeSubmit' id='IncludeSubmit' class='form_btn' disabled style='color:silver' onClick=""return vixConfirm('Are you sure you want to include these packages for building?',{title:'Include Packages', post : 'FormName'})""" ))
|
|
|
515 |
Response.Write(objPMod.ComposeHiddenTags())
|
|
|
516 |
%>
|
|
|
517 |
</td>
|
|
|
518 |
<td background="images/bg_action_norm.gif"><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
|
|
|
519 |
</tr>
|
|
|
520 |
<%End If%>
|
|
|
521 |
<tr>
|
|
|
522 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
|
|
523 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
524 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
|
|
525 |
</tr>
|
|
|
526 |
</table>
|
|
|
527 |
<!-- ACTION BUTTONS ---------------------------------------------->
|
|
|
528 |
<input type="hidden" name="action" value="include">
|
|
|
529 |
<!-- ACTION BUTTONS END ------------------------------------------>
|
|
|
530 |
<%Call objFormComponent.FormEnd()%>
|
|
|
531 |
<!-- FORM END ----------------------------------------------------->
|
|
|
532 |
</td>
|
|
|
533 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
534 |
</tr>
|
|
|
535 |
<%
|
|
|
536 |
rsQry.Close()
|
|
|
537 |
Set rsQry = nothing
|
|
|
538 |
rsQry2.Close()
|
|
|
539 |
Set rsQry2 = nothing
|
|
|
540 |
%>
|
|
|
541 |
<tr>
|
|
|
542 |
<td width="1" background="images/bg_home_orange.gif" valign="top"></td>
|
|
|
543 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
|
|
|
544 |
<table width="10" border="0" cellspacing="0" cellpadding="0">
|
|
|
545 |
<tr>
|
|
|
546 |
<td width="1%"></td>
|
|
|
547 |
<td width="100%">
|
|
|
548 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
549 |
<tr>
|
|
|
550 |
<td nowrap class="form_ttl"><p> </p>
|
|
|
551 |
<p>DAEMON STATUS INFORMATION</p>
|
|
|
552 |
</td>
|
|
|
553 |
<td valign="bottom" class="body_rowg">
|
|
|
554 |
Last Build: <%=GetLastBuildAge(parRtagId)%>
|
|
|
555 |
[<%=GetModifiedSeqNo(parRtagId)%>]
|
|
|
556 |
</td>
|
|
|
557 |
<td align="right" valign="bottom">
|
|
|
558 |
<a class="txt_linked" href="build_status.asp?rtag_id=<%=parRtagId%>" title="Refresh Page">[Refresh]</a></td>
|
|
|
559 |
</td>
|
|
|
560 |
</tr>
|
|
|
561 |
</table>
|
|
|
562 |
</td>
|
|
|
563 |
<td width="1%"></td>
|
|
|
564 |
</tr>
|
|
|
565 |
<tr>
|
|
|
566 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
|
|
567 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
|
|
568 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
|
|
569 |
</tr>
|
|
|
570 |
<tr>
|
|
|
571 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
|
|
|
572 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
573 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
574 |
<!--#include file="messages/_msg_inline.asp"-->
|
|
|
575 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
|
|
576 |
<br>
|
|
|
577 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
|
|
578 |
<%
|
|
|
579 |
Dim indefinitelyPaused
|
|
|
580 |
indefinitelyPaused = FALSE
|
|
|
581 |
' Insert a warning into the page if the build daemons are indefintely paused.
|
|
|
582 |
query_string = " select * from run_level_schedule rls where rls.indefinite_pause = 'P'"
|
|
|
583 |
|
|
|
584 |
Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
585 |
If rsQry.RecordCount > 0 Then
|
|
|
586 |
indefinitelyPaused = TRUE %>
|
|
|
587 |
<tr>
|
|
|
588 |
<span class='err_alert'>
|
|
|
589 |
<font size='2'><b>WARNING: Build Daemons are all stopped - please contact an administrator</b></font>
|
|
|
590 |
</span>
|
|
|
591 |
</tr>
|
|
|
592 |
<%End If
|
|
|
593 |
|
|
|
594 |
rsQry.Close()
|
|
|
595 |
Set rsQry = nothing
|
|
|
596 |
%>
|
|
|
597 |
<td width="9%" valign="top"></td>
|
|
|
598 |
<tr>
|
|
|
599 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Daemon Host</td>
|
|
|
600 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Machine Type</td>
|
|
|
601 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Mode</td>
|
|
|
602 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Run Level</td>
|
|
|
603 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Current Package</td>
|
|
|
604 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Last Change<br>Delta (secs)</td>
|
|
|
605 |
<td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Control State</td>
|
|
|
606 |
</tr>
|
|
|
607 |
<%
|
|
|
608 |
' Get the number of release configurations for this RTAG_ID, and iterate through them
|
|
|
609 |
query_string = " select * from release_config rc, gbe_machtype gm, build_machine_config bm"&_
|
|
|
610 |
" where rc.rtag_id = "& parRtagId &_
|
|
|
611 |
" and gm.gbe_id = rc.gbe_id"&_
|
|
|
612 |
" and rc.bmcon_id=bm.bmcon_id(+)" &_
|
|
|
613 |
" order by bm.display_name, rc.rcon_id"
|
|
|
614 |
|
|
|
615 |
Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
616 |
|
|
|
617 |
Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
618 |
rcon_id = rsQry("rcon_id")
|
|
|
619 |
|
|
|
620 |
Dim pkgName
|
|
|
621 |
Dim pkgPvid
|
|
|
622 |
Dim currentRunLevel
|
|
|
623 |
Dim daemonState
|
|
|
624 |
Dim delta
|
|
|
625 |
Dim pkgId
|
|
|
626 |
|
|
|
627 |
' For this release configuration, get its entry from the run_level table. This table may not
|
|
|
628 |
' have an entry so we must handle that outcome too.
|
|
|
629 |
query_string = " select rl.pause, rl.current_run_level, rl.current_pkg_id_being_built, "&_
|
|
|
630 |
" TRUNC (86400*(SYSDATE - rl.KEEP_ALIVE)) as delta" &_
|
|
|
631 |
" from run_level rl"&_
|
|
|
632 |
" where rl.rcon_id = "& rcon_id
|
|
|
633 |
|
|
|
634 |
Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
635 |
|
|
|
636 |
currentRunLevel = -1
|
|
|
637 |
pkgId = Null
|
|
|
638 |
pkgName = NULL
|
|
|
639 |
pkgPvid = NULL
|
|
|
640 |
daemonState = 0
|
|
|
641 |
delta = NULL
|
|
|
642 |
|
|
|
643 |
If (rsQry2.RecordCount > 0) Then
|
|
|
644 |
' Get the run level from the run_level table
|
|
|
645 |
currentRunLevel = rsQry2("current_run_level")
|
|
|
646 |
pkgId = rsQry2("current_pkg_id_being_built")
|
|
|
647 |
|
|
|
648 |
daemonState = rsQry2("pause")
|
|
|
649 |
If IsNull(daemonState) Then daemonState = 0
|
|
|
650 |
If daemonState = "2" Then pkgId = Null
|
|
|
651 |
|
|
|
652 |
delta = rsQry2("delta")
|
|
|
653 |
End If
|
|
|
654 |
|
|
|
655 |
' If we got an entry from the run_level table, try and use the pkg_id it contains, to obtain a
|
|
|
656 |
' package name from the packages table
|
|
|
657 |
Dim rsQry3
|
|
|
658 |
If NOT IsNull(pkgId) Then
|
|
|
659 |
query_string = " select pkg_name,rl.current_pv_id from run_level rl, packages pk"&_
|
|
|
660 |
" where rl.rcon_id = "& rcon_id &_
|
|
|
661 |
" and rl.current_pkg_id_being_built = pk.pkg_id"
|
|
|
662 |
|
|
|
663 |
Set rsQry3 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
|
|
|
664 |
If (rsQry3.RecordCount > 0) Then
|
|
|
665 |
pkgName = rsQry3("pkg_name")
|
|
|
666 |
pkgPvid = rsQry3("current_pv_id")
|
|
|
667 |
End If
|
|
|
668 |
rsQry3.Close()
|
|
|
669 |
Set rsQry3 = nothing
|
|
|
670 |
End If
|
|
|
671 |
|
|
|
672 |
' --- Now render HTML for this release configuration ---
|
|
|
673 |
%>
|
|
|
674 |
<tr>
|
|
|
675 |
<td colspan="7" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
676 |
</tr>
|
|
|
677 |
<tr>
|
|
|
678 |
<td nowrap class="body_rowg"><%=rsQry("display_name")%></td>
|
|
|
679 |
<td nowrap class="body_rowg"><%=rsQry("gbe_value")%></td>
|
|
|
680 |
<td nowrap class="body_rowg"><%=Get_Daemon_Mode(rsQry("daemon_mode"))%></td>
|
|
|
681 |
<td nowrap class="body_rowg"><%=Get_Run_Level(currentRunLevel, indefinitelyPaused,daemonState)%></td>
|
|
|
682 |
<td nowrap class="body_rowg"><%=Get_Package_Name(pkgName,parRtagId,pkgPvid)%></td>
|
|
|
683 |
<td nowrap class="body_rowg"><%=PrettyDelta(delta, daemonState,pkgName )%></td>
|
|
|
684 |
<td nowrap class="body_rowg">
|
|
|
685 |
<%
|
|
|
686 |
If (rsQry2.RecordCount > 0) AND NOT indefinitelyPaused Then
|
|
|
687 |
If objAccessControl.UserLogedIn AND canActionControlInProject("BuildControl") Then
|
|
|
688 |
If daemonState = 0 Then
|
|
|
689 |
Call Action_Buttons ( "Daemon Pause" )
|
|
|
690 |
ElseIf daemonState = 1 Then
|
|
|
691 |
Call Action_Buttons ( "Daemon Resume" )
|
|
|
692 |
ElseIf daemonState = 2 Then
|
|
|
693 |
Call Action_Buttons ( "Daemon Start" )
|
|
|
694 |
Else
|
|
|
695 |
Call Action_Buttons ( "Daemon Resume" )
|
|
|
696 |
End If
|
|
|
697 |
Else
|
|
|
698 |
If daemonState = 0 Then
|
|
|
699 |
Call Action_Buttons ( "Daemon Pause Disabled" )
|
|
|
700 |
ElseIf daemonState = 1 Then
|
|
|
701 |
Call Action_Buttons ( "Daemon Resume Disabled" )
|
|
|
702 |
ElseIf daemonState = 2 Then
|
|
|
703 |
Call Action_Buttons ( "Daemon Start Disabled" )
|
|
|
704 |
Else
|
|
|
705 |
Call Action_Buttons ( "Daemon Resume Disabled" )
|
|
|
706 |
End If
|
|
|
707 |
End If
|
|
|
708 |
Else
|
|
|
709 |
%>Unavailable<%
|
|
|
710 |
End If
|
|
|
711 |
%>
|
|
|
712 |
</td>
|
|
|
713 |
</tr>
|
|
|
714 |
<%
|
|
|
715 |
rsQry2.Close()
|
|
|
716 |
Set rsQry2 = nothing
|
|
|
717 |
rsQry.MoveNext
|
|
|
718 |
Loop
|
|
|
719 |
%>
|
|
|
720 |
<tr>
|
|
|
721 |
<td valign="bottom" background="images/bg_table_col.gif" class="body_col"></td>
|
|
|
722 |
<td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
|
|
|
723 |
<td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
|
|
|
724 |
<td valign="bottom" background="images/bg_table_col.gif" class="body_col"></td>
|
|
|
725 |
<td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
|
|
|
726 |
<td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
|
|
|
727 |
<td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col">
|
|
|
728 |
<%
|
|
|
729 |
If (rsQry.RecordCount > 0) AND NOT indefinitelyPaused Then
|
|
|
730 |
If objAccessControl.UserLogedIn AND canActionControlInProject("BuildControl") Then
|
|
|
731 |
Call Action_Buttons ( "Daemon Control All" )
|
|
|
732 |
Else
|
|
|
733 |
Call Action_Buttons ( "Daemon Control All Disabled" )
|
|
|
734 |
End If
|
|
|
735 |
Else
|
|
|
736 |
%> <%
|
|
|
737 |
End If
|
|
|
738 |
%>
|
|
|
739 |
</td>
|
|
|
740 |
</tr>
|
|
|
741 |
<%
|
|
|
742 |
rsQry.Close()
|
|
|
743 |
Set rsQry = nothing
|
|
|
744 |
%>
|
|
|
745 |
</table>
|
|
|
746 |
</td>
|
|
|
747 |
<td background="images/lbox_bgside_white.gif"> </td>
|
|
|
748 |
</tr>
|
|
|
749 |
<tr>
|
|
|
750 |
<input type="hidden" name="action" value="true">
|
|
|
751 |
<%=objPMod.ComposeHiddenTags()%>
|
|
|
752 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
|
|
753 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
754 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
|
|
755 |
</tr>
|
|
|
756 |
</table>
|
|
|
757 |
|
|
|
758 |
<!-- Daemon Instructions Display -->
|
|
|
759 |
<table width="10" border="0" cellspacing="0" cellpadding="0">
|
|
|
760 |
<tr>
|
|
|
761 |
<td width="1%"></td>
|
|
|
762 |
<td width="100%">
|
|
|
763 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
764 |
<tr>
|
|
|
765 |
<td nowrap class="form_ttl"><p> </p>
|
|
|
766 |
<p>DAEMON INSTRUCTIONS FOR THIS RELEASE</p>
|
|
|
767 |
</td>
|
|
|
768 |
<td align="right" valign="bottom"></td>
|
|
|
769 |
</tr>
|
|
|
770 |
</table>
|
|
|
771 |
</td>
|
|
|
772 |
<td width="1%"></td>
|
|
|
773 |
</tr>
|
|
|
774 |
<tr>
|
|
|
775 |
<td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
|
|
|
776 |
<td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
|
|
|
777 |
<td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
|
|
|
778 |
</tr>
|
|
|
779 |
<tr>
|
|
|
780 |
<td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" ></td>
|
|
|
781 |
<td bgcolor="#FFFFFF" valign="top">
|
|
|
782 |
<table width="100%" border="0" cellspacing="2" cellpadding="0">
|
|
|
783 |
<tr>
|
|
|
784 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Operation</td>
|
|
|
785 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
|
|
|
786 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
|
|
|
787 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Scheduled Time<%=Quick_Help("h_shedtime")%>
|
|
|
788 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Repeat</td>
|
|
|
789 |
<td align="left" nowrap background="images/bg_table_col.gif" class="body_col">In Progress</td>
|
|
|
790 |
</tr>
|
|
|
791 |
<%
|
|
|
792 |
Dim PkgVersion
|
|
|
793 |
Dim UserName
|
|
|
794 |
Dim UserEmail
|
|
|
795 |
Dim bInProgress
|
|
|
796 |
Dim bIsOverdue
|
|
|
797 |
Dim bIsReady
|
|
|
798 |
|
|
|
799 |
Set rsQry = OraDatabase.DbCreateDynaset( "SELECT DAEMON_INSTRUCTIONS_ID,"&_
|
|
|
800 |
" OP_CODE,"&_
|
|
|
801 |
" RTAG_ID,"&_
|
|
|
802 |
" PV_ID,"&_
|
|
|
803 |
" SCHEDULED_DATETIME,"&_
|
|
|
804 |
" REPEAT_SECS,"&_
|
|
|
805 |
" ADDED_DATETIME,"&_
|
|
|
806 |
" USER_ID,"&_
|
|
|
807 |
" IN_PROGRESS,"&_
|
|
|
808 |
" (CASE WHEN SCHEDULED_DATETIME <= SYSDATE THEN 1 ELSE 0 END) AS READY,"&_
|
|
|
809 |
" (CASE WHEN (SCHEDULED_DATETIME + (1/144)) < SYSDATE THEN 1 ELSE 0 END) AS OVERDUE"&_
|
|
|
810 |
" FROM DAEMON_INSTRUCTIONS "&_
|
|
|
811 |
" WHERE RTAG_ID = "& parRtagId &_
|
|
|
812 |
" ORDER BY PV_ID, SCHEDULED_DATETIME, DAEMON_INSTRUCTIONS_ID", ORADYN_DEFAULT )
|
|
|
813 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
814 |
|
|
|
815 |
If IsNull(rsQry("IN_PROGRESS")) OR rsQry("IN_PROGRESS") = "0" Then
|
|
|
816 |
bInProgress = False
|
|
|
817 |
Else
|
|
|
818 |
bInProgress = True
|
|
|
819 |
End If
|
|
|
820 |
|
|
|
821 |
' only flag as overdue if time threshold has been met but the daemon has not marked the instruction as being in progress.
|
|
|
822 |
If rsQry("OVERDUE") AND NOT bInProgress Then
|
|
|
823 |
bIsOverdue = True
|
|
|
824 |
Else
|
|
|
825 |
bIsOverdue = False
|
|
|
826 |
End If
|
|
|
827 |
|
|
|
828 |
If rsQry("READY") Then
|
|
|
829 |
bIsReady = True
|
|
|
830 |
Else
|
|
|
831 |
bIsReady = False
|
|
|
832 |
End If
|
|
|
833 |
|
|
|
834 |
' Get as much info about the package as we can
|
|
|
835 |
PkgId = 0
|
|
|
836 |
PkgName = "N/A"
|
|
|
837 |
PkgVersion = "N/A"
|
|
|
838 |
If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then
|
|
|
839 |
Call Get_Pkg_Short_Info(rsQry("PV_ID"), PkgId, PkgName, PkgVersion, NULL, NULL, NULL)
|
|
|
840 |
End If
|
|
|
841 |
|
|
|
842 |
%>
|
|
|
843 |
<tr>
|
|
|
844 |
|
|
|
845 |
<td align="left" valign="top" class="body_txt">
|
|
|
846 |
<%=DaemonInstructionOperationName(rsQry("OP_CODE"))%>
|
|
|
847 |
</td>
|
|
|
848 |
|
|
|
849 |
<td align="left" valign="top" class="body_txt">
|
|
|
850 |
<%If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then%>
|
|
|
851 |
<a href='fixed_issues.asp?rtag_id=<%=rsQry("RTAG_ID")%>&pv_id=<%=rsQry("PV_ID")%>'><%=PkgName%>
|
|
|
852 |
<%Else%>
|
|
|
853 |
<%=PkgName%>
|
|
|
854 |
<%End If%>
|
|
|
855 |
</td>
|
|
|
856 |
|
|
|
857 |
<td align="left" valign="top" class="body_txt">
|
|
|
858 |
<%=PkgVersion%>
|
|
|
859 |
</td>
|
|
|
860 |
|
|
|
861 |
<td align="left" valign="top" class="body_txt" <%If bIsOverdue Then%>style=color:Red<%Elseif bIsReady Then%>style=color:Green<%End If%>><%=EuroDateTime(rsQry("SCHEDULED_DATETIME"))%></td>
|
|
|
862 |
|
|
|
863 |
<td align="left" valign="top" class="body_txt"><%=DaemonInstructionRepeatString(rsQry("OP_CODE"), rsQry("REPEAT_SECS"))%></td>
|
|
|
864 |
|
|
|
865 |
<td align="left" valign="top" class="body_txt">
|
|
|
866 |
<%If bInProgress Then%>
|
|
|
867 |
YES
|
|
|
868 |
<%Else%>
|
|
|
869 |
NO
|
|
|
870 |
<%End If%>
|
|
|
871 |
</td>
|
|
|
872 |
</tr>
|
|
|
873 |
<tr>
|
|
|
874 |
<td colspan="6" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
875 |
</tr>
|
|
|
876 |
<%
|
|
|
877 |
rsQry.MoveNext()
|
|
|
878 |
Wend
|
|
|
879 |
rsQry.Close()
|
|
|
880 |
Set rsQry = nothing
|
|
|
881 |
%>
|
|
|
882 |
</table>
|
|
|
883 |
</td>
|
|
|
884 |
<td background="images/lbox_bgside_white.gif"> </td>
|
|
|
885 |
</tr>
|
|
|
886 |
<tr>
|
|
|
887 |
<td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
|
|
|
888 |
<td background="images/lbox_bg_blue.gif"></td>
|
|
|
889 |
<td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
|
|
|
890 |
</tr>
|
|
|
891 |
</table>
|
|
|
892 |
|
|
|
893 |
</td>
|
|
|
894 |
<td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
|
|
|
895 |
</tr>
|
|
|
896 |
<tr>
|
|
|
897 |
<td valign="bottom" align="center" background="images/bg_home_orange.gif">
|
|
|
898 |
<img src="images/img_gear.gif" width="86" height="99" vspace="20" hspace="30">
|
|
|
899 |
</td>
|
|
|
900 |
<td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="350">
|
|
|
901 |
</td>
|
|
|
902 |
</tr>
|
|
|
903 |
</table>
|
|
|
904 |
<!-- FOOTER -->
|
|
|
905 |
<!--#include file="_footer.asp"-->
|
|
|
906 |
</body>
|
|
|
907 |
</html>
|
|
|
908 |
<%
|
|
|
909 |
Call Destroy_All_Objects
|
|
|
910 |
%>
|