Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| OSDefault |'| |'=====================================================%><%Option explicitResponse.Expires = 0%><!--#include file="common/config.asp"--><!--#include file="common/common_subs.asp"--><%'------------ VARIABLE DEFINITION -------------Dim AllHttpDim bom_version, bom_lifecycle,sbom, includeDim bom_idDim os_idDim pos, pos2, pos3, pos4Dim rsQry, rsPDDim newline'------------ CONSTANTS DECLARATION -----------'------------ VARIABLE INIT -------------------sbom = Request("sbom")include = Request("include")'------------ CONDITIONS ----------------------'----------------------------------------------%><%newline = chr(13) + chr(10)pos = InStrRev(sbom, ".")bom_version = sbombom_lifecycle = 0If pos <> 0 Thenbom_version = Mid(sbom,1,pos-1)bom_lifecycle = Mid(sbom,pos+1,len(sbom)-len(bom_version))End If'AllHttp = Request.ServerVariables("ALL_HTTP")'Response.Write(AllHttp)'pos = InStr(AllHttp, "os_id=")'pos2 = Instr(pos+6, AllHttp,"")'Response.Write(AllHttp)'os_id = Mid(AllHttp, pos+6, 4)'If (InStr(os_id,"&")) Then' os_id = Mid(os_id,1,3)'End IfOraDatabase.Parameters.Add "PROJ_NAME", Request("project"), ORAPARM_INPUT, ORATYPE_VARCHAR2OraDatabase.Parameters.Add "BRANCH_NAME", Request("release"), ORAPARM_INPUT, ORATYPE_VARCHAR2OraDatabase.Parameters.Add "BOM_VERSION", bom_version, ORAPARM_INPUT, ORATYPE_NUMBEROraDatabase.Parameters.Add "BOM_LIFECYCLE", bom_lifecycle, ORAPARM_INPUT, ORATYPE_NUMBERIf include = "patches" ThenSet rsQry = OraDatabase.DbCreateDynaset( GetQuery ("bom_patches.sql"), ORADYN_DEFAULT )ElseIf include = "products" ThenSet rsQry = OraDatabase.DbCreateDynaset( GetQuery ("products_less_patches.sql"), ORADYN_DEFAULT )ElseSet rsQry = OraDatabase.DbCreateDynaset( GetQuery ("bom_allproducts_script.sql"), ORADYN_DEFAULT )End If%><%While (NOT rsQry.BOF) AND (NOT rsQry.EOF)OraDatabase.Parameters.Add "PV_ID", rsQry("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBERSet rsPD = OraDatabase.DbCreateDynaset( GetQuery ("pd_patch.sql"), ORADYN_DEFAULT )%><%=rsQry("pkg_name")%><%=Chr(9)%><%=rsQry("pkg_version")%><%=Chr(9)%><%If NOT IsNull(rsQry("is_patch")) Then%><%=rsPD("pkg_name")%><%=Chr(9)%><%=rsPD("pkg_version")%><%=Chr(9)%><%End If%><%=rsQry("os_name")%><%=Chr(9)%><%=newline%><%OraDatabase.Parameters.Remove "PV_ID"rsPD.Close()Set rsPD = nothingrsQry.MoveNextWEndOraDatabase.Parameters.Remove "BOM_LIFECYCLE"OraDatabase.Parameters.Remove "BOM_VERSION"OraDatabase.Parameters.Remove "BRANCH_NAME"OraDatabase.Parameters.Remove "PROJ_NAME"rsQry.Close()Set rsQry = nothing%><%'------------ RUN AFTER PAGE RENDER -----------'----------------------------------------------%>