Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	    Lock 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 parMsgFlag
31
'------------ Constants Declaration -----------
32
'------------ Variable Init -------------------
33
parMsgFlag = QStrPar("msgflag")
34
'----------------------------------------------
35
%>
36
<%
37
Sub LockRelease ( NNrtag_id )
38
	' Update package_versions table
39
	OraSession.BeginTrans
40
 
41
	' Update release_tags table
42
	OraDatabase.ExecuteSQL _
43
		" UPDATE release_tags"&_
44
		" SET official = 'Y', official_stamp = "& ORA_SYSDATE &", releasor_id = "& objAccessControl.UserId &_
45
		" WHERE rtag_id = "& NNrtag_id
46
 
47
  	OraSession.CommitTrans
48
End Sub
49
%>
50
<%
51
'-----------------------  MAIN LINE  ---------------------------
52
 
53
'--- Process submition ---
54
If (parRtag_id <> "") Then
55
 
56
	'COMPLETE THE REQUEST...
57
	Call LockRelease ( parRtag_id )
58
 
59
	Call RaiseMsg ( enum_MSG_RELEASE_IS_NOW_LOCKED, parRtag_id )
60
Else
61
	Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
62
	Response.write QSTR_All 
63
End If
64
%>
65
 
66
<!-- DESTRUCTOR ------->
67
<!--#include file="common/destructor.asp"-->