| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 129 |
ghuddy |
4 |
' REMOVE Patch
|
| 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", "patches.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 RemovePatch ( NNpv_id, NNpatch_id )
|
| 129 |
ghuddy |
36 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
37 |
OraDatabase.Parameters.Add "PATCH_ID", Request("patch_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
38 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId,ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
39 |
OraDatabase.Parameters.Add "RTAG_ID", Request("rtag_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
40 |
|
|
|
41 |
objEH.TryORA ( OraSession )
|
|
|
42 |
On Error Resume Next
|
|
|
43 |
|
|
|
44 |
OraDatabase.ExecuteSQL _
|
|
|
45 |
"BEGIN "&_
|
|
|
46 |
" Remove_Patch ( :PATCH_ID, :PV_ID, :USER_ID ); "&_
|
|
|
47 |
" PK_WORK_IN_PROGRESS.REMOVE_PACKAGE ( :PATCH_ID, :RTAG_ID, :USER_ID ); "&_
|
|
|
48 |
"END; "
|
|
|
49 |
|
|
|
50 |
objEH.CatchORA ( OraSession )
|
|
|
51 |
|
|
|
52 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
53 |
OraDatabase.Parameters.Remove "PATCH_ID"
|
|
|
54 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
55 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 119 |
ghuddy |
56 |
End Sub
|
|
|
57 |
%>
|
|
|
58 |
<%
|
|
|
59 |
'----------------------- MAIN LINE ---------------------------
|
|
|
60 |
|
|
|
61 |
'--- Process submition ---
|
|
|
62 |
If (Request("pv_id") <> "") AND (Request("patch_id") <> "") Then
|
| 1376 |
dpurdie |
63 |
' All mandatory parameters FOUND
|
| 129 |
ghuddy |
64 |
Call RemovePatch ( Request("pv_id"), Request("patch_id") )
|
|
|
65 |
|
| 5957 |
dpurdie |
66 |
Call Destroy_All_Objects
|
| 129 |
ghuddy |
67 |
Response.Redirect("patches.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
|
| 119 |
ghuddy |
68 |
Else
|
| 1376 |
dpurdie |
69 |
Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
|
| 4955 |
dpurdie |
70 |
Response.write QSTR_FullQuery
|
| 129 |
ghuddy |
71 |
|
| 119 |
ghuddy |
72 |
End If
|
|
|
73 |
%>
|
|
|
74 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
75 |
<!--#include file="common/destructor.asp"-->
|