Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	    MAKE UNOFFICIAL
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/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_dbedit.asp"-->
20
<%
21
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<!--#include file="_access_control_project.asp"-->
26
<%
27
'------------ Variable Definition -------------
28
'------------ Constants Declaration -----------
29
'------------ Variable Init -------------------
30
'----------------------------------------------
31
%>
32
<%
33
Sub MakeReject ()
34
	Dim objWSH
35
	Set objWSH = Server.CreateObject("WScript.Shell")
36
 
37
 
38
 
39
	OraDatabase.Parameters.Add "PV_ID", 		Request("pv_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
40
	OraDatabase.Parameters.Add "RTAG_ID", 		Request("rtag_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
41
	OraDatabase.Parameters.Add "USER_ID", 		objAccessControl.UserId,	ORAPARM_INPUT, ORATYPE_NUMBER 
42
 
43
 
44
	OraSession.BeginTrans
45
 
46
	OraDatabase.ExecuteSQL _
47
	"BEGIN "&_
48
	" PK_ENVIRONMENT.MAKE_REJECT ( :PV_ID, :RTAG_ID, :USER_ID ); "&_
49
	"END; "
50
 
51
	OraSession.CommitTrans
52
 
53
 
54
	OraDatabase.Parameters.Remove "PV_ID"
55
	OraDatabase.Parameters.Remove "RTAG_ID"
56
	OraDatabase.Parameters.Remove "USER_ID"
57
 
58
 
59
	objWSH.Run   "cmd.exe /c cscript.exe //B //NoLogo "& rootPath & SCRIPTS_FOLDER &"\Admin_Tools.wsf //job:onMakeUnofficial "&_
60
                 "/pv_id:"& Request("pv_id") , _
61
                 0, FALSE 
62
 
63
End Sub
64
%>
65
<%
66
'-----------------------  MAIN LINE  ---------------------------
67
 
68
'--- Process submition ---
69
If (Request("rtag_id") <> "") AND (Request("pv_id") <> "")  Then
70
 
71
	'COMPLETE THE REQUEST...
72
	Call MakeReject ( )
73
 
74
 
75
	If Request("rfile") <> "" Then
76
		Response.Redirect ( Request("rfile") &"?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") )
77
	Else
78
		Response.Redirect ( "dependencies?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id") )
79
	End If
80
 
81
Else
82
	Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
83
	Response.write QSTR_All 
84
End If
85
%>
86
 
87
<!-- DESTRUCTOR ------->
88
<!--#include file="common/destructor.asp"-->