| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' Make Single Package Official
|
|
|
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/formating.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/common_dbedit.asp"-->
|
| 123 |
ghuddy |
17 |
<!--#include file="common/common_make_release_subs.asp"-->
|
| 119 |
ghuddy |
18 |
<%
|
|
|
19 |
'------------ ACCESS CONTROL ------------------
|
|
|
20 |
%>
|
|
|
21 |
<!--#include file="_access_control_login.asp"-->
|
|
|
22 |
<!--#include file="_access_control_general.asp"-->
|
|
|
23 |
<!--#include file="_access_control_project.asp"-->
|
|
|
24 |
<%
|
|
|
25 |
'------------ Variable Definition -------------
|
|
|
26 |
Dim parPv_id
|
|
|
27 |
Dim parRfile
|
|
|
28 |
Dim retERRmsg
|
|
|
29 |
Dim retALRTmsg
|
|
|
30 |
Dim retParameters
|
|
|
31 |
Dim parSReq ' Skip requirements test
|
|
|
32 |
Dim pkgType
|
|
|
33 |
'------------ Constants Declaration -----------
|
|
|
34 |
'------------ Variable Init -------------------
|
|
|
35 |
parPv_id = QStrPar("pv_id")
|
|
|
36 |
parRfile = QStrPar("rfile")
|
|
|
37 |
parSReq = QStrPar("sreq")
|
|
|
38 |
'----------------------------------------------
|
|
|
39 |
%>
|
|
|
40 |
<%
|
|
|
41 |
'------------------------------------------------------------------------------------
|
|
|
42 |
|
|
|
43 |
'-------------------------------------------------------------------------------------
|
|
|
44 |
%>
|
|
|
45 |
<%
|
|
|
46 |
'---------------------------------- MAIN LINE ----------------------------------------
|
| 123 |
ghuddy |
47 |
'If parSReq = "Y" Then
|
| 119 |
ghuddy |
48 |
' ' SKIP REQUIREMENTS
|
|
|
49 |
' Call Release_Single_Package ( parPv_id, parRtag_id )
|
|
|
50 |
' Call Notify ( parRtag_id )
|
|
|
51 |
' Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
|
|
52 |
'End If
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
'pkgType = Get_Pkg_Base_View_ID ( parPv_id, parRtag_id )
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
' REQUREMENTS CHECK for ALL
|
|
|
59 |
Call CheckRequirementsForMakeRelease ( parPv_id, parRtag_id, pkgType, retERRmsg, retALRTmsg, retParameters )
|
|
|
60 |
'Response.write "HERE"
|
|
|
61 |
If IsNull(retERRmsg) Then
|
|
|
62 |
' All Requirements OK
|
| 123 |
ghuddy |
63 |
Call PUBLIC_MakeRelease ( parRtag_id, parPv_id )
|
|
|
64 |
|
| 119 |
ghuddy |
65 |
If objEH.Finally Then
|
|
|
66 |
'Call Notify ( parRtag_id )
|
|
|
67 |
'Call NotifyInterest(parPv_id, parRtag_id)
|
|
|
68 |
Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
| 123 |
ghuddy |
69 |
|
| 119 |
ghuddy |
70 |
End If
|
| 123 |
ghuddy |
71 |
|
| 119 |
ghuddy |
72 |
Else
|
|
|
73 |
'If ( pkgType = enumBASE_VIEW_PRODUCTS ) Then
|
|
|
74 |
' ' Products
|
|
|
75 |
' If retALRTmsg = "WARNING" Then
|
|
|
76 |
' ' Allow overide
|
|
|
77 |
' Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "Y")
|
| 123 |
ghuddy |
78 |
'
|
| 119 |
ghuddy |
79 |
' Else
|
|
|
80 |
' ' Disallow overide
|
|
|
81 |
' Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N")
|
| 123 |
ghuddy |
82 |
'
|
| 119 |
ghuddy |
83 |
' End If
|
| 123 |
ghuddy |
84 |
'
|
| 119 |
ghuddy |
85 |
'Else
|
|
|
86 |
' Other Packages
|
|
|
87 |
Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N" )
|
| 123 |
ghuddy |
88 |
|
| 119 |
ghuddy |
89 |
'End If
|
| 123 |
ghuddy |
90 |
|
| 119 |
ghuddy |
91 |
End If
|
|
|
92 |
|
|
|
93 |
%>
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
<!-- DESTRUCTOR ------->
|
| 123 |
ghuddy |
97 |
<!--#include file="common/destructor.asp"-->
|