Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| wAddProdGetVersion |'| |'=====================================================%><%Option explicitResponse.Expires = 0%><!--#include file="common/globals.asp"--><!--#include file="common/config.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_popup_window_common.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ VARIABLE DEFINITION -------------Dim rsQryDim parPkg_id_listDim objPopupMenuVersionsDim aProductNamesDim numOfRowsDim rowNum'------------ CONSTANTS DECLARATION -----------'------------ VARIABLE INIT -------------------parBom_id = Request("bom_id")parPkg_id_list = Request("pkg_id_list")parOs_id = Request("os_id")'------------ CONDITIONS ----------------------'Set objPopupMenuVersions = New PopupMenuControl'----------------------------------------------%><%'--------------------------------------------------------------------------------------------------------------------------Sub GetProductNames ( sPkg_id_list, outProductNames )Dim rsQry, queryquery = _" SELECT pkg.pkg_id, pkg.pkg_name "&_" FROM PACKAGES pkg"&_" WHERE pkg.pkg_id IN ("& sPkg_id_list &")"&_" ORDER BY UPPER(pkg.pkg_name)"Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )If rsQry.RecordCount > 0 ThenoutProductNames = rsQry.GetRows()End IfEnd Sub'--------------------------------------------------------------------------------------------------------------------------Function GetVersions ( nPkg_id )Dim rsQry, queryquery = _" SELECT pv.pv_id, pv.pkg_version "&_" FROM PACKAGE_VERSIONS pv"&_" WHERE pv.pkg_id = :PKG_ID"&_" ORDER BY UPPER(pv.pkg_version)"OraDatabase.Parameters.Add "PKG_ID", nPkg_id, ORAPARM_INPUT, ORATYPE_NUMBERSet rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )If rsQry.RecordCount > 0 ThenGetVersions = rsQry.GetRows()ElseGetVersions = NULLEnd IfOraDatabase.Parameters.Remove "PKG_ID"End Function'--------------------------------------------------------------------------------------------------------------------------Sub RunRequirement ()On Error Resume NextobjEH.ErrorRedirect = TRUEobjEH.TryIf Request("pkg_id_list") = "" ThenErr.Raise 8, "Please select at least one Product.", ""End IfobjEH.CatchEnd Sub'--------------------------------------------------------------------------------------------------------------------------%><%'------------ RUN BEFORE PAGE RENDER ----------objPMod.PersistInQryString ( Array("base_env_id") )Call RunRequirement()'----------------------------------------------%><html><head><title>Deployment Manager</title><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" rel="stylesheet" type="text/css"><script language="JavaScript" src="scripts/common.js"></script></head><body background="images/bg_bage_0.gif" leftmargin="0" topmargin="0" onLoad="self.focus();"><table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><td bgcolor="#FFFFFF" class="body_txt"><span class="body_h1"><img src="icons/i_linkarrow_black.gif" width="11" height="11" align="absmiddle"> Add Product </span> <br><br></td></tr><%'-- FROM START ---------------------------------------------------------------------------------------------------------objFormComponent.FormName = "FormVersion"objFormComponent.Action = "_AddProd.asp"objFormComponent.OnSubmit = "ShowProgress();"Call objFormComponent.FormStart()%><tr><td background="images/bg_login.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><%=ProgressBar()%></td><td align="right"><input name="btn" type="reset" class="form_btn" value="« Back" onClick="history.back();"><input name="btn" type="reset" class="form_btn" value="Next »" disabled> <input name="btn" type="submit" class="form_btn" value="Add"><input name="btn" type="reset" class="form_btn" value="Cancel" onClick="self.close();"></td></tr></table></td></tr><tr><td><!-- PRODUCT NAME RESULTS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --><table width="100%" border="0" cellspacing="10" cellpadding="0"><tr><td width="100%" valign="top" nowrap class="body_txt">Enter Product Version, optional Installation Comments and click Add.<table width="100%" border="0" cellspacing="3" cellpadding="0"><tr><td width="1" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td><td width="100%" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr><%Call GetProductNames ( parPkg_id_list, aProductNames )numOfRows = UBound( aProductNames, 2 )For rowNum = 0 To numOfRows%><tr><td align="right" valign="top" nowrap class="body_col">Product Name </td><td class="body_txt"><img src="icons/i_product.gif" width="19" height="19" hspace="2" align="absmiddle"><%=aProductNames( 1, rowNum )%></td></tr><tr><td align="right" valign="top" nowrap class="body_col">Version</td><td class="body_rowg"><%=objFormComponent.ComboWithText ( "pkgid"& aProductNames( 0, rowNum ), NULL, GetVersions( aProductNames( 0, rowNum ) ), "class='form_ivalue'" )%></td></tr><tr><td align="right" valign="top" nowrap class="body_col">Installation Comments</td><td class="body_rowg"><%=objFormComponent.TextArea ( "comments"& aProductNames( 0, rowNum ), NULL, 5, 60, "class='form_ivalue'" )%><br><br><br></td></tr><tr><td colspan="2" background="images/bg_table_border.gif"><img src="images/spacer.gif" width="1" height="1"></td></tr><%Next%></table></td></tr></table><!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --></td></tr><%=objPMod.ComposeHiddenTags()%><input type="hidden" name="pkg_id_list" value="<%=parPkg_id_list%>"><input type="hidden" name="action" value="true"><%Call objFormComponent.FormEnd()'-- FROM END ----------------------------------------------------------------------------------------------------------------%></table></body></html><%'------------ RUN AFTER PAGE RENDER -----------'Set objFormCollector = NothingSet objFormComponent = Nothing'----------------------------------------------%><!--#include file="common/globals_destructor.asp"-->