| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 129 |
ghuddy |
4 |
' Lock Release
|
| 119 |
ghuddy |
5 |
' --- PROCESS FORM ---
|
|
|
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
| 129 |
ghuddy |
11 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
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 )
|
| 129 |
ghuddy |
38 |
' Update package_versions table
|
|
|
39 |
objEH.TryORA ( OraSession )
|
|
|
40 |
On Error Resume Next
|
|
|
41 |
|
|
|
42 |
' Update release_tags table
|
|
|
43 |
OraDatabase.ExecuteSQL _
|
|
|
44 |
" UPDATE release_tags"&_
|
|
|
45 |
" SET official = 'Y', official_stamp = "& ORA_SYSDATE &", releasor_id = "& objAccessControl.UserId &_
|
|
|
46 |
" WHERE rtag_id = "& NNrtag_id
|
|
|
47 |
|
|
|
48 |
objEH.CatchORA ( OraSession )
|
| 119 |
ghuddy |
49 |
End Sub
|
|
|
50 |
%>
|
|
|
51 |
<%
|
|
|
52 |
'----------------------- MAIN LINE ---------------------------
|
|
|
53 |
|
|
|
54 |
'--- Process submition ---
|
|
|
55 |
If (parRtag_id <> "") Then
|
| 129 |
ghuddy |
56 |
|
|
|
57 |
'COMPLETE THE REQUEST...
|
|
|
58 |
Call LockRelease ( parRtag_id )
|
|
|
59 |
|
|
|
60 |
Call RaiseMsg ( enum_MSG_RELEASE_IS_NOW_LOCKED, parRtag_id )
|
| 119 |
ghuddy |
61 |
Else
|
| 129 |
ghuddy |
62 |
Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
|
|
|
63 |
Response.write QSTR_All
|
| 119 |
ghuddy |
64 |
End If
|
|
|
65 |
%>
|
|
|
66 |
|
|
|
67 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
68 |
<!--#include file="common/destructor.asp"-->
|