Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'					Reproducible Package
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
%>
20
<!--#include file="_access_control_general.asp"-->
21
<%
22
'------------ Variable Definition -------------
23
Dim parPv_id
24
Dim pending_unlock
25
'------------ Constants Declaration -----------
26
'------------ Variable Init -------------------
27
parPv_id = QStrPar("pv_id")
28
parRtag_id = QStrPar("rtag_id")
29
'----------------------------------------------
30
%>
31
<%
32
Sub SwitchReproducible ()
33
 
34
	OraDatabase.Parameters.Add "PV_ID", 		Request("pv_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
35
	OraDatabase.Parameters.Add "USER_ID", 		objAccessControl.UserId,	ORAPARM_INPUT, ORATYPE_NUMBER 
36
 
37
 
38
	OraSession.BeginTrans
39
 
40
	OraDatabase.ExecuteSQL _
41
	"BEGIN  Switch_Reproducible_Package( :PV_ID, :USER_ID );  END;"
42
 
43
    OraSession.CommitTrans
44
 
45
 
46
	OraDatabase.Parameters.Remove "PV_ID"
47
	OraDatabase.Parameters.Remove "USER_ID"
48
 
49
End Sub
50
%>
51
<%
52
 
53
'Process submition
54
'---------------------------------------
55
' THIS IS FOR SYSTEM ADMIN ONLY
56
'---------------------------------------
57
'If objAccessControl.IsDataActive("PROJECTS", DB_PROJ_ID, "UnRipplePackage") Then
58
	Call SwitchReproducible ()
59
	Response.Redirect ("fixed_issues.asp?rtag_id="& parRtag_id &"&pv_id="& parPv_id)
60
'End If
61
 
62
%>
63
 
64
<!-- DESTRUCTOR ------->
65
<!--#include file="common/destructor.asp"-->