Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7225 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'	_DeleteBuildPlatform.asp
5
'=====================================================
6
%>
7
<%
8
Option explicit
9
Response.Expires = 0
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/_form_window_common.asp"-->
17
<%
18
'------------ ACCESS CONTROL ------------------
19
%>
20
<!--#include file="_access_control_general.asp"-->
21
<!--#include file="_access_control_login.asp"-->
22
<%
23
'------------ VARIABLE DEFINITION -------------
24
'------------ CONSTANTS DECLARATION -----------
25
'------------ VARIABLE INIT -------------------
26
'------------ CONDITIONS ----------------------
27
'----------------------------------------------
28
%>
29
<%
30
'--------------------------------------------------------------------------------------------------------------------------
31
Sub DeleteBuildPlatform (bp_id)
32
	On Error Resume Next
33
	OraDatabase.Parameters.Add "bp_id_LIST",	bp_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
34
	objEH.TryORA ( OraSession )
35
	OraDatabase.ExecuteSQL _
36
	"BEGIN   PK_BUILDAPI.DELETE_BUILD_PLATFORM ( :bp_id_LIST );   END;"
37
	objEH.CatchORA ( OraSession )	
38
	OraDatabase.Parameters.Remove "bp_id_LIST"
39
End Sub
40
'--------------------------------------------------------------------------------------------------------------------------
41
%>
42
<%
43
'**************************** M  A  I  N ******************************
44
' --- Form is Valid ---
45
Call DeleteBuildPlatform(Request("bp_id"))
46
 
47
If objEH.Finally Then
48
	Call OpenInWindow ("admin_build_platforms.asp")
49
End If
50
'**********************************************************************
51
%>
52
<%
53
'------------ RUN AFTER CODE RUN --------------
54
'----------------------------------------------
55
'----------------------------------------------
56
Call Destroy_All_Objects
57
%>