Subversion Repositories DevTools

Rev

Rev 5506 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			      _setDaemonPause				 	 |
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
<%
19
'------------ ACCESS CONTROL ------------------
20
%>
21
<!--#include file="_access_control_general.asp"-->
22
<!--#include file="_access_control_login.asp"-->
23
<%
24
'------------ VARIABLE DEFINITION -------------
5623 dpurdie 25
Dim rFile
119 ghuddy 26
'------------ CONSTANTS DECLARATION -----------
27
'------------ VARIABLE INIT -------------------
5623 dpurdie 28
rFile = request("rfile")
119 ghuddy 29
'------------ CONDITIONS ----------------------
30
'----------------------------------------------
31
%>
32
<%
33
'--------------------------------------------------------------------------------------------------------------------------
34
Sub SetPause ()
35
	On Error Resume Next
36
 
37
	OraDatabase.Parameters.Add "RCON_ID", 			Request("rcon_id"), 	ORAPARM_INPUT, ORATYPE_NUMBER 
38
 
39
	objEH.TryORA ( OraSession )
40
 
41
	OraDatabase.ExecuteSQL _
42
	"BEGIN PK_BUILDAPI.SET_DAEMON_PAUSE(:RCON_ID);   END;"
43
 
44
	objEH.CatchORA ( OraSession )
45
 
46
	OraDatabase.Parameters.Remove "RCON_ID"
47
 
48
 
49
End Sub
50
'--------------------------------------------------------------------------------------------------------------------------
51
%>
52
<%
53
'**************************** M  A  I  N ******************************
54
' --- Form is Valid ---
55
 
171 brianf 56
'if pausing all daemons of release, (rcon_id not specified)
57
If Request("rcon_id").Count = 0 Then
58
  Call SetDaemonStates(request("rtag_id"),enum_DAEMON_PAUSE)
59
Else
60
'if pausing a specific daemon (rcon_id specified)
61
  Call SetPause()
62
End If
63
 
119 ghuddy 64
If objEH.Finally Then
5623 dpurdie 65
	Call OpenInWindow ( rFile & "?rtag_id="&request("rtag_id") )
119 ghuddy 66
End If
67
'**********************************************************************
68
%>
69
<%
70
'------------ RUN AFTER CODE RUN --------------
71
'----------------------------------------------
72
'----------------------------------------------
73
Call Destroy_All_Objects
74
%>
75