Subversion Repositories DevTools

Rev

Rev 147 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|             _DeleteDaemonInstruction              |
'|                                                   |
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_form_window_common.asp"-->
<!--#include file="common/daemon_instructions.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<!--#include file="_access_control_login.asp"-->
<%
'------------ VARIABLE DEFINITION -------------
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'--------------------------------------------------------------------------------------------------------------------------
Sub RemoveDaemonInstruction ()
   On Error Resume Next


   If NOT DaemonInstructionInProgress(Request("inst_id")) Then
      objEH.TryORA ( OraSession )
      OraDatabase.ExecuteSQL _
      "BEGIN PK_BUILDAPI.del_daemon_inst("& Request("inst_id") & "); END;"
      objEH.CatchORA ( OraSession )
   Else
      Call RaiseMsg(enum_MSG_ERROR, "Cannot delete an instruction that is currently being processed by a Daemon")
   End If
End Sub
'--------------------------------------------------------------------------------------------------------------------------
%>
<%
'**************************** M  A  I  N ******************************
' --- Form is Valid ---
Call RemoveDaemonInstruction()

If objEH.Finally Then
   Call OpenInWindow ( "admin_daemon_instructions.asp" )
End If
'**********************************************************************
%>
<%
'------------ RUN AFTER CODE RUN --------------
'----------------------------------------------
'----------------------------------------------
Call Destroy_All_Objects
%>