| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 129 |
ghuddy |
4 |
' REMOVE Runtime dependency
|
| 119 |
ghuddy |
5 |
' --- PROCESS FORM ---
|
|
|
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
| 129 |
ghuddy |
11 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
12 |
%>
|
|
|
13 |
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/formating.asp"-->
|
|
|
17 |
<!--#include file="common/qstr.asp"-->
|
|
|
18 |
<!--#include file="common/common_subs.asp"-->
|
|
|
19 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
20 |
<%
|
|
|
21 |
' Set rfile parameter. This is a return page after Login
|
|
|
22 |
Call objPMod.StoreParameter ( "rfile", "runtime_dependencies.asp" )
|
|
|
23 |
'------------ ACCESS CONTROL ------------------
|
|
|
24 |
%>
|
|
|
25 |
<!--#include file="_access_control_login.asp"-->
|
|
|
26 |
<!--#include file="_access_control_general.asp"-->
|
|
|
27 |
<!--#include file="_access_control_project.asp"-->
|
|
|
28 |
<%
|
|
|
29 |
'------------ Variable Definition -------------
|
|
|
30 |
'------------ Constants Declaration -----------
|
|
|
31 |
'------------ Variable Init -------------------
|
|
|
32 |
'----------------------------------------------
|
|
|
33 |
%>
|
|
|
34 |
<%
|
|
|
35 |
Sub Remove_Runtime_Dependency ( NNpv_id, NNrtd_id )
|
| 129 |
ghuddy |
36 |
OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
37 |
OraDatabase.Parameters.Add "RTD_ID", NNrtd_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
38 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
39 |
|
|
|
40 |
objEH.TryORA ( OraSession )
|
|
|
41 |
On Error Resume Next
|
|
|
42 |
|
|
|
43 |
OraDatabase.ExecuteSQL _
|
|
|
44 |
"BEGIN Remove_Runtime ( :PV_ID, :RTD_ID, :USER_ID ); END;"
|
|
|
45 |
|
|
|
46 |
objEH.CatchORA ( OraSession )
|
|
|
47 |
|
|
|
48 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
49 |
OraDatabase.Parameters.Remove "RTD_ID"
|
|
|
50 |
OraDatabase.Parameters.Remove "USER_ID"
|
| 119 |
ghuddy |
51 |
End Sub
|
|
|
52 |
%>
|
|
|
53 |
<%
|
|
|
54 |
'----------------------- MAIN LINE ---------------------------
|
|
|
55 |
|
|
|
56 |
'--- Process submition ---
|
|
|
57 |
If (Request("pv_id") <> "") AND (Request("rtd_id") <> "") AND (Request("rtag_id") <> "") Then
|
| 129 |
ghuddy |
58 |
' All mendatory parameters FOUND
|
|
|
59 |
Call Remove_Runtime_Dependency ( Request("pv_id"), Request("rtd_id") )
|
|
|
60 |
Response.Redirect("runtime_dependencies.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
|
| 119 |
ghuddy |
61 |
Else
|
| 129 |
ghuddy |
62 |
Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
|
|
|
63 |
Response.write QSTR_All
|
|
|
64 |
|
| 119 |
ghuddy |
65 |
End If
|
|
|
66 |
%>
|
|
|
67 |
|
|
|
68 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
69 |
<!--#include file="common/destructor.asp"-->
|