Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
4293 dpurdie 5
'|	Remove or Delete daemon from Release			 |
119 ghuddy 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 DeleteDaemon (rcon_id)
34
	On Error Resume Next
35
 
36
	OraDatabase.Parameters.Add "RCON_ID_LIST",	rcon_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
37
 
38
	objEH.TryORA ( OraSession )
39
 
40
	OraDatabase.ExecuteSQL _
41
	"BEGIN   PK_BUILDAPI.DELETE_DAEMON ( :RCON_ID_LIST );   END;"
42
 
43
	objEH.CatchORA ( OraSession )
44
 
45
	OraDatabase.Parameters.Remove "RCON_ID_LIST"
46
 
47
 
48
End Sub
49
'--------------------------------------------------------------------------------------------------------------------------
4293 dpurdie 50
Sub RemoveDaemon (rcon_id)
51
	On Error Resume Next
52
 
53
	OraDatabase.Parameters.Add "RCON_ID_LIST",	rcon_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
54
 
55
	objEH.TryORA ( OraSession )
56
 
57
	OraDatabase.ExecuteSQL _
58
	"BEGIN   PK_BUILDAPI.REMOVE_DAEMON ( :RCON_ID_LIST );   END;"
59
 
60
	objEH.CatchORA ( OraSession )
61
 
62
	OraDatabase.Parameters.Remove "RCON_ID_LIST"
63
 
64
 
65
End Sub
66
 
67
'--------------------------------------------------------------------------------------------------------------------------
119 ghuddy 68
%>
69
<%
70
'**************************** M  A  I  N ******************************
71
' --- Form is Valid ---
4293 dpurdie 72
Dim action
73
action = Request("action")
74
If action = "Delete" Then
75
    Call DeleteDaemon(Request("rcon_id"))
76
ElseIf action = "Remove" then
77
    Call RemoveDaemon(Request("rcon_id"))
78
End If
119 ghuddy 79
 
4293 dpurdie 80
'If objEH.Finally Then
119 ghuddy 81
	Call OpenInWindow ( "release_config.asp?rtag_id="&Request("rtag_id") )
4293 dpurdie 82
'End If
119 ghuddy 83
'**********************************************************************
84
%>
85
<%
86
'------------ RUN AFTER CODE RUN --------------
87
'----------------------------------------------
88
'----------------------------------------------
89
Call Destroy_All_Objects
90
%>
91