Rev 5506 | 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 -------------Dim rFile'------------ CONSTANTS DECLARATION -----------'------------ VARIABLE INIT -------------------rFile = request("rfile")'------------ 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'--------------------------------------------------------------------------------------------------------------------------Sub RemoveDaemonInstructionByPVID ()On Error Resume NextIf NOT DaemonInstructionInProgress(Request("inst_id")) ThenobjEH.TryORA ( OraSession )OraDatabase.ExecuteSQL _"BEGIN PK_BUILDAPI.del_daemon_inst_by_rtag_pvid("& Request("opCode") & "," & Request("rtag_id") & "," & Request("pv_id") & "); END;"objEH.CatchORA ( OraSession )ElseCall RaiseMsg(enum_MSG_ERROR, "Cannot delete an instruction that is currently being processed by a Daemon")End IfrFile = rFile & "?rtag_id=" & Request("rtag_id") & "&pv_id=" & Request("pv_id")End Sub'--------------------------------------------------------------------------------------------------------------------------%><%'**************************** M A I N ******************************' --- Form is Valid ---If Request("opCode") <> "" ThenCall RemoveDaemonInstructionByPVID()ElseIf Request("inst_id") <> "" ThenCall RemoveDaemonInstruction()End IfIf objEH.Finally ThenCall OpenInWindow ( rFile )End If'**********************************************************************%><%'------------ RUN AFTER CODE RUN --------------'----------------------------------------------'----------------------------------------------Call Destroy_All_Objects%>