Subversion Repositories DevTools

Rev

Rev 6612 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'   UsedBySBOMDetail.asp
'=====================================================
%>
<%
Option explicit
' Good idea to set when using redirect
Response.Expires = 0    ' always load the page, dont store
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_rtree_common.asp"-->
<%
'------------ Variable Definition -------------
Dim rsTemp
Dim parPv_id
Dim parBranchId
Dim parMode
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPv_id = Request ("pv_id")
parBranchId = Request ("branch_id")
parMode = Request ("mode")
'----------------------------------------------
%>
<%
'------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------------------ MAIN LINE ---------------------------------
'--------------------------------------------------------------------
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
         <td background="images/bg_form_lightbluedark.gif">             
                                        
                                                <table width="100%" border="0" cellspacing="1" cellpadding="1">
                          <tr>
                                                    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Bom Name</td>
                                                    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Bom Version</td>
                                                    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Node Name</td>
                                                    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">OS Name</td>
                                                    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Version Used</td>
                                                    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col"></td>
                                                    <td width="1" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Last&nbsp;Modified</td>
                                                  </tr>
                          <%
                                                  OraDatabase.Parameters.Add "PV_ID",  Request("pv_id"),   ORAPARM_INPUT, ORATYPE_NUMBER 
                                                  OraDatabase.Parameters.Add "BRANCH_ID", parBranchId, ORAPARM_INPUT, ORATYPE_NUMBER 
                                                  OraDatabase.Parameters.Add "MATCH",  parMode, ORAPARM_INPUT, ORATYPE_NUMBER 
                                                  
                                                  Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedBySBOMDetail.sql"), cint(0))
                                                  
                                                  OraDatabase.Parameters.Remove "MATCH"
                                                  OraDatabase.Parameters.Remove "PV_ID"
                                                  OraDatabase.Parameters.Remove "BRANCH"
                                                  %>
                                                  <%If rsTemp.RecordCount < 1 Then%>
                                                  <tr> 
                                                    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                                                    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                                                    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                                                    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                                                        <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                                                        <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                          </tr>
                                                  <%End If%>
                                                  <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
                          <tr>
                            <td background="images/bg_form_lightgray.gif" nowrap>
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/BomStates.asp?proj_id=<%=rsTemp("PROJ_ID")%>&branch_id=<%=parBranchId%>" class="txt_linked">
                                    <%=rsTemp("bom_name")%></a>
                            </td> 
                            <td background="images/bg_form_lightgray.gif" nowrap>
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/BomDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>" class="txt_linked">
                                    <%=rsTemp("version")%></a>
                            </td> 
                            <td background="images/bg_form_lightgray.gif" nowrap>
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/NodeDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>&node_id=<%=rsTemp("NODE_ID")%>" class="txt_linked">
                                    <%=rsTemp("node_name")%></a>
                            </td>
                            <td background="images/bg_form_lightgray.gif" nowrap>
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/OsDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>&os_id=<%=rsTemp("OS_ID")%>" class="txt_linked">
                                    <%=rsTemp("os_name")%></a>
                            </td>
                            <td background="images/bg_form_lightgray.gif" nowrap>
                              <a href="dependencies.asp?pv_id=<%=rsTemp("pv_id")%>" class="txt_linked <%=iif(rsTemp("MATCH") <> 1,"err_alert","")%>">
                                    <%=rsTemp("pkg_name")%>&nbsp;<%=rsTemp("pkg_version")%></a>
                            </td>
                            <td background="images/bg_form_lightgray.gif" nowrap>
                            </td>
                            <td background="images/bg_form_lightgray.gif" nowrap class="form_item">
                              <a href="mailto:<%=rsTemp("user_email")%>" class="txt_linked"><%=enum_imgUser%><%=rsTemp("full_name")%></a>
                                &nbsp;<%=DisplayDate ( rsTemp("modified_stamp") )%>
                            </td>
                          </tr>
                          <%rsTemp.MoveNext
                                                  WEnd
                                                  rsTemp.Close
                                                  Set rsTemp = nothing%>
                        </table>
    </td>                                               
  </tr>
</table>
<%
Call Destroy_All_Objects
%>