Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	   Import Release
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
' 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 parFromRtag_id
31
Dim parToRtag_id
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
parFromRtag_id = QStrPar("FromRtag_id")
35
parToRtag_id = QStrPar("ToRtag_id")
36
'----------------------------------------------
37
%>
38
<%
39
Function Import_Release ( NNFromRtag_id, NNToRtag_id )
40
 
41
	On Error Resume Next
42
	objEH.ErrorRedirect = TRUE
43
 
44
 
45
	OraDatabase.Parameters.Add "FROMRTAG_ID", NNFromRtag_id, 	ORAPARM_INPUT, ORATYPE_NUMBER 
46
	OraDatabase.Parameters.Add "TORTAG_ID", NNToRtag_id, 	ORAPARM_INPUT, ORATYPE_NUMBER 
47
	OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, 	ORAPARM_INPUT, ORATYPE_NUMBER 
48
 
49
 
50
	objEH.TryORA ( OraSession )
51
 
52
	' Remove old Work in Progress Contents
53
	OraDatabase.ExecuteSQL _
54
		"BEGIN  PK_RELEASE.IMPORT_RELEASE_CONTENTS (:FROMRTAG_ID, :TORTAG_ID, :USER_ID); END;"
55
 
56
  	objEH.CatchORA ( OraSession )
57
 
58
 
59
 
60
	OraDatabase.Parameters.Remove "FROMRTAG_ID"
61
	OraDatabase.Parameters.Remove "TORTAG_ID"
62
	OraDatabase.Parameters.Remove "USER_ID"
63
End Function
64
 
65
%>
66
<%
67
'-----------------------  MAIN LINE  ---------------------------
68
'--- Process submition ---
69
If (parFromRtag_id <> "") AND (parToRtag_id <> "") Then
1376 dpurdie 70
	' All mandatory parameters FOUND
119 ghuddy 71
 
72
 
73
	'COMPLETE THE REQUEST...
74
	Call Import_Release ( parFromRtag_id, parToRtag_id )
75
 
76
 
77
	If objEH.Finally Then
78
		Response.Redirect("dependencies.asp?rtag_id="& parToRtag_id )
79
	End If
80
 
81
 
82
Else
1376 dpurdie 83
	Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
119 ghuddy 84
	Response.write QSTR_All 
85
End If
86
%>
87
 
88
<!-- DESTRUCTOR ------->
89
<!--#include file="common/destructor.asp"-->