| 119 |
ghuddy |
1 |
<%
|
|
|
2 |
'=====================================================
|
|
|
3 |
'| |
|
| 129 |
ghuddy |
4 |
'| REPORTS DEFINITION |
|
|
|
5 |
'| |
|
| 119 |
ghuddy |
6 |
'=====================================================
|
|
|
7 |
' Good idea to set when using redirect
|
| 129 |
ghuddy |
8 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
9 |
|
|
|
10 |
'To enable the script timeout to 10 mins
|
|
|
11 |
Server.ScriptTimeout=600
|
|
|
12 |
%>
|
|
|
13 |
|
|
|
14 |
<%
|
|
|
15 |
'------------ ACCESS CONTROL ------------------
|
|
|
16 |
%>
|
|
|
17 |
|
|
|
18 |
<%
|
|
|
19 |
'------------ Variable Definition -------------
|
|
|
20 |
Dim rsQry
|
|
|
21 |
Dim rsTemp
|
|
|
22 |
Dim parPv_id, parExt
|
|
|
23 |
Dim objReleaseContent
|
|
|
24 |
Dim aReleaseContent
|
|
|
25 |
Dim objPackageDetails
|
| 129 |
ghuddy |
26 |
Dim outobjDetails
|
|
|
27 |
Dim pvIdList
|
|
|
28 |
Dim dpv_id
|
|
|
29 |
Dim BldStd
|
| 119 |
ghuddy |
30 |
'------------ Constants Declaration -----------
|
|
|
31 |
'------------ Variable Init -------------------
|
|
|
32 |
|
|
|
33 |
parExt = Request("ext")
|
|
|
34 |
Set objReleaseContent = CreateObject("Scripting.Dictionary")
|
|
|
35 |
Set objPackageDetails = CreateObject("Scripting.Dictionary")
|
|
|
36 |
Set outobjDetails = CreateObject("Scripting.Dictionary")
|
|
|
37 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
38 |
Sub GetPackageInformation ( nPv_id, ByRef oPackageDetails )
|
| 129 |
ghuddy |
39 |
Dim rsQry, query
|
|
|
40 |
query = _
|
|
|
41 |
" SELECT pkg.pkg_name, pv.* "&_
|
|
|
42 |
" FROM PACKAGES pkg,"&_
|
|
|
43 |
" PACKAGE_VERSIONS pv"&_
|
|
|
44 |
" WHERE pv.pv_id = "& nPv_id &_
|
|
|
45 |
" AND pv.pkg_id = pkg.pkg_id "
|
|
|
46 |
|
|
|
47 |
Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
|
|
|
48 |
|
|
|
49 |
oPackageDetails.RemoveAll
|
|
|
50 |
|
|
|
51 |
If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
|
|
|
52 |
oPackageDetails("pkg_name") = rsQry("pkg_name")
|
|
|
53 |
oPackageDetails("pkg_version") = rsQry("pkg_version")
|
|
|
54 |
oPackageDetails("v_ext") = rsQry("v_ext")
|
|
|
55 |
oPackageDetails("pv_description") = rsQry("pv_description")
|
|
|
56 |
oPackageDetails("pv_overview") = rsQry("pv_overview")
|
|
|
57 |
oPackageDetails("src_path") = rsQry("src_path")
|
|
|
58 |
oPackageDetails("pkg_label") = rsQry("pkg_label")
|
|
|
59 |
oPackageDetails("is_build_env_required") = rsQry("is_build_env_required")
|
|
|
60 |
|
|
|
61 |
End If
|
|
|
62 |
|
|
|
63 |
rsQry.Close()
|
|
|
64 |
Set rsQry = Nothing
|
| 119 |
ghuddy |
65 |
End Sub
|
|
|
66 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
| 129 |
ghuddy |
67 |
Function SQL_Build_Std ( nPv_id )
|
|
|
68 |
SQL_Build_Std = _
|
|
|
69 |
" SELECT bs.bs_name"&_
|
|
|
70 |
" FROM RELEASE_MANAGER.PACKAGE_VERSIONS pv,"&_
|
|
|
71 |
" RELEASE_MANAGER.BUILD_STANDARDS bs"&_
|
|
|
72 |
" WHERE pv.PV_ID = "& nPv_id &_
|
|
|
73 |
" AND pv.BS_ID = bs.BS_ID "
|
|
|
74 |
End Function
|
|
|
75 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
| 119 |
ghuddy |
76 |
Function SQL_Build_Env ( nPv_id )
|
| 129 |
ghuddy |
77 |
SQL_Build_Env = _
|
|
|
78 |
" SELECT bm.bm_name"&_
|
|
|
79 |
" FROM RELEASE_MANAGER.PACKAGE_BUILD_INFO pbi,"&_
|
|
|
80 |
" RELEASE_MANAGER.BUILD_MACHINES bm"&_
|
|
|
81 |
" WHERE pbi.PV_ID = "& nPv_id &_
|
|
|
82 |
" AND pbi.BM_ID = bm.BM_ID "&_
|
|
|
83 |
" ORDER BY UPPER(bm.BM_NAME) "
|
| 119 |
ghuddy |
84 |
End Function
|
|
|
85 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
86 |
Function SQL_Modules (nPv_idList)
|
| 129 |
ghuddy |
87 |
SQL_Modules = _
|
|
|
88 |
"SELECT DISTINCT"&_
|
|
|
89 |
" qry.DPV_ID "&_
|
| 119 |
ghuddy |
90 |
" FROM ("&_
|
| 129 |
ghuddy |
91 |
" SELECT dep.*,"&_
|
|
|
92 |
" LEVEL AS LEVEL_NUM"&_
|
|
|
93 |
" FROM PACKAGE_DEPENDENCIES dep"&_
|
|
|
94 |
" START WITH dep.PV_ID IN ( "& nPv_idList &" ) "&_
|
|
|
95 |
" CONNECT BY PRIOR dep.DPV_ID = dep.PV_ID"&_
|
|
|
96 |
" ) qry,"&_
|
|
|
97 |
" PACKAGES pkg,"&_
|
|
|
98 |
" PACKAGE_VERSIONS pv"&_
|
|
|
99 |
" WHERE qry.PV_ID = pv.PV_ID AND pv.PKG_ID = pkg.PKG_ID"
|
|
|
100 |
End Function
|
| 119 |
ghuddy |
101 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
102 |
Function SQL_Build_Dependencies ( nPv_id )
|
| 129 |
ghuddy |
103 |
SQL_Build_Dependencies = _
|
|
|
104 |
" SELECT dpkg.pkg_name, dpv.pkg_version"&_
|
|
|
105 |
" FROM PACKAGE_DEPENDENCIES dep,"&_
|
|
|
106 |
" PACKAGES dpkg,"&_
|
|
|
107 |
" PACKAGE_VERSIONS dpv"&_
|
|
|
108 |
" WHERE dep.pv_id = "& nPv_id &_
|
|
|
109 |
" AND dep.DPV_ID = dpv.pv_id"&_
|
|
|
110 |
" AND dpv.pkg_id = dpkg.pkg_id "&_
|
|
|
111 |
" ORDER BY UPPER(dpkg.pkg_name) "
|
| 119 |
ghuddy |
112 |
End Function
|
|
|
113 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
114 |
Sub GetReleaseContent ( nBom_id, ByRef oReleaseContent )
|
| 129 |
ghuddy |
115 |
Dim rsQry, query
|
|
|
116 |
|
|
|
117 |
query = _
|
|
|
118 |
" SELECT qry.prod_id"&_
|
|
|
119 |
" FROM ("&_
|
|
|
120 |
" SELECT DISTINCT"&_
|
|
|
121 |
" osc.PROD_ID,"&_
|
|
|
122 |
" pkg.pkg_name,"&_
|
|
|
123 |
" pv.pkg_version,"&_
|
|
|
124 |
" 1 as seq_num"&_
|
|
|
125 |
" FROM DEPLOYMENT_MANAGER.bom_contents bc,"&_
|
|
|
126 |
" DEPLOYMENT_MANAGER.operating_systems os, "&_
|
|
|
127 |
" DEPLOYMENT_MANAGER.os_contents osc,"&_
|
|
|
128 |
" PACKAGES pkg,"&_
|
|
|
129 |
" PACKAGE_VERSIONS pv,"&_
|
|
|
130 |
" DEPLOYMENT_MANAGER.PRODUCT_DETAILS pd"&_
|
|
|
131 |
" WHERE osc.os_id = os.os_id "&_
|
|
|
132 |
" AND os.node_id = bc.node_id"&_
|
|
|
133 |
" AND bc.bom_id = "& nBom_id &_
|
|
|
134 |
" AND pd.PROD_ID (+) = osc.PROD_ID"&_
|
|
|
135 |
" AND pv.pkg_id = pkg.pkg_id"&_
|
|
|
136 |
" AND osc.prod_id = pv.pv_id "&_
|
|
|
137 |
" AND (pd.is_rejected IS NULL or pd.IS_REJECTED != 'Y') "&_
|
|
|
138 |
" UNION "&_
|
|
|
139 |
" SELECT DISTINCT bec.prod_id, pkg.pkg_name, pkg_version, 2 as seq_num"&_
|
|
|
140 |
" FROM DEPLOYMENT_MANAGER.boms bm,"&_
|
|
|
141 |
" DEPLOYMENT_MANAGER.bom_contents bc,"&_
|
|
|
142 |
" DEPLOYMENT_MANAGER.network_nodes nn,"&_
|
|
|
143 |
" DEPLOYMENT_MANAGER.operating_systems os,"&_
|
|
|
144 |
" DEPLOYMENT_MANAGER.os_base_env obe,"&_
|
|
|
145 |
" DEPLOYMENT_MANAGER.base_env_contents bec,"&_
|
|
|
146 |
" PACKAGES pkg,"&_
|
|
|
147 |
" package_versions pv,"&_
|
|
|
148 |
" DEPLOYMENT_MANAGER.base_env be,"&_
|
|
|
149 |
" DEPLOYMENT_MANAGER.bos_types bt,"&_
|
|
|
150 |
" DEPLOYMENT_MANAGER.PRODUCT_DETAILS pd"&_
|
|
|
151 |
" WHERE bm.bom_id = "& nBom_id &_
|
|
|
152 |
" AND bm.bom_id = bc.bom_id"&_
|
|
|
153 |
" AND nn.node_id = bc.node_id"&_
|
|
|
154 |
" AND os.node_id = nn.node_id"&_
|
|
|
155 |
" AND obe.os_id = os.os_id"&_
|
|
|
156 |
" AND pd.PROD_ID (+) = bec.PROD_ID"&_
|
|
|
157 |
" AND (pd.is_rejected IS NULL or pd.IS_REJECTED != 'Y') "&_
|
|
|
158 |
" AND bec.base_env_id = obe.base_env_id"&_
|
|
|
159 |
" AND bec.prod_id = pv.pv_id"&_
|
|
|
160 |
" AND pkg.pkg_id = pv.pkg_id"&_
|
|
|
161 |
" AND be.base_env_id = obe.base_env_id"&_
|
|
|
162 |
" AND bt.bos_id = be.bos_id"&_
|
|
|
163 |
" ) qry "&_
|
|
|
164 |
" ORDER BY qry.seq_num, UPPER(qry.pkg_name), UPPER(qry.pkg_version)"
|
|
|
165 |
|
|
|
166 |
Set rsQry = OraDatabase.DbCreateDynaset( query, 0)
|
|
|
167 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
168 |
oReleaseContent( CStr( rsQry("prod_id")) ) = ""
|
|
|
169 |
rsQry.MoveNext()
|
|
|
170 |
WEnd
|
|
|
171 |
|
|
|
172 |
rsQry.Close()
|
|
|
173 |
Set rsQry = Nothing
|
| 119 |
ghuddy |
174 |
End Sub
|
|
|
175 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
176 |
Function PatchIcon ( cIsPatch, cIsPatchObsolete )
|
| 129 |
ghuddy |
177 |
If IsNull(cIsPatch) Then
|
|
|
178 |
PatchIcon = "<img src='images/rex_images/ext_blank.gif' width='16' height='16' border='0' align='absmiddle'>"
|
|
|
179 |
Else
|
|
|
180 |
If IsNull(cIsPatchObsolete) Then
|
|
|
181 |
PatchIcon = "<img src='images/i_patch_small.gif' width='16' height='16' border='0' align='absmiddle' >"
|
|
|
182 |
Else
|
|
|
183 |
PatchIcon = "<img src='images/i_patch_small_obsolete.gif' width='16' height='16' border='0' align='absmiddle' title='Patch is obsolete'>"
|
|
|
184 |
End If
|
|
|
185 |
End If
|
| 119 |
ghuddy |
186 |
End Function
|
|
|
187 |
%>
|
|
|
188 |
|
|
|
189 |
<%
|
|
|
190 |
Sub Reports_List ( SSgroup )
|
| 129 |
ghuddy |
191 |
Dim repNum
|
| 119 |
ghuddy |
192 |
%> <!-- REPORTS LIST -------------------------------------------------------->
|
| 129 |
ghuddy |
193 |
<%Select Case SSgroup%>
|
|
|
194 |
<%Case "Advanced_Search"%>
|
| 159 |
ghuddy |
195 |
<%repNum = 1%>
|
| 5860 |
dpurdie |
196 |
<strong>Find Jira / ClearQuest Bugs / Issues Location</strong><br>
|
|
|
197 |
Use this advance search to locate bugs / issues imported to Release Manager from Jira or ClearQuest.<br>
|
| 159 |
ghuddy |
198 |
<a href="rep_where_are_bugs_located.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
199 |
<%repNum = 2%>
|
|
|
200 |
<strong>Find Packages Using "Ignore Warnings" feature</strong><br>
|
|
|
201 |
Lists packages which use "Ignore Warning" feature on their dependencies.<br>
|
|
|
202 |
<a href="rep_packages_using_ignore_feature.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
203 |
<%repNum = 4%>
|
|
|
204 |
<strong>Find A Package</strong><br>
|
|
|
205 |
Use this advanced search to find a package in Release Manager<br>
|
|
|
206 |
<a href="rep_find_package.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
207 |
<%repNum = 5%>
|
|
|
208 |
<strong>Find Package Version History</strong><br>
|
|
|
209 |
Find all package versions and their current locations.<br>
|
|
|
210 |
<a href="rep_package_version_history.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
| 5685 |
dpurdie |
211 |
<%repNum = 14%>
|
|
|
212 |
<strong>Find File with a Package</strong><br>
|
|
|
213 |
Find all files within a named package.<br>
|
|
|
214 |
<a href="rep_package_version_history.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
| 129 |
ghuddy |
215 |
<%Case "Release_Status"%>
|
| 159 |
ghuddy |
216 |
<%repNum = 3%>
|
|
|
217 |
<strong>Current Status of Release</strong><br>
|
|
|
218 |
Shows all packages in a selected release with their current state, owner and last modifier.<br>
|
|
|
219 |
<a href="rep_current_state_of_release.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
220 |
<%repNum = 8%>
|
|
|
221 |
<strong>Deployable Software Modules</strong><br>
|
|
|
222 |
This report shows new and current deployable software modules. Use this report to find which modules will be deployed to the customer.<br>
|
|
|
223 |
Also, use this report to find if there are new modules flaged as 'deployable'.<br>
|
|
|
224 |
<a href="rep_depoyable_software_modules.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
225 |
<%repNum = 7%>
|
|
|
226 |
<strong>Unit Tests per Package</strong><br>
|
|
|
227 |
Use this report to check the unit tests performed on packages in a project.<br>
|
|
|
228 |
<a href="rep_unit_tests_per_package.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
229 |
<%repNum = 12%>
|
|
|
230 |
<strong>Release AutoBuildable Status</strong><br>
|
|
|
231 |
Use this report to check the package versions that are autobuildable/not autobuildable in a given release.<br>
|
|
|
232 |
<a href="rep_autobuildable_package.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
233 |
<%repNum = 13%>
|
|
|
234 |
<strong>Release DEVI Status</strong><br>
|
|
|
235 |
Use this report to obtain a list of DEVIs for all packages in a given release.<br>
|
|
|
236 |
<a href="rep_devi_status_for_release.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
| 129 |
ghuddy |
237 |
|
|
|
238 |
<!-- <strong>All Packages With out-of-sync Dependencies</strong><br>
|
|
|
239 |
List of all packages with dependencies out-of-sync with the release environment.<br>
|
|
|
240 |
In escence, these are the packages which has versions in "latest" column of their dependencies.<br>
|
|
|
241 |
Not available yet.<br><br><hr size="1" noshade color="#DAD7C8">
|
| 159 |
ghuddy |
242 |
-->
|
|
|
243 |
|
|
|
244 |
<%Case "Release_History"%>
|
|
|
245 |
<%repNum = 10%>
|
|
|
246 |
<strong>Build History</strong><br>
|
|
|
247 |
Use this report to find which packages have been officially released within specified date range.<br>
|
|
|
248 |
<a href="rep_build_history.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
| 129 |
ghuddy |
249 |
<%Case "Admin_Reports"%>
|
| 159 |
ghuddy |
250 |
<strong>All Packages by Project by Version Tree by Release</strong><br>
|
|
|
251 |
CSV output of all packages used in Release Manager per Project.<br>
|
|
|
252 |
<a href="rep_all_packages_by_project_by_vtree_by_release.asp" target="_blank" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
253 |
<strong>All Runtime Dependencies by Project by Version Tree by Release</strong><br>
|
|
|
254 |
CSV output of all runtime dependencies used in Release Manager per Project.<br>
|
|
|
255 |
<a href="rep_all_runtime_dependencies_by_project_by_vtree_by_release.asp" target="_blank" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
256 |
<%repNum = 6%>
|
|
|
257 |
<strong>Unused Packages</strong><br>
|
|
|
258 |
All packages (Not Products) with no entries in "Used By" tab.<br>
|
|
|
259 |
Use this report to help you clean up a release and remove all potentially unused packages.<br>
|
|
|
260 |
<a href="rep_obsolete_packages.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
| 129 |
ghuddy |
261 |
<%Case "Escrow"%>
|
| 159 |
ghuddy |
262 |
<%repNum = 9%>
|
|
|
263 |
<strong>Bill of Materials (BOM)</strong><br>
|
|
|
264 |
List of all ERG Products per network node for a particular
|
|
|
265 |
project. Use this report to integrate a particular project.<br>
|
|
|
266 |
<a href="rep_bill_of_materials.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
267 |
<%repNum = 11%>
|
|
|
268 |
<strong>Escrow Report</strong><br>
|
|
|
269 |
List of all Products/Patches for the BOM including modules. Use this report to provide a build roadmap.<br>
|
|
|
270 |
<a href="escrow_report.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
271 |
<strong>Build Dependencies per Package</strong><br>
|
|
|
272 |
Use this report to build package from source code. The report
|
|
|
273 |
include package repository location, label and build dependencies.<br>
|
|
|
274 |
Not available yet.<br><br><hr size="1" noshade color="#DAD7C8">
|
|
|
275 |
<strong>Build Order</strong><br>
|
|
|
276 |
Use this reports to find the order in which packages should be built.<br>
|
|
|
277 |
Not available yet.<br><br><hr size="1" noshade color="#DAD7C8">
|
| 129 |
ghuddy |
278 |
<%Case Else%>
|
| 159 |
ghuddy |
279 |
<b>« Select reporting category.</b>
|
| 129 |
ghuddy |
280 |
<%End Select%>
|
|
|
281 |
<!-- REPORTS LIST END-------------------------------------------------------->
|
| 119 |
ghuddy |
282 |
|
|
|
283 |
<%End Sub%>
|
|
|
284 |
|
|
|
285 |
<%
|
|
|
286 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
287 |
Sub Get_Projects ( NNproj_id, BBallow_all )
|
| 129 |
ghuddy |
288 |
Dim rsTemp, Query_String
|
|
|
289 |
|
|
|
290 |
Query_String = _
|
|
|
291 |
"SELECT * FROM projects ORDER BY proj_name ASC"
|
|
|
292 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
293 |
|
|
|
294 |
Response.write "<select name='FRproj_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRvtree_id=&FRrtag_id=&group="& Request("group") &"&repnum="& Request("repnum") &"&FRproj_id=',this,0)"" class='form_item'>"
|
|
|
295 |
If BBallow_all Then
|
|
|
296 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
297 |
Else
|
|
|
298 |
Response.write "<option></option>"
|
|
|
299 |
End If
|
|
|
300 |
|
|
|
301 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
302 |
If CDbl(NNproj_id) = CDbl(rsTemp.Fields("proj_id")) Then
|
|
|
303 |
Response.write "<option value='"& rsTemp.Fields("proj_id") &"' selected>"& UCase(rsTemp.Fields("proj_name")) &"</option>"
|
|
|
304 |
Else
|
|
|
305 |
Response.write "<option value='"& rsTemp.Fields("proj_id") &"'>"& UCase(rsTemp.Fields("proj_name")) &"</option>"
|
|
|
306 |
End If
|
|
|
307 |
rsTemp.MoveNext
|
|
|
308 |
WEnd
|
|
|
309 |
Response.write "</select>"
|
|
|
310 |
|
|
|
311 |
rsTemp.Close
|
|
|
312 |
Set rsTemp = nothing
|
| 119 |
ghuddy |
313 |
End Sub
|
|
|
314 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
315 |
Sub Get_Version_Trees ( NNproj_id, NNvtree_id, BBallow_all )
|
| 129 |
ghuddy |
316 |
Dim rsTemp, Query_String
|
|
|
317 |
|
|
|
318 |
Query_String = _
|
|
|
319 |
"SELECT vtree_id, vtree_name FROM vtrees WHERE hide = 'N' AND proj_id = "& NNproj_id &" ORDER BY vtree_id ASC"
|
|
|
320 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
321 |
|
|
|
322 |
Response.write "<select name='FRvtree_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRproj_id="& NNproj_id &"&FRrtag_id=&group="& Request("group") &"&repnum="& Request("repnum") &"&FRvtree_id=',this,0)"" class='form_item'>"
|
|
|
323 |
If BBallow_all Then
|
|
|
324 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
325 |
Else
|
|
|
326 |
Response.write "<option></option>"
|
|
|
327 |
End If
|
|
|
328 |
|
|
|
329 |
If NNproj_id <> -1 Then
|
|
|
330 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
331 |
If CDbl(NNvtree_id) = CDbl(rsTemp.Fields("vtree_id")) Then
|
|
|
332 |
Response.write "<option value='"& rsTemp.Fields("vtree_id") &"' selected>"& (rsTemp.Fields("vtree_name")) &"</option>"
|
|
|
333 |
Else
|
|
|
334 |
Response.write "<option value='"& rsTemp.Fields("vtree_id") &"'>"& (rsTemp.Fields("vtree_name")) &"</option>"
|
|
|
335 |
End If
|
|
|
336 |
rsTemp.MoveNext
|
|
|
337 |
WEnd
|
|
|
338 |
End If
|
|
|
339 |
Response.write "</select>"
|
|
|
340 |
|
|
|
341 |
rsTemp.Close
|
|
|
342 |
Set rsTemp = nothing
|
| 119 |
ghuddy |
343 |
End Sub
|
|
|
344 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 159 |
ghuddy |
345 |
Sub Get_Open_Release_Labels ( NNproj_id, NNrtag_id, BBallow_all )
|
|
|
346 |
Dim rsTemp, Query_String
|
|
|
347 |
|
|
|
348 |
Query_String = _
|
|
|
349 |
"SELECT rtag_id, rtag_name FROM release_tags WHERE proj_id = "& NNproj_id &"AND official in ('N','C','R') ORDER BY rtag_name ASC"
|
|
|
350 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
351 |
|
|
|
352 |
Response.write "<select name='FRrtag_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRproj_id="& NNproj_id &"&group="& Request("group") &"&repnum="& Request("repnum") &"&FRrtag_id=',this,0)"" class='form_item'>"
|
|
|
353 |
If BBallow_all Then
|
|
|
354 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
355 |
Else
|
|
|
356 |
Response.write "<option></option>"
|
|
|
357 |
End If
|
|
|
358 |
|
|
|
359 |
If NNproj_id <> -1 Then
|
|
|
360 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
361 |
If CDbl(NNrtag_id) = CDbl(rsTemp.Fields("rtag_id")) Then
|
|
|
362 |
Response.write "<option value='"& rsTemp.Fields("rtag_id") &"' selected>"& (rsTemp.Fields("rtag_name")) &"</option>"
|
|
|
363 |
Else
|
|
|
364 |
Response.write "<option value='"& rsTemp.Fields("rtag_id") &"'>"& (rsTemp.Fields("rtag_name")) &"</option>"
|
|
|
365 |
End If
|
|
|
366 |
rsTemp.MoveNext
|
|
|
367 |
WEnd
|
|
|
368 |
End If
|
|
|
369 |
Response.write "</select>"
|
|
|
370 |
|
|
|
371 |
rsTemp.Close
|
|
|
372 |
Set rsTemp = nothing
|
|
|
373 |
End Sub
|
|
|
374 |
|
| 119 |
ghuddy |
375 |
Sub Get_Release_Labels ( NNproj_id, NNrtag_id, BBallow_all )
|
| 129 |
ghuddy |
376 |
Dim rsTemp, Query_String
|
|
|
377 |
|
|
|
378 |
Query_String = _
|
|
|
379 |
"SELECT rtag_id, rtag_name FROM release_tags WHERE proj_id = "& NNproj_id &" ORDER BY rtag_id ASC"
|
|
|
380 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
381 |
|
|
|
382 |
Response.write "<select name='FRrtag_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRproj_id="& NNproj_id &"&group="& Request("group") &"&repnum="& Request("repnum") &"&FRrtag_id=',this,0)"" class='form_item'>"
|
|
|
383 |
If BBallow_all Then
|
|
|
384 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
385 |
Else
|
|
|
386 |
Response.write "<option></option>"
|
|
|
387 |
End If
|
|
|
388 |
|
|
|
389 |
If NNproj_id <> -1 Then
|
|
|
390 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
391 |
If CDbl(NNrtag_id) = CDbl(rsTemp.Fields("rtag_id")) Then
|
|
|
392 |
Response.write "<option value='"& rsTemp.Fields("rtag_id") &"' selected>"& (rsTemp.Fields("rtag_name")) &"</option>"
|
|
|
393 |
Else
|
|
|
394 |
Response.write "<option value='"& rsTemp.Fields("rtag_id") &"'>"& (rsTemp.Fields("rtag_name")) &"</option>"
|
|
|
395 |
End If
|
|
|
396 |
rsTemp.MoveNext
|
|
|
397 |
WEnd
|
|
|
398 |
End If
|
|
|
399 |
Response.write "</select>"
|
|
|
400 |
|
|
|
401 |
rsTemp.Close
|
|
|
402 |
Set rsTemp = nothing
|
| 119 |
ghuddy |
403 |
End Sub
|
|
|
404 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
405 |
Sub Get_SBOM_Version ( NNproj_id, NNrtag_id, BBallow_all, NNversion )
|
| 129 |
ghuddy |
406 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
407 |
|
| 129 |
ghuddy |
408 |
Query_String = _
|
|
|
409 |
"SELECT BOM_ID, BRANCH_ID, BOM_VERSION ||'.'||BOM_LIFECYCLE AS VERSION FROM DEPLOYMENT_MANAGER.BOMS WHERE BRANCH_ID ="&NNrtag_id&" ORDER BY VERSION"
|
| 119 |
ghuddy |
410 |
|
|
|
411 |
|
| 129 |
ghuddy |
412 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
| 119 |
ghuddy |
413 |
|
| 129 |
ghuddy |
414 |
|
|
|
415 |
Response.write "<select name='FRversion' class='form_item'>"
|
|
|
416 |
If BBallow_all Then
|
|
|
417 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
418 |
Else
|
|
|
419 |
Response.write "<option></option>"
|
|
|
420 |
End If
|
|
|
421 |
|
|
|
422 |
If NNrtag_id <> -1 Then
|
|
|
423 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
424 |
If CStr(NNversion) = CStr(rsTemp.Fields("version")) Then
|
|
|
425 |
Response.write "<option value='"& rsTemp.Fields("version") &"' selected>"& (rsTemp.Fields("version")) &"</option>"
|
|
|
426 |
Else
|
|
|
427 |
Response.write "<option value='"& rsTemp.Fields("version") &"'>"& (rsTemp.Fields("version")) &"</option>"
|
|
|
428 |
End If
|
|
|
429 |
rsTemp.MoveNext
|
|
|
430 |
WEnd
|
|
|
431 |
End If
|
|
|
432 |
Response.write "</select>"
|
|
|
433 |
rsTemp.Close
|
|
|
434 |
Set rsTemp = nothing
|
|
|
435 |
|
| 119 |
ghuddy |
436 |
End Sub
|
|
|
437 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
438 |
Sub Get_Branches ( NNproj_id, NNrtag_id, BBallow_all )
|
| 129 |
ghuddy |
439 |
Dim rsTemp, Query_String
|
| 119 |
ghuddy |
440 |
|
| 129 |
ghuddy |
441 |
Query_String = _
|
|
|
442 |
"SELECT * FROM deployment_manager.branches WHERE proj_id = "& NNproj_id &" ORDER BY branch_id ASC"
|
|
|
443 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
444 |
Response.write "<select name='FRbranch_id' onChange=""Cascaded_Menu('parent','"& scriptName &"?FRproj_id="& NNproj_id &"&group="& Request("group") &"&repnum="& Request("repnum") &"&FRrtag_id=',this,0)"" class='form_item'>"
|
|
|
445 |
If BBallow_all Then
|
|
|
446 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
447 |
Else
|
|
|
448 |
Response.write "<option></option>"
|
|
|
449 |
End If
|
|
|
450 |
|
|
|
451 |
If NNproj_id <> -1 Then
|
|
|
452 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
453 |
If CDbl(NNrtag_id) = CDbl(rsTemp.Fields("branch_id")) Then
|
|
|
454 |
Response.write "<option value='"& rsTemp.Fields("branch_id") &"' selected>"& (rsTemp.Fields("branch_name")) &"</option>"
|
|
|
455 |
Else
|
|
|
456 |
Response.write "<option value='"& rsTemp.Fields("branch_id") &"'>"& (rsTemp.Fields("branch_name")) &"</option>"
|
|
|
457 |
End If
|
|
|
458 |
rsTemp.MoveNext
|
|
|
459 |
WEnd
|
|
|
460 |
End If
|
|
|
461 |
Response.write "</select>"
|
|
|
462 |
|
|
|
463 |
rsTemp.Close
|
|
|
464 |
Set rsTemp = nothing
|
| 119 |
ghuddy |
465 |
End Sub
|
|
|
466 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
467 |
|
|
|
468 |
Sub Get_Base_Views ( nRtag_id, nBase_view_id, BBallow_all )
|
| 129 |
ghuddy |
469 |
Dim rsTemp, Query_String
|
|
|
470 |
|
|
|
471 |
Query_String = _
|
|
|
472 |
"SELECT DISTINCT vi.view_id, vi.view_name"&_
|
|
|
473 |
" FROM VIEWS vi,"&_
|
|
|
474 |
" RELEASE_CONTENT rc"&_
|
|
|
475 |
" WHERE rc.BASE_VIEW_ID = vi.VIEW_ID"&_
|
|
|
476 |
" AND rc.rtag_id = "& nRtag_id &_
|
|
|
477 |
"ORDER BY UPPER( vi.view_name )"
|
|
|
478 |
|
|
|
479 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
480 |
|
|
|
481 |
Response.write "<select name='FRbase_view_id' class='form_item'>"
|
|
|
482 |
If BBallow_all Then
|
|
|
483 |
Response.write "<option value='-1'>ALL</option>"
|
|
|
484 |
Else
|
|
|
485 |
Response.write "<option></option>"
|
|
|
486 |
End If
|
|
|
487 |
|
|
|
488 |
If nRtag_id <> -1 Then
|
|
|
489 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
490 |
If CDbl(nBase_view_id) = CDbl(rsTemp.Fields("view_id")) Then
|
|
|
491 |
Response.write "<option value='"& rsTemp.Fields("view_id") &"' selected>"& (rsTemp.Fields("view_name")) &"</option>"
|
|
|
492 |
Else
|
|
|
493 |
Response.write "<option value='"& rsTemp.Fields("view_id") &"'>"& (rsTemp.Fields("view_name")) &"</option>"
|
|
|
494 |
End If
|
|
|
495 |
rsTemp.MoveNext
|
|
|
496 |
WEnd
|
|
|
497 |
End If
|
|
|
498 |
Response.write "</select>"
|
|
|
499 |
|
|
|
500 |
rsTemp.Close
|
|
|
501 |
Set rsTemp = nothing
|
| 119 |
ghuddy |
502 |
End Sub
|
|
|
503 |
%>
|
|
|
504 |
<%
|
|
|
505 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
506 |
'==================================================================================
|
| 129 |
ghuddy |
507 |
' Report Name : Packages Using Ignore Feature
|
|
|
508 |
' Description : Lists packages which use "Ignore Warning"
|
|
|
509 |
' feature on their dependencies.
|
|
|
510 |
' INPUT : Project, Vesion Tree, Release Label
|
| 119 |
ghuddy |
511 |
'==================================================================================
|
|
|
512 |
Sub Packages_Using_Ignore_Feature ( SSsection, NNproj_id, NNrtag_id )
|
| 129 |
ghuddy |
513 |
Dim Query_String, rsRep
|
|
|
514 |
Const Allow_All = TRUE
|
|
|
515 |
|
|
|
516 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
517 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
518 |
|
|
|
519 |
If SSsection = "TITLE" Then
|
|
|
520 |
Response.write "Packages Using 'Ignore Warnings' Feature"
|
|
|
521 |
Exit Sub
|
|
|
522 |
End If
|
|
|
523 |
|
|
|
524 |
|
|
|
525 |
If SSsection = "FORM" Then
|
|
|
526 |
%>
|
|
|
527 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
528 |
<form action="<%=scriptName%>" method="post" name="repform">
|
|
|
529 |
<tr>
|
|
|
530 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
531 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
532 |
<td width="100%"><%Call Get_Projects( NNproj_id, Allow_All )%></td>
|
|
|
533 |
</tr>
|
|
|
534 |
<tr>
|
|
|
535 |
<td nowrap class="form_field"> </td>
|
|
|
536 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
537 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Allow_All )%></td>
|
|
|
538 |
</tr>
|
|
|
539 |
<tr>
|
|
|
540 |
<td nowrap class="form_field"> </td>
|
|
|
541 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
542 |
<td><br>
|
|
|
543 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
544 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
545 |
<input type="hidden" name="action" value="true">
|
|
|
546 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
547 |
</td>
|
|
|
548 |
</tr>
|
|
|
549 |
</form>
|
|
|
550 |
</table>
|
|
|
551 |
<% Exit Sub
|
|
|
552 |
End If
|
|
|
553 |
|
|
|
554 |
|
|
|
555 |
If SSsection = "BODY" Then
|
|
|
556 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
557 |
|
|
|
558 |
Query_String = ReadFile( rootPath & "queries\rep_packages_using_ignore_feature.sql" )
|
|
|
559 |
|
|
|
560 |
OraDatabase.Parameters.Add "PROJ_ID", NNproj_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
561 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
562 |
%>
|
|
|
563 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
564 |
<tr>
|
|
|
565 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
566 |
<td width="1%" nowrap class="body_colb">Package Name </td>
|
|
|
567 |
<td width="1%" nowrap class="body_colb">Version </td>
|
|
|
568 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
569 |
</tr>
|
|
|
570 |
<tr>
|
|
|
571 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
572 |
</tr>
|
|
|
573 |
<%
|
|
|
574 |
Dim currRtag_id
|
|
|
575 |
currRtag_id = -1
|
|
|
576 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
577 |
|
| 5952 |
dpurdie |
578 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
579 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
580 |
|
| 129 |
ghuddy |
581 |
If rsRep.RecordCount = 0 Then
|
|
|
582 |
With Response
|
|
|
583 |
.write "<tr>"
|
|
|
584 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
585 |
.write "</tr>"
|
|
|
586 |
End With
|
|
|
587 |
End If
|
|
|
588 |
|
|
|
589 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
590 |
' -------- GROUP BY RTAG_ID -----------------
|
|
|
591 |
If CDbl(currRtag_id) <> CDbl(rsRep("rtag_id")) Then
|
|
|
592 |
%>
|
|
|
593 |
<tr>
|
|
|
594 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
595 |
<td></td>
|
|
|
596 |
</tr>
|
|
|
597 |
<tr>
|
|
|
598 |
<td colspan="4" nowrap class="body_scol"><%=rsRep("proj_name") &" > "& rsRep("rtag_name")%></td>
|
|
|
599 |
</tr>
|
|
|
600 |
<%
|
|
|
601 |
currRtag_id = CDbl(rsRep("rtag_id"))
|
|
|
602 |
End If
|
|
|
603 |
' -------- END GROUP ------------------------
|
|
|
604 |
%>
|
|
|
605 |
<tr>
|
|
|
606 |
<td class="body_row"></td>
|
|
|
607 |
<td nowrap><a href="dependencies.asp?rtag_id=<%=rsRep("rtag_id")%>&pv_id=<%=rsRep("pv_id")%>" class="txt_linked"><%=rsRep("pkg_name")%></a></td>
|
|
|
608 |
<td nowrap><a href="dependencies.asp?rtag_id=<%=rsRep("rtag_id")%>&pv_id=<%=rsRep("pv_id")%>" class="txt_linked"><%=rsRep("pkg_version")%></a></td>
|
|
|
609 |
<td class="body_row"></td>
|
|
|
610 |
</tr>
|
|
|
611 |
<% rsRep.MoveNext
|
|
|
612 |
WEnd
|
|
|
613 |
%>
|
|
|
614 |
<tr>
|
|
|
615 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
616 |
<td></td>
|
|
|
617 |
</tr>
|
|
|
618 |
<tr>
|
|
|
619 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
620 |
</tr>
|
|
|
621 |
</table>
|
|
|
622 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
623 |
<%If parPrint = "" Then%>
|
|
|
624 |
<br>
|
|
|
625 |
<br>
|
|
|
626 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
627 |
<br>
|
|
|
628 |
<%End If%>
|
|
|
629 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
630 |
<%
|
|
|
631 |
rsRep.Close
|
|
|
632 |
Set rsRep = nothing
|
|
|
633 |
End If
|
|
|
634 |
|
| 119 |
ghuddy |
635 |
End Sub
|
|
|
636 |
%>
|
|
|
637 |
<%
|
|
|
638 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
639 |
'==================================================================================
|
| 129 |
ghuddy |
640 |
' Report Name : Current State of Release
|
|
|
641 |
' Description : Show all packages in a release with their state, owner and modifier
|
|
|
642 |
' Form Input : Project, Vesion Tree, Release Label
|
|
|
643 |
' SQL INPUT : rtag_id
|
| 119 |
ghuddy |
644 |
'==================================================================================
|
|
|
645 |
Sub Current_State_of_Release ( SSsection, NNproj_id, NNrtag_id, NNpkg_states )
|
| 129 |
ghuddy |
646 |
Dim Query_String, rsRep
|
|
|
647 |
Const Disallow_All = FALSE
|
|
|
648 |
|
|
|
649 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
650 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
651 |
If NNpkg_states = "" Then NNpkg_states = -1
|
|
|
652 |
|
|
|
653 |
If SSsection = "TITLE" Then
|
|
|
654 |
Response.write "Current State of Release"
|
|
|
655 |
Exit Sub
|
|
|
656 |
End If
|
|
|
657 |
|
|
|
658 |
|
|
|
659 |
If SSsection = "FORM" Then
|
|
|
660 |
%>
|
|
|
661 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
662 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
663 |
<tr>
|
|
|
664 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
665 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
666 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
667 |
</tr>
|
|
|
668 |
<tr>
|
|
|
669 |
<td nowrap class="form_field"> </td>
|
|
|
670 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
671 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
672 |
</tr>
|
|
|
673 |
<tr>
|
|
|
674 |
<td nowrap class="form_field"> </td>
|
|
|
675 |
<td align="right" nowrap class="form_field">Package States</td>
|
|
|
676 |
<td class="form_field" nowrap>
|
|
|
677 |
<span style="border: 1px solid #808080;"> OK <input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_OK%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_OK) ) > 0 Then%>checked<%End If%>></span>
|
|
|
678 |
<span style="border: 1px solid #808080;"><%=enum_imgCritical%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MAJOR%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MAJOR) ) > 0 Then%>checked<%End If%>></span>
|
|
|
679 |
<span style="border: 1px solid #808080;"><%=enum_imgWarning%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MINOR%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MINOR) ) > 0 Then%>checked<%End If%>></span>
|
|
|
680 |
<span style="border: 1px solid #808080;"><%=enum_imgCReady%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MAJOR_READY%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MAJOR_READY) ) > 0 Then%>checked<%End If%>></span>
|
|
|
681 |
<span style="border: 1px solid #808080;"><%=enum_imgWReady%><input type="checkbox" name="FRpkg_state" value="<%=enumPKG_STATE_MINOR_READY%>" <%If InStr( Request("FRpkg_state"), Cstr(enumPKG_STATE_MINOR_READY) ) > 0 Then%>checked<%End If%>></span>
|
|
|
682 |
</td>
|
|
|
683 |
</tr>
|
|
|
684 |
<tr>
|
|
|
685 |
<td nowrap class="form_field"> </td>
|
|
|
686 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
687 |
<td><br>
|
|
|
688 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
689 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
690 |
<input type="hidden" name="action" value="true">
|
|
|
691 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
692 |
</td>
|
|
|
693 |
</tr>
|
|
|
694 |
</form>
|
|
|
695 |
</table>
|
|
|
696 |
<% Exit Sub
|
|
|
697 |
End If
|
|
|
698 |
|
|
|
699 |
|
|
|
700 |
If SSsection = "BODY" Then
|
|
|
701 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
702 |
|
|
|
703 |
Query_String = ReadFile( rootPath & "queries\rep_details_current_status_of_release.sql" )
|
|
|
704 |
Query_String = Replace ( Query_String, "/*PKG_STATES*/", NNpkg_states )
|
|
|
705 |
|
|
|
706 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
707 |
%>
|
|
|
708 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
709 |
<tr>
|
|
|
710 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
711 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
712 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
713 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
714 |
<td width="1%" nowrap class="body_colb">Owner </td>
|
|
|
715 |
<td width="1%" nowrap class="body_colb">Last Modifier </td>
|
|
|
716 |
<td width="1%" nowrap class="body_colb">Added to Release </td>
|
|
|
717 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
718 |
</tr>
|
|
|
719 |
<tr>
|
|
|
720 |
<td colspan="8" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
721 |
</tr>
|
|
|
722 |
<%
|
|
|
723 |
Dim currView_id
|
|
|
724 |
currView_id = -1
|
|
|
725 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| 5952 |
dpurdie |
726 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 129 |
ghuddy |
727 |
|
|
|
728 |
If rsRep.RecordCount = 0 Then
|
|
|
729 |
With Response
|
|
|
730 |
.write "<tr>"
|
|
|
731 |
.write "<td colspan='8' class='body_row'>Found 0 records</td>"
|
|
|
732 |
.write "</tr>"
|
|
|
733 |
End With
|
|
|
734 |
End If
|
|
|
735 |
|
|
|
736 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
737 |
' -------- GROUP BY RTAG_ID -----------------
|
|
|
738 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
739 |
%>
|
|
|
740 |
<tr>
|
|
|
741 |
<td colspan="7" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
742 |
<td></td>
|
|
|
743 |
</tr>
|
|
|
744 |
<tr>
|
|
|
745 |
<td colspan="8" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
746 |
</tr>
|
|
|
747 |
<%
|
|
|
748 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
749 |
End If
|
|
|
750 |
' -------- END GROUP ------------------------
|
|
|
751 |
%>
|
|
|
752 |
<tr>
|
|
|
753 |
<td class="body_row"></td>
|
|
|
754 |
<td><%=DefineStateIcon ( rsRep("pkg_state"), rsRep("dlocked"), NULL, NULL, NULL, NULL )%></td>
|
|
|
755 |
<%If rsRep("dlocked") = "Y" Then%>
|
|
|
756 |
<td align="center" class="form_item"><img src='images/i_locked.gif' width='7' height='10' hspace='6'></td>
|
|
|
757 |
<%Else%>
|
|
|
758 |
<td align="center" class="form_item"><img src='images/spacer.gif' width='7' height='10' hspace='6'></td>
|
|
|
759 |
<%End If%>
|
|
|
760 |
<td nowrap class="body_row"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
| 6612 |
dpurdie |
761 |
<td nowrap><%=emailField(rsRep("owner"),rsRep("owner_email"))%> </td>
|
|
|
762 |
<td nowrap><%=emailField(rsRep("modifier"),rsRep("modifier_email"))%> </td>
|
| 5632 |
dpurdie |
763 |
<td class="body_row"><%=DisplayDate( rsRep("insert_stamp") )%></td>
|
| 129 |
ghuddy |
764 |
<td class="body_row"></td>
|
|
|
765 |
</tr>
|
|
|
766 |
<% rsRep.MoveNext
|
|
|
767 |
WEnd
|
|
|
768 |
%>
|
|
|
769 |
<tr>
|
|
|
770 |
<td colspan="8" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
771 |
</tr>
|
|
|
772 |
</table>
|
|
|
773 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
774 |
<%If parPrint = "" Then%>
|
|
|
775 |
<br>
|
|
|
776 |
<br>
|
|
|
777 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
778 |
<br>
|
|
|
779 |
<%End If%>
|
|
|
780 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
781 |
<%
|
|
|
782 |
rsRep.Close
|
|
|
783 |
Set rsRep = nothing
|
|
|
784 |
End If
|
|
|
785 |
|
| 119 |
ghuddy |
786 |
End Sub
|
|
|
787 |
%>
|
|
|
788 |
<%
|
|
|
789 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
790 |
'==================================================================================
|
| 129 |
ghuddy |
791 |
' Report Name : Find ClearQuest Bugs / Issues Location
|
|
|
792 |
' Description : Locates bugs / issues imported from ClearQuest
|
|
|
793 |
' Form Input : CQ issue Database, CQ issue number list space separated
|
| 119 |
ghuddy |
794 |
'==================================================================================
|
|
|
795 |
Sub Where_Are_Bugs_Located ( SSsection, NNiss_db, SSiss_num_list )
|
|
|
796 |
|
| 129 |
ghuddy |
797 |
If SSsection = "TITLE" Then
|
| 5860 |
dpurdie |
798 |
Response.write "Find Jira or ClearQuest Bugs / Issues Location"
|
| 129 |
ghuddy |
799 |
Exit Sub
|
|
|
800 |
End If
|
|
|
801 |
|
|
|
802 |
If SSsection = "FORM" Then
|
|
|
803 |
%>
|
|
|
804 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
805 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRiss_num_list','Issue Number','R');return document.MM_returnValue">
|
|
|
806 |
<tr>
|
|
|
807 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
| 5860 |
dpurdie |
808 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Issue System</td>
|
| 129 |
ghuddy |
809 |
<td width="100%">
|
|
|
810 |
<select name="FRiss_db" class="form_item">
|
| 5861 |
dpurdie |
811 |
<option value="<%=enumJIRA_DEVI_ID%>" <%If CDbl(NNiss_db) = enumJIRA_DEVI_ID Then%>selected<%End If%>>Jira</option>
|
| 5860 |
dpurdie |
812 |
<option value="<%=enumCLEARQUEST_DEVI_ID%>" <%If CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then%>selected<%End If%>>ClearQuest DEVI</option>
|
| 129 |
ghuddy |
813 |
</select>
|
|
|
814 |
</td>
|
|
|
815 |
</tr>
|
|
|
816 |
<tr>
|
|
|
817 |
<td nowrap class="form_field"> </td>
|
|
|
818 |
<td align="right" nowrap class="form_field" valign="top">Issue Numbers</td>
|
|
|
819 |
<td class="form_txt"><input type="text" name="FRiss_num_list" size="50" class="form_item" value="<%=SSiss_num_list%>"><br>
|
|
|
820 |
HINTS:<br>
|
|
|
821 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br>
|
|
|
822 |
- Use space separated issue numbers for multiple search.</td>
|
|
|
823 |
</tr>
|
|
|
824 |
<tr>
|
|
|
825 |
<td nowrap class="form_field"> </td>
|
|
|
826 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
827 |
<td><br>
|
|
|
828 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
829 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
830 |
<input type="hidden" name="action" value="true">
|
|
|
831 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
832 |
</td>
|
|
|
833 |
</tr>
|
|
|
834 |
</form>
|
|
|
835 |
</table>
|
|
|
836 |
<% Exit Sub
|
|
|
837 |
End If
|
|
|
838 |
|
|
|
839 |
|
|
|
840 |
If SSsection = "BODY" Then
|
|
|
841 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
842 |
|
| 5860 |
dpurdie |
843 |
If CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then
|
|
|
844 |
Call Where_Are_Bugs_Located_ClearQuest( SSsection, NNiss_db, SSiss_num_list)
|
|
|
845 |
ElseIf CDbl(NNiss_db) = enumJIRA_DEVI_ID Then
|
|
|
846 |
Call Where_Are_Bugs_Located_Jira (SSsection, NNiss_db, SSiss_num_list)
|
|
|
847 |
End If
|
|
|
848 |
%>
|
|
|
849 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
850 |
<%If parPrint = "" Then%>
|
|
|
851 |
<br>
|
|
|
852 |
<br>
|
|
|
853 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
854 |
<br>
|
|
|
855 |
<%End If%>
|
|
|
856 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
857 |
<%
|
|
|
858 |
End If
|
| 129 |
ghuddy |
859 |
|
| 5860 |
dpurdie |
860 |
End Sub
|
| 5861 |
dpurdie |
861 |
'-------------------------------------------------
|
|
|
862 |
' Function: Where_Are_Bugs_Located_Jira
|
|
|
863 |
' Description: Body of the report for Jira Issues
|
|
|
864 |
'
|
| 5860 |
dpurdie |
865 |
Sub Where_Are_Bugs_Located_Jira ( SSsection, NNiss_db, SSiss_num_list )
|
|
|
866 |
Dim Query_String, rsRep
|
|
|
867 |
Dim SSsql, issARR, num_item, issNumDict, rsCQ, recCount, maxRecCount
|
|
|
868 |
Set issNumDict = CreateObject("Scripting.Dictionary")
|
| 129 |
ghuddy |
869 |
|
| 5860 |
dpurdie |
870 |
'---- Find Issue numbers in JIRA ----
|
|
|
871 |
SSsql = _
|
|
|
872 |
" select distinct ISS_KEY"&_
|
|
|
873 |
" FROM release_manager.JIRA_ISSUES"&_
|
|
|
874 |
" WHERE "
|
| 129 |
ghuddy |
875 |
|
| 5860 |
dpurdie |
876 |
'---- Split multiple search ----
|
|
|
877 |
SSiss_num_list = Trim(SSiss_num_list)
|
|
|
878 |
If InStr( SSiss_num_list, " " ) > 0 Then
|
|
|
879 |
' space separator found
|
|
|
880 |
issARR = Split ( SSiss_num_list, " ")
|
| 129 |
ghuddy |
881 |
|
| 5860 |
dpurdie |
882 |
For Each num_item In issARR
|
|
|
883 |
If num_item <> "" Then
|
|
|
884 |
SSsql = SSsql & " ISS_KEY LIKE ('%"& Replace( SQLstring(num_item), "*", "%" ) & "') OR"
|
|
|
885 |
End If
|
|
|
886 |
Next
|
| 129 |
ghuddy |
887 |
|
| 5860 |
dpurdie |
888 |
SSsql = Left ( SSsql, Len(SSsql) - 2 ) ' Removes last OR
|
| 129 |
ghuddy |
889 |
|
| 5860 |
dpurdie |
890 |
Else
|
|
|
891 |
SSsql = SSsql & " ISS_KEY LIKE ('%"& Replace( SQLstring(SSiss_num_list), "*", "%") &"')"
|
| 129 |
ghuddy |
892 |
|
| 5860 |
dpurdie |
893 |
End If
|
| 129 |
ghuddy |
894 |
|
| 5860 |
dpurdie |
895 |
Set rsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
|
| 129 |
ghuddy |
896 |
|
| 5860 |
dpurdie |
897 |
' Get find results from CQ
|
|
|
898 |
recCount = 1
|
|
|
899 |
maxRecCount = 1000
|
|
|
900 |
issNumDict.ADD "'-1'", "-1" ' take care of no results
|
|
|
901 |
While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (recCount < maxRecCount))
|
|
|
902 |
issNumDict.ADD "'" & Cstr(rsCQ("ISS_KEY")) & "'", "1"
|
|
|
903 |
recCount = recCount + 1
|
|
|
904 |
rsCQ.MoveNext
|
|
|
905 |
WEnd
|
| 129 |
ghuddy |
906 |
|
| 5860 |
dpurdie |
907 |
rsCQ.Close
|
|
|
908 |
Set rsCQ = nothing
|
| 129 |
ghuddy |
909 |
|
| 5860 |
dpurdie |
910 |
Query_String = ReadFile( rootPath & "queries\rep_where_are_jirabugs_located.sql" )
|
|
|
911 |
Query_String = Replace ( Query_String, "/*ISS_ID_LIST*/", Join( issNumDict.Keys, ",") )
|
| 129 |
ghuddy |
912 |
|
| 5860 |
dpurdie |
913 |
%>
|
|
|
914 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
915 |
<tr>
|
|
|
916 |
<td width="1%" nowrap class="body_colb">Issue Number </td>
|
| 5861 |
dpurdie |
917 |
<td width="1%" nowrap class="body_colb"> </td>
|
| 5860 |
dpurdie |
918 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
| 5861 |
dpurdie |
919 |
<td width="1%" nowrap class="body_colb">Currently used Release </td>
|
| 5860 |
dpurdie |
920 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
921 |
</tr>
|
|
|
922 |
<tr>
|
|
|
923 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
924 |
</tr>
|
|
|
925 |
<%
|
|
|
926 |
Dim currIss_id
|
|
|
927 |
currIss_id = -1
|
| 129 |
ghuddy |
928 |
|
| 5860 |
dpurdie |
929 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
930 |
If rsRep.RecordCount = 0 Then
|
|
|
931 |
With Response
|
|
|
932 |
.write "<tr>"
|
|
|
933 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
934 |
.write "</tr>"
|
|
|
935 |
End With
|
|
|
936 |
End If
|
| 129 |
ghuddy |
937 |
|
| 5860 |
dpurdie |
938 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
939 |
' -------- GROUP BY ISS_KEY -----------------
|
|
|
940 |
If Cstr(currIss_id) <> Cstr(rsRep("iss_key")) Then
|
|
|
941 |
%>
|
| 5861 |
dpurdie |
942 |
<% ' -- line between issues %>
|
| 5860 |
dpurdie |
943 |
<tr>
|
|
|
944 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
945 |
<td></td>
|
|
|
946 |
</tr>
|
| 5861 |
dpurdie |
947 |
<% ' -- Start of a new issue %>
|
| 5860 |
dpurdie |
948 |
<tr>
|
| 5861 |
dpurdie |
949 |
<td nowrap valign="top">
|
|
|
950 |
<a href="<%=Application("JIRA_URL") & "/browse/" & rsRep("iss_key")%>" class="txt_linked" target="_blank" title="Browse Jira Issue">
|
|
|
951 |
<img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle">
|
|
|
952 |
<%=rsRep("iss_key")%></a>
|
|
|
953 |
</td>
|
| 5860 |
dpurdie |
954 |
<%
|
|
|
955 |
currIss_id = Cstr(rsRep("iss_key"))
|
| 5861 |
dpurdie |
956 |
Else %>
|
|
|
957 |
<td nowrap class="body_row" valign="top"></td>
|
|
|
958 |
<% End If
|
| 5860 |
dpurdie |
959 |
' -------- END GROUP ------------------------
|
|
|
960 |
%>
|
| 5861 |
dpurdie |
961 |
<td align="left"><img src='images/spacer.gif' width='7' height='7' hspace='6'></td>
|
|
|
962 |
<td nowrap align="left" class="body_row" valign="top">
|
|
|
963 |
<a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>#ISSUES" class="txt_linked" target="_blank" title="Open version in new window">
|
|
|
964 |
<%=rsRep("pkg_name") &" "& rsRep("pkg_version")%>
|
|
|
965 |
</a>
|
|
|
966 |
</td>
|
|
|
967 |
<td>
|
| 5860 |
dpurdie |
968 |
<%
|
| 5861 |
dpurdie |
969 |
Query_String = "select * from release_content rc, release_tags rt" &_
|
|
|
970 |
" where rc.rtag_id = rt.rtag_id and pv_id = "&rsRep("pv_id")
|
|
|
971 |
Set rsQry = OraDatabase.DbCreateDynaset( Query_String , 0 )
|
|
|
972 |
If rsQry.RecordCount <> 0 Then
|
|
|
973 |
%>
|
|
|
974 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
975 |
<%
|
|
|
976 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
|
|
977 |
%>
|
|
|
978 |
<tr>
|
|
|
979 |
<td nowrap align="left" class="body_row" valign="top">
|
|
|
980 |
<a href="fixed_issues.asp?rtag_id=<%=rsQry("rtag_id")%>&pv_id=<%=rsQry("pv_id")%>#ISSUES" class="txt_linked" target="_blank">
|
|
|
981 |
<%=rsQry("rtag_name")%>
|
|
|
982 |
</a>
|
|
|
983 |
</td>
|
|
|
984 |
</tr>
|
|
|
985 |
<%
|
|
|
986 |
rsQry.MoveNext()
|
|
|
987 |
WEnd
|
|
|
988 |
%>
|
|
|
989 |
</table>
|
|
|
990 |
<%
|
|
|
991 |
End If
|
| 5860 |
dpurdie |
992 |
rsQry.Close()
|
|
|
993 |
Set rsQry = Nothing
|
|
|
994 |
%>
|
| 5861 |
dpurdie |
995 |
</td>
|
| 5860 |
dpurdie |
996 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
|
|
997 |
</tr>
|
|
|
998 |
<% rsRep.MoveNext
|
|
|
999 |
WEnd
|
|
|
1000 |
%>
|
|
|
1001 |
<tr>
|
|
|
1002 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1003 |
</tr>
|
|
|
1004 |
</table>
|
|
|
1005 |
<%
|
|
|
1006 |
rsRep.Close
|
|
|
1007 |
Set rsRep = nothing
|
| 119 |
ghuddy |
1008 |
End Sub
|
| 5860 |
dpurdie |
1009 |
|
| 5861 |
dpurdie |
1010 |
'-------------------------------------------------
|
|
|
1011 |
' Function: Where_Are_Bugs_Located_ClearQuest
|
|
|
1012 |
' Description: Body of the report for ClearQuest Issues
|
|
|
1013 |
'
|
| 5860 |
dpurdie |
1014 |
Sub Where_Are_Bugs_Located_ClearQuest ( SSsection, NNiss_db, SSiss_num_list )
|
|
|
1015 |
Dim Query_String, rsRep
|
|
|
1016 |
Dim SSsql, issARR, num_item, iss_num_col, issNumDict, rsCQ, recCount, maxRecCount
|
|
|
1017 |
Set issNumDict = CreateObject("Scripting.Dictionary")
|
|
|
1018 |
|
|
|
1019 |
'---- Find Issue numbers in ClearQuest ----
|
|
|
1020 |
iss_num_col = "new_num"
|
|
|
1021 |
SSsql = _
|
|
|
1022 |
" SELECT si.dbid AS iss_id, si."& iss_num_col &" AS iss_num"&_
|
|
|
1023 |
" FROM release_manager.cq_software_issue si"&_
|
|
|
1024 |
" WHERE "
|
|
|
1025 |
|
|
|
1026 |
'---- Split multiple search ----
|
|
|
1027 |
SSiss_num_list = Trim(SSiss_num_list)
|
|
|
1028 |
If InStr( SSiss_num_list, " " ) > 0 Then
|
|
|
1029 |
' space separator found
|
|
|
1030 |
issARR = Split ( SSiss_num_list, " ")
|
|
|
1031 |
|
|
|
1032 |
For Each num_item In issARR
|
|
|
1033 |
If num_item <> "" Then
|
|
|
1034 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(num_item), "*", "%" ) &"%') OR"
|
|
|
1035 |
End If
|
|
|
1036 |
Next
|
|
|
1037 |
|
|
|
1038 |
SSsql = Left ( SSsql, Len(SSsql) - 2 ) ' Removes last OR
|
|
|
1039 |
|
|
|
1040 |
Else
|
|
|
1041 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(SSiss_num_list), "*", "%") &"%')"
|
|
|
1042 |
|
|
|
1043 |
End If
|
|
|
1044 |
Set rsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
|
|
|
1045 |
|
|
|
1046 |
' Get find results from CQ
|
|
|
1047 |
recCount = 1
|
|
|
1048 |
maxRecCount = 1000
|
|
|
1049 |
issNumDict.ADD "-1", "-1" ' take care of no results
|
|
|
1050 |
While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (recCount < maxRecCount))
|
|
|
1051 |
issNumDict.ADD Cstr(rsCQ("iss_id")), Cstr(rsCQ("iss_num"))
|
|
|
1052 |
recCount = recCount + 1
|
|
|
1053 |
rsCQ.MoveNext
|
|
|
1054 |
WEnd
|
|
|
1055 |
|
|
|
1056 |
rsCQ.Close
|
|
|
1057 |
Set rsCQ = nothing
|
|
|
1058 |
|
|
|
1059 |
Query_String = ReadFile( rootPath & "queries\rep_where_are_bugs_located.sql" )
|
|
|
1060 |
Query_String = Replace ( Query_String, "/*ISS_DB*/", NNiss_db )
|
|
|
1061 |
Query_String = Replace ( Query_String, "/*ISS_ID_LIST*/", Join( issNumDict.Keys, ",") )
|
|
|
1062 |
|
|
|
1063 |
%>
|
|
|
1064 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1065 |
<tr>
|
|
|
1066 |
<td width="1%" nowrap class="body_colb">Issue Number </td>
|
|
|
1067 |
<td width="1%" nowrap class="body_colb">Fixed</td>
|
|
|
1068 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
1069 |
<td width="1%" nowrap class="body_colb">Notes </td>
|
|
|
1070 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
1071 |
</tr>
|
|
|
1072 |
<tr>
|
|
|
1073 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1074 |
</tr>
|
|
|
1075 |
<%
|
|
|
1076 |
Dim currIss_id
|
|
|
1077 |
currIss_id = -1
|
|
|
1078 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1079 |
|
|
|
1080 |
If rsRep.RecordCount = 0 Then
|
|
|
1081 |
With Response
|
|
|
1082 |
.write "<tr>"
|
|
|
1083 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
1084 |
.write "</tr>"
|
|
|
1085 |
End With
|
|
|
1086 |
End If
|
|
|
1087 |
|
|
|
1088 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1089 |
' -------- GROUP BY ISS_ID -----------------
|
|
|
1090 |
If Cstr(currIss_id) <> Cstr(rsRep("iss_id")) Then
|
|
|
1091 |
%>
|
|
|
1092 |
<tr>
|
|
|
1093 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1094 |
<td></td>
|
|
|
1095 |
</tr>
|
|
|
1096 |
<tr>
|
| 5861 |
dpurdie |
1097 |
<td nowrap>
|
|
|
1098 |
<a href="javascript:;" onClick="MM_openVixIFrame('_wform_issues_details.asp?iss_db=<%=NNiss_db%>&iss_id=<%= rsRep("iss_id")%>','Issue Details','resizable=yes,width=580,height=500')" class="txt_linked">
|
|
|
1099 |
<img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" title="See issue details.">
|
|
|
1100 |
<%=issNumDict.Item ( Cstr ( rsRep("iss_id") ) )%></a>
|
|
|
1101 |
</td>
|
|
|
1102 |
|
| 5860 |
dpurdie |
1103 |
<td colspan='5' class="body_scol"></td>
|
|
|
1104 |
</tr>
|
|
|
1105 |
<%
|
|
|
1106 |
currIss_id = Cstr(rsRep("iss_id"))
|
|
|
1107 |
End If
|
|
|
1108 |
' -------- END GROUP ------------------------
|
|
|
1109 |
%>
|
|
|
1110 |
<tr>
|
|
|
1111 |
<td nowrap class="body_row" valign="top"></td>
|
|
|
1112 |
<%If CDbl(rsRep("iss_state")) = enumISSUES_STATE_FIXED Then%>
|
|
|
1113 |
<td align="left"><img src="images/i_tick.gif" width="7" height="7" hspace="6"></td>
|
|
|
1114 |
<%Else%>
|
|
|
1115 |
<td align="left"><img src='images/spacer.gif' width='7' height='7' hspace='6'></td>
|
|
|
1116 |
<%End If%>
|
|
|
1117 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" title="Find this package."></td>
|
|
|
1118 |
<%
|
|
|
1119 |
Set rsQry = OraDatabase.DbCreateDynaset( "select * from release_content rc, release_tags rt where rc.rtag_id = rt.rtag_id and "&_
|
|
|
1120 |
" pv_id ="&rsRep("pv_id"), 0 )
|
|
|
1121 |
|
|
|
1122 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
|
|
1123 |
%>
|
|
|
1124 |
<tr>
|
|
|
1125 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
|
|
1126 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
|
|
1127 |
<td nowrap align="left" class="body_row" valign="top"><a href="fixed_issues.asp?rtag_id=<%=rsQry("rtag_id")%>&pv_id=<%=rsQry("pv_id")%>" class="txt_linked" target="_blank"><%=rsQry("rtag_name")%></a></td>
|
|
|
1128 |
</tr>
|
|
|
1129 |
<%
|
|
|
1130 |
rsQry.MoveNext()
|
|
|
1131 |
WEnd
|
|
|
1132 |
rsQry.Close()
|
|
|
1133 |
Set rsQry = Nothing
|
|
|
1134 |
%>
|
|
|
1135 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("notes")%></td>
|
|
|
1136 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
|
|
1137 |
</tr>
|
|
|
1138 |
<% rsRep.MoveNext
|
|
|
1139 |
WEnd
|
|
|
1140 |
%>
|
|
|
1141 |
<tr>
|
|
|
1142 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1143 |
</tr>
|
|
|
1144 |
</table>
|
|
|
1145 |
<%
|
|
|
1146 |
rsRep.Close
|
|
|
1147 |
Set rsRep = nothing
|
|
|
1148 |
End Sub
|
|
|
1149 |
|
| 119 |
ghuddy |
1150 |
%>
|
|
|
1151 |
<%
|
|
|
1152 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1153 |
'==================================================================================
|
| 5504 |
dpurdie |
1154 |
' Report Name : Find a Package
|
| 129 |
ghuddy |
1155 |
' Description : Locate a package in Release Manager
|
| 5504 |
dpurdie |
1156 |
' Form Input : Package Name, version extension
|
| 119 |
ghuddy |
1157 |
'==================================================================================
|
|
|
1158 |
Sub Find_Package ( SSsection, SSpkg_name, SSv_ext )
|
| 129 |
ghuddy |
1159 |
Dim Query_String, rsRep, oRegExp
|
|
|
1160 |
|
|
|
1161 |
|
|
|
1162 |
If SSsection = "TITLE" Then
|
|
|
1163 |
Response.write "Find a Package"
|
|
|
1164 |
Exit Sub
|
|
|
1165 |
End If
|
|
|
1166 |
|
|
|
1167 |
|
|
|
1168 |
If SSsection = "FORM" Then
|
|
|
1169 |
%>
|
|
|
1170 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1171 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRpkg_name','Package Name','R');return document.MM_returnValue">
|
|
|
1172 |
<tr>
|
|
|
1173 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
1174 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Package Name</td>
|
|
|
1175 |
<td class="form_txt"><input type="text" name="FRpkg_name" size="30" class="form_item" value="<%=SSpkg_name%>"><br>
|
|
|
1176 |
HINTS:<br>
|
|
|
1177 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br><br></td>
|
|
|
1178 |
</tr>
|
|
|
1179 |
<tr>
|
|
|
1180 |
<td nowrap class="form_field"> </td>
|
|
|
1181 |
<td align="right" nowrap class="form_field" valign="top">Version Extension (optional)</td>
|
|
|
1182 |
<td class="form_txt"><input type="text" name="FRv_ext" size="10" class="form_item" value="<%=SSv_ext%>"><br>
|
| 5504 |
dpurdie |
1183 |
e.g. .mas or .cr or blank etc.</td>
|
| 129 |
ghuddy |
1184 |
</tr>
|
|
|
1185 |
<tr>
|
|
|
1186 |
<td nowrap class="form_field"> </td>
|
|
|
1187 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1188 |
<td><br>
|
|
|
1189 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1190 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1191 |
<input type="hidden" name="action" value="true">
|
|
|
1192 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1193 |
</td>
|
|
|
1194 |
</tr>
|
|
|
1195 |
</form>
|
|
|
1196 |
</table>
|
|
|
1197 |
<% Exit Sub
|
|
|
1198 |
End If
|
|
|
1199 |
|
|
|
1200 |
|
|
|
1201 |
If SSsection = "BODY" Then
|
|
|
1202 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1203 |
|
|
|
1204 |
If SSpkg_name = "" Then SSpkg_name = "%"
|
|
|
1205 |
If SSv_ext = "" Then SSv_ext = "%"
|
|
|
1206 |
If Request("withwcard") <> "" Then SSpkg_name = "%"& Replace( SQLstring(SSpkg_name), "*", "") &"%" 'Place wild card automatically
|
|
|
1207 |
|
|
|
1208 |
|
|
|
1209 |
|
|
|
1210 |
' -- Check if this is PV_ID
|
|
|
1211 |
Set oRegExp = New RegExp
|
|
|
1212 |
|
|
|
1213 |
oRegExp.Global = False 'Find only first match
|
|
|
1214 |
oRegExp.Pattern = "\D" 'Match number only
|
|
|
1215 |
|
|
|
1216 |
|
|
|
1217 |
If NOT oRegExp.Test(Request("FRpkg_name")) Then
|
|
|
1218 |
Query_String = ReadFile( rootPath & "queries\rep_find_package_by_pv_id.sql" )
|
|
|
1219 |
Query_String = Replace ( Query_String, "/*PV_ID*/", SQLstring(Request("FRpkg_name") ) )
|
|
|
1220 |
|
|
|
1221 |
Else
|
|
|
1222 |
Query_String = ReadFile( rootPath & "queries\rep_find_package.sql" )
|
|
|
1223 |
Query_String = Replace ( Query_String, "/*PKG_NAME*/", Replace( SQLstring(SSpkg_name), "*", "%") )
|
|
|
1224 |
Query_String = Replace ( Query_String, "/*V_EXT*/", Replace( SQLstring(SSv_ext), "*", "%") )
|
|
|
1225 |
End If
|
|
|
1226 |
%>
|
|
|
1227 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1228 |
<tr>
|
|
|
1229 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
1230 |
<td width="1%" nowrap class="body_colb">Location</td>
|
|
|
1231 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
1232 |
</tr>
|
|
|
1233 |
<tr>
|
|
|
1234 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1235 |
</tr>
|
|
|
1236 |
<%
|
| 5504 |
dpurdie |
1237 |
Dim currPv_id, currVext
|
|
|
1238 |
currPv_id = -2
|
|
|
1239 |
currVext = ""
|
| 129 |
ghuddy |
1240 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1241 |
|
|
|
1242 |
If rsRep.RecordCount = 0 Then
|
|
|
1243 |
With Response
|
|
|
1244 |
.write "<tr>"
|
|
|
1245 |
.write "<td colspan='3' class='body_row'>Found 0 records</td>"
|
|
|
1246 |
.write "</tr>"
|
|
|
1247 |
End With
|
|
|
1248 |
End If
|
|
|
1249 |
|
|
|
1250 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1251 |
' -------- GROUP BY Package Version -----------------
|
| 5504 |
dpurdie |
1252 |
If (Cstr(currPv_id) <> Cstr(rsRep("pv_id"))) OR (currVext <> rsRep("V_EXT")) Then
|
| 129 |
ghuddy |
1253 |
%>
|
|
|
1254 |
<tr>
|
|
|
1255 |
<td colspan="2" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1256 |
<td></td>
|
|
|
1257 |
</tr>
|
|
|
1258 |
<tr>
|
|
|
1259 |
<%If Request("withwcard") <> "" Then%>
|
|
|
1260 |
<%' Highlight results for package search from index page%>
|
|
|
1261 |
<td nowrap class="body_scol"><%=Highlight_Substring ( rsRep("pkg_name"), Replace( SQLstring(SSpkg_name), "%", "") ) &" "& rsRep("pkg_version")%></td>
|
|
|
1262 |
<%Else%>
|
|
|
1263 |
<td nowrap class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
|
|
1264 |
<%End If%>
|
|
|
1265 |
<td colspan='2' class="body_scol"></td>
|
|
|
1266 |
</tr>
|
|
|
1267 |
<%
|
|
|
1268 |
currPv_id = Cstr(rsRep("pv_id"))
|
| 5504 |
dpurdie |
1269 |
currVext = rsRep("V_EXT")
|
| 129 |
ghuddy |
1270 |
End If
|
|
|
1271 |
' -------- END GROUP ------------------------
|
|
|
1272 |
%>
|
|
|
1273 |
<%If NOT IsNull(rsRep("proj_name")) Then%>
|
|
|
1274 |
<tr>
|
|
|
1275 |
<td class="body_row"></td>
|
|
|
1276 |
<td nowrap class="body_row" valign="top"><%=rsRep("proj_name") &" > "& rsRep("vtree_name") &" > "& rsRep("rtag_name") &" > <a href='dependencies.asp?pv_id="& rsRep("pv_id") &"&rtag_id="& rsRep("rtag_id") &"' class='txt_linked'>"& rsRep("pkg_name") &" "& rsRep("pkg_version") &"</a>"%></td>
|
|
|
1277 |
<td class="body_row"></td>
|
|
|
1278 |
</tr>
|
|
|
1279 |
<%Else%>
|
|
|
1280 |
<tr>
|
|
|
1281 |
<td class="body_row"></td>
|
|
|
1282 |
<td class="body_row"></td>
|
|
|
1283 |
<td class="body_row"></td>
|
|
|
1284 |
</tr>
|
|
|
1285 |
<%End If%>
|
|
|
1286 |
<% rsRep.MoveNext
|
|
|
1287 |
WEnd
|
|
|
1288 |
%>
|
|
|
1289 |
<tr>
|
|
|
1290 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1291 |
</tr>
|
|
|
1292 |
</table>
|
|
|
1293 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1294 |
<%If parPrint = "" Then%>
|
|
|
1295 |
<br>
|
|
|
1296 |
<br>
|
|
|
1297 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1298 |
<br>
|
|
|
1299 |
<%End If%>
|
|
|
1300 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1301 |
<%
|
|
|
1302 |
rsRep.Close
|
|
|
1303 |
Set rsRep = nothing
|
|
|
1304 |
End If
|
|
|
1305 |
|
| 119 |
ghuddy |
1306 |
End Sub
|
|
|
1307 |
%>
|
|
|
1308 |
<%
|
|
|
1309 |
'==================================================================================
|
| 129 |
ghuddy |
1310 |
' Report Name : Find Package Version History
|
|
|
1311 |
' Description : Locate all package versions and their current location
|
|
|
1312 |
' Form Input : Package Name, version extension
|
| 119 |
ghuddy |
1313 |
'==================================================================================
|
|
|
1314 |
Sub Find_Package_Version_History ( SSsection, SSpkg_name, SSv_ext )
|
| 129 |
ghuddy |
1315 |
Dim Query_String, rsRep
|
|
|
1316 |
|
|
|
1317 |
|
|
|
1318 |
If SSsection = "TITLE" Then
|
|
|
1319 |
Response.write "Find Package Version History"
|
|
|
1320 |
Exit Sub
|
|
|
1321 |
End If
|
|
|
1322 |
|
|
|
1323 |
|
|
|
1324 |
If SSsection = "FORM" Then
|
|
|
1325 |
%>
|
|
|
1326 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1327 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRpkg_name','Package Name','R');return document.MM_returnValue">
|
|
|
1328 |
<tr>
|
|
|
1329 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
1330 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Package Name</td>
|
|
|
1331 |
<td class="form_txt"><input type="text" name="FRpkg_name" size="30" class="form_item" value="<%=SSpkg_name%>"><br>
|
|
|
1332 |
HINTS:<br>
|
|
|
1333 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br><br></td>
|
|
|
1334 |
</tr>
|
|
|
1335 |
<tr>
|
|
|
1336 |
<td nowrap class="form_field"> </td>
|
|
|
1337 |
<td align="right" nowrap class="form_field" valign="top">Version Extension (optional)</td>
|
|
|
1338 |
<td class="form_txt"><input type="text" name="FRv_ext" size="10" class="form_item" value="<%=SSv_ext%>"><br>
|
|
|
1339 |
e.g. .mas or .lvs or .oso or blank etc.</td>
|
|
|
1340 |
</tr>
|
|
|
1341 |
<tr>
|
|
|
1342 |
<td nowrap class="form_field"> </td>
|
|
|
1343 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1344 |
<td><br>
|
|
|
1345 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1346 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1347 |
<input type="hidden" name="action" value="true">
|
|
|
1348 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1349 |
</td>
|
|
|
1350 |
</tr>
|
|
|
1351 |
</form>
|
|
|
1352 |
</table>
|
|
|
1353 |
<% Exit Sub
|
|
|
1354 |
End If
|
|
|
1355 |
|
|
|
1356 |
|
|
|
1357 |
If SSsection = "BODY" Then
|
|
|
1358 |
Const img_Official = "<img src='images/i_locked.gif' width='7' height='10' hspace='3' align='absmiddle'>"
|
|
|
1359 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1360 |
|
|
|
1361 |
If SSpkg_name = "" Then SSpkg_name = "%"
|
|
|
1362 |
If SSv_ext = "" Then SSv_ext = "%"
|
|
|
1363 |
|
|
|
1364 |
Query_String = ReadFile( rootPath & "queries\rep_package_version_history.sql" )
|
|
|
1365 |
Query_String = Replace ( Query_String, "/*PKG_NAME*/", Replace( SQLstring(SSpkg_name), "*", "%") )
|
|
|
1366 |
Query_String = Replace ( Query_String, "/*V_EXT*/", Replace( SQLstring(SSv_ext), "*", "%") )
|
|
|
1367 |
%>
|
|
|
1368 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1369 |
<tr>
|
|
|
1370 |
<td width="1%" nowrap class="body_colb" align="right">Official<%=img_Official%></td>
|
|
|
1371 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
1372 |
<td width="1%" nowrap class="body_colb">Location</td>
|
|
|
1373 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
1374 |
</tr>
|
|
|
1375 |
<tr>
|
|
|
1376 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1377 |
</tr>
|
|
|
1378 |
<%
|
|
|
1379 |
Dim currPv_id
|
|
|
1380 |
currPv_id = -1
|
|
|
1381 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
1382 |
|
|
|
1383 |
If rsRep.RecordCount = 0 Then
|
|
|
1384 |
With Response
|
|
|
1385 |
.write "<tr>"
|
|
|
1386 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
1387 |
.write "</tr>"
|
|
|
1388 |
End With
|
|
|
1389 |
End If
|
|
|
1390 |
|
|
|
1391 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1392 |
' -------- GROUP BY Package Version -----------------
|
|
|
1393 |
If Cstr(currPv_id) <> Cstr(rsRep("pv_id")) Then
|
|
|
1394 |
%>
|
|
|
1395 |
<tr>
|
|
|
1396 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1397 |
<td></td>
|
|
|
1398 |
</tr>
|
|
|
1399 |
<tr>
|
|
|
1400 |
<td align="right"><%If rsRep("dlocked") = "Y" Then%><%=img_Official%><%End If%></td>
|
|
|
1401 |
<td nowrap class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
|
|
1402 |
<td colspan='2' class="body_scol"></td>
|
|
|
1403 |
</tr>
|
|
|
1404 |
<%
|
|
|
1405 |
currPv_id = Cstr(rsRep("pv_id"))
|
|
|
1406 |
End If
|
|
|
1407 |
' -------- END GROUP ------------------------
|
|
|
1408 |
%>
|
|
|
1409 |
<tr>
|
|
|
1410 |
<td class="body_row"></td>
|
|
|
1411 |
<td class="body_row"></td>
|
|
|
1412 |
<%If IsNull(rsRep("rtag_id")) Then%>
|
|
|
1413 |
<td nowrap class="body_txt_gray" valign="top">Not Used!</td>
|
|
|
1414 |
<%Else%>
|
|
|
1415 |
<td nowrap class="body_row" valign="top"><%=rsRep("proj_name") &" > "& rsRep("vtree_name") &" > "& rsRep("rtag_name") &" > <a href='dependencies.asp?pv_id="& rsRep("pv_id") &"&rtag_id="& rsRep("rtag_id") &"' class='txt_linked'>"& rsRep("pkg_name") &" "& rsRep("pkg_version") &"</a>"%></td>
|
|
|
1416 |
<%End If%>
|
|
|
1417 |
<td class="body_row"></td>
|
|
|
1418 |
</tr>
|
|
|
1419 |
<% rsRep.MoveNext
|
|
|
1420 |
WEnd
|
|
|
1421 |
%>
|
|
|
1422 |
<tr>
|
|
|
1423 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1424 |
</tr>
|
|
|
1425 |
</table>
|
|
|
1426 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1427 |
<%If parPrint = "" Then%>
|
|
|
1428 |
<br>
|
|
|
1429 |
<br>
|
|
|
1430 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1431 |
<br>
|
|
|
1432 |
<%End If%>
|
|
|
1433 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1434 |
<%
|
|
|
1435 |
rsRep.Close
|
|
|
1436 |
Set rsRep = nothing
|
|
|
1437 |
End If
|
|
|
1438 |
|
| 119 |
ghuddy |
1439 |
End Sub
|
|
|
1440 |
%>
|
|
|
1441 |
<%
|
|
|
1442 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1443 |
'==================================================================================
|
| 129 |
ghuddy |
1444 |
' Report Name : Obsolete Packages
|
|
|
1445 |
' Description : List packages that are not used (exclude products)
|
|
|
1446 |
' INPUT : Project, Vesion Tree, Release Label
|
| 119 |
ghuddy |
1447 |
'==================================================================================
|
|
|
1448 |
Sub Obsolete_Packages ( SSsection, NNproj_id, NNrtag_id )
|
| 129 |
ghuddy |
1449 |
Dim Query_String, rsRep
|
|
|
1450 |
Const Allow_All = TRUE
|
|
|
1451 |
Const Disallow_All = FALSE
|
|
|
1452 |
|
|
|
1453 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
1454 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
1455 |
|
|
|
1456 |
If SSsection = "TITLE" Then
|
|
|
1457 |
Response.write "Unused Packages"
|
|
|
1458 |
Exit Sub
|
|
|
1459 |
End If
|
|
|
1460 |
|
|
|
1461 |
|
|
|
1462 |
If SSsection = "FORM" Then
|
|
|
1463 |
%>
|
|
|
1464 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1465 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1466 |
<tr>
|
|
|
1467 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1468 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1469 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
1470 |
</tr>
|
|
|
1471 |
<tr>
|
|
|
1472 |
<td nowrap class="form_field"> </td>
|
|
|
1473 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1474 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
1475 |
</tr>
|
|
|
1476 |
<tr>
|
|
|
1477 |
<td nowrap class="form_field"> </td>
|
|
|
1478 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1479 |
<td><br>
|
|
|
1480 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1481 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1482 |
<input type="hidden" name="action" value="true">
|
|
|
1483 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1484 |
</td>
|
|
|
1485 |
</tr>
|
|
|
1486 |
</form>
|
|
|
1487 |
</table>
|
|
|
1488 |
<% Exit Sub
|
|
|
1489 |
End If
|
|
|
1490 |
|
|
|
1491 |
|
|
|
1492 |
If SSsection = "BODY" Then
|
|
|
1493 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1494 |
|
|
|
1495 |
Query_String = ReadFile( rootPath & "queries\rep_obsolete_packages.sql" )
|
|
|
1496 |
|
|
|
1497 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 6123 |
dpurdie |
1498 |
OraDatabase.Parameters.Add "SMODE", 1, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 129 |
ghuddy |
1499 |
%>
|
|
|
1500 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1501 |
<tr>
|
|
|
1502 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
1503 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
1504 |
<td width="1%" nowrap class="body_colb">Released </td>
|
|
|
1505 |
<td width="1%" nowrap class="body_colb">Added to Release </td>
|
|
|
1506 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
1507 |
</tr>
|
|
|
1508 |
<tr>
|
|
|
1509 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1510 |
</tr>
|
|
|
1511 |
<%
|
|
|
1512 |
Dim currView_id
|
|
|
1513 |
currView_id = -1
|
|
|
1514 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| 5952 |
dpurdie |
1515 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 6123 |
dpurdie |
1516 |
OraDatabase.Parameters.Remove "SMODE"
|
| 129 |
ghuddy |
1517 |
|
|
|
1518 |
If rsRep.RecordCount = 0 Then
|
|
|
1519 |
With Response
|
|
|
1520 |
.write "<tr>"
|
|
|
1521 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
1522 |
.write "</tr>"
|
|
|
1523 |
End With
|
|
|
1524 |
End If
|
|
|
1525 |
|
|
|
1526 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1527 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
1528 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
1529 |
%>
|
|
|
1530 |
<tr>
|
|
|
1531 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1532 |
<td></td>
|
|
|
1533 |
</tr>
|
|
|
1534 |
<tr>
|
|
|
1535 |
<td nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
1536 |
<td class="body_scol"></td>
|
|
|
1537 |
<td class="body_scol"></td>
|
|
|
1538 |
<td class="body_scol"></td>
|
|
|
1539 |
<td class="body_scol"></td>
|
|
|
1540 |
</tr>
|
|
|
1541 |
<%
|
|
|
1542 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
1543 |
End If
|
|
|
1544 |
' -------- END GROUP ------------------------
|
|
|
1545 |
%>
|
|
|
1546 |
<tr>
|
|
|
1547 |
<td class="body_row"></td>
|
|
|
1548 |
<td nowrap class="body_row"><a href="used_by.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNrtag_id%>" class="txt_linked"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></a></td>
|
| 6612 |
dpurdie |
1549 |
<td nowrap class="body_row"><%=DisplayDate( rsRep("modified_stamp") )%> by <%=emailField(rsRep("modifier"),rsRep("modifier_email"))%> </td>
|
|
|
1550 |
<td nowrap class="body_row"><%=DisplayDate( rsRep("insert_stamp") )%> by <%=emailField(rsRep("insertor"),rsRep("insertor_email"))%> </td>
|
| 129 |
ghuddy |
1551 |
<td class="body_row"></td>
|
|
|
1552 |
</tr>
|
|
|
1553 |
<% rsRep.MoveNext
|
|
|
1554 |
WEnd
|
|
|
1555 |
%>
|
|
|
1556 |
<tr>
|
|
|
1557 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1558 |
</tr>
|
|
|
1559 |
</table>
|
|
|
1560 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1561 |
<%If parPrint = "" Then%>
|
|
|
1562 |
<br>
|
|
|
1563 |
<br>
|
|
|
1564 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1565 |
<br>
|
|
|
1566 |
<%End If%>
|
|
|
1567 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1568 |
<%
|
|
|
1569 |
rsRep.Close
|
|
|
1570 |
Set rsRep = nothing
|
|
|
1571 |
End If
|
|
|
1572 |
|
| 119 |
ghuddy |
1573 |
End Sub
|
|
|
1574 |
%>
|
|
|
1575 |
<%
|
|
|
1576 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1577 |
'==================================================================================
|
| 129 |
ghuddy |
1578 |
' Report Name : Deployable Software Modules
|
|
|
1579 |
' Description : Shows packages that are deployed to the customers and shows new packages marked as deployable.
|
|
|
1580 |
' INPUT : Project, Vesion Tree, Release Label, Base View (hard-coded to PRODUCTS)
|
| 119 |
ghuddy |
1581 |
'==================================================================================
|
|
|
1582 |
Sub Deployable_Software_Modules ( sSection, nProj_id, nRtag_id, nBase_view_id )
|
| 129 |
ghuddy |
1583 |
Dim Query_String, rsRep
|
|
|
1584 |
Const Allow_All = TRUE
|
|
|
1585 |
Const Disallow_All = FALSE
|
|
|
1586 |
|
|
|
1587 |
If nProj_id = "" Then nProj_id = -1
|
|
|
1588 |
If nRtag_id = "" Then nRtag_id = -1
|
|
|
1589 |
|
|
|
1590 |
If sSection = "TITLE" Then
|
|
|
1591 |
Response.write "Deployable Software Modules"
|
|
|
1592 |
Exit Sub
|
|
|
1593 |
End If
|
|
|
1594 |
|
|
|
1595 |
|
|
|
1596 |
If sSection = "FORM" Then
|
|
|
1597 |
%>
|
|
|
1598 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1599 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1600 |
<tr>
|
|
|
1601 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1602 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1603 |
<td width="100%"><%Call Get_Projects( nProj_id, Disallow_All )%></td>
|
|
|
1604 |
</tr>
|
|
|
1605 |
<tr>
|
|
|
1606 |
<td nowrap class="form_field"> </td>
|
|
|
1607 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1608 |
<td><%Call Get_Release_Labels ( nProj_id, nRtag_id, Disallow_All )%></td>
|
|
|
1609 |
</tr>
|
|
|
1610 |
<tr>
|
|
|
1611 |
<td nowrap class="form_field"> </td>
|
|
|
1612 |
<td align="right" nowrap class="form_field">Base View</td>
|
|
|
1613 |
<td><select name="noname" class='form_item' disabled>
|
|
|
1614 |
<option>PRODUCTS</option>
|
|
|
1615 |
</select></td>
|
|
|
1616 |
</tr>
|
|
|
1617 |
<tr>
|
|
|
1618 |
<td nowrap class="form_field"> </td>
|
|
|
1619 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1620 |
<td><br>
|
|
|
1621 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1622 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1623 |
<input type="hidden" name="FRbase_view_id" value="<%=enumBASE_VIEW_PRODUCTS%>">
|
|
|
1624 |
<input type="hidden" name="action" value="true">
|
|
|
1625 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1626 |
</td>
|
|
|
1627 |
</tr>
|
|
|
1628 |
</form>
|
|
|
1629 |
</table>
|
|
|
1630 |
<% Exit Sub
|
|
|
1631 |
End If
|
|
|
1632 |
|
|
|
1633 |
|
|
|
1634 |
If sSection = "BODY" Then
|
|
|
1635 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1636 |
'--- New Deployable Modules ---
|
|
|
1637 |
Query_String = ReadFile( rootPath & "queries\rep_new_deployable_packages.sql" )
|
|
|
1638 |
|
|
|
1639 |
OraDatabase.Parameters.Add "RTAG_ID", nRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1640 |
OraDatabase.Parameters.Add "BASE_VIEW_ID", nBase_view_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1641 |
%>
|
|
|
1642 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1643 |
<tr>
|
|
|
1644 |
<td nowrap class="body_colb" colspan="3" background="images/bg_bage.gif"> New Deployable Package</td>
|
|
|
1645 |
</tr>
|
|
|
1646 |
<tr>
|
|
|
1647 |
<td background="images/bg_rep_line.gif" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1648 |
</tr>
|
|
|
1649 |
<tr>
|
|
|
1650 |
<td width="1%" class="body_txt">Package Name</td>
|
|
|
1651 |
<td width="1%" class="body_txt">Version</td>
|
|
|
1652 |
<td width="100%" class="body_txt">Last Modifier</td>
|
|
|
1653 |
</tr>
|
|
|
1654 |
<tr>
|
|
|
1655 |
<td background="images/bg_rep_line.gif" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1656 |
</tr>
|
|
|
1657 |
<%
|
|
|
1658 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| 5952 |
dpurdie |
1659 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
1660 |
OraDatabase.Parameters.Remove "BASE_VIEW_ID"
|
| 129 |
ghuddy |
1661 |
%>
|
|
|
1662 |
<%If rsRep.RecordCount = 0 Then%>
|
|
|
1663 |
<tr>
|
|
|
1664 |
<td nowrap class="body_row" colspan="3">Found 0 records! </td>
|
|
|
1665 |
</tr>
|
|
|
1666 |
<%End If%>
|
|
|
1667 |
<%While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))%>
|
|
|
1668 |
<tr>
|
|
|
1669 |
<td nowrap><a href="dependencies.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="txt_linked"><img src="images/i_go2url.gif" width="14" height="14" hspace="3" border="0" align="absmiddle"><%=rsRep("pkg_name")%></a></td>
|
|
|
1670 |
<td nowrap class="body_row"><%=rsRep("pkg_version")%></td>
|
|
|
1671 |
<td nowrap class="body_row"><%=rsRep("full_name")%></td>
|
|
|
1672 |
</tr>
|
|
|
1673 |
<%rsRep.MoveNext
|
|
|
1674 |
WEnd
|
|
|
1675 |
rsRep.Close
|
|
|
1676 |
Set rsRep = Nothing%>
|
|
|
1677 |
<tr>
|
|
|
1678 |
<td background="images/bg_rep_line.gif" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1679 |
</tr>
|
|
|
1680 |
<%
|
|
|
1681 |
' Go To Release link...
|
|
|
1682 |
Query_String = _
|
|
|
1683 |
" SELECT proj.PROJ_NAME, rt.RTAG_NAME"&_
|
|
|
1684 |
" FROM PROJECTS proj,"&_
|
|
|
1685 |
" RELEASE_TAGS rt"&_
|
|
|
1686 |
" WHERE rt.PROJ_ID = proj.proj_id"&_
|
|
|
1687 |
" AND rt.rtag_id = :RTAG_ID"
|
| 6127 |
dpurdie |
1688 |
OraDatabase.Parameters.Add "RTAG_ID", nRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 129 |
ghuddy |
1689 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| 6127 |
dpurdie |
1690 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
| 129 |
ghuddy |
1691 |
%>
|
|
|
1692 |
<tr>
|
|
|
1693 |
<td nowrap class="body_row" colspan="3"><a href="dependencies.asp?rtag_id=<%=nRtag_id%>"><img src="images/i_go2url.gif" width="14" height="14" hspace="3" border="0" align="absmiddle"></a>Go to <a href="dependencies.asp?rtag_id=<%=nRtag_id%>" class="txt_linked"><%=rsRep("proj_name")%> > <%=rsRep("rtag_name")%></a> </td>
|
|
|
1694 |
</tr>
|
|
|
1695 |
<%
|
|
|
1696 |
rsRep.Close
|
|
|
1697 |
Set rsRep = Nothing%>
|
|
|
1698 |
</table>
|
|
|
1699 |
<br><br>
|
|
|
1700 |
<%
|
|
|
1701 |
'--- Current Deployable Modules ---
|
|
|
1702 |
Query_String = ReadFile( rootPath & "queries\rep_current_deployable_packages.sql" )
|
|
|
1703 |
%>
|
|
|
1704 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1705 |
<tr>
|
|
|
1706 |
<td colspan="4" nowrap class="body_colb" background="images/bg_bage.gif"> Current Deployable Packages </td>
|
|
|
1707 |
</tr>
|
|
|
1708 |
<tr>
|
|
|
1709 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1710 |
</tr>
|
|
|
1711 |
<%
|
|
|
1712 |
Dim currPv_id
|
|
|
1713 |
currPv_id = -1
|
| 6127 |
dpurdie |
1714 |
OraDatabase.Parameters.Add "RTAG_ID", nRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1715 |
OraDatabase.Parameters.Add "BASE_VIEW_ID", nBase_view_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 129 |
ghuddy |
1716 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| 6127 |
dpurdie |
1717 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
1718 |
OraDatabase.Parameters.Remove "BASE_VIEW_ID"
|
| 129 |
ghuddy |
1719 |
|
|
|
1720 |
If rsRep.RecordCount = 0 Then
|
|
|
1721 |
With Response
|
|
|
1722 |
.write "<tr>"
|
|
|
1723 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
1724 |
.write "</tr>"
|
|
|
1725 |
End With
|
|
|
1726 |
End If
|
|
|
1727 |
|
|
|
1728 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1729 |
' -------- GROUP BY PRODUCT NAME -----------------
|
|
|
1730 |
If CDbl(currPv_id) <> CDbl(rsRep("pv_id")) Then
|
|
|
1731 |
%>
|
|
|
1732 |
<tr>
|
|
|
1733 |
<td width="1%" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1734 |
<td width="1%" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1735 |
<td width="1%" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1736 |
<td width="100%"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1737 |
</tr>
|
|
|
1738 |
<tr>
|
|
|
1739 |
<td nowrap><a href="dependencies.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></a></td>
|
|
|
1740 |
<td> </td>
|
|
|
1741 |
<td> </td>
|
|
|
1742 |
<td> </td>
|
|
|
1743 |
</tr>
|
|
|
1744 |
<%
|
|
|
1745 |
currPv_id = CDbl(rsRep("pv_id"))
|
|
|
1746 |
End If
|
|
|
1747 |
' -------- END GROUP ------------------------
|
|
|
1748 |
%>
|
|
|
1749 |
<tr>
|
|
|
1750 |
<td> </td>
|
|
|
1751 |
<td nowrap><a href="dependencies.asp?pv_id=<%=rsRep("dpv_id")%>&rtag_id=<%=nRtag_id%>" class="txt_linked"><%=rsRep("dpkg_name")%></a></td>
|
|
|
1752 |
<td nowrap class="body_row"><%=rsRep("dpkg_version")%></td>
|
|
|
1753 |
<td nowrap class="err_alert"><%=rsRep("is_dep_deployable")%></td>
|
|
|
1754 |
</tr>
|
|
|
1755 |
<% rsRep.MoveNext
|
|
|
1756 |
WEnd
|
|
|
1757 |
%>
|
|
|
1758 |
<tr>
|
|
|
1759 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1760 |
</tr>
|
|
|
1761 |
</table>
|
|
|
1762 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
1763 |
<%If parPrint = "" Then%>
|
|
|
1764 |
<br>
|
|
|
1765 |
<br>
|
|
|
1766 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1767 |
<br>
|
|
|
1768 |
<%End If%>
|
|
|
1769 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1770 |
<%
|
|
|
1771 |
rsRep.Close
|
|
|
1772 |
Set rsRep = nothing
|
|
|
1773 |
End If
|
|
|
1774 |
|
| 119 |
ghuddy |
1775 |
End Sub
|
|
|
1776 |
%>
|
|
|
1777 |
|
|
|
1778 |
<%
|
|
|
1779 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1780 |
'==================================================================================
|
| 129 |
ghuddy |
1781 |
' Report Name : Bill Of Materials
|
|
|
1782 |
' Description : List products for a BOM
|
|
|
1783 |
' INPUT :
|
| 119 |
ghuddy |
1784 |
'==================================================================================
|
|
|
1785 |
Sub Bill_of_Materials ( SSsection, NNproj_id, NNrtag_id, NNbom_id, NNversion )
|
| 129 |
ghuddy |
1786 |
Dim Query_String, rsRep, rsQry
|
|
|
1787 |
Const Allow_All = TRUE
|
|
|
1788 |
Const Disallow_All = FALSE
|
| 119 |
ghuddy |
1789 |
|
| 129 |
ghuddy |
1790 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
1791 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
1792 |
If NNversion = "" Then NNversion = -1
|
|
|
1793 |
|
|
|
1794 |
If SSsection = "TITLE" Then
|
|
|
1795 |
Response.write "Software Bill Of Materials (SBOM) products"
|
|
|
1796 |
Exit Sub
|
|
|
1797 |
End If
|
|
|
1798 |
|
|
|
1799 |
|
|
|
1800 |
If SSsection = "FORM" Then
|
|
|
1801 |
%>
|
|
|
1802 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
1803 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
1804 |
<tr>
|
|
|
1805 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
1806 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
1807 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
1808 |
</tr>
|
|
|
1809 |
<tr>
|
|
|
1810 |
<td nowrap class="form_field"> </td>
|
|
|
1811 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
1812 |
<td><%Call Get_Branches ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
1813 |
</tr>
|
|
|
1814 |
<tr>
|
|
|
1815 |
<td nowrap class="form_field"> </td>
|
|
|
1816 |
<td align="right" nowrap class="form_field">SBOM Version</td>
|
|
|
1817 |
<td><%Call Get_SBOM_Version ( NNproj_id, NNrtag_id, Disallow_All, NNversion )%></td>
|
|
|
1818 |
</tr>
|
|
|
1819 |
<tr>
|
|
|
1820 |
<td nowrap class="form_field"> </td>
|
|
|
1821 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
1822 |
<td><br>
|
|
|
1823 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
1824 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
1825 |
<input type="hidden" name="FRrtag_id" value="<%=NNrtag_id%>">
|
|
|
1826 |
<input type="hidden" name="action" value="true">
|
|
|
1827 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
1828 |
</td>
|
|
|
1829 |
</tr>
|
|
|
1830 |
</form>
|
|
|
1831 |
</table>
|
|
|
1832 |
<p>
|
|
|
1833 |
<% Exit Sub
|
|
|
1834 |
End If
|
|
|
1835 |
|
|
|
1836 |
|
|
|
1837 |
|
|
|
1838 |
OraDatabase.Parameters.Add "BRANCH_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1839 |
OraDatabase.Parameters.Add "BOM_VERSION", Request("FRVersion"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
1840 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("rep_SBOM.sql"), cint(0))
|
| 5952 |
dpurdie |
1841 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
|
|
1842 |
OraDatabase.Parameters.Remove "BOM_VERSION"
|
| 129 |
ghuddy |
1843 |
Dim bomId
|
|
|
1844 |
bomId = rsQry("bom_id")
|
|
|
1845 |
rsQry.close
|
|
|
1846 |
Set rsQry = nothing
|
|
|
1847 |
|
|
|
1848 |
|
|
|
1849 |
If SSsection = "BODY" Then
|
|
|
1850 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
1851 |
|
|
|
1852 |
Query_String = ReadFile( rootPath & "queries\AllProducts.sql" )
|
|
|
1853 |
|
|
|
1854 |
OraDatabase.Parameters.Add "BOM_ID", bomId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
1855 |
%>
|
|
|
1856 |
</p>
|
|
|
1857 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
1858 |
<tr>
|
|
|
1859 |
<td nowrap class="body_colb">Node Name</td>
|
|
|
1860 |
<td nowrap class="body_colb">Operating System</td>
|
|
|
1861 |
<td nowrap class="body_colb">Product</td>
|
|
|
1862 |
<td nowrap class="body_colb">Version</td>
|
|
|
1863 |
</tr>
|
|
|
1864 |
<tr>
|
|
|
1865 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1866 |
</tr>
|
|
|
1867 |
<%
|
|
|
1868 |
Dim currNode_id, currOs_id
|
|
|
1869 |
currNode_id = -1
|
|
|
1870 |
currOs_id = -1
|
|
|
1871 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| 5952 |
dpurdie |
1872 |
OraDatabase.Parameters.Remove "BOM_ID"
|
| 129 |
ghuddy |
1873 |
|
|
|
1874 |
If rsRep.RecordCount = 0 Then
|
|
|
1875 |
With Response
|
|
|
1876 |
.write "<tr>"
|
|
|
1877 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
1878 |
.write "</tr>"
|
|
|
1879 |
End With
|
|
|
1880 |
End If
|
|
|
1881 |
|
|
|
1882 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
1883 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
1884 |
If CDbl(currNode_id) <> CDbl(rsRep("node_id")) Then
|
|
|
1885 |
%>
|
|
|
1886 |
<tr>
|
|
|
1887 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1888 |
</tr>
|
|
|
1889 |
<tr>
|
|
|
1890 |
<td nowrap class="body_scol"><%=rsRep("node_name")%></td>
|
|
|
1891 |
<td nowrap class="body_scol"></td>
|
|
|
1892 |
<td nowrap class="body_scol"></td>
|
|
|
1893 |
<td nowrap class="body_scol"></td>
|
|
|
1894 |
</tr>
|
|
|
1895 |
<%
|
|
|
1896 |
currNode_id = CDbl(rsRep("node_id"))
|
|
|
1897 |
End If
|
|
|
1898 |
' -------- END GROUP ------------------------
|
|
|
1899 |
If CDbl(currOs_id) <> CDbl(rsRep("os_id")) Then
|
|
|
1900 |
%>
|
|
|
1901 |
<tr>
|
|
|
1902 |
<td nowrap class="body_row"></td>
|
|
|
1903 |
<td nowrap class="body_scol"><%=rsRep("os_name")%></td>
|
|
|
1904 |
<td nowrap class="body_scol"></td>
|
|
|
1905 |
<td nowrap class="body_scol"></td>
|
|
|
1906 |
</tr>
|
|
|
1907 |
<%
|
|
|
1908 |
currOs_id = CDbl(rsRep("Os_id"))
|
|
|
1909 |
End If
|
|
|
1910 |
%>
|
|
|
1911 |
<tr>
|
|
|
1912 |
<td nowrap class="body_row"></td>
|
|
|
1913 |
<td nowrap class="body_row"></td>
|
|
|
1914 |
<td nowrap class="body_row"><%=PatchIcon ( rsRep("is_patch"), rsRep("is_obsolete") )%><%=rsRep("pkg_name")%></td>
|
|
|
1915 |
<td nowrap class="body_row"><%=rsRep("pkg_version")%></td>
|
|
|
1916 |
</tr>
|
|
|
1917 |
<% rsRep.MoveNext
|
|
|
1918 |
WEnd
|
|
|
1919 |
%>
|
|
|
1920 |
<tr>
|
|
|
1921 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
1922 |
</tr>
|
|
|
1923 |
</table>
|
|
|
1924 |
<p> </p>
|
|
|
1925 |
<p> <!-- PRINT, SAVE, ETC. ------------>
|
| 119 |
ghuddy |
1926 |
<%If parPrint = "" Then%>
|
| 129 |
ghuddy |
1927 |
<br>
|
|
|
1928 |
<br>
|
|
|
1929 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
1930 |
<br>
|
| 119 |
ghuddy |
1931 |
<%End If%>
|
|
|
1932 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
1933 |
<%
|
| 129 |
ghuddy |
1934 |
rsRep.Close
|
|
|
1935 |
Set rsRep = nothing
|
|
|
1936 |
End If
|
|
|
1937 |
|
| 119 |
ghuddy |
1938 |
End Sub
|
|
|
1939 |
%>
|
|
|
1940 |
|
|
|
1941 |
<%
|
|
|
1942 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
1943 |
'==================================================================================
|
| 129 |
ghuddy |
1944 |
' Report Name : Build History
|
|
|
1945 |
' Description : List packages which were build between certain dates.
|
|
|
1946 |
' INPUT :
|
| 119 |
ghuddy |
1947 |
'==================================================================================
|
|
|
1948 |
Sub Build_History ( SSsection, NNproj_id, NNrtag_id)
|
| 129 |
ghuddy |
1949 |
Dim Query_String, rsRep, rsQry
|
|
|
1950 |
Const Allow_All = TRUE
|
|
|
1951 |
Const Disallow_All = FALSE
|
| 119 |
ghuddy |
1952 |
|
| 129 |
ghuddy |
1953 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
1954 |
If NNrtag_id = "" Then NNrtag_id = -1
|
| 119 |
ghuddy |
1955 |
|
| 129 |
ghuddy |
1956 |
If SSsection = "TITLE" Then
|
|
|
1957 |
Response.write "Build History"
|
|
|
1958 |
Exit Sub
|
|
|
1959 |
End If
|
| 119 |
ghuddy |
1960 |
|
| 129 |
ghuddy |
1961 |
|
|
|
1962 |
If SSsection = "FORM" Then
|
|
|
1963 |
%>
|
| 5638 |
dpurdie |
1964 |
<script>
|
|
|
1965 |
$(document).ready(function(){
|
|
|
1966 |
var startDateTextBox = $('#FRinitdate');
|
|
|
1967 |
var endDateTextBox = $('#FRduedate');
|
|
|
1968 |
|
|
|
1969 |
$.timepicker.dateRange(
|
|
|
1970 |
startDateTextBox,
|
|
|
1971 |
endDateTextBox,
|
|
|
1972 |
{
|
|
|
1973 |
constrainInput: true,
|
|
|
1974 |
showOn: 'both',
|
|
|
1975 |
buttonImageOnly : true,
|
|
|
1976 |
buttonImage: "images/i_calendar.gif",
|
|
|
1977 |
buttonText: "Select Date",
|
|
|
1978 |
dateFormat : "D dd-M-yy",
|
|
|
1979 |
maxDate : 0,
|
|
|
1980 |
yearRange : "1970:2099",
|
|
|
1981 |
changeYear : true,
|
|
|
1982 |
changeMonth: true,
|
|
|
1983 |
start: { // start picker options
|
|
|
1984 |
onClose : function(p1,p2){
|
|
|
1985 |
checkForm();
|
|
|
1986 |
}
|
|
|
1987 |
},
|
|
|
1988 |
end: { // end picker options
|
|
|
1989 |
onClose : function(p1,p2){
|
|
|
1990 |
checkForm();
|
|
|
1991 |
}
|
|
|
1992 |
}
|
|
|
1993 |
}
|
|
|
1994 |
);
|
|
|
1995 |
|
|
|
1996 |
// Setup the submit button
|
|
|
1997 |
checkForm();
|
|
|
1998 |
})
|
|
|
1999 |
|
|
|
2000 |
// Update the Submit(Add) button based on the number of chars in the TextArea
|
|
|
2001 |
function checkForm()
|
|
|
2002 |
{
|
|
|
2003 |
var f1 = $("select[name=FRproj_id]").val().length > 0;
|
|
|
2004 |
var f2 = $("select[name=FRrtag_id]").val().length > 0;
|
|
|
2005 |
var f3 = $("input[name=FRinitdate]").val().length > 0;
|
|
|
2006 |
var f4 = $("input[name=FRduedate]").val().length > 0;
|
|
|
2007 |
|
|
|
2008 |
var ok=f1 && f2 && f3 && f4;
|
|
|
2009 |
var but = $("#formSubmit");
|
|
|
2010 |
but.toggleClass("form_btn_comp", ok);
|
|
|
2011 |
but.toggleClass("form_btn_comp_disabled", !ok);
|
|
|
2012 |
but.prop("disabled", !ok );
|
|
|
2013 |
}
|
|
|
2014 |
</script>
|
| 129 |
ghuddy |
2015 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
| 5638 |
dpurdie |
2016 |
<form action="<%=scriptName%>" method="post" name="repform">
|
| 129 |
ghuddy |
2017 |
<tr>
|
|
|
2018 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
2019 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
2020 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
2021 |
</tr>
|
|
|
2022 |
<tr>
|
|
|
2023 |
<td nowrap class="form_field"> </td>
|
|
|
2024 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
2025 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
2026 |
</tr>
|
|
|
2027 |
<tr>
|
|
|
2028 |
<td colspan="3" nowrap class="form_field">Between
|
| 5638 |
dpurdie |
2029 |
<input class="form_item" type="text" name="FRinitdate" maxlength="15" size="15" value="<%=Request.Form("FRinitdate")%>" id="FRinitdate">
|
| 129 |
ghuddy |
2030 |
And
|
| 5638 |
dpurdie |
2031 |
<input class="form_item" type="text" name="FRduedate" maxlength="15" size="15" value="<%=Request.Form("FRduedate")%>" id="FRduedate">
|
| 129 |
ghuddy |
2032 |
</tr>
|
|
|
2033 |
<tr>
|
|
|
2034 |
<td nowrap class="form_field"> </td>
|
|
|
2035 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
2036 |
<td><br>
|
|
|
2037 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
2038 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
2039 |
<input type="hidden" name="action" value="true">
|
| 5638 |
dpurdie |
2040 |
<input id="formSubmit" name="Submit" type="submit" class="form_btn" value="Submit">
|
| 129 |
ghuddy |
2041 |
</td>
|
|
|
2042 |
</tr>
|
|
|
2043 |
</form>
|
|
|
2044 |
</table>
|
|
|
2045 |
<p>
|
|
|
2046 |
<% Exit Sub
|
|
|
2047 |
End If
|
|
|
2048 |
|
|
|
2049 |
|
|
|
2050 |
If SSsection = "BODY" Then
|
|
|
2051 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
2052 |
%>
|
|
|
2053 |
</p>
|
|
|
2054 |
<table width="20%" border="0" cellspacing="0" cellpadding="2">
|
|
|
2055 |
<tr>
|
|
|
2056 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2057 |
<td width="5%" nowrap class="body_colb">Package</td>
|
|
|
2058 |
<td width="95%" nowrap class="body_colb">Version</td>
|
|
|
2059 |
</tr>
|
|
|
2060 |
<tr>
|
|
|
2061 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2062 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2063 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2064 |
</tr>
|
|
|
2065 |
<%
|
|
|
2066 |
Dim currView_id
|
|
|
2067 |
currView_id = -1
|
|
|
2068 |
|
|
|
2069 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2070 |
OraDatabase.Parameters.Add "INITDATE", Request.Form("FRinitdate"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
2071 |
OraDatabase.Parameters.Add "DUEDATE", Request.Form("FRduedate"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
2072 |
|
|
|
2073 |
Set rsRep = OraDatabase.DbCreateDynaset( GetQuery("rep_build_history.sql"), cint(0) )
|
|
|
2074 |
|
| 5952 |
dpurdie |
2075 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
2076 |
OraDatabase.Parameters.Remove "INITDATE"
|
|
|
2077 |
OraDatabase.Parameters.Remove "DUEDATE"
|
|
|
2078 |
|
| 129 |
ghuddy |
2079 |
If rsRep.RecordCount = 0 Then
|
|
|
2080 |
With Response
|
|
|
2081 |
.write "<tr>"
|
|
|
2082 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
2083 |
.write "</tr>"
|
|
|
2084 |
End With
|
|
|
2085 |
End If
|
|
|
2086 |
|
|
|
2087 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
2088 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
2089 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
2090 |
%>
|
|
|
2091 |
<tr>
|
|
|
2092 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2093 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2094 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2095 |
</tr>
|
|
|
2096 |
|
|
|
2097 |
<tr>
|
|
|
2098 |
<td valign="top" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
2099 |
<td> </td>
|
|
|
2100 |
<td> </td>
|
|
|
2101 |
</tr>
|
|
|
2102 |
|
|
|
2103 |
<%
|
|
|
2104 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
2105 |
End If
|
|
|
2106 |
' -------- END GROUP ------------------------
|
|
|
2107 |
%>
|
|
|
2108 |
<tr>
|
|
|
2109 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2110 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
2111 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
|
|
2112 |
</tr>
|
|
|
2113 |
<% rsRep.MoveNext
|
|
|
2114 |
WEnd
|
|
|
2115 |
%>
|
|
|
2116 |
<tr>
|
|
|
2117 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2118 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2119 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2120 |
</tr>
|
|
|
2121 |
</table>
|
|
|
2122 |
<p> </p>
|
|
|
2123 |
<p> <!-- PRINT, SAVE, ETC. ------------>
|
| 119 |
ghuddy |
2124 |
<%If parPrint = "" Then%>
|
| 129 |
ghuddy |
2125 |
<br>
|
|
|
2126 |
<br>
|
|
|
2127 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
2128 |
<br>
|
| 119 |
ghuddy |
2129 |
<%End If%>
|
|
|
2130 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
2131 |
<%
|
| 129 |
ghuddy |
2132 |
rsRep.Close
|
|
|
2133 |
Set rsRep = nothing
|
|
|
2134 |
End If
|
|
|
2135 |
|
| 119 |
ghuddy |
2136 |
End Sub
|
|
|
2137 |
%>
|
|
|
2138 |
<%
|
|
|
2139 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2140 |
'==================================================================================
|
| 129 |
ghuddy |
2141 |
' Report Name : Escrow Report
|
|
|
2142 |
' Description : Report to extract Products/Patches for Building A RoadMap
|
|
|
2143 |
' INPUT :
|
| 119 |
ghuddy |
2144 |
'==================================================================================
|
|
|
2145 |
Sub Escrow_Report (SSsection, NNproj_id, NNrtag_id, NNbom_id, NNversion)
|
| 129 |
ghuddy |
2146 |
Dim Query_String, rsRep, rsQry
|
|
|
2147 |
Const Allow_All = TRUE
|
|
|
2148 |
Const Disallow_All = FALSE
|
| 119 |
ghuddy |
2149 |
|
| 129 |
ghuddy |
2150 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
2151 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
2152 |
If NNversion = "" Then NNversion = -1
|
| 119 |
ghuddy |
2153 |
|
| 129 |
ghuddy |
2154 |
If SSsection = "TITLE" Then
|
|
|
2155 |
Response.write "Generation of ESCROW REPORT"
|
|
|
2156 |
Exit Sub
|
|
|
2157 |
End If
|
| 119 |
ghuddy |
2158 |
|
|
|
2159 |
|
| 129 |
ghuddy |
2160 |
If SSsection = "FORM" Then
|
|
|
2161 |
%>
|
|
|
2162 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
2163 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
2164 |
<tr>
|
|
|
2165 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
2166 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
2167 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
2168 |
</tr>
|
|
|
2169 |
<tr>
|
|
|
2170 |
<td nowrap class="form_field"> </td>
|
|
|
2171 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
2172 |
<td><%Call Get_Branches ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
2173 |
</tr>
|
|
|
2174 |
<tr>
|
|
|
2175 |
<td nowrap class="form_field"> </td>
|
|
|
2176 |
<td align="right" nowrap class="form_field">SBOM Version</td>
|
|
|
2177 |
<td><%Call Get_SBOM_Version ( NNproj_id, NNrtag_id, Disallow_All, NNversion )%></td>
|
|
|
2178 |
</tr>
|
|
|
2179 |
<tr>
|
|
|
2180 |
<td nowrap class="form_field"> </td>
|
|
|
2181 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
2182 |
<td><br>
|
|
|
2183 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
2184 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
2185 |
<input type="hidden" name="FRrtag_id" value="<%=NNrtag_id%>">
|
|
|
2186 |
<input type="hidden" name="action" value="true">
|
|
|
2187 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
2188 |
</td>
|
|
|
2189 |
</tr>
|
|
|
2190 |
</form>
|
|
|
2191 |
</table>
|
|
|
2192 |
<p>
|
|
|
2193 |
<% Exit Sub
|
|
|
2194 |
End If
|
| 119 |
ghuddy |
2195 |
|
| 129 |
ghuddy |
2196 |
OraDatabase.Parameters.Add "BRANCH_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2197 |
OraDatabase.Parameters.Add "BOM_VERSION", Request("FRVersion"), ORAPARM_INPUT, ORATYPE_STRING
|
|
|
2198 |
Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("rep_SBOM.sql"), cint(0))
|
| 5952 |
dpurdie |
2199 |
OraDatabase.Parameters.Remove "BRANCH_ID"
|
|
|
2200 |
OraDatabase.Parameters.Remove "BOM_VERSION"
|
|
|
2201 |
|
| 129 |
ghuddy |
2202 |
Dim bomId, ext
|
|
|
2203 |
bomId = rsQry("bom_id")
|
|
|
2204 |
Set rsQry = OraDatabase.DbCreateDynaset( "select * from release_manager.project_extentions where proj_id="&NNproj_id, cint(0))
|
|
|
2205 |
ext = rsQry("ext_name")
|
|
|
2206 |
rsQry.close
|
|
|
2207 |
Set rsQry = nothing
|
| 119 |
ghuddy |
2208 |
|
| 129 |
ghuddy |
2209 |
If SSsection = "BODY" Then
|
|
|
2210 |
If NOT CBool(Request("action")) Then Exit Sub
|
| 119 |
ghuddy |
2211 |
|
| 129 |
ghuddy |
2212 |
'---------------------- Run Before Page ---------------------------
|
|
|
2213 |
Call GetReleaseContent ( bomId, objReleaseContent )
|
| 119 |
ghuddy |
2214 |
|
| 129 |
ghuddy |
2215 |
'Call GetBomDetails (bomId, outobjDetails)
|
|
|
2216 |
'outobjDetails.Item("bom_full_version") = outobjDetails.Item("bom_name")&" "& outobjDetails.Item("bom_version") &"."& outobjDetails.Item("bom_lifecycle")
|
| 119 |
ghuddy |
2217 |
|
| 129 |
ghuddy |
2218 |
|
|
|
2219 |
'------------------------------------------------------------------
|
|
|
2220 |
%>
|
|
|
2221 |
<html>
|
|
|
2222 |
<head>
|
|
|
2223 |
<title>Release Manager - Escrow Report</title>
|
|
|
2224 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
2225 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
2226 |
</head>
|
|
|
2227 |
<body>
|
|
|
2228 |
<div align="center"><b><font col color="#FF0000" size="+3"><%=outobjDetails.Item("bom_full_version")%></font></b></div>
|
|
|
2229 |
<div align="center"><b><font col color="#FF0000" size="+3">Products</font></b></div>
|
|
|
2230 |
<%
|
|
|
2231 |
Set outobjDetails = Nothing
|
|
|
2232 |
|
|
|
2233 |
aReleaseContent = objReleaseContent.Keys
|
|
|
2234 |
For Each parPv_id In aReleaseContent
|
|
|
2235 |
pvIdList = pvIdList + parPv_id + ","
|
|
|
2236 |
Call GetPackageInformation ( parPv_id, objPackageDetails )
|
|
|
2237 |
Response.Flush
|
|
|
2238 |
%>
|
|
|
2239 |
<a name="<%=objPackageDetails.Item("pkg_name")%>"></a>
|
|
|
2240 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
2241 |
<tr>
|
|
|
2242 |
<td class="body_colb"><h3><%=objPackageDetails.Item("pkg_name")%></h3></td>
|
|
|
2243 |
</tr>
|
|
|
2244 |
</table>
|
|
|
2245 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
2246 |
<tr>
|
|
|
2247 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Version:</strong></td>
|
|
|
2248 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_version")%></td>
|
|
|
2249 |
</tr>
|
|
|
2250 |
<tr>
|
|
|
2251 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Path:</strong> </td>
|
|
|
2252 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("src_path")%></td>
|
|
|
2253 |
</tr>
|
|
|
2254 |
<tr>
|
|
|
2255 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Label:</strong></td>
|
|
|
2256 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_label")%></td>
|
|
|
2257 |
</tr>
|
|
|
2258 |
<tr>
|
|
|
2259 |
<td width="1%" nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Short Description:</strong></td>
|
|
|
2260 |
<td witdh="100%" bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_description") ) )%></td>
|
|
|
2261 |
</tr>
|
|
|
2262 |
<tr>
|
|
|
2263 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Package Overview:</strong> </td>
|
|
|
2264 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_overview") ) )%></td>
|
|
|
2265 |
</tr>
|
|
|
2266 |
<tr>
|
|
|
2267 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>General Sublicense Material:</strong> </td>
|
|
|
2268 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("v_ext") = ext Then%>Yes<%Else%>No<%End If%></td>
|
|
|
2269 |
</tr>
|
|
|
2270 |
<tr>
|
|
|
2271 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Environment:</strong> </td>
|
|
|
2272 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("is_build_env_required") = enumDB_NO Then%>Not Required.<%End If%>
|
|
|
2273 |
<%
|
|
|
2274 |
'--- Get Build Env Details
|
|
|
2275 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Std ( parPv_id ), cint(0))
|
|
|
2276 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
2277 |
BldStd = rsQry("bs_name")
|
|
|
2278 |
rsQry.Close
|
|
|
2279 |
|
|
|
2280 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
|
|
|
2281 |
%>
|
|
|
2282 |
<ul>
|
|
|
2283 |
<%
|
|
|
2284 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2285 |
%>
|
|
|
2286 |
<li><%=BldStd%>, <%=rsQry("bm_name")%></li>
|
|
|
2287 |
<%rsQry.MoveNext
|
|
|
2288 |
WEnd
|
|
|
2289 |
%>
|
|
|
2290 |
</ul>
|
|
|
2291 |
<%End If%>
|
|
|
2292 |
</td>
|
|
|
2293 |
</tr>
|
|
|
2294 |
<tr>
|
|
|
2295 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Dependencies:</strong> </td>
|
|
|
2296 |
<td bgcolor="#FFFFFF" class="sublbox_txt">
|
|
|
2297 |
<%
|
|
|
2298 |
'--- Get Build Dependencies Details
|
|
|
2299 |
|
|
|
2300 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Dependencies ( parPv_id ), cint(0))
|
|
|
2301 |
%>
|
|
|
2302 |
<table width="100%" cellspacing="0" cellpadding="2" border="1">
|
|
|
2303 |
<tr>
|
|
|
2304 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="1%"><strong>Software Component</strong></td>
|
|
|
2305 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="100%"><strong>Version</strong></td>
|
|
|
2306 |
</tr>
|
|
|
2307 |
<%If rsQry.RecordCount < 1 Then%>
|
|
|
2308 |
<tr>
|
|
|
2309 |
<td nowrap class="sublbox_txt">No Dependencies</td>
|
|
|
2310 |
<td nowrap class="sublbox_txt"></td>
|
|
|
2311 |
</tr>
|
|
|
2312 |
<%End If%>
|
|
|
2313 |
<%
|
|
|
2314 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2315 |
%>
|
|
|
2316 |
<tr>
|
|
|
2317 |
<td nowrap class="sublbox_txt"><a href="#<%=rsQry("pkg_name")%>"><%=rsQry("pkg_name")%></a></td>
|
|
|
2318 |
<td nowrap class="sublbox_txt"><%=rsQry("pkg_version")%></td>
|
|
|
2319 |
</tr>
|
|
|
2320 |
<%rsQry.MoveNext
|
|
|
2321 |
WEnd
|
|
|
2322 |
%>
|
|
|
2323 |
</table>
|
|
|
2324 |
</td>
|
|
|
2325 |
</tr>
|
|
|
2326 |
</table>
|
|
|
2327 |
<br><br>
|
|
|
2328 |
<%
|
|
|
2329 |
'Exit For
|
|
|
2330 |
Next
|
|
|
2331 |
|
|
|
2332 |
pvIdList = Mid(pvIdList, 1, Len(pvIdList) - 1)
|
|
|
2333 |
Set rsTemp = OraDatabase.DbCreateDynaset( SQL_Modules ( pvIdList ), cint(0))
|
|
|
2334 |
|
|
|
2335 |
%>
|
|
|
2336 |
<div align="center"><b><font col color="#FF0000" size="+3">Modules</font></b></div>
|
|
|
2337 |
<%
|
|
|
2338 |
While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
|
|
|
2339 |
Response.Flush
|
|
|
2340 |
|
|
|
2341 |
dpv_id = rsTemp("dpv_id")
|
|
|
2342 |
Call GetPackageInformation ( dpv_id, objPackageDetails )
|
|
|
2343 |
%>
|
|
|
2344 |
<a name="<%=objPackageDetails.Item("pkg_name")%>"></a>
|
|
|
2345 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
2346 |
<tr>
|
|
|
2347 |
<td class="body_colb"><h3><%=objPackageDetails.Item("pkg_name")%></h3></td>
|
|
|
2348 |
</tr>
|
|
|
2349 |
</table>
|
|
|
2350 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
2351 |
<tr>
|
|
|
2352 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Version:</strong></td>
|
|
|
2353 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_version")%></td>
|
|
|
2354 |
</tr>
|
|
|
2355 |
<tr>
|
|
|
2356 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Path:</strong> </td>
|
|
|
2357 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("src_path")%></td>
|
|
|
2358 |
</tr>
|
|
|
2359 |
<tr>
|
|
|
2360 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Source Label:</strong></td>
|
|
|
2361 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=objPackageDetails.Item("pkg_label")%></td>
|
|
|
2362 |
</tr>
|
|
|
2363 |
<tr>
|
|
|
2364 |
<td width="1%" nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Short Description:</strong></td>
|
|
|
2365 |
<td witdh="100%" bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_description") ) )%></td>
|
|
|
2366 |
</tr>
|
|
|
2367 |
<tr>
|
|
|
2368 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Package Overview:</strong> </td>
|
|
|
2369 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%=NewLine_To_BR ( To_HTML( objPackageDetails.Item("pv_overview") ) )%></td>
|
|
|
2370 |
</tr>
|
|
|
2371 |
<tr>
|
|
|
2372 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>General Sublicense Material:</strong> </td>
|
|
|
2373 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("v_ext") = parExt Then%>Yes<%Else%>No<%End If%></td>
|
|
|
2374 |
</tr>
|
|
|
2375 |
<tr>
|
|
|
2376 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Environment:</strong> </td>
|
|
|
2377 |
<td bgcolor="#FFFFFF" class="sublbox_txt"><%If objPackageDetails.Item("is_build_env_required") = enumDB_NO Then%>Not Required.<%End If%>
|
|
|
2378 |
<%
|
|
|
2379 |
'--- Get Build Env Details
|
|
|
2380 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Std ( dpv_id ), cint(0))
|
|
|
2381 |
If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then
|
|
|
2382 |
BldStd = rsQry("bs_name")
|
|
|
2383 |
rsQry.Close
|
|
|
2384 |
|
|
|
2385 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Env ( dpv_id ), cint(0))
|
|
|
2386 |
%>
|
|
|
2387 |
<ul>
|
|
|
2388 |
<%
|
|
|
2389 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2390 |
%>
|
|
|
2391 |
<li><%=BldStd%>, <%=rsQry("bm_name")%></li>
|
|
|
2392 |
<%rsQry.MoveNext
|
|
|
2393 |
WEnd
|
|
|
2394 |
%>
|
|
|
2395 |
</ul>
|
|
|
2396 |
<%End If%>
|
|
|
2397 |
</td>
|
|
|
2398 |
</tr>
|
|
|
2399 |
<tr>
|
|
|
2400 |
<td nowrap bgcolor="#FFFFFF" class="sublbox_txt" valign="top"><strong>Build Dependencies:</strong> </td>
|
|
|
2401 |
<td bgcolor="#FFFFFF" class="sublbox_txt">
|
|
|
2402 |
<%
|
|
|
2403 |
'--- Get Build Dependencies Details
|
|
|
2404 |
|
|
|
2405 |
Set rsQry = OraDatabase.DbCreateDynaset( SQL_Build_Dependencies ( dpv_id ), cint(0))
|
|
|
2406 |
%>
|
|
|
2407 |
<table width="100%" cellspacing="0" cellpadding="2" border="1">
|
|
|
2408 |
<tr>
|
|
|
2409 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="1%"><strong>Software Component</strong></td>
|
|
|
2410 |
<td nowrap class="sublbox_txt" bgcolor="#FFFFFF" width="100%"><strong>Version</strong></td>
|
|
|
2411 |
</tr>
|
|
|
2412 |
<%If rsQry.RecordCount < 1 Then%>
|
|
|
2413 |
<tr>
|
|
|
2414 |
<td nowrap class="sublbox_txt">No Dependencies</td>
|
|
|
2415 |
<td nowrap class="sublbox_txt"></td>
|
|
|
2416 |
</tr>
|
|
|
2417 |
<%End If%>
|
|
|
2418 |
<%
|
|
|
2419 |
While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
|
|
|
2420 |
%>
|
|
|
2421 |
<tr>
|
|
|
2422 |
<td nowrap class="sublbox_txt"><a href="#<%=rsQry("pkg_name")%>"><%=rsQry("pkg_name")%></a></td>
|
|
|
2423 |
<td nowrap class="sublbox_txt"><%=rsQry("pkg_version")%></td>
|
|
|
2424 |
</tr>
|
|
|
2425 |
<%rsQry.MoveNext
|
|
|
2426 |
WEnd
|
|
|
2427 |
%>
|
|
|
2428 |
</table>
|
|
|
2429 |
</td>
|
|
|
2430 |
</tr>
|
|
|
2431 |
</table>
|
|
|
2432 |
<br><br>
|
|
|
2433 |
|
|
|
2434 |
<%
|
|
|
2435 |
rsTemp.MoveNext
|
|
|
2436 |
WEnd
|
|
|
2437 |
|
|
|
2438 |
rsTemp.Close()
|
|
|
2439 |
Set rsTemp = Nothing
|
|
|
2440 |
End If
|
| 119 |
ghuddy |
2441 |
End Sub
|
|
|
2442 |
%>
|
|
|
2443 |
|
|
|
2444 |
<%
|
|
|
2445 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2446 |
'==================================================================================
|
| 129 |
ghuddy |
2447 |
' Report Name : AutoBuildable_Report
|
|
|
2448 |
' Description : List packages which were build between certain dates.
|
|
|
2449 |
' INPUT :
|
| 119 |
ghuddy |
2450 |
'==================================================================================
|
|
|
2451 |
Sub AutoBuildable_Report ( SSsection, NNproj_id, NNrtag_id)
|
| 129 |
ghuddy |
2452 |
Dim Query_String, rsRep, rsQry
|
|
|
2453 |
Const Allow_All = TRUE
|
|
|
2454 |
Const Disallow_All = FALSE
|
| 119 |
ghuddy |
2455 |
|
| 129 |
ghuddy |
2456 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
2457 |
If NNrtag_id = "" Then NNrtag_id = -1
|
| 119 |
ghuddy |
2458 |
|
| 129 |
ghuddy |
2459 |
If SSsection = "TITLE" Then
|
|
|
2460 |
Response.write "Release AutoBuildable Status"
|
|
|
2461 |
Exit Sub
|
|
|
2462 |
End If
|
| 119 |
ghuddy |
2463 |
|
|
|
2464 |
|
| 129 |
ghuddy |
2465 |
If SSsection = "FORM" Then
|
|
|
2466 |
%>
|
|
|
2467 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
2468 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
2469 |
<tr>
|
|
|
2470 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
2471 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
2472 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
2473 |
</tr>
|
|
|
2474 |
<tr>
|
|
|
2475 |
<td nowrap class="form_field"> </td>
|
|
|
2476 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
2477 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
2478 |
</tr>
|
|
|
2479 |
<tr>
|
|
|
2480 |
<td nowrap class="form_field"> </td>
|
|
|
2481 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
2482 |
<td><br>
|
|
|
2483 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
2484 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
2485 |
<input type="hidden" name="action" value="true">
|
| 5639 |
dpurdie |
2486 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
| 129 |
ghuddy |
2487 |
</td>
|
|
|
2488 |
</tr>
|
|
|
2489 |
</table>
|
|
|
2490 |
<p>
|
|
|
2491 |
<% Exit Sub
|
|
|
2492 |
End If
|
| 119 |
ghuddy |
2493 |
|
|
|
2494 |
|
| 129 |
ghuddy |
2495 |
If SSsection = "BODY" Then
|
|
|
2496 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
2497 |
If Request("btn") = "Assign" Then
|
|
|
2498 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2499 |
OraDatabase.Parameters.Add "PV_ID_LIST", Request("prod_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2
|
| 119 |
ghuddy |
2500 |
|
| 129 |
ghuddy |
2501 |
objEH.TryORA ( OraSession )
|
|
|
2502 |
On Error Resume Next
|
|
|
2503 |
|
| 5952 |
dpurdie |
2504 |
OraDatabase.ExecuteSQL "BEGIN SET_TO_AUTOBUILDABLE( :RTAG_ID, :PV_ID_LIST ); END;"
|
| 129 |
ghuddy |
2505 |
|
|
|
2506 |
objEH.CatchORA ( OraSession )
|
|
|
2507 |
|
|
|
2508 |
OraDatabase.Parameters.Remove "PV_ID_LIST"
|
|
|
2509 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
2510 |
|
|
|
2511 |
End If
|
|
|
2512 |
%>
|
|
|
2513 |
</p>
|
|
|
2514 |
<table width="20%" border="0" cellspacing="0" cellpadding="2">
|
|
|
2515 |
<tr>
|
|
|
2516 |
<td width="1%" nowrap class="body_colb">Base View</td>
|
|
|
2517 |
<td width="5%" nowrap class="body_colb">Package</td>
|
|
|
2518 |
<td width="95%" nowrap class="body_colb">Version</td>
|
|
|
2519 |
<td width="95%" nowrap class="body_colb">Autobuildable</td>
|
|
|
2520 |
</tr>
|
|
|
2521 |
<tr>
|
|
|
2522 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2523 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2524 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2525 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2526 |
</tr>
|
|
|
2527 |
<%
|
|
|
2528 |
Dim currView_id
|
|
|
2529 |
currView_id = -1
|
|
|
2530 |
|
|
|
2531 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2532 |
|
|
|
2533 |
Set rsRep = OraDatabase.DbCreateDynaset( "SELECT * FROM RELEASE_CONTENT rc, VIEWS vw, PACKAGES pkg, PACKAGE_VERSIONS pv "&_
|
| 5952 |
dpurdie |
2534 |
" WHERE pv.pv_id = rc.pv_id" &_
|
|
|
2535 |
" and rc.base_view_id = vw.view_id" &_
|
|
|
2536 |
" and pkg.pkg_id = pv.pkg_id" &_
|
|
|
2537 |
" and rc.RTAG_ID = :RTAG_ID" &_
|
|
|
2538 |
" order by vw.view_name, pkg.pkg_name", cint(0) )
|
|
|
2539 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
2540 |
|
| 129 |
ghuddy |
2541 |
If rsRep.RecordCount = 0 Then
|
|
|
2542 |
With Response
|
|
|
2543 |
.write "<tr>"
|
|
|
2544 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
|
|
2545 |
.write "</tr>"
|
|
|
2546 |
End With
|
|
|
2547 |
End If
|
|
|
2548 |
|
|
|
2549 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
2550 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
2551 |
If CDbl(currView_id) <> CDbl(rsRep("view_id")) Then
|
|
|
2552 |
%>
|
|
|
2553 |
<tr>
|
|
|
2554 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2555 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2556 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2557 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2558 |
</tr>
|
|
|
2559 |
|
|
|
2560 |
<tr>
|
|
|
2561 |
<td valign="top" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
2562 |
<td> </td>
|
|
|
2563 |
<td> </td>
|
|
|
2564 |
</tr>
|
|
|
2565 |
|
|
|
2566 |
<%
|
|
|
2567 |
currView_id = CDbl(rsRep("view_id"))
|
|
|
2568 |
End If
|
|
|
2569 |
' -------- END GROUP ------------------------
|
|
|
2570 |
%>
|
|
|
2571 |
<%If rsRep("is_autobuildable") = "Y" Then%>
|
|
|
2572 |
<tr>
|
|
|
2573 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2574 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
2575 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
| 5061 |
dpurdie |
2576 |
<%If canShowControlInProject( "SetToReproducible" ) Then%>
|
| 129 |
ghuddy |
2577 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>" checked></td>
|
|
|
2578 |
<%Else%>
|
|
|
2579 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>" checked disabled></td>
|
|
|
2580 |
<%End If%>
|
|
|
2581 |
</tr>
|
|
|
2582 |
<%Else%>
|
|
|
2583 |
<tr>
|
|
|
2584 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2585 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txtr"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
2586 |
<td nowrap class="body_row"><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=NNRtag_id%>" class="body_txtr"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
| 5061 |
dpurdie |
2587 |
<%If canShowControlInProject( "SetToReproducible" ) Then%>
|
| 129 |
ghuddy |
2588 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>"></td>
|
|
|
2589 |
<%Else%>
|
|
|
2590 |
<td><input type="checkbox" name="prod_id_list" value="<%=rsRep("pv_id")%>" disabled></td>
|
|
|
2591 |
<%End If%>
|
|
|
2592 |
</tr>
|
|
|
2593 |
<%End If%>
|
|
|
2594 |
|
|
|
2595 |
|
|
|
2596 |
<% rsRep.MoveNext
|
|
|
2597 |
WEnd
|
|
|
2598 |
%>
|
|
|
2599 |
|
|
|
2600 |
<tr>
|
|
|
2601 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2602 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2603 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 5061 |
dpurdie |
2604 |
<%If canShowControlInProject( "SetToReproducible" ) Then%>
|
| 129 |
ghuddy |
2605 |
<td><input name="btn" type="submit" class="form_btn" value="Assign" onClick="clickedButton=true;MM_validateForm('FRduedate','Due Date','R','FRmsg','Message details','R');return document.MM_returnValue"></td>
|
|
|
2606 |
<%End If%>
|
|
|
2607 |
</tr>
|
|
|
2608 |
</table>
|
|
|
2609 |
</form>
|
|
|
2610 |
<p> </p>
|
|
|
2611 |
<p> <!-- PRINT, SAVE, ETC. ------------>
|
| 119 |
ghuddy |
2612 |
<%If parPrint = "" Then%>
|
| 129 |
ghuddy |
2613 |
<br>
|
|
|
2614 |
<br>
|
|
|
2615 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
2616 |
<br>
|
|
|
2617 |
|
| 119 |
ghuddy |
2618 |
<%End If%>
|
|
|
2619 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
2620 |
<%
|
| 129 |
ghuddy |
2621 |
rsRep.Close()
|
|
|
2622 |
Set rsRep = nothing
|
|
|
2623 |
End If
|
|
|
2624 |
|
| 119 |
ghuddy |
2625 |
End Sub
|
| 129 |
ghuddy |
2626 |
%>
|
| 119 |
ghuddy |
2627 |
|
|
|
2628 |
<%
|
|
|
2629 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2630 |
'==================================================================================
|
| 129 |
ghuddy |
2631 |
' Report Name : Unit Tests per Package
|
|
|
2632 |
' Description : List unit tests per package showing the unit test completeness
|
|
|
2633 |
' INPUT : Project, Vesion Tree, Release Label, Base View, Level of Completeness, Show/Hide Dependencies, PV_ID
|
| 119 |
ghuddy |
2634 |
'==================================================================================
|
|
|
2635 |
Sub Unit_Tests_Per_Package ( sSection, nProj_id, nRtag_id, nBase_view_id, nLevel_of_complete, nShow_dependencies, nPv_id )
|
| 129 |
ghuddy |
2636 |
Dim Query_String, rsRep
|
|
|
2637 |
Const Allow_All = TRUE
|
|
|
2638 |
Const Disallow_All = FALSE
|
| 119 |
ghuddy |
2639 |
|
| 129 |
ghuddy |
2640 |
If nProj_id = "" Then nProj_id = -1
|
|
|
2641 |
If nRtag_id = "" Then nRtag_id = -1
|
|
|
2642 |
If nShow_dependencies = "" Then nShow_dependencies = 0
|
|
|
2643 |
If nPv_id = "" Then nPv_id = -1
|
| 119 |
ghuddy |
2644 |
|
| 129 |
ghuddy |
2645 |
If sSection = "TITLE" Then
|
|
|
2646 |
Response.write "Unit Tests per Package"
|
|
|
2647 |
Exit Sub
|
|
|
2648 |
End If
|
|
|
2649 |
|
|
|
2650 |
|
|
|
2651 |
If sSection = "FORM" Then
|
|
|
2652 |
%>
|
|
|
2653 |
|
|
|
2654 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
2655 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
2656 |
<tr>
|
|
|
2657 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
|
|
2658 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
|
|
2659 |
<td width="100%"><%Call Get_Projects( nProj_id, Disallow_All )%></td>
|
|
|
2660 |
</tr>
|
|
|
2661 |
<tr>
|
|
|
2662 |
<td nowrap class="form_field"> </td>
|
|
|
2663 |
<td align="right" nowrap class="form_field">Release</td>
|
|
|
2664 |
<td><%Call Get_Release_Labels ( nProj_id, nRtag_id, Disallow_All )%></td>
|
|
|
2665 |
</tr>
|
|
|
2666 |
<tr>
|
|
|
2667 |
<td nowrap class="form_field"> </td>
|
|
|
2668 |
<td align="right" nowrap class="form_field">Base View</td>
|
|
|
2669 |
<td><%Call Get_Base_Views ( nRtag_id, nBase_view_id, Allow_All )%></td>
|
|
|
2670 |
</tr>
|
|
|
2671 |
<tr>
|
|
|
2672 |
<td nowrap class="form_field"> </td>
|
|
|
2673 |
<td align="right" nowrap class="form_field">Show Dependencie's Unit Tests</td>
|
|
|
2674 |
<td><input type="checkbox" name="FRshow_deps" value="1" <%If nShow_dependencies <> 0 Then%>checked<%End If%>></td>
|
|
|
2675 |
</tr>
|
|
|
2676 |
<tr>
|
|
|
2677 |
<td nowrap class="form_field"> </td>
|
|
|
2678 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
2679 |
<td><br>
|
|
|
2680 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
2681 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
2682 |
<input type="hidden" name="FRtest_complete" value="0">
|
|
|
2683 |
<input type="hidden" name="action" value="true">
|
|
|
2684 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
2685 |
</td>
|
|
|
2686 |
</tr>
|
|
|
2687 |
</form>
|
|
|
2688 |
</table>
|
|
|
2689 |
<% Exit Sub
|
|
|
2690 |
End If
|
|
|
2691 |
|
|
|
2692 |
|
|
|
2693 |
If sSection = "BODY" Then
|
|
|
2694 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
2695 |
|
|
|
2696 |
Query_String = ReadFile( rootPath & "queries\rep_unit_tests_per_package.sql" )
|
|
|
2697 |
|
|
|
2698 |
OraDatabase.Parameters.Add "RTAG_ID", nRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2699 |
OraDatabase.Parameters.Add "BASE_VIEW", nBase_view_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2700 |
OraDatabase.Parameters.Add "COMPLETENESS", nLevel_of_complete, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2701 |
OraDatabase.Parameters.Add "SHOW_DEPS", nShow_dependencies, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2702 |
OraDatabase.Parameters.Add "PV_ID", nPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
2703 |
%>
|
|
|
2704 |
<table width="100%" border="0" cellspacing="0" cellpadding="1">
|
|
|
2705 |
<tr>
|
|
|
2706 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2707 |
<td width="1%" nowrap class="body_colb"> </td>
|
|
|
2708 |
<td width="1%" nowrap class="body_colb">Package Name </td>
|
|
|
2709 |
<td width="1%" nowrap class="body_colb">Version </td>
|
|
|
2710 |
<td width="1%" nowrap class="body_colb">Test Name </td>
|
|
|
2711 |
<td width="100%" nowrap class="body_colb">Test Summary </td>
|
|
|
2712 |
<td width="1%" nowrap class="body_colb"></td>
|
|
|
2713 |
<td width="1%" nowrap class="body_colb">Stamp</td>
|
|
|
2714 |
<td width="1%" nowrap class="body_colb">Test Completed </td>
|
|
|
2715 |
</tr>
|
|
|
2716 |
<tr>
|
|
|
2717 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2718 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2719 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2720 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2721 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2722 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2723 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2724 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2725 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2726 |
</tr>
|
|
|
2727 |
<%
|
|
|
2728 |
Dim currBase_view_id, currPv_id, currDpv_id, showTests
|
|
|
2729 |
currBase_view_id = -1
|
|
|
2730 |
currPv_id = -1
|
|
|
2731 |
currDpv_id = -1
|
|
|
2732 |
|
|
|
2733 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
2734 |
|
| 5952 |
dpurdie |
2735 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
2736 |
OraDatabase.Parameters.Remove "BASE_VIEW"
|
|
|
2737 |
OraDatabase.Parameters.Remove "COMPLETENESS"
|
|
|
2738 |
OraDatabase.Parameters.Remove "SHOW_DEPS"
|
|
|
2739 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
2740 |
|
| 129 |
ghuddy |
2741 |
If rsRep.RecordCount = 0 Then
|
|
|
2742 |
With Response
|
|
|
2743 |
.write "<tr>"
|
|
|
2744 |
.write "<td colspan='9' class='body_row'>Found 0 records</td>"
|
|
|
2745 |
.write "</tr>"
|
|
|
2746 |
End With
|
|
|
2747 |
End If
|
|
|
2748 |
|
|
|
2749 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
2750 |
If nShow_dependencies <> 0 Then
|
|
|
2751 |
' show dependency is ON
|
|
|
2752 |
If rsRep("dpkg_name") = "------" Then
|
|
|
2753 |
showTests = FALSE
|
|
|
2754 |
Else
|
|
|
2755 |
showTests = TRUE
|
|
|
2756 |
End If
|
|
|
2757 |
Else
|
|
|
2758 |
showTests = TRUE
|
|
|
2759 |
End If
|
|
|
2760 |
|
|
|
2761 |
' -------- GROUP BY BASE VIEW -----------------
|
|
|
2762 |
If CDbl(currBase_view_id) <> CDbl(rsRep("base_view_id")) Then
|
|
|
2763 |
%>
|
|
|
2764 |
<tr>
|
|
|
2765 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2766 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2767 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2768 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2769 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2770 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2771 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2772 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2773 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2774 |
</tr>
|
|
|
2775 |
<tr>
|
|
|
2776 |
<td valign="top" nowrap class="body_scol"><%=rsRep("view_name")%></td>
|
|
|
2777 |
<td> </td>
|
|
|
2778 |
<td> </td>
|
|
|
2779 |
<td> </td>
|
|
|
2780 |
<td> </td>
|
|
|
2781 |
<td> </td>
|
|
|
2782 |
<td> </td>
|
|
|
2783 |
<td> </td>
|
|
|
2784 |
<td> </td>
|
|
|
2785 |
</tr>
|
|
|
2786 |
<%
|
|
|
2787 |
currBase_view_id = CDbl(rsRep("base_view_id"))
|
|
|
2788 |
End If
|
|
|
2789 |
' -------- END GROUP BASE VIEW ------------------------
|
|
|
2790 |
%>
|
|
|
2791 |
<%
|
|
|
2792 |
' -------- GROUP BY PACKAGE -----------------
|
|
|
2793 |
If CDbl(currPv_id) <> CDbl(rsRep("pv_id")) Then
|
|
|
2794 |
%>
|
|
|
2795 |
<tr>
|
|
|
2796 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2797 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2798 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2799 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2800 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2801 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2802 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2803 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2804 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2805 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2806 |
</tr>
|
|
|
2807 |
<tr>
|
|
|
2808 |
<td> </td>
|
| 5860 |
dpurdie |
2809 |
<td><%If rsRep("dlocked") = "Y" Then%><img src="images/i_locked.gif" width="7" height="10" hspace="2" title="Officially released."><%Else%><img src="images/spacer.gif" width="7" height="10" hspace="2"><%End If%></td>
|
| 129 |
ghuddy |
2810 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
|
|
2811 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
|
|
2812 |
<td> </td>
|
|
|
2813 |
<td> </td>
|
|
|
2814 |
<td> </td>
|
|
|
2815 |
<td> </td>
|
|
|
2816 |
<td align="center" valign="top" nowrap><%If nShow_dependencies = 0 Then%><%If IsNull( rsRep("not_done") ) Then%><img src="images/i_boxtick_on.gif" width="13" height="13"><%Else%><img src="images/i_boxtick_off.gif" width="13" height="13"><%End If%><%End If%></td>
|
|
|
2817 |
</tr>
|
|
|
2818 |
<%
|
|
|
2819 |
currPv_id = CDbl(rsRep("pv_id"))
|
|
|
2820 |
End If
|
|
|
2821 |
' -------- END GROUP PACKAGE ------------------------
|
|
|
2822 |
%>
|
|
|
2823 |
<%
|
|
|
2824 |
' -------- GROUP BY DEPENDENCY -----------------
|
|
|
2825 |
If Not IsNull(rsRep("dpv_id")) Then
|
|
|
2826 |
If CDbl(currDpv_id) <> CDbl(rsRep("dpv_id")) Then
|
|
|
2827 |
%>
|
|
|
2828 |
<tr>
|
|
|
2829 |
<td> </td>
|
|
|
2830 |
<td> </td>
|
|
|
2831 |
<td> </td>
|
|
|
2832 |
<td> </td>
|
|
|
2833 |
<td valign="top" nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("dpv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("dpkg_name")%></strong></a></td>
|
|
|
2834 |
<td valign="top" nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("dpv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("dpkg_version")%></strong></a></td>
|
|
|
2835 |
<td> </td>
|
|
|
2836 |
<td> </td>
|
|
|
2837 |
<td align="center" valign="top" nowrap><%If IsNull( rsRep("not_done") ) Then%><img src="images/i_boxtick_on.gif" width="13" height="13"><%Else%><img src="images/i_boxtick_off.gif" width="13" height="13"><%End If%></td>
|
|
|
2838 |
</tr>
|
|
|
2839 |
<%
|
|
|
2840 |
currDpv_id = CDbl(rsRep("dpv_id"))
|
|
|
2841 |
End If
|
|
|
2842 |
End If
|
|
|
2843 |
' -------- END GROUP DEPENDENCY ------------------------
|
|
|
2844 |
%>
|
|
|
2845 |
<%If Not IsNull( rsRep("completed_by") ) AND showTests Then%>
|
|
|
2846 |
<tr>
|
|
|
2847 |
<td> </td>
|
|
|
2848 |
<td> </td>
|
|
|
2849 |
<td> </td>
|
|
|
2850 |
<td> </td>
|
|
|
2851 |
<td bgcolor="#F5F5F5" valign="top" nowrap class="body_row"><img src="images/i_test.gif" width="16" height="16" hspace="1" align="absmiddle"><%=rsRep("test_name")%></td>
|
|
|
2852 |
<td bgcolor="#F5F5F5" valign="top" class="body_row"><%=NewLine_To_BR ( To_HTML ( rsRep("test_summary") ) )%></td>
|
| 6612 |
dpurdie |
2853 |
<td bgcolor="#F5F5F5" align="center" valign="top"></td>
|
|
|
2854 |
<td bgcolor="#F5F5F5" valign="top" nowrap class="body_txt"><%=DisplayDate ( rsRep("completion_date") )%> <%=emailField(rsRep("completed_by"),rsRep("user_email"))%></td>
|
| 129 |
ghuddy |
2855 |
<td> </td>
|
|
|
2856 |
</tr>
|
|
|
2857 |
<tr>
|
|
|
2858 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2859 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2860 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2861 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2862 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2863 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2864 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2865 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2866 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2867 |
</tr>
|
|
|
2868 |
<%End If%>
|
|
|
2869 |
<% rsRep.MoveNext
|
|
|
2870 |
WEnd
|
|
|
2871 |
%>
|
|
|
2872 |
<tr>
|
|
|
2873 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2874 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2875 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2876 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2877 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2878 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2879 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2880 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2881 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
2882 |
</tr>
|
|
|
2883 |
</table>
|
|
|
2884 |
|
|
|
2885 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
2886 |
<%If parPrint = "" Then%>
|
|
|
2887 |
<br>
|
|
|
2888 |
<br>
|
|
|
2889 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
2890 |
<br>
|
|
|
2891 |
<%End If%>
|
|
|
2892 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
2893 |
<%
|
|
|
2894 |
rsRep.Close
|
|
|
2895 |
Set rsRep = nothing
|
|
|
2896 |
End If
|
|
|
2897 |
|
| 119 |
ghuddy |
2898 |
End Sub
|
| 129 |
ghuddy |
2899 |
%>
|
| 159 |
ghuddy |
2900 |
|
|
|
2901 |
|
|
|
2902 |
<%
|
|
|
2903 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2904 |
Function Get_CQ_Issues ( SSsql, OOrsCQ )
|
| 4553 |
dpurdie |
2905 |
On Error Resume Next
|
|
|
2906 |
Set OOrsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
|
|
|
2907 |
Get_CQ_Issues = Err.Number
|
| 159 |
ghuddy |
2908 |
End Function
|
|
|
2909 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2910 |
Function GetRMIssueState (NNpv_id, NNissId)
|
|
|
2911 |
Dim rsTemp, Query_String
|
|
|
2912 |
Dim s
|
|
|
2913 |
Query_String = _
|
|
|
2914 |
" SELECT (CASE WHEN iss_state = 0 THEN ' (O)' ELSE ' (F)' END) AS issState "&_
|
|
|
2915 |
" FROM cq_issues cq "&_
|
|
|
2916 |
" WHERE cq.pv_id = "& NNpv_id &_
|
|
|
2917 |
" AND cq.iss_id = "& NNissId
|
|
|
2918 |
|
|
|
2919 |
Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
|
|
|
2920 |
|
|
|
2921 |
s = ""
|
|
|
2922 |
If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
|
|
|
2923 |
s = (rsTemp.Fields("issState"))
|
|
|
2924 |
End If
|
|
|
2925 |
|
|
|
2926 |
rsTemp.Close
|
|
|
2927 |
Set rsTemp = nothing
|
|
|
2928 |
|
|
|
2929 |
GetRMIssueState = s
|
|
|
2930 |
End Function
|
|
|
2931 |
'----------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2932 |
' Function returns the number of imported clearquest issues
|
|
|
2933 |
' and builds a string suitable for querying the clearquest issues database
|
|
|
2934 |
Function Get_Package_Issues ( NNpv_id, SSsql, DDfixedIss, DDnotesIssDict, nIssState )
|
| 3975 |
dpurdie |
2935 |
Dim rsTemp, sqlstr, DEVIiss, retVal
|
| 159 |
ghuddy |
2936 |
|
|
|
2937 |
sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE pv_id="& NNpv_id &" AND iss_state IN (" & nIssState & ")"
|
|
|
2938 |
|
|
|
2939 |
Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
|
|
|
2940 |
retVal = rsTemp.RecordCount
|
|
|
2941 |
|
|
|
2942 |
DEVIiss = "-1"
|
|
|
2943 |
|
|
|
2944 |
While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
|
|
|
2945 |
If CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_DEVI_ID) Then
|
|
|
2946 |
DEVIiss = DEVIiss &","& rsTemp("iss_id")
|
|
|
2947 |
End If
|
|
|
2948 |
|
|
|
2949 |
rsTemp.MoveNext
|
|
|
2950 |
WEnd
|
|
|
2951 |
|
|
|
2952 |
' Construct SQL statement for CQ database
|
|
|
2953 |
SSsql = ReadFile( rootPath & "queries\cq_issues_rep1.sql" )
|
|
|
2954 |
SSsql = Replace( SSsql, "/*enumCLEARQUEST_DEVI_ID*/", enumCLEARQUEST_DEVI_ID)
|
|
|
2955 |
SSsql = Replace( SSsql, "/*DEVIiss*/", DEVIiss)
|
|
|
2956 |
|
|
|
2957 |
rsTemp.Close()
|
|
|
2958 |
Set rsTemp = nothing
|
|
|
2959 |
|
|
|
2960 |
Get_Package_Issues = retVal
|
|
|
2961 |
|
|
|
2962 |
End Function
|
|
|
2963 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2964 |
Sub sdAdd( dict, key, value )
|
|
|
2965 |
if IsNull(value) Then
|
|
|
2966 |
dict.Add CStr(key),""
|
|
|
2967 |
else
|
|
|
2968 |
dict.Add CStr(key),CStr(value)
|
|
|
2969 |
End If
|
|
|
2970 |
End Sub
|
|
|
2971 |
|
|
|
2972 |
Function sdItem( dict, i )
|
|
|
2973 |
Dim a
|
|
|
2974 |
Dim s
|
|
|
2975 |
a = dict.Items
|
|
|
2976 |
s = a(i)
|
|
|
2977 |
sdItem=s
|
|
|
2978 |
End Function
|
|
|
2979 |
|
|
|
2980 |
Function sdKey( dict, i )
|
|
|
2981 |
Dim a
|
|
|
2982 |
a = dict.Keys
|
|
|
2983 |
sdKey = a(i)
|
|
|
2984 |
End Function
|
|
|
2985 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2986 |
Function ReleaseDeviStatus_ReportCheckbox( width, NameAndValue, Label, bCheck )
|
|
|
2987 |
Dim s
|
|
|
2988 |
If (IsNull(Request(NameAndValue)) OR (Request(NameAndValue) = "")) AND (not bCheck) Then
|
|
|
2989 |
s = "<td width=""" & width & """><INPUT Type=Checkbox name=""" & NameAndValue & """ value=""" & NameAndValue & """>" & Label & "</td>"
|
|
|
2990 |
Else
|
|
|
2991 |
s = "<td width=""" & width & """><INPUT Type=Checkbox CHECKED name=""" & NameAndValue & """ value=""" & NameAndValue & """>" & Label & "</td>"
|
|
|
2992 |
End If
|
|
|
2993 |
ReleaseDeviStatus_ReportCheckbox = s
|
|
|
2994 |
End Function
|
|
|
2995 |
|
|
|
2996 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
2997 |
Function GetCQIssuesListFilter
|
|
|
2998 |
Dim s
|
|
|
2999 |
s = ""
|
|
|
3000 |
If not (IsNull(Request("CB_FILTER_FIXED")) OR (Request("CB_FILTER_FIXED") = "")) Then
|
|
|
3001 |
s = CStr(enumISSUES_STATE_FIXED)
|
|
|
3002 |
If not (IsNull(Request("CB_FILTER_OUTSTANDING")) OR (Request("CB_FILTER_OUTSTANDING") = "")) Then
|
|
|
3003 |
s = s & "," & CStr(enumISSUES_STATE_IMPORTED)
|
|
|
3004 |
End If
|
|
|
3005 |
Else
|
|
|
3006 |
If not (IsNull(Request("CB_FILTER_OUTSTANDING")) OR (Request("CB_FILTER_OUTSTANDING") = "")) Then
|
|
|
3007 |
s = CStr(enumISSUES_STATE_IMPORTED)
|
|
|
3008 |
End If
|
|
|
3009 |
End If
|
|
|
3010 |
GetCQIssuesListFilter = s
|
|
|
3011 |
End Function
|
|
|
3012 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
3013 |
Function GetPkgNameAndVersion(SSPvId, SSPkgNameAndVer)
|
|
|
3014 |
Dim SSpkgID, SSpkgName, SSpkgVersion, SSsrc_path, SSpkgDesc, BBdlocked
|
|
|
3015 |
SSpkgID = ""
|
|
|
3016 |
SSpkgName = ""
|
|
|
3017 |
SSpkgVersion = ""
|
|
|
3018 |
SSsrc_path = ""
|
|
|
3019 |
SSpkgDesc = ""
|
|
|
3020 |
BBdlocked = 0
|
|
|
3021 |
Call Get_Pkg_Short_Info( SSPvId, SSpkgID, SSpkgName, SSpkgVersion, SSsrc_path, SSpkgDesc, BBdlocked )
|
|
|
3022 |
If not ((SSpkgName = "") and (SSpkgVersion = "")) Then
|
|
|
3023 |
SSPkgNameAndVer = SSpkgName & " " & SSpkgVersion
|
|
|
3024 |
GetPkgNameAndVersion = True
|
|
|
3025 |
Else
|
|
|
3026 |
SSPkgNameAndVer = ""
|
|
|
3027 |
GetPkgNameAndVersion = False
|
|
|
3028 |
End If
|
|
|
3029 |
End Function
|
|
|
3030 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
3031 |
'==================================================================================
|
|
|
3032 |
' Report Name : ReleaseDeviStatus_Report
|
|
|
3033 |
' Description : List DEVIs for all Package Versions in a Release
|
|
|
3034 |
' INPUT :
|
|
|
3035 |
'==================================================================================
|
|
|
3036 |
Sub ReleaseDeviStatus_Report ( SSsection, NNproj_id, NNrtag_id)
|
|
|
3037 |
Dim rsCQQry ' Query for the CLEARQUEST database
|
|
|
3038 |
Dim rsRMQry ' Query for the RELEASE MANAGER database
|
|
|
3039 |
Dim SQLstr ' String to contain a query
|
|
|
3040 |
Dim issueCnt ' Records how many CQ issues were found for a given RM package version
|
|
|
3041 |
Dim retVal ' General return value
|
|
|
3042 |
Dim isFirstDeviRow ' HTML rendering helper
|
|
|
3043 |
Dim isRowOpen ' HTML rendering helper
|
|
|
3044 |
Dim dict_Iss_Id_to_Iss_Num ' Dictionaries populated during the formation of the package DEVI list
|
|
|
3045 |
Dim dict_Iss_Id_to_Iss_DB ' creation, supporting the generation of the DEVI details list.
|
|
|
3046 |
Dim dict_Iss_Id_to_Risk
|
|
|
3047 |
Dim dict_Iss_Id_to_Summary
|
|
|
3048 |
Dim dict_Iss_Id_to_CodeRev
|
|
|
3049 |
Dim dict_Iss_Id_to_IntNotes
|
|
|
3050 |
Dim dict_Iss_Id_to_RelDBPatches
|
|
|
3051 |
Dim dict_Iss_Id_to_Pkg
|
|
|
3052 |
Dim dict_Iss_Id_to_PvId
|
|
|
3053 |
Dim dict_Iss_Id_to_Iss_Status
|
|
|
3054 |
Dim dict_Iss_Id_to_Iss_Type
|
|
|
3055 |
Dim dict_Iss_Id_to_Aff_Pkg
|
|
|
3056 |
Dim i,j,k ' General loop vars
|
|
|
3057 |
Dim s,strIn,strOut,sDisplay ' General string vars
|
|
|
3058 |
Dim a ' General array var
|
|
|
3059 |
Dim pkgArr ' Holds an array of CSV strings listing RM package names, 1 array element per unique CQ issue found
|
|
|
3060 |
Dim pkgCsv ' Holds a single CSV string listing RM package names, related to a single unique CQ issue
|
|
|
3061 |
Dim pvIdArr ' Holds an array of CSV strings listing RM package PV IDs, 1 array element per unique CQ issue found
|
|
|
3062 |
Dim pvIdCsv ' Holds a single CSV string listing RM package PV IDs, related to a single unique CQ issue
|
|
|
3063 |
Dim crRefArr ' Holds an array of code review reference strings
|
|
|
3064 |
Dim relDbPatchArr ' Holds an array of related DB patch strings
|
|
|
3065 |
Dim sqlTblCnt ' Counts the number of tables in the RM query string
|
|
|
3066 |
Dim FSO ' File System Object
|
|
|
3067 |
Dim NewTextFile ' File Object
|
|
|
3068 |
Dim emailReport ' Boolean flag signalling email generation
|
|
|
3069 |
Dim cqFilterStr ' Fixed and/or Outstanding Issues Filter for RM Query
|
|
|
3070 |
Dim cbWIPChecked ' Default checkbox states
|
|
|
3071 |
Dim cbPendingChecked
|
|
|
3072 |
Dim cbReleasedChecked
|
|
|
3073 |
Dim cbFixed
|
|
|
3074 |
Dim cbOutstanding
|
|
|
3075 |
Dim cbWithoutIssues
|
|
|
3076 |
Dim cbTraverseRipples
|
|
|
3077 |
Dim reObj ' regular expression object
|
|
|
3078 |
Dim reObjMatch
|
|
|
3079 |
Dim NumPkgsListed ' Stats collection vars
|
|
|
3080 |
Dim NumIssuesListed
|
|
|
3081 |
Dim parRipDate ' traverse ripple limit date
|
|
|
3082 |
Dim lastNonRipplePvId ' pv_id after ripple version traversal
|
|
|
3083 |
Dim cqIssId ' clearquest database ID for a given issue (not a human readable number)
|
|
|
3084 |
|
|
|
3085 |
Const Allow_All = TRUE
|
|
|
3086 |
Const Disallow_All = FALSE
|
|
|
3087 |
|
|
|
3088 |
NumPkgsListed = 0
|
|
|
3089 |
NumIssuesListed = 0
|
|
|
3090 |
|
|
|
3091 |
If NNproj_id = "" Then NNproj_id = -1
|
|
|
3092 |
If NNrtag_id = "" Then NNrtag_id = -1
|
|
|
3093 |
|
|
|
3094 |
If SSsection = "TITLE" Then
|
|
|
3095 |
Response.write "Release DEVI Status"
|
|
|
3096 |
Exit Sub
|
|
|
3097 |
End If
|
|
|
3098 |
|
|
|
3099 |
' Determine if we have to assert default check status on one of the checkboxes
|
|
|
3100 |
cbWIPChecked = False
|
|
|
3101 |
cbPendingChecked = False
|
|
|
3102 |
cbReleasedChecked = False
|
|
|
3103 |
cbFixed = False
|
|
|
3104 |
cbOutstanding = False
|
|
|
3105 |
cbWithoutIssues = False
|
|
|
3106 |
cbTraverseRipples = False
|
|
|
3107 |
If (IsNull(Request("CB_FILTER_WIP")) OR (Request("CB_FILTER_WIP") = "")) _
|
|
|
3108 |
and (IsNull(Request("CB_FILTER_PENDING")) OR (Request("CB_FILTER_PENDING") = "")) _
|
|
|
3109 |
and (IsNull(Request("CB_FILTER_RELEASED")) OR (Request("CB_FILTER_RELEASED") = "")) Then
|
|
|
3110 |
cbWIPChecked = True
|
|
|
3111 |
End If
|
|
|
3112 |
If (IsNull(Request("CB_FILTER_FIXED")) OR (Request("CB_FILTER_FIXED") = "")) _
|
|
|
3113 |
and (IsNull(Request("CB_FILTER_OUTSTANDING")) OR (Request("CB_FILTER_OUTSTANDING") = "")) Then
|
|
|
3114 |
cbFixed = True
|
|
|
3115 |
End If
|
|
|
3116 |
|
|
|
3117 |
If (IsNull(Request("FRripdate")) OR (Request("FRripdate") = "")) Then
|
| 5639 |
dpurdie |
3118 |
parRipDate = DisplayDate(DateAdd("d",-31,Date))
|
| 159 |
ghuddy |
3119 |
Else
|
|
|
3120 |
parRipDate = Request("FRripdate")
|
|
|
3121 |
End If
|
|
|
3122 |
|
|
|
3123 |
If SSsection = "FORM" Then
|
|
|
3124 |
%>
|
| 5639 |
dpurdie |
3125 |
<script>
|
|
|
3126 |
$(document).ready(function(){
|
|
|
3127 |
$("#FRripdate").datepicker({
|
|
|
3128 |
constrainInput: true,
|
|
|
3129 |
showOn: 'both',
|
|
|
3130 |
buttonImageOnly : true,
|
|
|
3131 |
buttonImage: "images/i_calendar.gif",
|
|
|
3132 |
buttonText: "Select Date",
|
|
|
3133 |
dateFormat : "D dd-M-yy",
|
|
|
3134 |
maxDate : 0,
|
|
|
3135 |
yearRange : "1970:2099",
|
|
|
3136 |
changeYear : true,
|
|
|
3137 |
changeMonth: true,
|
|
|
3138 |
});
|
|
|
3139 |
});
|
|
|
3140 |
|
|
|
3141 |
</script>
|
| 159 |
ghuddy |
3142 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
3143 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
|
|
3144 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
3145 |
<tr>
|
|
|
3146 |
<td width="50%">
|
|
|
3147 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
3148 |
<tr>
|
|
|
3149 |
<td width="10%" align="left" valign="top" nowrap class="form_field">Project</td>
|
|
|
3150 |
<td width="90%" valign="top"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
|
|
3151 |
</tr>
|
|
|
3152 |
<tr>
|
|
|
3153 |
<td align="left" nowrap class="form_field">Release</td>
|
|
|
3154 |
<td><%Call Get_Open_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
|
|
3155 |
</tr>
|
|
|
3156 |
<tr><td colspan="2" height="130px"><img src="images/spacer.gif" width="1" height="1"></td></tr>
|
|
|
3157 |
<tr>
|
|
|
3158 |
<td>
|
|
|
3159 |
<input name="btn" type="submit" class="form_btn" value="Submit" >
|
|
|
3160 |
</td>
|
|
|
3161 |
<td>
|
|
|
3162 |
<input name="btn" type="submit" class="form_btn" value="Mail Me CSV Report">
|
|
|
3163 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
3164 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
3165 |
<input type="hidden" name="action" value="true">
|
|
|
3166 |
</td>
|
|
|
3167 |
</tr>
|
|
|
3168 |
</table>
|
|
|
3169 |
</td>
|
|
|
3170 |
<td width="50%">
|
|
|
3171 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
3172 |
<tr>
|
|
|
3173 |
<td width="60%" valign="top">
|
|
|
3174 |
<fieldset>
|
|
|
3175 |
<legend><a href="javascript:;" class="body_scol" >Include Package Versions<%=Quick_Help("RepRDS_pv")%> </a></legend>
|
|
|
3176 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
3177 |
<tr><%=ReleaseDeviStatus_ReportCheckbox("25%", "CB_FILTER_WIP", "From Work-in-progress", cbWIPChecked)%></tr>
|
|
|
3178 |
<tr><%=ReleaseDeviStatus_ReportCheckbox("17%", "CB_FILTER_PENDING", "From Pending", cbPendingChecked)%></tr>
|
|
|
3179 |
<tr><%=ReleaseDeviStatus_ReportCheckbox("20%", "CB_FILTER_RELEASED", "From Released", cbReleasedChecked)%></tr>
|
|
|
3180 |
<tr><%=ReleaseDeviStatus_ReportCheckbox("100%", "CB_FILTER_WITHOUT_ISSUES", "Without Issues", cbWithoutIssues)%></tr>
|
|
|
3181 |
</table>
|
|
|
3182 |
</fieldset>
|
|
|
3183 |
</td>
|
|
|
3184 |
<td width="40%" valign="top">
|
|
|
3185 |
<fieldset>
|
|
|
3186 |
<legend><a href="javascript:;" class="body_scol" > Include Issues<%=Quick_Help("RepRDS_iss")%> </a></legend>
|
|
|
3187 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
3188 |
<tr><%=ReleaseDeviStatus_ReportCheckbox("100%", "CB_FILTER_FIXED", "Fixed", cbFixed)%></tr>
|
|
|
3189 |
<tr><%=ReleaseDeviStatus_ReportCheckbox("100%", "CB_FILTER_OUTSTANDING", "Outstanding", cbOutstanding)%></tr>
|
|
|
3190 |
</table>
|
|
|
3191 |
</fieldset>
|
|
|
3192 |
</td>
|
|
|
3193 |
</tr>
|
|
|
3194 |
<tr>
|
|
|
3195 |
<td width="60%" valign="top" colspan="2">
|
|
|
3196 |
<fieldset>
|
|
|
3197 |
<legend><a href="javascript:;" class="body_scol" > From Released<%=Quick_Help("RepRDS_trav")%> </a></legend>
|
|
|
3198 |
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
|
3199 |
<tr>
|
|
|
3200 |
<%=ReleaseDeviStatus_ReportCheckbox("60%", "CB_FILTER_TRAVERSE_RIPPLES", "Traverse Ripples as far back as", cbTraverseRipples)%>
|
|
|
3201 |
<td>
|
| 5639 |
dpurdie |
3202 |
<input type="text" name="FRripdate" maxlength="10" size="12" value="<%=parRipDate%>" id="FRripdate">
|
| 159 |
ghuddy |
3203 |
</td>
|
|
|
3204 |
</tr>
|
|
|
3205 |
</table>
|
|
|
3206 |
</fieldset>
|
|
|
3207 |
</td>
|
|
|
3208 |
</tr>
|
|
|
3209 |
</table>
|
|
|
3210 |
</td>
|
|
|
3211 |
</tr>
|
|
|
3212 |
</table>
|
|
|
3213 |
</form>
|
|
|
3214 |
</table>
|
|
|
3215 |
<%
|
|
|
3216 |
Exit Sub
|
|
|
3217 |
End If
|
|
|
3218 |
|
|
|
3219 |
If SSsection = "BODY" Then
|
|
|
3220 |
emailReport = false
|
|
|
3221 |
If Request("btn") = "Mail Me CSV Report" Then
|
|
|
3222 |
emailReport = true
|
|
|
3223 |
End If
|
|
|
3224 |
|
|
|
3225 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
3226 |
If NNrtag_id = -1 then Exit Sub
|
|
|
3227 |
|
|
|
3228 |
' Construct Release Manager Query based upon form settings (rtag and checkbox states)
|
|
|
3229 |
sqlTblCnt = 0
|
|
|
3230 |
SQLstr = "SELECT * FROM ( "
|
|
|
3231 |
If not (IsNull(Request("CB_FILTER_WIP")) OR (Request("CB_FILTER_WIP") = "")) Then
|
|
|
3232 |
sqlTblCnt = sqlTblCnt + 1
|
|
|
3233 |
SQLstr = SQLstr & " SELECT p.PROJ_ID, rt.RTAG_ID, v.VIEW_ID, pk.PKG_ID, pv.PV_ID,"&_
|
|
|
3234 |
" p.PROJ_NAME, rt.RTAG_NAME, v.VIEW_NAME, pk.PKG_NAME, pv.PKG_VERSION, pv.PKG_LABEL, pv.BUILD_TYPE, pv.DLOCKED, 'WIP' as STATE"&_
|
|
|
3235 |
" FROM PACKAGE_VERSIONS pv,"&_
|
|
|
3236 |
" PACKAGES pk,"&_
|
|
|
3237 |
" RELEASE_TAGS rt,"&_
|
|
|
3238 |
" PROJECTS p,"&_
|
|
|
3239 |
" VIEWS v," &_
|
|
|
3240 |
" WORK_IN_PROGRESS wip"&_
|
|
|
3241 |
" WHERE wip.RTAG_ID = :RTAG_ID"&_
|
|
|
3242 |
" AND wip.RTAG_ID = rt.RTAG_ID"&_
|
|
|
3243 |
" AND wip.PV_ID = pv.PV_ID"&_
|
|
|
3244 |
" AND wip.VIEW_ID = v.VIEW_ID"&_
|
|
|
3245 |
" AND pv.PKG_ID = pk.PKG_ID"&_
|
|
|
3246 |
" AND rt.PROJ_ID = p.PROJ_ID"
|
|
|
3247 |
End If
|
|
|
3248 |
|
|
|
3249 |
If not (IsNull(Request("CB_FILTER_PENDING")) OR (Request("CB_FILTER_PENDING") = "")) Then
|
|
|
3250 |
If sqlTblCnt > 0 Then
|
|
|
3251 |
SQLstr = SQLstr & " UNION ALL "
|
|
|
3252 |
End If
|
|
|
3253 |
sqlTblCnt = sqlTblCnt + 1
|
|
|
3254 |
SQLstr = SQLstr & " SELECT p.PROJ_ID, rt.RTAG_ID, v.VIEW_ID, pk.PKG_ID, pv.PV_ID,"&_
|
|
|
3255 |
" p.PROJ_NAME, rt.RTAG_NAME, v.VIEW_NAME, pk.PKG_NAME, pv.PKG_VERSION, pv.PKG_LABEL, pv.BUILD_TYPE, pv.DLOCKED, 'Pending' as STATE"&_
|
|
|
3256 |
" FROM PACKAGE_VERSIONS pv,"&_
|
|
|
3257 |
" PACKAGES pk,"&_
|
|
|
3258 |
" RELEASE_TAGS rt,"&_
|
|
|
3259 |
" PROJECTS p,"&_
|
|
|
3260 |
" VIEWS v," &_
|
|
|
3261 |
" PLANNED pl"&_
|
|
|
3262 |
" WHERE pl.RTAG_ID = :RTAG_ID"&_
|
|
|
3263 |
" AND pl.RTAG_ID = rt.RTAG_ID"&_
|
|
|
3264 |
" AND pl.PV_ID = pv.PV_ID"&_
|
|
|
3265 |
" AND pl.VIEW_ID = v.VIEW_ID"&_
|
|
|
3266 |
" AND pv.PKG_ID = pk.PKG_ID"&_
|
|
|
3267 |
" AND rt.PROJ_ID = p.PROJ_ID"
|
|
|
3268 |
End If
|
|
|
3269 |
|
|
|
3270 |
If not (IsNull(Request("CB_FILTER_RELEASED")) OR (Request("CB_FILTER_RELEASED") = "")) Then
|
|
|
3271 |
If sqlTblCnt > 0 Then
|
|
|
3272 |
SQLstr = SQLstr & " UNION ALL "
|
|
|
3273 |
End If
|
|
|
3274 |
sqlTblCnt = sqlTblCnt + 1
|
|
|
3275 |
SQLstr = SQLstr & " SELECT p.PROJ_ID, rt.RTAG_ID, v.VIEW_ID, pk.PKG_ID, pv.PV_ID,"&_
|
|
|
3276 |
" p.PROJ_NAME, rt.RTAG_NAME, v.VIEW_NAME, pk.PKG_NAME, pv.PKG_VERSION, pv.PKG_LABEL, pv.BUILD_TYPE, pv.DLOCKED, 'Released' as STATE"&_
|
|
|
3277 |
" FROM PACKAGE_VERSIONS pv,"&_
|
|
|
3278 |
" PACKAGES pk,"&_
|
|
|
3279 |
" RELEASE_TAGS rt,"&_
|
|
|
3280 |
" PROJECTS p,"&_
|
|
|
3281 |
" VIEWS v," &_
|
|
|
3282 |
" RELEASE_CONTENT rc"&_
|
|
|
3283 |
" WHERE rc.RTAG_ID = :RTAG_ID"&_
|
|
|
3284 |
" AND rc.RTAG_ID = rt.RTAG_ID"&_
|
|
|
3285 |
" AND rc.PV_ID = pv.PV_ID"&_
|
|
|
3286 |
" AND rc.BASE_VIEW_ID = v.VIEW_ID"&_
|
|
|
3287 |
" AND pv.PKG_ID = pk.PKG_ID"&_
|
|
|
3288 |
" AND rt.PROJ_ID = p.PROJ_ID"
|
|
|
3289 |
End If
|
|
|
3290 |
|
|
|
3291 |
SQLstr = SQLstr & " )"
|
|
|
3292 |
SQLstr = SQLstr & " ORDER BY UPPER(PKG_NAME), PKG_VERSION"
|
|
|
3293 |
|
|
|
3294 |
' Exit if nothing to do
|
|
|
3295 |
If sqlTblCnt = 0 Then
|
|
|
3296 |
Response.Write "Select one or more of Work-in-progress/Pending/Released package version states to be considered"
|
|
|
3297 |
Exit Sub
|
|
|
3298 |
End If
|
|
|
3299 |
|
|
|
3300 |
' Get SQL string for querying the CLEARQUEST database for this package version's fixed issues enumISSUES_STATE_IMPORTED or enumISSUES_STATE_FIXED
|
|
|
3301 |
cqFilterStr = GetCQIssuesListFilter()
|
|
|
3302 |
If cqFilterStr = "" Then
|
|
|
3303 |
Response.Write "Select one or both of Fixed/Outstanding issues lists to be considered"
|
|
|
3304 |
Exit Sub
|
|
|
3305 |
End If
|
|
|
3306 |
|
|
|
3307 |
' Query RELEASE MANAGER for Package versions
|
|
|
3308 |
OraDatabase.Parameters.Add "RTAG_ID", NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
3309 |
Set rsRMQry = OraDatabase.DbCreateDynaset( SQLstr, cint(0))
|
|
|
3310 |
OraDatabase.Parameters.Remove "RTAG_ID"
|
|
|
3311 |
|
|
|
3312 |
' If no records returned issue a message to user and exit
|
|
|
3313 |
If rsRMQry.RecordCount = 0 Then
|
|
|
3314 |
Response.Write "No records returned - try including additional package version states"
|
|
|
3315 |
Exit Sub
|
|
|
3316 |
End If
|
|
|
3317 |
|
|
|
3318 |
' Create a downloadable file
|
|
|
3319 |
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
|
|
|
3320 |
Set NewTextFile = FSO.CreateTextFile(Server.MapPath("docs\ReleaseDEVIStatus_"&objAccessControl.UserName&".csv"), true)
|
|
|
3321 |
|
|
|
3322 |
' Create some dictionaries
|
|
|
3323 |
set dict_Iss_Id_to_Iss_Num = CreateObject("Scripting.Dictionary")
|
|
|
3324 |
set dict_Iss_Id_to_Iss_DB = CreateObject("Scripting.Dictionary")
|
|
|
3325 |
set dict_Iss_Id_to_Pkg = CreateObject("Scripting.Dictionary")
|
|
|
3326 |
set dict_Iss_Id_to_Risk = CreateObject("Scripting.Dictionary")
|
|
|
3327 |
set dict_Iss_Id_to_Summary = CreateObject("Scripting.Dictionary")
|
|
|
3328 |
set dict_Iss_Id_to_CodeRev = CreateObject("Scripting.Dictionary")
|
|
|
3329 |
set dict_Iss_Id_to_IntNotes = CreateObject("Scripting.Dictionary")
|
|
|
3330 |
set dict_Iss_Id_to_RelDBPatches = CreateObject("Scripting.Dictionary")
|
|
|
3331 |
set dict_Iss_Id_to_PvId = CreateObject("Scripting.Dictionary")
|
|
|
3332 |
set dict_Iss_Id_to_Iss_Status = CreateObject("Scripting.Dictionary")
|
|
|
3333 |
set dict_Iss_Id_to_Iss_Type = CreateObject("Scripting.Dictionary")
|
|
|
3334 |
set dict_Iss_Id_to_Aff_Pkg = CreateObject("Scripting.Dictionary")
|
|
|
3335 |
|
|
|
3336 |
set reObj = new RegExp
|
|
|
3337 |
|
|
|
3338 |
NewTextFile.WriteLine(DoubleQuotes("Release DEVI Status Report for " & Get_Proj_Name(Request("FRproj_id")) & ", release " & Get_Release_Name(Request("FRrtag_id"))))
|
|
|
3339 |
NewTextFile.WriteLine("")
|
|
|
3340 |
NewTextFile.WriteLine("Package DEVI List")
|
|
|
3341 |
NewTextFile.WriteLine("")
|
|
|
3342 |
NewTextFile.WriteLine("""Package"",""Label"",""State"",""Issue Number"",""Issue Summary""")
|
|
|
3343 |
%>
|
|
|
3344 |
<H3>Release DEVI Status Report for
|
|
|
3345 |
project <a href="rtree.asp?proj_id=<%=NNproj_id%>" class="txt_linked"><%=Get_Proj_Name(Request("FRproj_id"))%></a>,
|
|
|
3346 |
release <a href="dependencies.asp?rtag_id=<%=NNrtag_id%>" class="txt_linked"><%=Get_Release_Name(Request("FRrtag_id"))%></a>
|
|
|
3347 |
</H3>
|
|
|
3348 |
<H4>Contents</H4>
|
|
|
3349 |
<table width="100%" border="0" cellspacing="0" cellpadding="1">
|
|
|
3350 |
<tr>
|
|
|
3351 |
<td valign="top" nowrap width="15%"><a href="#C1">Package DEVI List</a></td>
|
|
|
3352 |
<td valign="top" width="85%">This contains the list of package versions in the release, along with the CLEARQUEST issues assigned to them.</td>
|
|
|
3353 |
</tr>
|
|
|
3354 |
<tr><td> </td><td> </td></tr>
|
|
|
3355 |
<tr>
|
|
|
3356 |
<td valign="top"><a href="#C2">DEVI Details List</a></td>
|
|
|
3357 |
<td valign="top">This contains the list of CLEARQUEST issues for the release, along with selected details for each, and a reference back to the package versions to which they have been assigned.</td>
|
|
|
3358 |
</tr>
|
|
|
3359 |
<tr>
|
|
|
3360 |
<td valign="top"><a href="#C3">Statistics</a></td>
|
|
|
3361 |
<td valign="top">This contains some statistics collected during the report generation.</td>
|
|
|
3362 |
</tr>
|
|
|
3363 |
<tr>
|
|
|
3364 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3365 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3366 |
</tr>
|
|
|
3367 |
</table>
|
|
|
3368 |
|
|
|
3369 |
<H5><a name="C1">Package DEVI List</a></H5>
|
|
|
3370 |
<table width="100%" border="0" cellspacing="0" cellpadding="1">
|
|
|
3371 |
<tr>
|
|
|
3372 |
<td width="10%" nowrap class="body_colb">Package </td>
|
|
|
3373 |
<td width="10%" nowrap class="body_colb">Label </td>
|
|
|
3374 |
<td width="10%" nowrap class="body_colb">State </td>
|
|
|
3375 |
<td width="10%" class="body_colb">Issue Number<br>(F)=Fixed<br>(O)=Outstanding</td>
|
|
|
3376 |
<td width="60%" nowrap class="body_colb">Issue Summary </td>
|
|
|
3377 |
</tr>
|
|
|
3378 |
<tr>
|
|
|
3379 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3380 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3381 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3382 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3383 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3384 |
</tr>
|
|
|
3385 |
<%
|
|
|
3386 |
while ((NOT rsRMQry.BOF) AND (NOT rsRMQry.EOF))
|
|
|
3387 |
isFirstDeviRow = 1
|
|
|
3388 |
isRowOpen = 1
|
|
|
3389 |
|
|
|
3390 |
' If this package version is a ripple, try and find its non-ripple predecessor in order to get at the
|
|
|
3391 |
' issues that were addressed
|
|
|
3392 |
lastNonRipplePvId = rsRMQry("PV_ID")
|
|
|
3393 |
If not (IsNull(Request("CB_FILTER_TRAVERSE_RIPPLES")) OR (Request("CB_FILTER_TRAVERSE_RIPPLES") = "")) Then
|
|
|
3394 |
if ((rsRMQry("BUILD_TYPE") = "Y") and (rsRMQry("DLOCKED") = "Y")) Then
|
|
|
3395 |
If (IsNull(Request("FRripdate")) OR (Request("FRripdate") = "")) Then
|
| 6480 |
dpurdie |
3396 |
lastNonRipplePvId = getLastNonRippleVersionPVID(rsRMQry("PV_ID"), NULL, NULL)
|
| 159 |
ghuddy |
3397 |
Else
|
|
|
3398 |
lastNonRipplePvId = getLastNonRippleVersionPVIDLimitedByDate(rsRMQry("PV_ID"), Request("FRripdate"))
|
|
|
3399 |
End If
|
|
|
3400 |
If IsNull(lastNonRipplePvId) or (lastNonRipplePvId = "") Then
|
|
|
3401 |
lastNonRipplePvId = rsRMQry("PV_ID")
|
|
|
3402 |
End If
|
|
|
3403 |
End If
|
|
|
3404 |
End If
|
|
|
3405 |
|
|
|
3406 |
issueCnt = Get_Package_Issues (lastNonRipplePvId, SQLstr, NULL, NULL, cqFilterStr )
|
|
|
3407 |
if (issueCnt > 0) _
|
|
|
3408 |
or not(IsNull(Request("CB_FILTER_WITHOUT_ISSUES")) OR (Request("CB_FILTER_WITHOUT_ISSUES") = "")) Then
|
|
|
3409 |
|
|
|
3410 |
NumPkgsListed = NumPkgsListed + 1
|
|
|
3411 |
|
|
|
3412 |
%>
|
|
|
3413 |
<tr>
|
|
|
3414 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3415 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3416 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3417 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3418 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3419 |
</tr>
|
|
|
3420 |
<%
|
|
|
3421 |
|
|
|
3422 |
NewTextFile.Write(DoubleQuotes(rsRMQry("PKG_NAME")) & ",")
|
|
|
3423 |
NewTextFile.Write(DoubleQuotes(rsRMQry("PKG_LABEL")) & ",")
|
|
|
3424 |
NewTextFile.Write(DoubleQuotes(rsRMQry("STATE")) & ",")
|
|
|
3425 |
%>
|
|
|
3426 |
<tr>
|
|
|
3427 |
<td valign="top"><a href="fixed_issues.asp?rtag_id=<%=NNrtag_id%>&pv_id=<%=rsRMQRy("PV_ID")%>" class="txt_linked"><%=rsRMQry("PKG_NAME")%></a></td>
|
|
|
3428 |
<td valign="top"><%=rsRMQry("PKG_LABEL")%></td>
|
|
|
3429 |
<td valign="top"><%=rsRMQry("STATE")%></td>
|
|
|
3430 |
<%
|
|
|
3431 |
|
|
|
3432 |
' Complete the row immediately if this package version has no issues, else process the issues.
|
|
|
3433 |
if issueCnt = 0 Then
|
|
|
3434 |
NewTextFile.WriteLine(",")
|
|
|
3435 |
%>
|
|
|
3436 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3437 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3438 |
</tr>
|
|
|
3439 |
<%
|
|
|
3440 |
isRowOpen = 0
|
|
|
3441 |
Else
|
|
|
3442 |
' Query the CLEARQUEST database
|
|
|
3443 |
retVal = Get_CQ_Issues ( SQLstr, rsCQQry )
|
|
|
3444 |
If retVal = 0 Then
|
|
|
3445 |
While ((NOT rsCQQry.BOF) AND (NOT rsCQQry.EOF))
|
|
|
3446 |
Dim issueNumber
|
|
|
3447 |
issueNumber = rsCQQry("ISS_NUM") & GetRMIssueState (lastNonRipplePvId, rsCQQry("ISS_ID"))
|
|
|
3448 |
|
|
|
3449 |
' Keep dictionary of issue IDs to human readable issue numbers, plus other info we will need later on for the report
|
|
|
3450 |
If not dict_Iss_Id_to_Iss_Num.Exists(CStr(rsCQQry("ISS_ID"))) Then
|
|
|
3451 |
sdAdd dict_Iss_Id_to_Iss_Num, rsCQQry("ISS_ID"), issueNumber
|
|
|
3452 |
sdAdd dict_Iss_Id_to_Iss_DB, rsCQQry("ISS_ID"), rsCQQry("ISS_DB")
|
|
|
3453 |
sdAdd dict_Iss_Id_to_Risk, rsCQQry("ISS_ID"), rsCQQry("RISK")
|
|
|
3454 |
sdAdd dict_Iss_Id_to_Summary, rsCQQry("ISS_ID"), rsCQQry("SUMMARY")
|
|
|
3455 |
sdAdd dict_Iss_Id_to_CodeRev, rsCQQry("ISS_ID"), rsCQQry("CR_REF")
|
|
|
3456 |
sdAdd dict_Iss_Id_to_IntNotes, rsCQQry("ISS_ID"), rsCQQry("INT_NOTES")
|
|
|
3457 |
sdAdd dict_Iss_Id_to_RelDBPatches, rsCQQry("ISS_ID"), rsCQQry("DB_PATCHES")
|
|
|
3458 |
sdAdd dict_Iss_Id_to_Iss_Type, rsCQQry("ISS_ID"), rsCQQry("ISSUE_TYPE")
|
|
|
3459 |
sdAdd dict_Iss_Id_to_Iss_Status, rsCQQry("ISS_ID"), rsCQQry("STATUS")
|
|
|
3460 |
sdAdd dict_Iss_Id_to_Aff_Pkg, rsCQQry("ISS_ID"), rsCQQry("AFFECTED_PACKAGES")
|
|
|
3461 |
End If
|
|
|
3462 |
|
|
|
3463 |
' Keep dictionary of issue IDs to release manager package names (latter is a comma separated list)
|
|
|
3464 |
If dict_Iss_Id_to_Pkg.Exists(CStr(rsCQQry("ISS_ID"))) Then
|
|
|
3465 |
dict_Iss_Id_to_Pkg.Item(CStr(rsCQQry("ISS_ID"))) = dict_Iss_Id_to_Pkg.Item(CStr(rsCQQry("ISS_ID"))) & "," & CStr(rsRMQry("PKG_NAME")) & " " & CStr(rsRMQry("PKG_VERSION"))
|
|
|
3466 |
Else
|
|
|
3467 |
sdAdd dict_Iss_Id_to_Pkg, rsCQQry("ISS_ID"), rsRMQry("PKG_NAME") & " " & CStr(rsRMQry("PKG_VERSION"))
|
|
|
3468 |
End If
|
|
|
3469 |
|
|
|
3470 |
' Keep dictionary of issue IDs to release manager package version IDs (latter is a comma separated list)
|
|
|
3471 |
If dict_Iss_Id_to_PvId.Exists(CStr(rsCQQry("ISS_ID"))) Then
|
|
|
3472 |
dict_Iss_Id_to_PvId.Item(CStr(rsCQQry("ISS_ID"))) = dict_Iss_Id_to_PvId.Item(CStr(rsCQQry("ISS_ID"))) & "," & CStr(rsRMQry("PV_ID"))
|
|
|
3473 |
Else
|
|
|
3474 |
sdAdd dict_Iss_Id_to_PvId, rsCQQry("ISS_ID"), rsRMQry("PV_ID")
|
|
|
3475 |
End If
|
|
|
3476 |
|
|
|
3477 |
' Begin new row if needed
|
|
|
3478 |
if isRowOpen = 0 Then
|
|
|
3479 |
isRowOpen = 1
|
|
|
3480 |
%><tr><%
|
|
|
3481 |
End If
|
|
|
3482 |
|
|
|
3483 |
' If first row, no need to pad since those columns have already been filled in outer loop
|
|
|
3484 |
If isFirstDeviRow = 1 Then
|
|
|
3485 |
isFirstDeviRow = 0
|
|
|
3486 |
NewTextFile.Write(DoubleQuotes(issueNumber) & ",")
|
|
|
3487 |
NewTextFile.WriteLine(DoubleQuotes(rsCQQry("SUMMARY")))
|
|
|
3488 |
%>
|
|
|
3489 |
<td valign="top"><a class="txt_linked" href="#<%=rsCQQry("ISS_ID")%>"><%=issueNumber%></a></td>
|
|
|
3490 |
<td valign="top"><%=rsCQQry("SUMMARY")%></td>
|
|
|
3491 |
<%
|
|
|
3492 |
Else
|
|
|
3493 |
NewTextFile.Write(",,," & DoubleQuotes(issueNumber) & ",")
|
|
|
3494 |
NewTextFile.WriteLine(DoubleQuotes(rsCQQry("SUMMARY")))
|
|
|
3495 |
%>
|
|
|
3496 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3497 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3498 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3499 |
<td valign="top"><a class="txt_linked" href="#<%=rsCQQry("ISS_ID")%>"><%=issueNumber%></a></td>
|
|
|
3500 |
<td valign="top"><%=rsCQQry("SUMMARY")%></td>
|
|
|
3501 |
<%
|
|
|
3502 |
End If
|
|
|
3503 |
|
|
|
3504 |
' End this row
|
|
|
3505 |
isRowOpen = 0
|
|
|
3506 |
%></tr><%
|
|
|
3507 |
rsCQQry.MoveNext
|
|
|
3508 |
Wend ' end of loop processing each issue
|
|
|
3509 |
rsCQQry.Close
|
|
|
3510 |
Else
|
|
|
3511 |
NewTextFile.WriteLine("," & DoubleQuotes("ERROR - could not get issue details from CLEARQUEST"))
|
|
|
3512 |
%>
|
|
|
3513 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3514 |
<td>ERROR - could not get issue details from CLEARQUEST</td>
|
|
|
3515 |
<%
|
|
|
3516 |
End If
|
|
|
3517 |
|
|
|
3518 |
' Complete the row if needed
|
|
|
3519 |
if isRowOpen = 1 Then
|
|
|
3520 |
if (isFirstDeviRow = 1) Then
|
|
|
3521 |
NewTextFile.WriteLine(",")
|
|
|
3522 |
%>
|
|
|
3523 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3524 |
<td><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3525 |
<%
|
|
|
3526 |
End If
|
|
|
3527 |
isRowOpen = 0
|
|
|
3528 |
%></tr><%
|
|
|
3529 |
End If
|
|
|
3530 |
End If
|
|
|
3531 |
End If
|
|
|
3532 |
rsRMQry.MoveNext
|
|
|
3533 |
Wend ' End of loop processing each package version
|
|
|
3534 |
set rsCQQry = nothing
|
|
|
3535 |
%>
|
|
|
3536 |
<tr>
|
|
|
3537 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3538 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3539 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3540 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3541 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3542 |
</tr>
|
|
|
3543 |
</table>
|
|
|
3544 |
|
|
|
3545 |
<%
|
|
|
3546 |
NewTextFile.WriteLine("")
|
|
|
3547 |
NewTextFile.WriteLine("DEVI Details List")
|
|
|
3548 |
NewTextFile.WriteLine("")
|
|
|
3549 |
NewTextFile.WriteLine("""Issue Number"",""Property"",""Details""")
|
|
|
3550 |
%>
|
|
|
3551 |
|
|
|
3552 |
<H5><a name="C2">DEVI Details List</a></H5>
|
|
|
3553 |
<table width="100%" border="0" cellspacing="0" cellpadding="1">
|
|
|
3554 |
<tr>
|
|
|
3555 |
<td width="10%" nowrap class="body_colb">Issue Number </td>
|
|
|
3556 |
<td width="20%" nowrap class="body_colb">Property </td>
|
|
|
3557 |
<td width="70%" nowrap class="body_colb">Details </td>
|
|
|
3558 |
</tr>
|
|
|
3559 |
<tr>
|
|
|
3560 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3561 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3562 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3563 |
</tr>
|
|
|
3564 |
<%
|
|
|
3565 |
For i = 0 To (dict_Iss_Id_to_Iss_Num.Count - 1)
|
|
|
3566 |
|
|
|
3567 |
cqIssId = sdKey(dict_Iss_Id_to_Iss_Num, i)
|
|
|
3568 |
|
|
|
3569 |
NumIssuesListed = NumIssuesListed + 1
|
|
|
3570 |
%>
|
|
|
3571 |
<tr>
|
|
|
3572 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3573 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3574 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3575 |
</tr>
|
|
|
3576 |
<%
|
|
|
3577 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3578 |
' First line is the DEVI Number, and its summary info
|
|
|
3579 |
s = sdItem(dict_Iss_Id_to_Summary,i) ' Prepare for CSV
|
|
|
3580 |
s = Replace(s,"""","""""")
|
|
|
3581 |
NewTextFile.WriteLine(DoubleQuotes(sdItem(dict_Iss_Id_to_Iss_Num,i)) & ",Issue Summary," & DoubleQuotes(s))
|
|
|
3582 |
s = sdItem(dict_Iss_Id_to_Summary,i) ' Prepare for HTML
|
|
|
3583 |
s = NewLine_To_BR(To_HTML(s))
|
|
|
3584 |
%>
|
|
|
3585 |
<tr>
|
| 5590 |
dpurdie |
3586 |
<td valign="top"><a name="<%=cqIssId%>" class="txt_linked vixIframeDialog" href="_wform_issues_details.asp?iss_db=<%=sdItem(dict_Iss_Id_to_Iss_DB,i)%>&iss_id=<%=sdKey(dict_Iss_Id_to_Iss_Num,i)%>"><%=sdItem(dict_Iss_Id_to_Iss_Num,i)%></a></td>
|
| 159 |
ghuddy |
3587 |
<td valign="top">Issue Summary:</td>
|
|
|
3588 |
<td valign="top"><%=s%></td>
|
|
|
3589 |
</tr><%
|
|
|
3590 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3591 |
' Next line is the DEVI Type Value (ie Defect, Future Enhancement, etc)
|
|
|
3592 |
NewTextFile.WriteLine(",Type," & DoubleQuotes(sdItem(dict_Iss_Id_to_Iss_Type,i)))
|
|
|
3593 |
%>
|
|
|
3594 |
<tr>
|
|
|
3595 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3596 |
<td valign="top">Type:</td>
|
|
|
3597 |
<td valign="top"><%=sdItem(dict_Iss_Id_to_Iss_Type, i)%></td>
|
|
|
3598 |
</tr>
|
|
|
3599 |
<%
|
|
|
3600 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3601 |
' Next line is the DEVI Status Value
|
|
|
3602 |
NewTextFile.WriteLine(",Status," & DoubleQuotes(sdItem(dict_Iss_Id_to_Iss_Status,i)))
|
|
|
3603 |
%>
|
|
|
3604 |
<tr>
|
|
|
3605 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3606 |
<td valign="top">Status:</td>
|
|
|
3607 |
<td valign="top"><%=sdItem(dict_Iss_Id_to_Iss_Status, i)%></td>
|
|
|
3608 |
</tr>
|
|
|
3609 |
<%
|
|
|
3610 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3611 |
' Next line is the DEVI Risk Value
|
|
|
3612 |
NewTextFile.WriteLine(",Risk," & DoubleQuotes(sdItem(dict_Iss_Id_to_Risk,i)))
|
|
|
3613 |
%>
|
|
|
3614 |
<tr>
|
|
|
3615 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3616 |
<td valign="top">Risk:</td>
|
|
|
3617 |
<td valign="top"><%=sdItem(dict_Iss_Id_to_Risk, i)%></td>
|
|
|
3618 |
</tr>
|
|
|
3619 |
<%
|
|
|
3620 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3621 |
' Next line is the DEVI's code review reference
|
|
|
3622 |
a = dict_Iss_Id_to_CodeRev.Items ' Get collection into an array
|
|
|
3623 |
s = a(i) ' Get array element into a string
|
|
|
3624 |
s = Replace(s, chr(13), "+") ' Replace possible delimiters with a single delimiter ("+")
|
|
|
3625 |
s = Replace(s, chr(10), "+")
|
|
|
3626 |
s = Replace(s, " ", "+")
|
|
|
3627 |
crRefArr = Split(s,"+") ' Split on our contrived delimiter and iterate through results
|
|
|
3628 |
|
|
|
3629 |
NewTextFile.Write(",Code Review Ref,""")
|
|
|
3630 |
%>
|
|
|
3631 |
<tr>
|
|
|
3632 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3633 |
<td valign="top">Code Review Ref:</td>
|
|
|
3634 |
<td valign="top">
|
|
|
3635 |
<%
|
|
|
3636 |
For j = 0 To UBOUND(crRefArr)
|
|
|
3637 |
if not ((crRefArr(j) = "+") or (crRefArr(j) = ",") or (Trim(crRefArr(j)) = "")) Then
|
|
|
3638 |
if j = 0 Then
|
|
|
3639 |
NewTextFile.Write(Trim(crRefArr(j)))
|
|
|
3640 |
%>
|
|
|
3641 |
<a href="<%=Trim(crRefArr(j))%>" class="txt_linked"><%=Trim(crRefArr(j))%></a>
|
|
|
3642 |
<%
|
|
|
3643 |
Else
|
|
|
3644 |
NewTextFile.Write("," & Trim(crRefArr(j)))
|
|
|
3645 |
%>
|
|
|
3646 |
<a href="<%=Trim(crRefArr(j))%>" class="txt_linked"><br><%=Trim(crRefArr(j))%></a>
|
|
|
3647 |
<%
|
|
|
3648 |
End If
|
|
|
3649 |
End If
|
|
|
3650 |
Next
|
|
|
3651 |
NewTextFile.WriteLine("""")
|
|
|
3652 |
%>
|
|
|
3653 |
</td>
|
|
|
3654 |
</tr>
|
|
|
3655 |
<%
|
|
|
3656 |
|
|
|
3657 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3658 |
' Next line is the DEVI's related DB Patches
|
|
|
3659 |
' This is quite complicated but at the end of the day, we are aiming to convert the free form text in
|
|
|
3660 |
' the CLEARQUEST devi into a list of hyperlinks to the actual package versions in RM, based on the assumption
|
|
|
3661 |
' that the free form text contains PV_ID numbers somewhere therein.
|
|
|
3662 |
a = dict_Iss_Id_to_RelDBPatches.Items ' Get collection into an array
|
|
|
3663 |
s = a(i) ' Get array element into a string
|
|
|
3664 |
s = Replace(s, chr(13), "+") ' Replace possible delimiters with a single delimiter ("+")
|
|
|
3665 |
s = Replace(s, chr(10), "+")
|
|
|
3666 |
s = Replace(s, " ", "+")
|
|
|
3667 |
relDbPatchArr = Split(s,"+") ' Split on our contrived delimiter and iterate through results
|
|
|
3668 |
|
|
|
3669 |
NewTextFile.Write(",Related DB Patches,""")
|
|
|
3670 |
%>
|
|
|
3671 |
<tr>
|
|
|
3672 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3673 |
<td valign="top">Related DB Patches:</td>
|
|
|
3674 |
<td valign="top">
|
|
|
3675 |
<%
|
|
|
3676 |
For j = 0 To UBOUND(relDbPatchArr)
|
|
|
3677 |
if not ((relDbPatchArr(j) = "+") or (relDbPatchArr(j) = ",") or (Trim(relDbPatchArr(j)) = "")) Then
|
|
|
3678 |
' Given that the Related DB Patches is a free form text field in a CLEARQUEST DEVI,
|
|
|
3679 |
' it can contain a variety of text. Normally it contains a list of PV_ID's but it
|
|
|
3680 |
' can also contain the patch file names (eg. orahops.467229_patch.xml) which normally
|
|
|
3681 |
' contains PV_IDs embedded within them. We have to cater for both approaches and
|
|
|
3682 |
' somehow extract those PV_IDs. We have already split the string so we know we are
|
|
|
3683 |
' now dealing with a single item, but sometimes users name their packages or files with
|
|
|
3684 |
' numbers as well as letters. The code below looks for the longest numeric sequence
|
|
|
3685 |
' and assumes that is the PV_ID
|
|
|
3686 |
Dim lenMax,lenThis,objMatch
|
|
|
3687 |
lenMax = 0
|
|
|
3688 |
lenThis = 0
|
|
|
3689 |
|
|
|
3690 |
sDisplay = Trim(relDbPatchArr(j)) 'default
|
|
|
3691 |
|
|
|
3692 |
' search for numeric sequences in the string
|
|
|
3693 |
reObj.IgnoreCase = True
|
|
|
3694 |
reObj.Global = True
|
|
|
3695 |
reObj.Pattern = "[0-9]+"
|
|
|
3696 |
set reObjMatch = reObj.Execute(Trim(relDbPatchArr(j)))
|
|
|
3697 |
If reObjMatch.Count > 0 Then
|
|
|
3698 |
' Look for the longest numeric sequence
|
|
|
3699 |
for each objMatch in reObjMatch
|
|
|
3700 |
lenThis = objMatch.Length
|
|
|
3701 |
If lenThis > lenMax Then
|
|
|
3702 |
lenMax = lenThis
|
|
|
3703 |
sDisplay = objMatch 'sDisplay is now a numeric sequence
|
|
|
3704 |
End If
|
|
|
3705 |
next
|
|
|
3706 |
if (lenMax > 0) Then
|
|
|
3707 |
' Form the display string as "PV_ID (package-name package-version)"
|
|
|
3708 |
If GetPkgNameAndVersion(sDisplay, s) Then
|
|
|
3709 |
sDisplay = sDisplay & " (" & s & ")"
|
|
|
3710 |
Else
|
|
|
3711 |
' Couldn't get the package name/version from RM so it is likely this number
|
|
|
3712 |
' is not a true/real PV_ID so revert to the simpler display format we began with
|
|
|
3713 |
' as a default.
|
|
|
3714 |
sDisplay = Trim(relDbPatchArr(j)) 'reset to full string
|
|
|
3715 |
lenMax = 0 'zero to force simpler display format in HTML
|
|
|
3716 |
End If
|
|
|
3717 |
End If
|
|
|
3718 |
End If
|
|
|
3719 |
|
|
|
3720 |
if j = 0 Then
|
|
|
3721 |
NewTextFile.Write(Trim(sDisplay))
|
|
|
3722 |
If (lenMax = 0) Then
|
|
|
3723 |
%><%=Trim(relDbPatchArr(j))%><%
|
|
|
3724 |
Else
|
|
|
3725 |
%><a href="dependencies.asp?pv_id=<%=Trim(relDbPatchArr(j))%>" class="txt_linked"><%=sDisplay%></a><%
|
|
|
3726 |
End If
|
|
|
3727 |
Else
|
|
|
3728 |
NewTextFile.Write("," & Trim(sDisplay))
|
|
|
3729 |
If (lenMax = 0) Then
|
|
|
3730 |
%><%=Trim(relDbPatchArr(j))%><%
|
|
|
3731 |
Else
|
|
|
3732 |
%><a href="dependencies.asp?pv_id=<%=Trim(relDbPatchArr(j))%>" class="txt_linked"><br><%=sDisplay%></a><%
|
|
|
3733 |
End If
|
|
|
3734 |
End If
|
|
|
3735 |
End If
|
|
|
3736 |
Next
|
|
|
3737 |
NewTextFile.WriteLine("""")
|
|
|
3738 |
%>
|
|
|
3739 |
</td>
|
|
|
3740 |
</tr>
|
|
|
3741 |
<%
|
|
|
3742 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3743 |
' Next line is the DEVI's affected packages field
|
|
|
3744 |
s = sdItem(dict_Iss_Id_to_Aff_Pkg,i) ' Prepare for CSV
|
|
|
3745 |
s = Replace(s,"""","""""")
|
|
|
3746 |
NewTextFile.WriteLine(",Affected Packages," & DoubleQuotes(s))
|
|
|
3747 |
s = sdItem(dict_Iss_Id_to_Aff_Pkg,i) ' Prepare for HTML
|
|
|
3748 |
s = NewLine_To_BR(To_HTML(s))
|
|
|
3749 |
%>
|
|
|
3750 |
<tr>
|
|
|
3751 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3752 |
<td valign="top">Affected Packages:</td>
|
|
|
3753 |
<td valign="top"><%=s %></td>
|
|
|
3754 |
</tr>
|
|
|
3755 |
<%
|
|
|
3756 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3757 |
' Next line(s) is/are the packages this DEVI is assigned to, in release manager
|
|
|
3758 |
pkgArr = dict_Iss_Id_to_Pkg.Items
|
|
|
3759 |
pkgCsv = pkgArr(i)
|
|
|
3760 |
pkgArr = Split(pkgCsv, ",")
|
|
|
3761 |
|
|
|
3762 |
pvIdArr = dict_Iss_Id_to_PvId.Items
|
|
|
3763 |
pvIdCsv = pvIdArr(i)
|
|
|
3764 |
pvIdArr = Split(pvIdCsv, ",")
|
|
|
3765 |
|
|
|
3766 |
NewTextFile.Write(",RM Assigned Packages,""")
|
|
|
3767 |
%>
|
|
|
3768 |
<tr>
|
|
|
3769 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3770 |
<td valign="top">RM Assigned Packages:</td>
|
|
|
3771 |
<td valign="top">
|
|
|
3772 |
<%
|
|
|
3773 |
For j = 0 To UBOUND(pkgArr)
|
|
|
3774 |
If j = 0 Then
|
|
|
3775 |
NewTextFile.Write(pkgArr(j))
|
|
|
3776 |
%><a href="fixed_issues.asp?rtag_id=<%=NNrtag_id%>&pv_id=<%=pvIdArr(j)%>" class="txt_linked"><%=pkgArr(j)%></a><%
|
|
|
3777 |
Else
|
|
|
3778 |
NewTextFile.Write("," & pkgArr(j))
|
|
|
3779 |
%><a href="fixed_issues.asp?rtag_id=<%=NNrtag_id%>&pv_id=<%=pvIdArr(j)%>" class="txt_linked"><br><%=pkgArr(j)%></a><%
|
|
|
3780 |
End If
|
|
|
3781 |
Next
|
|
|
3782 |
NewTextFile.WriteLine("""")
|
|
|
3783 |
%>
|
|
|
3784 |
</td>
|
|
|
3785 |
</tr>
|
|
|
3786 |
<%
|
|
|
3787 |
'-------------------------------------------------------------------------------------------------------------------------------
|
|
|
3788 |
' Next line is the DEVI's integration notes
|
|
|
3789 |
s = sdItem(dict_Iss_Id_to_IntNotes, i) 'Prepare for CSV
|
|
|
3790 |
s = Replace(s,"""","""""")
|
|
|
3791 |
NewTextFile.WriteLine(",Integration Notes," & DoubleQuotes(s))
|
|
|
3792 |
|
|
|
3793 |
s = sdItem(dict_Iss_Id_to_IntNotes, i) ' Prepare for HTML
|
|
|
3794 |
s = NewLine_To_BR(To_HTML(s))
|
|
|
3795 |
%>
|
|
|
3796 |
<tr>
|
|
|
3797 |
<td valign="top"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3798 |
<td valign="top">Integration Notes:</td>
|
|
|
3799 |
<td valign="top"><%=s %>
|
|
|
3800 |
</td>
|
|
|
3801 |
</tr>
|
|
|
3802 |
<%
|
|
|
3803 |
Next
|
|
|
3804 |
%>
|
|
|
3805 |
<tr>
|
|
|
3806 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3807 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3808 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3809 |
</tr>
|
|
|
3810 |
</table>
|
|
|
3811 |
<H5><a name="C3">Statistics</a></H5>
|
| 5632 |
dpurdie |
3812 |
Report generated on <%=DisplayDate(Date)%> at <%=Time%><BR>
|
| 159 |
ghuddy |
3813 |
<%=NumPkgsListed %> Package(s) Listed<BR>
|
|
|
3814 |
<%=NumIssuesListed %> Issue(s) Listed<BR>
|
|
|
3815 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
3816 |
<%If parPrint = "" Then%>
|
|
|
3817 |
<br>
|
|
|
3818 |
<br>
|
|
|
3819 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
3820 |
<br>
|
|
|
3821 |
<%End If%>
|
|
|
3822 |
<%
|
|
|
3823 |
' Clean up
|
|
|
3824 |
rsRMQry.Close
|
|
|
3825 |
set rsRMQry = nothing
|
|
|
3826 |
set dict_Iss_Id_to_Iss_Num = nothing
|
|
|
3827 |
set dict_Iss_Id_to_Iss_DB = nothing
|
|
|
3828 |
set dict_Iss_Id_to_Pkg = nothing
|
|
|
3829 |
set dict_Iss_Id_to_Risk = nothing
|
|
|
3830 |
set dict_Iss_Id_to_Summary = nothing
|
|
|
3831 |
set dict_Iss_Id_to_CodeRev = nothing
|
|
|
3832 |
set dict_Iss_Id_to_IntNotes = nothing
|
|
|
3833 |
set dict_Iss_Id_to_RelDBPatches = nothing
|
|
|
3834 |
set dict_Iss_Id_to_PvId = nothing
|
|
|
3835 |
set dict_Iss_Id_to_Iss_Status = nothing
|
|
|
3836 |
set dict_Iss_Id_to_Iss_Type = nothing
|
|
|
3837 |
set dict_Iss_Id_to_Aff_Pkg = nothing
|
|
|
3838 |
set reObj = nothing
|
|
|
3839 |
|
|
|
3840 |
NewTextFile.Close
|
|
|
3841 |
Set NewTextFile=Nothing
|
|
|
3842 |
|
|
|
3843 |
' EMAIL CSV report if user has requested it
|
|
|
3844 |
If emailReport Then
|
| 3959 |
dpurdie |
3845 |
Dim LocalPath
|
| 159 |
ghuddy |
3846 |
LocalPath = Server.MapPath("docs\ReleaseDEVIStatus_"&objAccessControl.UserName&".csv")
|
| 3959 |
dpurdie |
3847 |
|
|
|
3848 |
Send_Email "Release Manager Notification",_
|
| 5357 |
dpurdie |
3849 |
ADMIN_EMAIL, _
|
| 3959 |
dpurdie |
3850 |
objAccessControl.UserEmail,_
|
|
|
3851 |
"Release DEVI Status Report (csv) from Release Manager", _
|
|
|
3852 |
"Your requested report...",_
|
|
|
3853 |
LocalPath
|
| 159 |
ghuddy |
3854 |
End If
|
|
|
3855 |
End If
|
|
|
3856 |
End Sub
|
|
|
3857 |
%>
|
| 5685 |
dpurdie |
3858 |
<%
|
|
|
3859 |
'==================================================================================
|
|
|
3860 |
' Report Name : Find Files within a Package
|
|
|
3861 |
' Description : Locate all files in all versions of the package
|
|
|
3862 |
' Form Input : Package Name, File Name ( Wild cards allowed )
|
|
|
3863 |
'==================================================================================
|
|
|
3864 |
Sub Find_Package_File ( SSsection, SSpkg_name, SSfile_name )
|
|
|
3865 |
Dim Query_String, rsRep
|
|
|
3866 |
|
|
|
3867 |
|
|
|
3868 |
If SSsection = "TITLE" Then
|
|
|
3869 |
Response.write "Find Files within a Package"
|
|
|
3870 |
Exit Sub
|
|
|
3871 |
End If
|
|
|
3872 |
|
|
|
3873 |
|
|
|
3874 |
If SSsection = "FORM" Then
|
|
|
3875 |
%>
|
|
|
3876 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
3877 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRpkg_name','Package Name','R', 'FRfile_name','File Name','R');return document.MM_returnValue">
|
|
|
3878 |
<tr>
|
|
|
3879 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
3880 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Package Name</td>
|
|
|
3881 |
<td class="form_txt"><input type="text" name="FRpkg_name" size="30" class="form_item" value="<%=SSpkg_name%>"><br>
|
|
|
3882 |
HINTS:<br>
|
|
|
3883 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br><br></td>
|
|
|
3884 |
</tr>
|
|
|
3885 |
<tr>
|
|
|
3886 |
<td nowrap class="form_field"> </td>
|
|
|
3887 |
<td align="right" nowrap class="form_field" valign="top">File Name</td>
|
|
|
3888 |
<td class="form_txt"><input type="text" name="FRfile_name" size="10" class="form_item" value="<%=SSv_ext%>"><br>
|
|
|
3889 |
You can use Wildcards</td>
|
|
|
3890 |
</tr>
|
|
|
3891 |
<tr>
|
|
|
3892 |
<td nowrap class="form_field"> </td>
|
|
|
3893 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
3894 |
<td><br>
|
|
|
3895 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
3896 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
3897 |
<input type="hidden" name="action" value="true">
|
|
|
3898 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
3899 |
</td>
|
|
|
3900 |
</tr>
|
|
|
3901 |
</form>
|
|
|
3902 |
</table>
|
|
|
3903 |
<% Exit Sub
|
|
|
3904 |
End If
|
|
|
3905 |
|
|
|
3906 |
|
|
|
3907 |
If SSsection = "BODY" Then
|
|
|
3908 |
Const img_Official = "<img src='images/i_locked.gif' width='7' height='10' hspace='3' align='absmiddle'>"
|
|
|
3909 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
3910 |
|
|
|
3911 |
If SSpkg_name = "" Then SSpkg_name = "%"
|
|
|
3912 |
If SSv_ext = "" Then SSv_ext = "%"
|
|
|
3913 |
|
|
|
3914 |
Query_String = ReadFile( rootPath & "queries\rep_package_version_history.sql" )
|
|
|
3915 |
Query_String = Replace ( Query_String, "/*PKG_NAME*/", Replace( SQLstring(SSpkg_name), "*", "%") )
|
|
|
3916 |
Query_String = Replace ( Query_String, "/*V_EXT*/", Replace( SQLstring(SSv_ext), "*", "%") )
|
|
|
3917 |
%>
|
|
|
3918 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
3919 |
<tr>
|
|
|
3920 |
<td width="1%" nowrap class="body_colb" align="right">Official<%=img_Official%></td>
|
|
|
3921 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
3922 |
<td width="1%" nowrap class="body_colb">Location</td>
|
|
|
3923 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
3924 |
</tr>
|
|
|
3925 |
<tr>
|
|
|
3926 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3927 |
</tr>
|
|
|
3928 |
<%
|
|
|
3929 |
Dim currPv_id
|
|
|
3930 |
currPv_id = -1
|
|
|
3931 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
3932 |
|
|
|
3933 |
If rsRep.RecordCount = 0 Then
|
|
|
3934 |
With Response
|
|
|
3935 |
.write "<tr>"
|
|
|
3936 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
3937 |
.write "</tr>"
|
|
|
3938 |
End With
|
|
|
3939 |
End If
|
|
|
3940 |
|
|
|
3941 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
3942 |
' -------- GROUP BY Package Version -----------------
|
|
|
3943 |
If Cstr(currPv_id) <> Cstr(rsRep("pv_id")) Then
|
|
|
3944 |
%>
|
|
|
3945 |
<tr>
|
|
|
3946 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3947 |
<td></td>
|
|
|
3948 |
</tr>
|
|
|
3949 |
<tr>
|
|
|
3950 |
<td align="right"><%If rsRep("dlocked") = "Y" Then%><%=img_Official%><%End If%></td>
|
|
|
3951 |
<td nowrap class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
|
|
3952 |
<td colspan='2' class="body_scol"></td>
|
|
|
3953 |
</tr>
|
|
|
3954 |
<%
|
|
|
3955 |
currPv_id = Cstr(rsRep("pv_id"))
|
|
|
3956 |
End If
|
|
|
3957 |
' -------- END GROUP ------------------------
|
|
|
3958 |
%>
|
|
|
3959 |
<tr>
|
|
|
3960 |
<td class="body_row"></td>
|
|
|
3961 |
<td class="body_row"></td>
|
|
|
3962 |
<%If IsNull(rsRep("rtag_id")) Then%>
|
|
|
3963 |
<td nowrap class="body_txt_gray" valign="top">Not Used!</td>
|
|
|
3964 |
<%Else%>
|
|
|
3965 |
<td nowrap class="body_row" valign="top"><%=rsRep("proj_name") &" > "& rsRep("vtree_name") &" > "& rsRep("rtag_name") &" > <a href='dependencies.asp?pv_id="& rsRep("pv_id") &"&rtag_id="& rsRep("rtag_id") &"' class='txt_linked'>"& rsRep("pkg_name") &" "& rsRep("pkg_version") &"</a>"%></td>
|
|
|
3966 |
<%End If%>
|
|
|
3967 |
<td class="body_row"></td>
|
|
|
3968 |
</tr>
|
|
|
3969 |
<% rsRep.MoveNext
|
|
|
3970 |
WEnd
|
|
|
3971 |
%>
|
|
|
3972 |
<tr>
|
|
|
3973 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
3974 |
</tr>
|
|
|
3975 |
</table>
|
|
|
3976 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
3977 |
<%If parPrint = "" Then%>
|
|
|
3978 |
<br>
|
|
|
3979 |
<br>
|
|
|
3980 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
3981 |
<br>
|
|
|
3982 |
<%End If%>
|
|
|
3983 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
3984 |
<%
|
|
|
3985 |
rsRep.Close
|
|
|
3986 |
Set rsRep = nothing
|
|
|
3987 |
End If
|
|
|
3988 |
|
|
|
3989 |
End Sub
|
|
|
3990 |
%>
|
|
|
3991 |
|
|
|
3992 |
<%
|
|
|
3993 |
'==================================================================================
|
|
|
3994 |
' Report Name : Find Files within a Package
|
|
|
3995 |
' Description : Locate all files in all versions of the package
|
|
|
3996 |
' Form Input : Package Name, File Name ( Wild cards allowed )
|
|
|
3997 |
'==================================================================================
|
|
|
3998 |
Sub Find_Package_File ( SSsection, SSpkg_name, SSfile_name )
|
|
|
3999 |
Dim Query_String, rsRep
|
|
|
4000 |
|
|
|
4001 |
|
|
|
4002 |
If SSsection = "TITLE" Then
|
|
|
4003 |
Response.write "Find Files within a Package"
|
|
|
4004 |
Exit Sub
|
|
|
4005 |
End If
|
|
|
4006 |
|
|
|
4007 |
|
|
|
4008 |
If SSsection = "FORM" Then
|
|
|
4009 |
%>
|
|
|
4010 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
4011 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRpkg_name','Package Name','R', 'FRfile_name','File Name','R');return document.MM_returnValue">
|
|
|
4012 |
<tr>
|
|
|
4013 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
4014 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Package Name</td>
|
|
|
4015 |
<td class="form_txt"><input type="text" name="FRpkg_name" size="30" class="form_item" value="<%=SSpkg_name%>"><br>
|
|
|
4016 |
HINTS:<br>
|
|
|
4017 |
- You can use * wildcard. e.g. *0123 or 0123* or *0123*<br><br></td>
|
|
|
4018 |
</tr>
|
|
|
4019 |
<tr>
|
|
|
4020 |
<td nowrap class="form_field"> </td>
|
|
|
4021 |
<td align="right" nowrap class="form_field" valign="top">File Name</td>
|
|
|
4022 |
<td class="form_txt"><input type="text" name="FRfile_name" size="10" class="form_item" value="<%=SSfile_name%>"><br>
|
|
|
4023 |
You can use Wildcards</td>
|
|
|
4024 |
</tr>
|
|
|
4025 |
<tr>
|
|
|
4026 |
<td nowrap class="form_field"> </td>
|
|
|
4027 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
4028 |
<td><br>
|
|
|
4029 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
4030 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
4031 |
<input type="hidden" name="action" value="true">
|
|
|
4032 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
4033 |
</td>
|
|
|
4034 |
</tr>
|
|
|
4035 |
</form>
|
|
|
4036 |
</table>
|
|
|
4037 |
<% Exit Sub
|
|
|
4038 |
End If
|
|
|
4039 |
|
|
|
4040 |
|
|
|
4041 |
If SSsection = "BODY" Then
|
|
|
4042 |
Const img_Official = "<img src='images/i_locked.gif' width='7' height='10' hspace='3' align='absmiddle'>"
|
|
|
4043 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
4044 |
|
|
|
4045 |
If SSpkg_name = "" Then SSpkg_name = "%"
|
|
|
4046 |
If SSfile_name = "" Then SSfile_name = "%"
|
|
|
4047 |
|
|
|
4048 |
Query_String = ReadFile( rootPath & "queries\rep_package_version_history.sql" )
|
|
|
4049 |
Query_String = Replace ( Query_String, "/*PKG_NAME*/", Replace( SQLstring(SSpkg_name), "*", "%") )
|
|
|
4050 |
Query_String = Replace ( Query_String, "/*V_EXT*/", Replace( SQLstring(SSfile_name), "*", "%") )
|
|
|
4051 |
%>
|
|
|
4052 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
4053 |
<tr>
|
|
|
4054 |
<td width="1%" nowrap class="body_colb" align="right">Official<%=img_Official%></td>
|
|
|
4055 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
4056 |
<td width="1%" nowrap class="body_colb">Location</td>
|
|
|
4057 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
4058 |
</tr>
|
|
|
4059 |
<tr>
|
|
|
4060 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
4061 |
</tr>
|
|
|
4062 |
<%
|
|
|
4063 |
Dim currPv_id
|
|
|
4064 |
currPv_id = -1
|
|
|
4065 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
4066 |
|
|
|
4067 |
If rsRep.RecordCount = 0 Then
|
|
|
4068 |
With Response
|
|
|
4069 |
.write "<tr>"
|
|
|
4070 |
.write "<td colspan='4' class='body_row'>Found 0 records</td>"
|
|
|
4071 |
.write "</tr>"
|
|
|
4072 |
End With
|
|
|
4073 |
End If
|
|
|
4074 |
|
|
|
4075 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
4076 |
' -------- GROUP BY Package Version -----------------
|
|
|
4077 |
If Cstr(currPv_id) <> Cstr(rsRep("pv_id")) Then
|
|
|
4078 |
%>
|
|
|
4079 |
<tr>
|
|
|
4080 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
4081 |
<td></td>
|
|
|
4082 |
</tr>
|
|
|
4083 |
<tr>
|
|
|
4084 |
<td align="right"><%If rsRep("dlocked") = "Y" Then%><%=img_Official%><%End If%></td>
|
|
|
4085 |
<td nowrap class="body_scol"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></td>
|
|
|
4086 |
<td colspan='2' class="body_scol"></td>
|
|
|
4087 |
</tr>
|
|
|
4088 |
<%
|
|
|
4089 |
currPv_id = Cstr(rsRep("pv_id"))
|
|
|
4090 |
End If
|
|
|
4091 |
' -------- END GROUP ------------------------
|
|
|
4092 |
%>
|
|
|
4093 |
<tr>
|
|
|
4094 |
<td class="body_row"></td>
|
|
|
4095 |
<td class="body_row"></td>
|
|
|
4096 |
<%If IsNull(rsRep("rtag_id")) Then%>
|
|
|
4097 |
<td nowrap class="body_txt_gray" valign="top">Not Used!</td>
|
|
|
4098 |
<%Else%>
|
|
|
4099 |
<td nowrap class="body_row" valign="top"><%=rsRep("proj_name") &" > "& rsRep("vtree_name") &" > "& rsRep("rtag_name") &" > <a href='dependencies.asp?pv_id="& rsRep("pv_id") &"&rtag_id="& rsRep("rtag_id") &"' class='txt_linked'>"& rsRep("pkg_name") &" "& rsRep("pkg_version") &"</a>"%></td>
|
|
|
4100 |
<%End If%>
|
|
|
4101 |
<td class="body_row"></td>
|
|
|
4102 |
</tr>
|
|
|
4103 |
<% rsRep.MoveNext
|
|
|
4104 |
WEnd
|
|
|
4105 |
%>
|
|
|
4106 |
<tr>
|
|
|
4107 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
4108 |
</tr>
|
|
|
4109 |
</table>
|
|
|
4110 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
4111 |
<%If parPrint = "" Then%>
|
|
|
4112 |
<br>
|
|
|
4113 |
<br>
|
|
|
4114 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
4115 |
<br>
|
|
|
4116 |
<%End If%>
|
|
|
4117 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
4118 |
<%
|
|
|
4119 |
rsRep.Close
|
|
|
4120 |
Set rsRep = nothing
|
|
|
4121 |
End If
|
|
|
4122 |
|
|
|
4123 |
End Sub
|
|
|
4124 |
%>
|
|
|
4125 |
|
|
|
4126 |
<%
|
|
|
4127 |
'==================================================================================
|
|
|
4128 |
' Report Name : Find Files within a Package
|
|
|
4129 |
' Description : Locate all files in all versions of the package
|
|
|
4130 |
' Form Input : Package Name, File Name ( Wild cards allowed )
|
|
|
4131 |
'==================================================================================
|
|
|
4132 |
Sub Find_Package_File ( SSsection, SSpkg_name, SSfile_name )
|
|
|
4133 |
Dim Query_String, rsRep
|
|
|
4134 |
|
|
|
4135 |
|
|
|
4136 |
If SSsection = "TITLE" Then
|
|
|
4137 |
Response.write "Find Files within a Package"
|
|
|
4138 |
Exit Sub
|
|
|
4139 |
End If
|
|
|
4140 |
|
|
|
4141 |
|
|
|
4142 |
If SSsection = "FORM" Then
|
|
|
4143 |
%>
|
|
|
4144 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
|
|
4145 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRpkg_name','Package Name','R', 'FRfile_name','File Name','R');return document.MM_returnValue">
|
|
|
4146 |
<tr>
|
|
|
4147 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="1" height="8"></td>
|
|
|
4148 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Package Name</td>
|
|
|
4149 |
<td class="form_txt"><input type="text" name="FRpkg_name" size="30" class="form_item" value="<%=SSpkg_name%>"><br>
|
|
|
4150 |
You can use * wildcard. e.g. *0123 or 0123* or *0123*<br><br></td>
|
|
|
4151 |
</tr>
|
|
|
4152 |
<tr>
|
|
|
4153 |
<td nowrap class="form_field"> </td>
|
|
|
4154 |
<td align="right" nowrap class="form_field" valign="top">Path Name</td>
|
|
|
4155 |
<td class="form_txt"><input type="text" name="FRfile_name" size="10" class="form_item" value="<%=SSfile_name%>"><br>
|
|
|
4156 |
You should use * wildcards. e.g. /lib/*.a</td>
|
|
|
4157 |
</tr>
|
|
|
4158 |
<tr>
|
|
|
4159 |
<td nowrap class="form_field"> </td>
|
|
|
4160 |
<td align="right" nowrap class="form_field"> </td>
|
|
|
4161 |
<td><br>
|
|
|
4162 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
|
|
4163 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
|
|
4164 |
<input type="hidden" name="action" value="true">
|
|
|
4165 |
<input name="Submit" type="submit" class="form_btn" value="Submit">
|
|
|
4166 |
</td>
|
|
|
4167 |
</tr>
|
|
|
4168 |
</form>
|
|
|
4169 |
</table>
|
|
|
4170 |
<% Exit Sub
|
|
|
4171 |
End If
|
|
|
4172 |
|
|
|
4173 |
|
|
|
4174 |
If SSsection = "BODY" Then
|
|
|
4175 |
If NOT CBool(Request("action")) Then Exit Sub
|
|
|
4176 |
|
|
|
4177 |
If SSpkg_name = "" Then SSpkg_name = "%"
|
|
|
4178 |
If SSfile_name = "" Then SSfile_name = "%"
|
|
|
4179 |
|
|
|
4180 |
Query_String = ReadFile( rootPath & "queries\rep_package_file_find.sql" )
|
|
|
4181 |
Query_String = Replace ( Query_String, "/*PKG_NAME*/", Replace( SQLstring(SSpkg_name), "*", "%") )
|
|
|
4182 |
Query_String = Replace ( Query_String, "/*FILE_NAME*/", Replace( SQLstring(SSfile_name), "*", "%") )
|
|
|
4183 |
%>
|
|
|
4184 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
|
|
4185 |
<tr>
|
|
|
4186 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
|
|
4187 |
<td width="1%" nowrap class="body_colb">Location</td>
|
|
|
4188 |
<td width="100%" nowrap class="body_colb"> </td>
|
|
|
4189 |
</tr>
|
|
|
4190 |
<tr>
|
|
|
4191 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
4192 |
</tr>
|
|
|
4193 |
<%
|
|
|
4194 |
Dim currPv_id
|
|
|
4195 |
currPv_id = -1
|
|
|
4196 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
|
|
4197 |
|
|
|
4198 |
If rsRep.RecordCount = 0 Then
|
|
|
4199 |
With Response
|
|
|
4200 |
.write "<tr>"
|
|
|
4201 |
.write "<td colspan='3' class='body_row'>Found 0 records</td>"
|
|
|
4202 |
.write "</tr>"
|
|
|
4203 |
End With
|
|
|
4204 |
End If
|
|
|
4205 |
|
|
|
4206 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
|
|
4207 |
' -------- GROUP BY Package Version -----------------
|
|
|
4208 |
If Cstr(currPv_id) <> Cstr(rsRep("pv_id")) Then
|
|
|
4209 |
%>
|
|
|
4210 |
<tr>
|
|
|
4211 |
<td colspan="3" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
4212 |
<td></td>
|
|
|
4213 |
</tr>
|
|
|
4214 |
<tr>
|
|
|
4215 |
<td nowrap class="body_row" valign="top"><a href="dependencies.asp?pv_id=<%=rsRep("pv_id")%>" class="txt_linked"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%></a></td>
|
|
|
4216 |
<td colspan="2" class="body_scol"></td>
|
|
|
4217 |
</tr>
|
|
|
4218 |
<%
|
|
|
4219 |
currPv_id = Cstr(rsRep("pv_id"))
|
|
|
4220 |
End If
|
|
|
4221 |
' -------- END GROUP ------------------------
|
|
|
4222 |
%>
|
|
|
4223 |
<tr>
|
|
|
4224 |
<td class="body_row"></td>
|
|
|
4225 |
<td nowrap class="body_row" valign="top"><%=rsRep("filename")%></td>
|
|
|
4226 |
<td class="body_row"></td>
|
|
|
4227 |
</tr>
|
|
|
4228 |
<% rsRep.MoveNext
|
|
|
4229 |
WEnd
|
|
|
4230 |
%>
|
|
|
4231 |
<tr>
|
|
|
4232 |
<td colspan="4" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
|
|
4233 |
</tr>
|
|
|
4234 |
</table>
|
|
|
4235 |
<!-- PRINT, SAVE, ETC. ------------>
|
|
|
4236 |
<%If parPrint = "" Then%>
|
|
|
4237 |
<br>
|
|
|
4238 |
<br>
|
|
|
4239 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
|
|
4240 |
<br>
|
|
|
4241 |
<%End If%>
|
|
|
4242 |
<!-- PRINT, SAVE, ETC. END -------->
|
|
|
4243 |
<%
|
|
|
4244 |
rsRep.Close
|
|
|
4245 |
Set rsRep = nothing
|
|
|
4246 |
End If
|
|
|
4247 |
|
|
|
4248 |
End Sub
|
|
|
4249 |
%>
|
|
|
4250 |
|
|
|
4251 |
|