%@LANGUAGE="VBSCRIPT"%> <% '===================================================== ' ' Build Status Information ' '===================================================== %> <% Option explicit ' Good idea to set when using redirect Response.Expires = 0 ' always load the page, dont store %> <% '------------ ACCESS CONTROL ------------------ %> <% '------------ Scripts -------------------------- %> <% '------------ Variable Definition ------------- Dim rsQry Dim parRtagId Dim query_string Dim rcon_id Dim canControl '------------ Constants Declaration ----------- '------------ Variable Init ------------------- parRtagId = Request("rtag_id") objPMod.PersistInQryString("rtag_id") canControl = canActionControlInProject("BuildControl") '---------------------------------------------- Sub IncludePackages() On Error Resume Next objEH.ErrorRedirect = TRUE OraDatabase.Parameters.Add "PV_ID_LIST", Request("pv_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER objEH.TryORA ( OraSession ) OraDatabase.ExecuteSQL "BEGIN Ripple_Package( :PV_ID_LIST, :RTAG_ID, :USER_ID ); END;" objEH.CatchORA ( OraSession ) OraDatabase.Parameters.Remove "PV_ID_LIST" OraDatabase.Parameters.Remove "RTAG_ID" OraDatabase.Parameters.Remove "USER_ID" End Sub '-------------------------------------------------------------------------------------------------------------------------- '------------ RUN BEFORE PAGE RENDER ---------- '---------------------------------------------------- ' --- RUN onPostBack --- If Request("action") <> "" AND objAccessControl.UserLogedIn Then If objEH.Finally Then If Request("action") = "include" Then Call IncludePackages () ' Redirect to the current page so that a refesh will not ' cause a form re-submit. Call Destroy_All_Objects Response.Redirect(ScriptName & "?rtag_id=" & parRtagId) Else Call OpenInWindow ( "dependencies.asp?rtag_id="& parRtagId ) End If End If End If '---------------------------------------------- Sub ShowBuildStatus objFormComponent.FormName = "FormName" objFormComponent.Action = ScriptName &"?rtag_id="& parRtagId Call objFormComponent.FormStart() %>
| Packages Excluded From Build | |||
| Directly | Package | Version | Root Cause |
| "> " name="pv_id_list" <%=checkBoxData%>> | &rtag_id=<%=rsQry("rtag_id")%>" title="<%=rsQry("pv_description")%>"><%=rsQry("pkg_name")%> | <%=rsQry("pkg_version")%> | <%=rowData%> |
| Indirectly | Package | Version | Root Cause Package |
| <%=rsQry2(1)%> | <%=rsQry2(2)%> | » <%=rsQry2(3)%> | |
| 0, "", " disabled ")%> type="checkbox" title="Toggle all visible directly excluded packages"> | <% 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'})""" )) %> | ||
DAEMON STATUS INFORMATION |
Last Build: <%=GetLastBuildAge(parRtagId)%> [<%=GetModifiedSeqNo(parRtagId)%>] | [Refresh] |
| Operation | Package | Version | Scheduled Time<%=Quick_Help("SchedTime")%> | Repeat | In Progress | <% Dim PkgVersion Dim UserName Dim UserEmail Dim bInProgress Dim bIsOverdue Dim bIsReady Set rsQry = OraDatabase.DbCreateDynaset( "SELECT DAEMON_INSTRUCTIONS_ID,"&_ " OP_CODE,"&_ " RTAG_ID,"&_ " PV_ID,"&_ " SCHEDULED_DATETIME,"&_ " REPEAT_SECS,"&_ " ADDED_DATETIME,"&_ " USER_ID,"&_ " IN_PROGRESS,"&_ " (CASE WHEN SCHEDULED_DATETIME <= SYSDATE THEN 1 ELSE 0 END) AS READY,"&_ " (CASE WHEN (SCHEDULED_DATETIME + (1/144)) < SYSDATE THEN 1 ELSE 0 END) AS OVERDUE"&_ " FROM DAEMON_INSTRUCTIONS "&_ " WHERE RTAG_ID = "& parRtagId &_ " ORDER BY PV_ID, SCHEDULED_DATETIME, DAEMON_INSTRUCTIONS_ID", ORADYN_DEFAULT ) While (NOT rsQry.BOF) AND (NOT rsQry.EOF) If IsNull(rsQry("IN_PROGRESS")) OR rsQry("IN_PROGRESS") = "0" Then bInProgress = False Else bInProgress = True End If ' only flag as overdue if time threshold has been met but the daemon has not marked the instruction as being in progress. If rsQry("OVERDUE") AND NOT bInProgress Then bIsOverdue = True Else bIsOverdue = False End If If rsQry("READY") Then bIsReady = True Else bIsReady = False End If ' Get as much info about the package as we can Dim PkgId: PkgId = 0 Dim PkgName : PkgName = "N/A" If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then Call Get_Pkg_Short_Info(rsQry("PV_ID"), PkgId, PkgName, PkgVersion, NULL, NULL, NULL) End If %>
|---|---|---|---|---|---|
| <%=DaemonInstructionOperationName(rsQry("OP_CODE"))%> | <%If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then%> <%=PkgName%> <%Else%> <%=PkgName%> <%End If%> | <%=PkgVersion%> | style=color:Red<%Elseif bIsReady Then%>style=color:Green<%End If%>><%=DisplayDateTime(rsQry("SCHEDULED_DATETIME"))%> | <%=DaemonInstructionRepeatString(rsQry("OP_CODE"), rsQry("REPEAT_SECS"))%> | <%If bInProgress Then%> YES <%Else%> NO <%End If%> |
| <%Call BuildMenuPane%> | <%Call ShowBuildStatus%> <%Call ShowDaemonStatus%> <%Call ShowDaemonInstructions%> |
![]() |