| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
| 129 |
ghuddy |
4 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
| 129 |
ghuddy |
8 |
' Reproducible Package
|
| 119 |
ghuddy |
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/formating.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
17 |
<%
|
|
|
18 |
'------------ ACCESS CONTROL ------------------
|
|
|
19 |
%>
|
| 6181 |
dpurdie |
20 |
<!--#include file="_access_control_login_optional.asp"-->
|
| 119 |
ghuddy |
21 |
<!--#include file="_access_control_general.asp"-->
|
|
|
22 |
<%
|
|
|
23 |
'------------ Variable Definition -------------
|
|
|
24 |
Dim parPv_id
|
|
|
25 |
Dim pending_unlock
|
|
|
26 |
'------------ Constants Declaration -----------
|
|
|
27 |
'------------ Variable Init -------------------
|
|
|
28 |
parPv_id = QStrPar("pv_id")
|
|
|
29 |
parRtag_id = QStrPar("rtag_id")
|
|
|
30 |
'----------------------------------------------
|
|
|
31 |
%>
|
|
|
32 |
<%
|
|
|
33 |
Sub SwitchReproducible ()
|
| 129 |
ghuddy |
34 |
|
|
|
35 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
36 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
37 |
|
|
|
38 |
objEH.TryORA ( OraSession )
|
|
|
39 |
On Error Resume Next
|
|
|
40 |
|
|
|
41 |
OraDatabase.ExecuteSQL _
|
|
|
42 |
"BEGIN Switch_Reproducible_Package( :PV_ID, :USER_ID ); END;"
|
|
|
43 |
|
|
|
44 |
objEH.CatchORA ( OraSession )
|
|
|
45 |
|
|
|
46 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
47 |
OraDatabase.Parameters.Remove "USER_ID"
|
| 119 |
ghuddy |
48 |
End Sub
|
|
|
49 |
%>
|
|
|
50 |
<%
|
|
|
51 |
|
|
|
52 |
'Process submition
|
|
|
53 |
'---------------------------------------
|
|
|
54 |
' THIS IS FOR SYSTEM ADMIN ONLY
|
|
|
55 |
'---------------------------------------
|
| 5061 |
dpurdie |
56 |
'If canActionControlInProject("UnRipplePackage") Then
|
| 129 |
ghuddy |
57 |
Call SwitchReproducible ()
|
| 5957 |
dpurdie |
58 |
Call Destroy_All_Objects
|
| 129 |
ghuddy |
59 |
Response.Redirect ("fixed_issues.asp?rtag_id="& parRtag_id &"&pv_id="& parPv_id)
|
| 119 |
ghuddy |
60 |
'End If
|
|
|
61 |
|
|
|
62 |
%>
|
|
|
63 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
64 |
<!--#include file="common/destructor.asp"-->
|