| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
' IGNORE WARNINGS
|
|
|
5 |
' --- PROCESS FORM ---
|
|
|
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
|
|
11 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
12 |
%>
|
|
|
13 |
|
|
|
14 |
<!--#include file="common/conf.asp"-->
|
|
|
15 |
<!--#include file="common/globals.asp"-->
|
|
|
16 |
<!--#include file="common/qstr.asp"-->
|
|
|
17 |
<!--#include file="common/formating.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", "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 |
Dim FRrtag_id
|
|
|
31 |
Dim FRpv_id
|
|
|
32 |
Dim FRforced
|
|
|
33 |
'------------ Constants Declaration -----------
|
|
|
34 |
'------------ Variable Init -------------------
|
|
|
35 |
FRrtag_id = Request("rtag_id")
|
|
|
36 |
FRpv_id = Request("pv_id")
|
|
|
37 |
FRforced = Request("forced")
|
|
|
38 |
'----------------------------------------------
|
|
|
39 |
%>
|
|
|
40 |
<%
|
|
|
41 |
'---------------------------------------------------------------------------------------------------------------------
|
|
|
42 |
Sub SetIgnoreWarnings ()
|
|
|
43 |
|
|
|
44 |
OraDatabase.Parameters.Add "RTAG_ID", FRrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
45 |
OraDatabase.Parameters.Add "PV_ID", FRpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
46 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
47 |
OraDatabase.Parameters.Add "IGNORE_ID_LIST", FRforced, ORAPARM_INPUT, ORATYPE_VARCHAR2
|
|
|
48 |
|
|
|
49 |
OraSession.BeginTrans
|
|
|
50 |
|
|
|
51 |
OraDatabase.ExecuteSQL _
|
|
|
52 |
"BEGIN "&_
|
|
|
53 |
" Ignore_Dependency_Warnings( :RTAG_ID, :PV_ID, :IGNORE_ID_LIST, FALSE, :USER_ID ); "&_
|
|
|
54 |
"END; "
|
|
|
55 |
|
|
|
56 |
OraSession.CommitTrans
|
|
|
57 |
|
|
|
58 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
59 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
60 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
61 |
OraDatabase.Parameters.Remove "IGNORE_ID_LIST"
|
|
|
62 |
End Sub
|
|
|
63 |
'---------------------------------------------------------------------------------------------------------------------
|
|
|
64 |
%>
|
|
|
65 |
<%
|
|
|
66 |
'----------------------- MAIN LINE ---------------------------
|
|
|
67 |
|
|
|
68 |
'--- Process submition ---
|
|
|
69 |
If (FRrtag_id <> "") AND (FRpv_id <> "") Then
|
|
|
70 |
Call SetIgnoreWarnings ()
|
|
|
71 |
|
|
|
72 |
'Call Notify ( FRrtag_id )
|
|
|
73 |
|
|
|
74 |
Response.Redirect("dependencies.asp?rtag_id="& FRrtag_id &"&pv_id="& FRpv_id)
|
|
|
75 |
Else
|
|
|
76 |
Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
|
|
|
77 |
Response.write QSTR_All
|
|
|
78 |
End If
|
|
|
79 |
%>
|
|
|
80 |
|
|
|
81 |
<!-- DESTRUCTOR ------->
|
|
|
82 |
<!--#include file="common/destructor.asp"-->
|