| Line 48... |
Line 48... |
| 48 |
<%
|
48 |
<%
|
| 49 |
Sub Get_Pkg_Information ( NNpv_id)
|
49 |
Sub Get_Pkg_Information ( NNpv_id)
|
| 50 |
Dim rsTemp, Query_String
|
50 |
Dim rsTemp, Query_String
|
| 51 |
|
51 |
|
| 52 |
Query_String = _
|
52 |
Query_String = _
|
| 53 |
" SELECT pkg.pkg_name, pv.pkg_version, pv.dlocked,pv.modified_stamp,um.full_name as modifier,pv.created_stamp,uc.full_name as creator"&_
|
53 |
" SELECT pkg.pkg_id, pkg.pkg_name, pv.pkg_version, pv.dlocked,pv.modified_stamp,um.full_name as modifier,pv.created_stamp,uc.full_name as creator"&_
|
| 54 |
" FROM packages pkg, package_versions pv, users um, users uc"&_
|
54 |
" FROM packages pkg, package_versions pv, users um, users uc"&_
|
| 55 |
" WHERE pkg.pkg_id = pv.pkg_id"&_
|
55 |
" WHERE pkg.pkg_id = pv.pkg_id"&_
|
| 56 |
" AND pv.modifier_id = um.user_id (+)" &_
|
56 |
" AND pv.modifier_id = um.user_id (+)" &_
|
| 57 |
" AND pv.creator_id = uc.user_id (+)" &_
|
57 |
" AND pv.creator_id = uc.user_id (+)" &_
|
| 58 |
" AND pv.pv_id = "& NNpv_id
|
58 |
" AND pv.pv_id = "& NNpv_id
|
| 59 |
|
59 |
|
| 60 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
60 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 61 |
|
61 |
|
| 62 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
62 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
| - |
|
63 |
pkgInfoHash.Add "pkg_id", (rsTemp.Fields("pkg_id"))
|
| 63 |
pkgInfoHash.Add "pkg_name", (rsTemp.Fields("pkg_name"))
|
64 |
pkgInfoHash.Add "pkg_name", (rsTemp.Fields("pkg_name"))
|
| 64 |
pkgInfoHash.Add "pkg_version", (rsTemp.Fields("pkg_version"))
|
65 |
pkgInfoHash.Add "pkg_version", (rsTemp.Fields("pkg_version"))
|
| 65 |
pkgInfoHash.Add "dlocked", (rsTemp.Fields("dlocked"))
|
66 |
pkgInfoHash.Add "dlocked", (rsTemp.Fields("dlocked"))
|
| 66 |
pkgInfoHash.Add "modified_stamp", (rsTemp.Fields("modified_stamp"))
|
67 |
pkgInfoHash.Add "modified_stamp", (rsTemp.Fields("modified_stamp"))
|
| 67 |
pkgInfoHash.Add "modifier", (rsTemp.Fields("modifier"))
|
68 |
pkgInfoHash.Add "modifier", (rsTemp.Fields("modifier"))
|
| Line 104... |
Line 105... |
| 104 |
OraDatabase.Parameters.Remove "PV_ID"
|
105 |
OraDatabase.Parameters.Remove "PV_ID"
|
| 105 |
OraDatabase.Parameters.Remove "USER_ID"
|
106 |
OraDatabase.Parameters.Remove "USER_ID"
|
| 106 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
107 |
OraDatabase.Parameters.Remove "VIEW_ID"
|
| 107 |
End Sub
|
108 |
End Sub
|
| 108 |
|
109 |
|
| 109 |
Function Release_Groups ( SSrtag_id )
|
110 |
Function Release_Groups ( SSrtag_id, SSpkg_id )
|
| 110 |
Release_Groups = _
|
111 |
Release_Groups = _
|
| 111 |
"SELECT view_id, view_name"&_
|
112 |
"SELECT vi.view_id, vi.view_name, bv.hint"&_
|
| 112 |
" FROM views "&_
|
113 |
" FROM views vi,"&_
|
| - |
|
114 |
" ("&_
|
| - |
|
115 |
" SELECT DISTINCT rc.BASE_VIEW_ID, '> ' AS hint"&_
|
| - |
|
116 |
" FROM release_content rc,"&_
|
| - |
|
117 |
" package_versions pv"&_
|
| - |
|
118 |
" WHERE rc.pv_id = pv.pv_id"&_
|
| - |
|
119 |
" AND pv.pkg_id IN (" & SSpkg_id & ")"&_
|
| - |
|
120 |
" ) bv "&_
|
| - |
|
121 |
"WHERE"&_
|
| 113 |
" WHERE base_view='Y'"&_
|
122 |
" UPPER(vi.base_view) = 'Y'"&_
|
| - |
|
123 |
" AND bv.BASE_VIEW_ID (+) = vi.VIEW_ID "&_
|
| 114 |
"ORDER BY UPPER(view_name)"
|
124 |
"ORDER BY vi.view_name ASC"
|
| - |
|
125 |
|
| 115 |
End Function
|
126 |
End Function
|
| 116 |
|
127 |
|
| 117 |
%>
|
128 |
%>
|
| 118 |
<%
|
129 |
<%
|
| 119 |
'Process submition
|
130 |
'Process submition
|
| Line 142... |
Line 153... |
| 142 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
153 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="self.focus();">
|
| 143 |
<form name="addmissingdep" method="post" action="<%=scriptName%>">
|
154 |
<form name="addmissingdep" method="post" action="<%=scriptName%>">
|
| 144 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
155 |
<table width="100%" border="0" cellspacing="0" cellpadding="2" height="100%">
|
| 145 |
<tr>
|
156 |
<tr>
|
| 146 |
<td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_add_deps.gif" width="22" height="25" hspace="5"></td>
|
157 |
<td background="images/lbox_bg_orange.gif" width="1%" height="1%"><img src="images/i_add_deps.gif" width="22" height="25" hspace="5"></td>
|
| 147 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> Add missing Dependency</td>
|
158 |
<td background="images/lbox_bg_blue.gif" nowrap width="50%" class="wform_ttl"> Add Missing Dependency</td>
|
| 148 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
159 |
<td background="images/lbox_bg_blue.gif" align="right" width="50%">
|
| 149 |
<input type="submit" name="btn" value="Add" style="width:50" class="form_btn_comp">
|
160 |
<input type="submit" name="btn" value="Add" style="width:50" class="form_btn_comp">
|
| 150 |
<input type="reset" name="btn" value="Cancel" style="width:50" class="form_btn_comp" onclick="self.close()">
|
161 |
<input type="reset" name="btn" value="Cancel" style="width:50" class="form_btn_comp" onclick="self.close()">
|
| 151 |
</td>
|
162 |
</td>
|
| 152 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
|
163 |
<td background="images/lbox_bg_blue.gif" align="right" width="1%%" nowrap>
|
| Line 157... |
Line 168... |
| 157 |
<td height="100%" width="1%"> </td>
|
168 |
<td height="100%" width="1%"> </td>
|
| 158 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
169 |
<td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
|
| 159 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
170 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
| 160 |
<tr>
|
171 |
<tr>
|
| 161 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
172 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
| 162 |
<td width="1%" nowrap class="form_group" valign="bottom">Dependency Details</td>
|
173 |
<td width="1%" nowrap class="form_group" valign="bottom">Details of Dependency that will be Added:</td>
|
| 163 |
<td nowrap width="100%"> </td>
|
174 |
<td nowrap width="100%"> </td>
|
| 164 |
<td nowrap width="100%"> </td>
|
175 |
<td nowrap width="100%"> </td>
|
| 165 |
</tr>
|
176 |
</tr>
|
| 166 |
<tr>
|
177 |
<tr>
|
| 167 |
<td width="1%"> </td>
|
178 |
<td width="1%"> </td>
|
| Line 195... |
Line 206... |
| 195 |
<%=EuroDateTime(pkgInfoHash.Item ("created_stamp")) & " by " & pkgInfoHash.Item ("creator")%>
|
206 |
<%=EuroDateTime(pkgInfoHash.Item ("created_stamp")) & " by " & pkgInfoHash.Item ("creator")%>
|
| 196 |
</td>
|
207 |
</td>
|
| 197 |
</tr>
|
208 |
</tr>
|
| 198 |
<tr>
|
209 |
<tr>
|
| 199 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
210 |
<td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
|
| 200 |
<td width="1%" nowrap class="form_group" valign="bottom">Select Destination view</td>
|
211 |
<td width="1%" nowrap class="form_group" valign="bottom">Select Destination View</td>
|
| 201 |
<td nowrap width="100%"> </td>
|
212 |
<td nowrap width="100%"> </td>
|
| 202 |
</tr>
|
213 |
</tr>
|
| 203 |
<tr>
|
214 |
<tr>
|
| 204 |
<td width="1%"> </td>
|
215 |
<td width="1%"> </td>
|
| 205 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Base View</td>
|
216 |
<td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif" valign=top>Base View</td>
|
| 206 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
217 |
<td nowrap width="100%" background="images/bg_form_lightbluedark.gif">
|
| - |
|
218 |
<table border=0 cellpadding=0 cellspacing=0 class="rep_small">
|
| - |
|
219 |
<tr>
|
| - |
|
220 |
<td>
|
| 207 |
<select name="view_id" class="form_item">
|
221 |
<select name="view_id" class="form_item">
|
| - |
|
222 |
<option></option>
|
| 208 |
<%
|
223 |
<%
|
| 209 |
Dim iDefault_View_id: iDefault_View_id = -1
|
224 |
Dim iDefault_View_id: iDefault_View_id = -1
|
| 210 |
If Not IsNull(parBase_view_id) Then iDefault_View_id = parBase_view_id
|
225 |
If Not IsNull(parBase_view_id) Then iDefault_View_id = parBase_view_id
|
| 211 |
Dim rsRelGroups
|
226 |
Dim rsRelGroups
|
| - |
|
227 |
Dim bSelected: bSelected=False
|
| 212 |
Set rsRelGroups = OraDatabase.DbCreateDynaset( Release_Groups( parRtag_id), cint(0))
|
228 |
Set rsRelGroups = OraDatabase.DbCreateDynaset( Release_Groups( parRtag_id,pkgInfoHash.Item ("pkg_id")), cint(0))
|
| 213 |
While ((NOT rsRelGroups.BOF) AND (NOT rsRelGroups.EOF))
|
229 |
While ((NOT rsRelGroups.BOF) AND (NOT rsRelGroups.EOF))
|
| - |
|
230 |
If (NOT IsNull(rsRelGroups("hint"))) AND (NOT bSelected) Then
|
| - |
|
231 |
Response.write "<option selected value='"& rsRelGroups("view_id") &"'>"& rsRelGroups("hint") & rsRelGroups("view_name") &"</option>"
|
| - |
|
232 |
bSelected=True
|
| 214 |
%>
|
233 |
Else
|
| 215 |
<option <% If CInt(rsRelGroups.Fields("view_id")) = CInt(iDefault_View_id) Then%>selected<%End If%> value="<%=rsRelGroups.Fields("view_id")%>"><%=UCase(rsRelGroups.Fields("view_name"))%></option>
|
234 |
Response.write "<option value='"& rsRelGroups("view_id") &"'>"& rsRelGroups("hint") & rsRelGroups("view_name") &"</option>"
|
| 216 |
<%
|
235 |
End If
|
| 217 |
rsRelGroups.MoveNext
|
236 |
rsRelGroups.MoveNext
|
| 218 |
WEnd
|
237 |
WEnd
|
| 219 |
rsRelGroups.Close
|
238 |
rsRelGroups.Close
|
| 220 |
set rsRelGroups = nothing
|
239 |
set rsRelGroups = nothing
|
| 221 |
%>
|
240 |
%>
|
| 222 |
</select>
|
241 |
</select>
|
| - |
|
242 |
</td>
|
| 223 |
<%
|
243 |
</tr>
|
| 224 |
Dim sonclick
|
244 |
<tr>
|
| 225 |
Dim surl
|
245 |
<td>
|
| 226 |
surl = "_wform_new_group.asp?pv_id=" & parPv_id & "&rtag_id=" & parRtag_id & "&rfile=" & scriptName & "&ppv_id=" & parPPv_id
|
246 |
NOTE: '>' is a suggestion of where to place this dependency.
|
| 227 |
sonclick = "MM_openBrWindow('" & surl & "','NewGroup','resizable=yes,width=450,height=300');"
|
247 |
It denotes views where it has been placed in other releases.
|
| - |
|
248 |
</td>
|
| 228 |
%>
|
249 |
</tr>
|
| 229 |
<img onclick="<%=sonclick%>" src="images/i_new_group.gif" width="20" height="20" align="absmiddle" border="0" alt="Create NEW group" title="Create NEW group"></a>
|
250 |
</table>
|
| 230 |
</td>
|
251 |
</td>
|
| 231 |
</tr>
|
252 |
</tr>
|
| 232 |
<tr>
|
253 |
<tr>
|
| 233 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
254 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
| 234 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|
255 |
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
|