Rev 5958 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| Bom_AllProducts |'| |'=====================================================%><%Option explicitResponse.Expires = 0%><!--#include file="common/globals.asp"--><!--#include file="common/config.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_bom_common.asp"--><!--#include file="controls/ERGFormComponent/classFormComponent.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ VARIABLE DEFINITION -------------Dim rsQry, rsTempDim aProductListDim parProd_id_selectDim parShowallDim numOfRowsDim rowNumDim objFormCollectorDim objFormComponentDim sMessageDim ProdIdDim ChangeType'------------ CONSTANTS DECLARATION -----------Const LIMG_NOTE_NEW = "<img src='icons/i_note_new.gif' width='18' height='18' border='0' align='absmiddle'>"Const LIMG_NOTE_EDIT = "<img src='icons/i_note_edit.gif' width='18' height='18' border='0' align='absmiddle'>"'------------ VARIABLE INIT -------------------parProd_id_select = Request("prod_id_select")parShowall = Request("showall")Set objFormCollector = CreateObject("Scripting.Dictionary")Set objFormComponent = New FormComponent'------------ CONDITIONS ----------------------'----------------------------------------------%><%'--------------------------------------------------------------------------------------------------------------Sub GetAllProductsList ( nBom_id, outProductList )Dim rsQry, query, showAll'' Use SHOWALL parameter is BOM has old bom'showAll = "Y"'If nBom_id <> nComparedBomId Then' showAll = parShowall'End IfOraDatabase.Parameters.Add "BOM_ID", nBom_id, ORAPARM_INPUT, ORATYPE_NUMBERSet rsQry = OraDatabase.DbCreateDynaset( GetQuery ("AllProducts.sql"), ORADYN_DEFAULT )If rsQry.RecordCount > 0 ThenoutProductList = rsQry.GetRows()ElseoutProductList = NULLEnd IfOraDatabase.Parameters.Remove "BOM_ID"End Sub'--------------------------------------------------------------------------------------------------------------%><%'------------ RUN BEFORE PAGE RENDER ----------'----------------------------------------------%><html><head><title>Deployment Manager</title><link rel="shortcut icon" href="<%=FavIcon%>"/><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="scripts/deployment_manager.css?ver=<%=VixVerNum%>" rel="stylesheet" type="text/css"><script language="JavaScript" src="scripts/common.js?ver=<%=VixVerNum%>"></script><script language="JavaScript" src="scripts/remote_scripting.js?ver=<%=VixVerNum%>"></script><script language="JavaScript" type="text/javascript"><!--function RequestProductLocation( paramString, rowId, changeType ){var requestURL// Product is changes, hence can be found in current bomrequestURL = 'RequestProductLocation.asp';// Show divToggleDisplay( 'PRODUCT_'+ rowId, 'IMG_EXPAND_PRODUCT_' + rowId, 'IMG_COLLAPSE_PRODUCT_' + rowId );// Set ajax divnameajaxdivname = 'PRODUCT_'+ rowId;if ( MM_findObj( ajaxdivname ).innerHTML == '<%=enumLOADING%>'){//Append the name to search for to the requestURLvar url = requestURL + paramString;//Create the xmlHttp object to use in the request//stateChangeHandler will fire when the state has changed, i.e. data is received back// This is non-blocking (asynchronous)xmlHttp = GetXmlHttpObject(stateChangeHandler);//Send the xmlHttp get to the specified urlxmlHttp_Get(xmlHttp, url);}}//--></script></head><body leftmargin="0" topmargin="0"><!-- HEADER ++++++++++++++++ --><!--#include file="_header.asp"--><!-- +++++++++++++++++++++++ --><!-- MAIN MENU + CRUMBS ++++++++++++++++ --><!--#include file="_main_menu.asp"--><!-- +++++++++++++++++++++++++++++++++++++ --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="1%" valign="top" background="images/bg_bage_0.gif"><!-- NODE BROWSER ++++++++++++++++++++++ --><!--#include file="_bom_browser.asp"--><!-- END OF NODE BROWSER +++++++++++++++ --></td><td width="1" background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="600"></td><td width="100%" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" background="images/bg_blue.gif"></td><td align="right" valign="bottom" background="images/bg_blue.gif" class="body_txtw"><%Call RenderTitle( objBomCollector )%></td><td background="images/bg_blue.gif"><img src="images/spacer.gif" width="10" height="20"></td></tr><tr><td width="1%" valign="top" background="images/bg_blue.gif"></td><td width="100%" valign="bottom" background="images/bg_blue.gif"><!-- TAB CONTROLS ++++++++++++++++++++++ --><!--#include file="_tabs_definition.asp"--><%Set objTabControl = New TabControlobjTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleWinXP/tab_style.html") ) ' Supply tab style definitionobjTabControl.TabStyle = "StyleWinXP"objTabControl.AddTabDefnition ( arrBomTabDef )objTabControl.SelectByName("All Products")objTabControl.Render ()%><!-- END OF TAB CONTROLS +++++++++++++++ --></td><td width="1%" background="images/bg_blue.gif"><img src="images/spacer.gif" width="10" height="35"></td></tr><tr><td background="images/bg_bage_0.gif"><img src="images/spacer.gif" width="30" height="10"></td><td background="images/bg_bage_0.gif"><!-- BUTTONS CONTROL +++++++++++++++++++ --><%'-- Define Action buttons on this tabaTabBtnsDef = Array("abtnSyncProdLatest", "abtnUnhideProducts", "abtnRevertProdLatest")Call LoadTabActionButtons ( aTabBtnsDef, objBtnControl )' -- Tell control if buttons need to be readonly actionsobjBtnControl.IsReadonlyAction = objBomCollector.Item("is_readonly")' -- Render ButtonsCall objBtnControl.Render ( aTabBtnsDef )%><!-- +++++++++++++++++++++++++++++++++++ --></td><td background="images/bg_blue.gif"><img src="images/p_bar_corrner.gif" width="17" height="42"></td></tr><tr><td> </td><td> </td><td valign="top"><%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) = "hide" Then%><a href="<%=SCRIPT_NAME%>?user_bar=<%=enumDEFAULT%>&<%=objPMod.ComposeURL()%>"><img src="icons/b_left.gif" title="Maximize favourits" width="13" height="13" vspace="5" border="0"></a><%End If%></td></tr></table><table width="100%" border="0" cellspacing="10" cellpadding="0"><tr><td width="1"><img src="images/spacer.gif" width="1" height="1"></td><td width="100%"><img src="images/spacer.gif" width="1" height="1"></td></tr><!-- ALL PRODUCTS BOM +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><tr><td align="right" valign="top"><img src="icons/i_bom_products.gif" hspace="3"></td><td valign="top" class="body_txt"><SPAN class="body_colb"><%Call RenderTitle( objBomCollector )%><br>All Products</SPAN><br><hr width="100%" size="1px" noshade color="#808080"><br><table width="100%" border="0" cellspacing="2" cellpadding="0"><tr><td width="1" background="images/bg_table_col.gif"><img src="images/spacer.gif" width="11" height="11"></td><td width="20%" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2"><tr><td align="right" nowrap background="images/bg_table_col.gif" class="body_col">Product</td></tr></table></td><td width="20%" nowrap align="right" background="images/bg_table_col.gif" class="body_col">Version</td><td width="60%" nowrap align="right" background="images/bg_table_col.gif" class="body_col"></td></tr><%Call GetAllProductsList ( dbPARbom_id, aProductList )If NOT IsNull( aProductList ) ThennumOfRows = UBound( aProductList, 2 )For rowNum = 0 To numOfRowsProdId = aProductList( 0, rowNum )ChangeType = NULLSet rsTemp = OraDatabase.DbCreateDynaset("SELECT * FROM PACKAGE_VERSIONS PV, PRODUCT_DETAILS PD WHERE PD.PROD_ID(+) = PV.PV_ID AND PV.PV_ID ="&ProdId, ORADYN_DEFAULT )%><tr><td valign="top"></td><td nowrap valign="top"><SPAN id="IMG_EXPAND_PRODUCT_<%=ProdId & ChangeType%>" name="IMG_EXPAND_PRODUCT_<%=ProdId & ChangeType%>" style="display:block;"><a href="javascript:;" class="menu_link" onClick="RequestProductLocation('?prod_id=<%=ProdId%>&bom_id=<%=dbPARbom_id%>&change_type=<%=ChangeType%>', '<%=ProdId & ChangeType%>');"><%=LIMG_EXPAND & GetProductIcon( rsTemp ) & aProductList( 1, rowNum )%></a></SPAN><SPAN id="IMG_COLLAPSE_PRODUCT_<%=ProdId & ChangeType%>" name="IMG_COLLAPSE_PRODUCT_<%=ProdId & ChangeType%>" style="display:none;"><a href="javascript:;" class="menu_link" onClick="ToggleDisplay( 'PRODUCT_<%=ProdId & ChangeType%>', 'IMG_EXPAND_PRODUCT_<%=ProdId & ChangeType%>', 'IMG_COLLAPSE_PRODUCT_<%=ProdId & ChangeType%>');"><%=LIMG_COLLAPSE & GetProductIcon( rsTemp ) & aProductList( 1, rowNum )%></a></SPAN><%rsTemp.Close()Set rsTemp = nothing%></td><td nowrap class="body_row" valign="top"><%=aProductList( 2, rowNum )%></td><td class="body_rowlite"></td></tr><tr><td><img src="images/spacer.gif" width="1" height="1"></td><td nowrap valign="top" class="body_row" colspan="3"><DIV id="PRODUCT_<%=ProdId & ChangeType%>" name="PRODUCT_<%=ProdId & ChangeType%>" style="display:none;"><%=enumLOADING%></DIV></td></tr><%If rowNum <> numOfRows Then%><tr><td colspan="4" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr><%End If%><%NextElse%><tr><td colspan="4" class="body_txt">No Changes Found.</td></tr><%End If%><tr><td colspan="4" background="images/bg_table_border.gif"><table width="100%" border="0" cellspacing="1" cellpadding="2"><tr><td nowrap background="images/bg_table_col.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr></table></td></tr></table></td></tr></table></td><td width="1%" valign="top" background="images/bg_favourits.gif"><%If Request.Cookies( enumCOOKIE_NAME )( "user_bar" ) <> "hide" Then%><!-- PERSONAL PANE +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%" valign="bottom" background="images/bg_node_icon.gif"><%=GetNodeImage ( dbPARnode_id )%></td><td width="1" background="images/bg_node_icon.gif"><img src="images/spacer.gif" width="1" height="97"></td></tr></table><a href="<%=SCRIPT_NAME%>?user_bar=hide&<%=objPMod.ComposeURL()%>"><img src="icons/b_right.gif" title="Minimize favourits" width="13" height="13" vspace="5" border="0"></a> <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td><td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="10" height="3"></td><td align="right" valign="top" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td></tr><tr><td colspan="3" background="images/bg_favourits2.gif"><table width="100%" border="0" cellspacing="5" cellpadding="0"><tr><td valign="top" class="fav_txt"><span class="fav_head">Reason for release</span><br><br><!-- This version needs to be rebuild on new sysbase_types 1.5.0.mas<br> --></td></tr></table></td></tr><tr><td valign="bottom" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td><td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="190" height="3"></td><td align="right" valign="bottom" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td></tr></table><br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td><td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="10" height="3"></td><td align="right" valign="top" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td></tr><tr background="images/bg_gray.gif"><td colspan="3" background="images/bg_favourits2.gif"><table width="100%" border="0" cellspacing="5" cellpadding="0"><tr><td valign="top" class="fav_txt"><span class="fav_head">Fixed Issues</span><br><br><table width="100%" border="0" cellspacing="0" cellpadding="2"><!-- <tr><td><img src="icons/i_bulet.gif" width="4" height="4" hspace="5"></td><td><a href="#" class="fav_link">DEVI-021532</a></td></tr><tr><td><img src="icons/i_bulet.gif" width="4" height="4" hspace="5"></td><td><a href="#" class="fav_link">DEVI-021534</a></td></tr><tr><td width="1%"><img src="icons/i_bulet.gif" width="4" height="4" hspace="5"></td><td width="100%"><a href="#" class="fav_link">DEVI-021536</a></td></tr> --></table></td></tr></table></td></tr><tr><td valign="bottom" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td><td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="190" height="3"></td><td align="right" valign="bottom" background="images/bg_bage_0a.gif"><img src="images/dot_white.gif" width="1" height="1"></td></tr></table></td><td width="1%"><img src="images/spacer.gif" width="15" height="400"></td></tr></table><!-- END OF PERSONAL BAR ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><%End If%></td></tr><tr><td background="images/bg_bage_0a.gif"><img src="images/spacer.gif" width="1" height="15"></td><td background="images/bg_bage_1.gif"><img src="images/spacer.gif" width="1" height="1"></td><td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td><td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td></tr><tr><td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="20"></td><td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td><td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="1"></td><td bgcolor="#FFFFFF"> </td></tr></table><!-- FOOTER ++++++++++++++++ --><!--#include file="_footer.asp"--><!-- +++++++++++++++++++++++ --></body></html>