| 5357 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
| 5590 |
dpurdie |
3 |
'=====================================================
|
|
|
4 |
'|
|
|
|
5 |
'| _wform_change_group.asp
|
|
|
6 |
'| Move a package-version to a different base view
|
|
|
7 |
'| This page is designed to operation within an iframe
|
|
|
8 |
'|
|
|
|
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<%
|
| 5357 |
dpurdie |
12 |
Option explicit
|
|
|
13 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
14 |
%>
|
|
|
15 |
<%
|
|
|
16 |
'=====================================================
|
|
|
17 |
' Change Group
|
|
|
18 |
'=====================================================
|
|
|
19 |
%>
|
|
|
20 |
<!--#include file="common/conf.asp"-->
|
|
|
21 |
<!--#include file="common/globals.asp"-->
|
|
|
22 |
<!--#include file="common/qstr.asp"-->
|
|
|
23 |
<!--#include file="common/common_subs.asp"-->
|
|
|
24 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
25 |
<!--#include file="common/_popup_window_common.asp"-->
|
|
|
26 |
<%
|
|
|
27 |
'------------ ACCESS CONTROL ------------------
|
|
|
28 |
%>
|
|
|
29 |
<!--#include file="_access_control_login.asp"-->
|
|
|
30 |
<!--#include file="_access_control_general.asp"-->
|
|
|
31 |
<!--#include file="_access_control_project.asp"-->
|
|
|
32 |
<%
|
|
|
33 |
'------------ Variable Definition -------------
|
|
|
34 |
Dim parPv_id
|
|
|
35 |
'------------ Constants Declaration -----------
|
|
|
36 |
'------------ Variable Init -------------------
|
|
|
37 |
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
|
|
|
38 |
parPv_id = QStrPar("pv_id")
|
|
|
39 |
'----------------------------------------------
|
|
|
40 |
%>
|
|
|
41 |
<%
|
|
|
42 |
Sub Get_Pkg_Info_From_Rel ( SSrtag_id, SSpv_id )
|
|
|
43 |
Dim rsTemp, Query_String
|
|
|
44 |
|
|
|
45 |
Query_String = _
|
|
|
46 |
" SELECT pkg.pkg_name, pv.pkg_version, rc.base_view_id"&_
|
|
|
47 |
" FROM packages pkg, package_versions pv, release_content rc, views vi"&_
|
|
|
48 |
" WHERE pkg.pkg_id = pv.pkg_id"&_
|
|
|
49 |
" AND pv.pv_id = rc.pv_id"&_
|
|
|
50 |
" AND vi.view_id = rc.base_view_id"&_
|
|
|
51 |
" AND rc.rtag_id = "& SSrtag_id &_
|
|
|
52 |
" AND rc.pv_id = "& SSpv_id
|
|
|
53 |
|
|
|
54 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
55 |
|
|
|
56 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
|
|
57 |
pkgInfoHash.Add "pkg_name", (rsTemp.Fields("pkg_name"))
|
|
|
58 |
pkgInfoHash.Add "pkg_version", (rsTemp.Fields("pkg_version"))
|
|
|
59 |
pkgInfoHash.Add "base_view_id", (rsTemp.Fields("base_view_id"))
|
|
|
60 |
End If
|
|
|
61 |
|
|
|
62 |
rsTemp.Close
|
|
|
63 |
Set rsTemp = nothing
|
|
|
64 |
End Sub
|
|
|
65 |
|
|
|
66 |
Sub Get_All_Base_Views ( NNnewgroup_id, nPkg_id )
|
|
|
67 |
Dim rsTemp, Query_String, aa
|
|
|
68 |
aa = NNnewgroup_id
|
|
|
69 |
|
|
|
70 |
Query_String = _
|
|
|
71 |
" SELECT vi.view_id, vi.view_name, bv.hint "&_
|
|
|
72 |
" FROM views vi,"&_
|
|
|
73 |
" ("&_
|
|
|
74 |
" SELECT DISTINCT rc.BASE_VIEW_ID, '> ' AS hint"&_
|
|
|
75 |
" FROM release_content rc,"&_
|
|
|
76 |
" package_versions pv"&_
|
|
|
77 |
" WHERE rc.pv_id = pv.pv_id"&_
|
|
|
78 |
" AND rc.pv_id IN ( "& nPkg_id &" )"&_
|
|
|
79 |
" ) bv"&_
|
|
|
80 |
" WHERE UPPER(vi.base_view) = 'Y'"&_
|
|
|
81 |
" AND bv.BASE_VIEW_ID (+) = vi.VIEW_ID"&_
|
|
|
82 |
" ORDER BY vi.view_name ASC"
|
|
|
83 |
|
|
|
84 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
85 |
|
|
|
86 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
87 |
If NNnewgroup_id = CInt( rsTemp.Fields("view_id") ) OR NOT IsNull(rsTemp("hint")) Then
|
|
|
88 |
Response.write "<option value='"& rsTemp("view_id") &"' selected>"& rsTemp("hint") & rsTemp("view_name") &"</option>"
|
|
|
89 |
Else
|
|
|
90 |
Response.write "<option value='"& rsTemp("view_id") &"'>"& rsTemp("hint") & rsTemp("view_name") & "</option>"
|
|
|
91 |
End If
|
|
|
92 |
|
|
|
93 |
rsTemp.MoveNext
|
|
|
94 |
WEnd
|
|
|
95 |
|
|
|
96 |
rsTemp.Close
|
|
|
97 |
Set rsTemp = nothing
|
|
|
98 |
End Sub
|
|
|
99 |
|
|
|
100 |
%>
|
|
|
101 |
<%
|
|
|
102 |
'Process submition
|
|
|
103 |
If CBool(QStrPar("action")) AND (QStrPar("btn") = "Update") AND objAccessControl.UserLogedIn Then
|
|
|
104 |
Call Update_Pkg_Category ( QStrPar("rtag_id"), QStrPar("pv_id"), QStrPar("group_id") )
|
| 5590 |
dpurdie |
105 |
Call OpenInParentWindow ("fixed_issues.asp?pv_id="& QStrPar("pv_id") &"&rtag_id="& QStrPar("rtag_id") )
|
|
|
106 |
Call CloseWindow
|
| 5357 |
dpurdie |
107 |
End If
|
|
|
108 |
%>
|
|
|
109 |
<%
|
|
|
110 |
Call Get_Pkg_Info_From_Rel ( parRtag_id, parPv_id )
|
|
|
111 |
%>
|
|
|
112 |
<html>
|
|
|
113 |
<head>
|
|
|
114 |
<title>Release Manager</title>
|
|
|
115 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
116 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
117 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
118 |
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
|
|
|
119 |
<link rel="stylesheet" href="images/navigation.css" type="text/css">
|
|
|
120 |
<script language="JavaScript" src="images/tipster.js"></script>
|
|
|
121 |
<script language="JavaScript" src="images/_help_tips.js"></script>
|
|
|
122 |
<script language="JavaScript" src="images/common.js"></script>
|
|
|
123 |
</head>
|
|
|
124 |
|
| 5590 |
dpurdie |
125 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
|
|
126 |
<form name="chgroup" method="post" action="<%=scriptName%>" class="form_tight">
|
|
|
127 |
<table border="0" cellspacing="0" cellpadding="2" >
|
| 5357 |
dpurdie |
128 |
<tr>
|
|
|
129 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
|
|
130 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
|
|
131 |
<tr>
|
| 5590 |
dpurdie |
132 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Package</td>
|
| 5357 |
dpurdie |
133 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif" class="form_txt">
|
|
|
134 |
<%=pkgInfoHash.Item ("pkg_name") &" "& pkgInfoHash.Item ("pkg_version")%></td>
|
|
|
135 |
</tr>
|
|
|
136 |
<tr>
|
|
|
137 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Base View<a href="#" onMouseOver="formTips.show('group')" onMouseOut="formTips.hide()"><img src="images/i_help.gif" width="12" height="12" hspace="2" align="absmiddle" border="0" ></a></td>
|
|
|
138 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
|
|
139 |
<select name="group_id" class="form_item">
|
|
|
140 |
<%Call Get_All_Base_Views( CInt(pkgInfoHash.Item("base_view_id")), parPv_id )%>
|
|
|
141 |
</select>
|
|
|
142 |
<a href="_wform_new_group.asp?movepkg=true&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>"><img src="images/i_new_group.gif" width="20" height="20" align="absmiddle" border="0" alt="Create NEW group" title="Create NEW group"></a>
|
|
|
143 |
<span class="rep_small">
|
|
|
144 |
<br>NOTE: Symbol '>' in Base View drop-down list is a suggestion where to place the package.
|
|
|
145 |
<br>Indicates views that contain the package in all Releases
|
|
|
146 |
</span>
|
|
|
147 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
|
|
148 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
|
|
149 |
<input type="hidden" name="action" value="true">
|
|
|
150 |
</td>
|
|
|
151 |
</tr>
|
|
|
152 |
</table>
|
|
|
153 |
</td>
|
|
|
154 |
</tr>
|
| 5590 |
dpurdie |
155 |
<tr>
|
|
|
156 |
<td align="right">
|
|
|
157 |
<input type="submit" name="btn" value="Update" class="form_btn_comp">
|
|
|
158 |
<input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
|
|
|
159 |
</td>
|
| 5357 |
dpurdie |
160 |
</tr>
|
|
|
161 |
</table>
|
|
|
162 |
</form>
|
|
|
163 |
<!-- TIPS LAYERS -------------------------------------->
|
|
|
164 |
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div>
|
|
|
165 |
<!----------------------------------------------------->
|
|
|
166 |
</body>
|
|
|
167 |
</html>
|
|
|
168 |
<!-- DESTRUCTOR ------->
|
| 119 |
ghuddy |
169 |
<!--#include file="common/destructor.asp"-->
|