| 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 -------------
|
|
|
25 |
'------------ CONSTANTS DECLARATION -----------
|
|
|
26 |
'------------ VARIABLE INIT -------------------
|
|
|
27 |
'------------ CONDITIONS ----------------------
|
|
|
28 |
'----------------------------------------------
|
|
|
29 |
%>
|
|
|
30 |
<%
|
|
|
31 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
32 |
Sub SetPause ()
|
|
|
33 |
On Error Resume Next
|
|
|
34 |
|
|
|
35 |
OraDatabase.Parameters.Add "RCON_ID", Request("rcon_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
36 |
|
|
|
37 |
objEH.TryORA ( OraSession )
|
|
|
38 |
|
|
|
39 |
OraDatabase.ExecuteSQL _
|
|
|
40 |
"BEGIN PK_BUILDAPI.SET_DAEMON_PAUSE(:RCON_ID); END;"
|
|
|
41 |
|
|
|
42 |
objEH.CatchORA ( OraSession )
|
|
|
43 |
|
|
|
44 |
OraDatabase.Parameters.Remove "RCON_ID"
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
End Sub
|
|
|
48 |
'--------------------------------------------------------------------------------------------------------------------------
|
|
|
49 |
%>
|
|
|
50 |
<%
|
|
|
51 |
'**************************** M A I N ******************************
|
|
|
52 |
' --- Form is Valid ---
|
|
|
53 |
|
| 171 |
brianf |
54 |
'if pausing all daemons of release, (rcon_id not specified)
|
|
|
55 |
If Request("rcon_id").Count = 0 Then
|
|
|
56 |
Call SetDaemonStates(request("rtag_id"),enum_DAEMON_PAUSE)
|
|
|
57 |
Else
|
|
|
58 |
'if pausing a specific daemon (rcon_id specified)
|
|
|
59 |
Call SetPause()
|
|
|
60 |
End If
|
|
|
61 |
|
| 119 |
ghuddy |
62 |
If objEH.Finally Then
|
|
|
63 |
Call OpenInWindow ( "build_status.asp?rtag_id="&request("rtag_id") )
|
|
|
64 |
End If
|
|
|
65 |
'**********************************************************************
|
|
|
66 |
%>
|
|
|
67 |
<%
|
|
|
68 |
'------------ RUN AFTER CODE RUN --------------
|
|
|
69 |
'----------------------------------------------
|
|
|
70 |
'----------------------------------------------
|
|
|
71 |
Call Destroy_All_Objects
|
|
|
72 |
%>
|
|
|
73 |
|