| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 5957 |
dpurdie |
4 |
' MAKE APPROVED FOR AUTOMATED BUILD
|
|
|
5 |
' --- PROCESS FORM ---
|
| 119 |
ghuddy |
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
| 5957 |
dpurdie |
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"-->
|
| 123 |
ghuddy |
20 |
<!--#include file="common/common_make_release_subs.asp"-->
|
| 119 |
ghuddy |
21 |
<%
|
|
|
22 |
'------------ ACCESS CONTROL ------------------
|
|
|
23 |
%>
|
|
|
24 |
<!--#include file="_access_control_login.asp"-->
|
|
|
25 |
<!--#include file="_access_control_general.asp"-->
|
|
|
26 |
<!--#include file="_access_control_project.asp"-->
|
|
|
27 |
<%
|
|
|
28 |
'------------ Variable Definition -------------
|
|
|
29 |
Dim parPv_id
|
|
|
30 |
Dim parRfile
|
| 7022 |
dpurdie |
31 |
Dim parSched
|
| 119 |
ghuddy |
32 |
Dim retParameters
|
|
|
33 |
'------------ Constants Declaration -----------
|
|
|
34 |
'------------ Variable Init -------------------
|
|
|
35 |
parPv_id = Request("pv_id")
|
|
|
36 |
parRfile = Request("rfile")
|
| 7022 |
dpurdie |
37 |
parSched = Request("sched")
|
| 119 |
ghuddy |
38 |
'----------------------------------------------
|
|
|
39 |
%>
|
|
|
40 |
<%
|
|
|
41 |
'----------------------- MAIN LINE ---------------------------
|
|
|
42 |
|
|
|
43 |
'--- Process submission ---
|
| 123 |
ghuddy |
44 |
If ( parRtag_id <> "") AND (parPv_id <> "") Then
|
| 5146 |
dpurdie |
45 |
|
|
|
46 |
If NOT canAddToRelease(Request("rtag_id"),Request("pv_id") ) Then
|
|
|
47 |
Call RaiseMsg ( enum_MSG_ERROR, _
|
|
|
48 |
"<h3>Cannot progress a package that is a part of an SDK.</h3>" &_
|
|
|
49 |
"<p>If the package is a WIP, then consider moving it to a different Release." _
|
|
|
50 |
)
|
|
|
51 |
End If
|
|
|
52 |
|
| 7022 |
dpurdie |
53 |
If PUBLIC_ApproveRelease (parRtag_id, parPv_id, retParameters, FALSE, parSched) = TRUE Then
|
| 123 |
ghuddy |
54 |
If parRfile <> "" Then
|
| 5957 |
dpurdie |
55 |
Call Destroy_All_Objects
|
| 123 |
ghuddy |
56 |
Response.Redirect ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
| 5957 |
dpurdie |
57 |
Else
|
|
|
58 |
Call Destroy_All_Objects
|
| 123 |
ghuddy |
59 |
Response.Redirect ( "dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
| 5957 |
dpurdie |
60 |
End If
|
|
|
61 |
Else
|
| 123 |
ghuddy |
62 |
'This is currently done inside Make_This_PVID_Approved()
|
|
|
63 |
'Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N" )
|
| 5957 |
dpurdie |
64 |
End If
|
| 119 |
ghuddy |
65 |
Else
|
| 5957 |
dpurdie |
66 |
Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
|
|
|
67 |
Response.write QSTR_FullQuery
|
| 119 |
ghuddy |
68 |
End If
|
|
|
69 |
%>
|
|
|
70 |
<!-- DESTRUCTOR ------->
|
| 123 |
ghuddy |
71 |
<!--#include file="common/destructor.asp"-->
|