Rev 147 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| _DeleteDaemonInstruction |'| |'=====================================================%><%Option explicitResponse.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 NextIf NOT DaemonInstructionInProgress(Request("inst_id")) ThenobjEH.TryORA ( OraSession )OraDatabase.ExecuteSQL _"BEGIN PK_BUILDAPI.del_daemon_inst("& Request("inst_id") & "); END;"objEH.CatchORA ( OraSession )ElseCall RaiseMsg(enum_MSG_ERROR, "Cannot delete an instruction that is currently being processed by a Daemon")End IfEnd Sub'--------------------------------------------------------------------------------------------------------------------------%><%'**************************** M A I N ******************************' --- Form is Valid ---Call RemoveDaemonInstruction()If objEH.Finally ThenCall OpenInWindow ( "admin_daemon_instructions.asp" )End If'**********************************************************************%><%'------------ RUN AFTER CODE RUN --------------'----------------------------------------------'----------------------------------------------Call Destroy_All_Objects%>