Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
147 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|             _DeleteDaemonInstruction              |
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
<!--#include file="common/daemon_instructions.asp"-->
20
<%
21
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_general.asp"-->
24
<!--#include file="_access_control_login.asp"-->
25
<%
26
'------------ VARIABLE DEFINITION -------------
27
'------------ CONSTANTS DECLARATION -----------
28
'------------ VARIABLE INIT -------------------
29
'------------ CONDITIONS ----------------------
30
'----------------------------------------------
31
%>
32
<%
33
'--------------------------------------------------------------------------------------------------------------------------
34
Sub RemoveDaemonInstruction ()
35
   On Error Resume Next
36
 
37
 
38
   If NOT DaemonInstructionInProgress(Request("inst_id")) Then
39
      objEH.TryORA ( OraSession )
40
      OraDatabase.ExecuteSQL _
41
      "BEGIN PK_BUILDAPI.del_daemon_inst("& Request("inst_id") & "); END;"
42
      objEH.CatchORA ( OraSession )
43
   Else
44
      Call RaiseMsg(enum_MSG_ERROR, "Cannot delete an instruction that is currently being processed by a Daemon")
45
   End If
46
End Sub
47
'--------------------------------------------------------------------------------------------------------------------------
48
%>
49
<%
50
'**************************** M  A  I  N ******************************
51
' --- Form is Valid ---
52
Call RemoveDaemonInstruction()
53
 
54
If objEH.Finally Then
55
   Call OpenInWindow ( "admin_daemon_instructions.asp" )
56
End If
57
'**********************************************************************
58
%>
59
<%
60
'------------ RUN AFTER CODE RUN --------------
61
'----------------------------------------------
62
'----------------------------------------------
63
Call Destroy_All_Objects
64
%>
65