Subversion Repositories DevTools

Rev

Rev 62 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
62 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|	           RequestReleaseCombo.asp     	 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0	' always load the page, dont store
13
%>
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
 
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/_rtree_common.asp"-->
20
<%
21
'------------ Variable Definition -------------
22
Dim rsQry
23
Dim OutString
24
'------------ Constants Declaration -----------
25
'------------ Variable Init -------------------
26
'----------------------------------------------
27
%>
28
<%
29
'------------------------------------------------------------------------------------------------------------------------
30
'------------------------------------------------------------------------------------------------------------------------
31
%>
32
<%
33
'------------------------ MAIN LINE ---------------------------------
34
If (Request("branch_id")="") Then
35
	Response.write "ERROR: Missing Parameters at "& SCRIPT_NAME
36
End If
37
'--------------------------------------------------------------------
38
%>
39
 
40
	<%
41
 
42
	OraDatabase.Parameters.Add "BRANCH_ID", Request("branch_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
43
	OraDatabase.Parameters.Add "BOM_ID", NULL,	ORAPARM_INPUT, ORATYPE_NUMBER 	
44
 
45
	Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("SBOMCombo.sql"), cint(0))
46
 
47
 
48
	OraDatabase.Parameters.Remove "BRANCH_ID"
49
	OraDatabase.Parameters.Remove "BOM_ID"	
50
 
51
 
52
	OutString = NULL
53
 
54
 
55
	While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
56
		OutString = OutString & rsQry("version") &"|-|"& rsQry("bom_id") &"|-|"& rsQry("selected") &"|+|"
57
		rsQry.MoveNext
58
	WEnd
59
 
60
 
61
	If NOT IsNull( OutString ) Then
62
		' Remove last ;
63
		OutString = Left( OutString, Len(OutString) - 3 )
64
	End If
65
 
66
	rsQry.Close
67
	Set rsQry = Nothing
68
 
69
	' Render output
70
	Response.write OutString
71
	%>
72
 
73
<%
74
Call Destroy_All_Objects
75
%>