Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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