Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
177 brianf 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			      _DeleteSchedule				 	 |
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 DeleteSchedule (scheduled_id)
34
	On Error Resume Next
35
 
36
	OraDatabase.Parameters.Add "SCHEDULED_ID",	scheduled_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
37
 
38
	objEH.TryORA ( OraSession )
39
 
40
	OraDatabase.ExecuteSQL _
41
	"BEGIN   PK_BUILDAPI.DELETE_SCHEDULE ( :SCHEDULED_ID );   END;"
42
 
43
	objEH.CatchORA ( OraSession )
44
 
45
	OraDatabase.Parameters.Remove "SCHEDULED_ID"
46
 
47
 
48
End Sub
49
'--------------------------------------------------------------------------------------------------------------------------
50
%>
51
<%
52
'**************************** M  A  I  N ******************************
53
' --- Form is Valid ---
54
Call DeleteSchedule(Request("scheduled_id"))
55
 
56
If objEH.Finally Then
57
	Call OpenInWindow ( "admin_build_service.asp" )
58
End If
59
'**********************************************************************
60
%>
61
<%
62
'------------ RUN AFTER CODE RUN --------------
63
'----------------------------------------------
64
'----------------------------------------------
65
Call Destroy_All_Objects
66
%>
67