Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
3
'|                                                   |
121 hknight 4
'|                 RELEASE NOTES                     |
119 ghuddy 5
'|                                                   |
6
'=====================================================
7
%>
8
<%
9
'------------ Variable Definition -------------
10
Dim rsCQ
11
Dim rsDepIss
12
Dim SQLstr
13
Dim fixedIssDict
14
Dim notesIssDict
15
Dim issArr()
16
Dim depIssDict
17
Dim sDocTitle
18
Dim rsQry, rsTemp
19
Dim iss_db_id, G1_template, G1_style, currG1
20
Dim retVal
21
Dim baseURL
22
Dim rsProjId
23
Dim rsPkgMetrics
24
Dim rsCodeReviewURL
129 ghuddy 25
Dim vcsInfoCollector
119 ghuddy 26
'------------ Constants Declaration -----------
27
Const enumLoc_iss_db = 0
28
Const enumLoc_iss_id = 1
29
Const enumLoc_iss_num = 2
30
Const enumLoc_summary = 3
31
Const enumLoc_status = 4
32
Const enumLoc_priority = 5
33
Const enumLoc_issue_type = 6
34
'------------ Variable Init -------------------
35
Set rsCQ = Server.CreateObject("ADODB.Recordset")
36
Set fixedIssDict = CreateObject("Scripting.Dictionary")
37
Set notesIssDict = CreateObject("Scripting.Dictionary")
38
Set depIssDict = CreateObject("Scripting.Dictionary")
129 ghuddy 39
Set vcsInfoCollector = CreateObject("Scripting.Dictionary")
119 ghuddy 40
'----------------------------------------------
41
%>
42
<%
43
'----------------------------------------------------------------------------------------------------------------------------------------
44
Function asDepIss ( SSiss_db_id, SScolumn )
121 hknight 45
   If NOT depIssDict.Exists (SSiss_db_id) Then Exit Function
119 ghuddy 46
 
121 hknight 47
   asDepIss = issArr ( SScolumn, CInt( depIssDict.Item (SSiss_db_id) ) )
119 ghuddy 48
End Function
49
'----------------------------------------------------------------------------------------------------------------------------------------
50
Function FixedIssues ( parPv_id )
121 hknight 51
   Dim sqlstr, rsTemp
52
   sqlstr = "SELECT pv_id FROM cq_issues WHERE pv_id = "& parPv_id &" AND iss_state = "& enumISSUES_STATE_FIXED
53
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 54
 
121 hknight 55
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
56
      FixedIssues = TRUE
57
   Else
58
      FixedIssues = FALSE
59
   End If
119 ghuddy 60
 
121 hknight 61
   rsTemp.Close()
62
   Set rsTemp = nothing
119 ghuddy 63
End Function
64
'----------------------------------------------------------------------------------------------------------------------------------------
65
Function SQL_Package_Information ( nPv_id )
121 hknight 66
   SQL_Package_Information = _
67
   " SELECT *"&_
68
   "   FROM PACKAGE_VERSIONS pv"&_
69
   "  WHERE pv.pv_id = "& nPv_id
119 ghuddy 70
End Function
71
'----------------------------------------------------------------------------------------------------------------------------------------
72
Function SQL_Dependency_Issues ( NNpv_id )
121 hknight 73
   SQL_Dependency_Issues = _
74
   " SELECT pkg.pkg_name, pv.pkg_version, pv.pv_id, cqi.iss_db, cqi.iss_id, cqi.iss_state, pv.comments AS reasons"&_
75
   "     FROM cq_issues cqi,"&_
76
   "          package_dependencies dep,"&_
77
   "          packages pkg,"&_
78
   "          package_versions pv"&_
79
   "    WHERE dep.pv_id = "& NNpv_id &_
80
   "      AND dep.dpv_id = cqi.pv_id(+)"&_
81
   "      AND dep.dpv_id = pv.pv_id(+)"&_
82
   "      AND pv.pkg_id = pkg.pkg_id"&_
83
   "   ORDER BY UPPER(pkg.pkg_name) ASC, cqi.iss_state DESC"
119 ghuddy 84
End Function
85
'----------------------------------------------------------------------------------------------------------------------------------------
86
Function SQL_Additional_Notes ( nPv_id )
121 hknight 87
   SQL_Additional_Notes = ReadFile( rootPath & "queries\additional_notes.sql" )
88
   SQL_Additional_Notes = Replace( SQL_Additional_Notes, ":PV_ID", nPv_id )
119 ghuddy 89
End Function
90
'----------------------------------------------------------------------------------------------------------------------------------------
91
Function SQL_Unit_Tests ( nPv_id )
121 hknight 92
   SQL_Unit_Tests = ReadFile( rootPath & "queries\unit_tests.sql" )
93
   SQL_Unit_Tests = Replace( SQL_Unit_Tests, ":PV_ID", nPv_id )
119 ghuddy 94
End Function
95
'----------------------------------------------------------------------------------------------------------------------------------------
121 hknight 96
' Function returns the number of imported clearquest issues
97
' and builds a string suitable for querying the clearquest issues database
98
Function Get_Package_Issues ( NNpv_id, SSsql, DDfixedIss, DDnotesIssDict, nIssState )
99
   Dim rsTemp, sqlstr, DEVIiss, TDSEiss, VT5DMiss, VTSUPiss, retVal
119 ghuddy 100
 
121 hknight 101
   If IsObject(DDfixedIss) Then
102
      ' Find this package issues
103
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE pv_id="& NNpv_id &"  AND iss_state = "& nIssState
104
   Else
105
      ' Find dependency issues
106
      sqlstr = "SELECT iss_db, iss_id, iss_state, notes FROM CQ_ISSUES WHERE  pv_id IN ( "&_
107
               " SELECT dpv_id FROM package_dependencies WHERE pv_id = "& NNpv_id &_
108
               " )"
109
   End If
119 ghuddy 110
 
121 hknight 111
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
112
   retVal = rsTemp.RecordCount
119 ghuddy 113
 
121 hknight 114
   DEVIiss  = "-1"
115
   TDSEiss  = "-1"
116
   VT5DMiss = "-1"
117
   VTSUPiss = "-1"
119 ghuddy 118
 
121 hknight 119
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
120
      If CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_DEVI_ID) Then
121
         DEVIiss = DEVIiss &","& rsTemp("iss_id")
119 ghuddy 122
 
121 hknight 123
      ElseIf CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_TDSE_ID) Then
124
         TDSEiss = TDSEiss &","& rsTemp("iss_id")
125
      ElseIf CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_VT5DM_ID) Then
126
         VT5DMiss = VT5DMiss &","& rsTemp("iss_id")
127
      ElseIf CInt(rsTemp("iss_db")) = CInt(enumCLEARQUEST_VTSUP_ID) Then
128
         VTSUPiss = VTSUPiss &","& rsTemp("iss_id")
119 ghuddy 129
 
121 hknight 130
      End If
119 ghuddy 131
 
121 hknight 132
      If IsObject(DDfixedIss) Then
133
         ' Store only Fixed Issues
159 ghuddy 134
         If CInt(rsTemp("iss_state")) = CInt(enumISSUES_STATE_FIXED) AND _
135
           DDfixedIss.Exists(Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id"))) = false Then DDfixedIss.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), ""
121 hknight 136
      End If
119 ghuddy 137
 
121 hknight 138
      If IsObject(DDnotesIssDict) Then
139
         ' Store Notes
159 ghuddy 140
         If Not IsNull(rsTemp("notes")) AND (rsTemp("notes") <> "") AND _
141
           DDnotesIssDict.Exists(Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id"))) = false Then DDnotesIssDict.Add Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")), Cstr(rsTemp("notes"))
121 hknight 142
      End If
119 ghuddy 143
 
121 hknight 144
      rsTemp.MoveNext
145
   WEnd
119 ghuddy 146
 
121 hknight 147
   ' Construct SQL statement for CQ database
148
   SSsql = ReadFile( rootPath & "queries\cq_issues.sql" )
149
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_DEVI_ID*/", enumCLEARQUEST_DEVI_ID)
150
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_TDSE_ID*/", enumCLEARQUEST_TDSE_ID)
151
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_VT5DM_ID*/", enumCLEARQUEST_VT5DM_ID)
152
   SSsql = Replace( SSsql, "/*enumCLEARQUEST_VTSUP_ID*/", enumCLEARQUEST_VTSUP_ID)
153
   SSsql = Replace( SSsql, "/*DEVIiss*/", DEVIiss)
154
   SSsql = Replace( SSsql, "/*TDSEiss*/", TDSEiss)
155
   SSsql = Replace( SSsql, "/*VT5DMiss*/", VT5DMiss)
156
   SSsql = Replace( SSsql, "/*VTSUPiss*/", VTSUPiss)
119 ghuddy 157
 
121 hknight 158
   rsTemp.Close()
159
   Set rsTemp = nothing
119 ghuddy 160
 
121 hknight 161
   Get_Package_Issues = retVal
119 ghuddy 162
 
121 hknight 163
End Function
119 ghuddy 164
'----------------------------------------------------------------------------------------------------------------------------------------
121 hknight 165
' Function returns the number of imported jira issues
166
' and builds a string suitable for querying the jira issues database
167
Function Get_JIRA_Package_Issues ( NNpv_id, SSsql, DDfixedIss, DDnotesIssDict, nIssState )
168
   Dim rsTemp, sqlstr, JIRAIss, retVal
119 ghuddy 169
 
121 hknight 170
   JIRAIss = "'-1'"
171
   sqlstr = "SELECT iss_key FROM JIRA_ISSUES WHERE pv_id="& NNpv_id
119 ghuddy 172
 
121 hknight 173
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
174
   retVal = rsTemp.RecordCount
119 ghuddy 175
 
121 hknight 176
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
177
      JIRAIss = JIRAIss &",'"& rsTemp("iss_key")&"'"
178
      rsTemp.MoveNext
179
   WEnd
119 ghuddy 180
 
121 hknight 181
   SSsql = "SELECT I.pkey AS iss_num, I.summary, ISS.pname AS state,  IT.pname as IssueType, PR.pname as Priority, I.RESOLUTION "&_
182
           " FROM jiraissue I, issuestatus ISS, issuetype IT, priority PR "&_
183
           " WHERE I.pkey IN ("& JIRAIss &") "&_
184
           " AND I.issuestatus = ISS.ID "&_
185
           " AND IT.ID = I.issuetype "&_
186
           " AND PR.ID = I.PRIORITY "
119 ghuddy 187
 
121 hknight 188
   rsTemp.Close()
189
   Set rsTemp = nothing
119 ghuddy 190
 
121 hknight 191
   Get_JIRA_Package_Issues = retVal
119 ghuddy 192
 
121 hknight 193
End Function
119 ghuddy 194
'----------------------------------------------------------------------------------------------------------------------------------------
195
Sub LastPvId (PvId)
121 hknight 196
   Dim sqlstr
119 ghuddy 197
 
131 ghuddy 198
   sqlstr = "SELECT pv_id, pkg_version, comments, last_pv_id FROM PACKAGE_VERSIONS WHERE PV_ID= "& PvId
119 ghuddy 199
 
121 hknight 200
   Set rsQry = OraDatabase.DbCreateDynaset( sqlstr, cint(0) )
119 ghuddy 201
 
202
End Sub
203
'----------------------------------------------------------------------------------------------------------------------------------------
204
Function  Get_JIRA_Issues ( SSsql, OOrsCQ )
121 hknight 205
   If OOrsCQ.State = 1 Then
206
      OOrsCQ.Close()
207
   End If
119 ghuddy 208
 
209
 
210
 
121 hknight 211
   On Error Resume Next
212
   OOrsCQ.ActiveConnection = JIRA_conn
213
   OOrsCQ.Source = SSsql
214
   OOrsCQ.CursorType = 0
215
   OOrsCQ.CursorLocation = 3
216
   OOrsCQ.LockType = 3
217
   OOrsCQ.Open()
119 ghuddy 218
 
219
 
121 hknight 220
   Get_JIRA_Issues = Err.Number
119 ghuddy 221
 
222
End Function
223
'----------------------------------------------------------------------------------------------------------------------------------------
224
Function  Get_CQ_Issues ( SSsql, OOrsCQ )
121 hknight 225
   If OOrsCQ.State = 1 Then
226
      OOrsCQ.Close()
227
   End If
119 ghuddy 228
 
121 hknight 229
   On Error Resume Next
230
   OOrsCQ.ActiveConnection = CQ_conn
231
   OOrsCQ.Source = SSsql
232
   OOrsCQ.CursorType = 0
233
   OOrsCQ.CursorLocation = 2
234
   OOrsCQ.LockType = 3
235
   OOrsCQ.Open()
119 ghuddy 236
 
121 hknight 237
   Get_CQ_Issues = Err.Number
119 ghuddy 238
 
239
End Function
240
'----------------------------------------------------------------------------------------------------------------------------------------
241
Function Get_Dependency_CQ_Issues ( SSsql, OOrsCQ, DDdepIss, AAiss )
121 hknight 242
   Dim recCnt
243
   If OOrsCQ.State = 1 Then
244
      OOrsCQ.Close()
245
   End If
119 ghuddy 246
 
121 hknight 247
   OOrsCQ.ActiveConnection = CQ_conn
248
   OOrsCQ.Source = SSsql
249
   OOrsCQ.CursorType = 0
250
   OOrsCQ.CursorLocation = 2
251
   OOrsCQ.LockType = 3
119 ghuddy 252
 
121 hknight 253
   On Error Resume Next
254
   OOrsCQ.Open()
119 ghuddy 255
 
121 hknight 256
   ' Exit with error if error occurs
257
   Get_Dependency_CQ_Issues = Err.Number
258
   If Err.Number <> 0 Then Exit Function
119 ghuddy 259
 
260
 
121 hknight 261
   recCnt = 1
119 ghuddy 262
 
121 hknight 263
   While ((NOT OOrsCQ.BOF) AND (NOT OOrsCQ.EOF))
264
      ReDim Preserve AAiss( 6, recCnt )
265
      'If NOT DDdepIss.Exists Cstr(rsTemp("iss_db") &"."& rsTemp("iss_id")) Then
266
         DDdepIss.Add Cstr(OOrsCQ("iss_db") &"."& OOrsCQ("iss_id")), Cstr(recCnt)
267
      'End If
268
      AAiss( enumLoc_iss_db, recCnt )    = OOrsCQ("iss_db")
269
      AAiss( enumLoc_iss_id, recCnt )    = OOrsCQ("iss_id")
270
      AAiss( enumLoc_iss_num, recCnt )   = OOrsCQ("iss_num")
271
      AAiss( enumLoc_summary, recCnt )   = OOrsCQ("summary")
272
      AAiss( enumLoc_status, recCnt )    = OOrsCQ("status")
273
      AAiss( enumLoc_priority, recCnt )    = OOrsCQ("priority")
274
      AAiss( enumLoc_issue_type, recCnt ) = OOrsCQ("issue_type")
119 ghuddy 275
 
121 hknight 276
      recCnt = recCnt + 1
277
      OOrsCQ.MoveNext
278
   WEnd
119 ghuddy 279
 
121 hknight 280
   OOrsCQ.Close()
119 ghuddy 281
End Function
282
'----------------------------------------------------------------------------------------------------------------------------------------
283
Function FormatPath ( SSpath )
284
 
121 hknight 285
   If (SSpath = "") Then
286
      FormatPath = ""
287
      Exit Function
288
   End If
119 ghuddy 289
 
121 hknight 290
   If (InStr(1, LCase(SSpath), "http") = 1) OR (InStr(1, LCase(SSpath), "www") = 1) Then
291
      ' Source path is URL
292
      FormatPath = "<a href='"& SSpath &"' class='txt_linked'>"& SSpath &"</a>"
293
   Else
294
      FormatPath = SSpath
295
   End If
119 ghuddy 296
 
297
End Function
298
'----------------------------------------------------------------------------------------------------------------------------------------
299
Sub Group_By ( rsG, styleG, currG )
121 hknight 300
   If rsG = currG Then Exit Sub
301
   Response.write styleG
302
   'currG = rsG
119 ghuddy 303
End Sub
304
'----------------------------------------------------------------------------------------------------------------------------------------
305
Sub CheckUnitTestsState ( nPv_id, outMSG, outMSG_ID, outNote, outTestsFound )
121 hknight 306
   Dim sqlstr, rsTemp
307
   sqlstr = ReadFile( rootPath & "queries\unit_test_entries_check.sql" )
308
   sqlstr = Replace( sqlstr, ":PV_ID", nPv_id)
309
   sqlstr = Replace( sqlstr, ":enumTEST_TYPE_NOT_DONE", enumTEST_TYPE_NOT_DONE)
119 ghuddy 310
 
121 hknight 311
   Set rsTemp = OraDatabase.DbCreateDynaset( sqlstr, cint(0))
119 ghuddy 312
 
121 hknight 313
   If ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF)) Then
314
      outMSG = rsTemp("msg")
315
      outMSG_ID = CInt(rsTemp("msg_id"))
316
      outNote = rsTemp("test_summary")
317
      outTestsFound = FALSE
119 ghuddy 318
 
121 hknight 319
      If IsNull(rsTemp("msg")) Then outTestsFound = TRUE
320
   End If
119 ghuddy 321
 
121 hknight 322
   rsTemp.Close()
323
   Set rsTemp = nothing
119 ghuddy 324
End Sub
325
'----------------------------------------------------------------------------------------------------------------------------------------
326
Function FormatAccepted ( sAccepted, nTest_id )
121 hknight 327
   Dim tempSTR
328
   If IsNull(nTest_id) Then Exit Function
119 ghuddy 329
 
121 hknight 330
   tempSTR = ""
119 ghuddy 331
 
121 hknight 332
   If pageIsEditable Then
333
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item'>"
334
   Else
335
      tempSTR = "<select name='acc"& nTest_id &"' class='form_item' disabled>"
336
   End If
119 ghuddy 337
 
121 hknight 338
   If sAccepted = enumUNIT_TEST_ACCEPTED Then
339
      tempSTR = tempSTR  &"<option></option>"&_
340
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"' SELECTED>Yes</option>"&_
341
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 342
 
121 hknight 343
   ElseIf sAccepted = enumUNIT_TEST_NOTACCEPTED Then
344
      tempSTR = tempSTR  &"<option></option>"&_
345
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
346
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"' SELECTED>No</option>"
119 ghuddy 347
 
121 hknight 348
   Else
349
      tempSTR = tempSTR  &"<option SELECTED></option>"&_
350
                     "<option value='"& enumUNIT_TEST_ACCEPTED &"'>Yes</option>"&_
351
                     "<option value='"& enumUNIT_TEST_NOTACCEPTED &"'>No</option>"
119 ghuddy 352
 
121 hknight 353
   End If
119 ghuddy 354
 
121 hknight 355
   tempSTR = tempSTR & "</select>"
119 ghuddy 356
 
121 hknight 357
   FormatAccepted = tempSTR
119 ghuddy 358
 
359
End Function
360
'----------------------------------------------------------------------------------------------------------------------------------------
361
Function SQL_CodeReview ( nPv_id )
121 hknight 362
   SQL_CodeReview = _
363
   "   SELECT cr.date_of_review, cr.time_spent, cr.review_reason, cr.rteam_domain_expert,"&_
364
   "          cr.rteam_language_expert, cr.rteam_peer_developer, cr.rteam_author,"&_
365
   "          cr.files_reviewed, cr.review_results, cr.issues_raised,"&_
366
   "          cr.review_comments, cr.fnc_s_meets_functionality,"&_
367
   "          cr.fnc_c_meets_functionality"&_
368
   "     FROM code_reviews cr"&_
369
   "    WHERE cr.pv_id = "& nPv_id
119 ghuddy 370
End Function
371
'----------------------------------------------------------------------------------------------------------------------------------------
372
Function SQL_Build_Env ( nPv_id )
121 hknight 373
   SQL_Build_Env = _
374
   " SELECT pv.*, bm.BM_ID,"&_
375
   "         bm.BM_NAME,"&_
376
   "         pkgbinfo.BSA_ID"&_
377
   "     FROM PACKAGE_BUILD_INFO pkgbinfo,"&_
378
   "           BUILD_MACHINES bm,"&_
379
   "           PACKAGE_VERSIONS pv"&_
380
   "    WHERE pkgbinfo.BM_ID = bm.BM_ID"&_
381
   "    AND pv.PV_ID = pkgbinfo.PV_ID"&_
382
   "      AND pkgbinfo.PV_ID = "& nPv_id  &_
383
   "   ORDER BY UPPER(bm.BM_NAME) "
119 ghuddy 384
End Function
385
'----------------------------------------------------------------------------------------------------------------------------------------
386
Function DecodeOverallResult ( ByVal cCheck )
121 hknight 387
   If cCheck = "" OR IsNull(cCheck) Then cCheck = 0
119 ghuddy 388
 
121 hknight 389
   Select Case CInt( cCheck )
390
      Case enumCODE_REVIEW_ACCEPTED
391
         DecodeOverallResult = "Accepted"
392
      Case enumCODE_REVIEW_MINOR_UPDATES
393
         DecodeOverallResult = "Minor updates required"
394
      Case enumCODE_REVIEW_MAJOR_REWORK
395
         DecodeOverallResult = "Major rework required"
396
      Case Else
397
         DecodeOverallResult = ""
398
   End Select
119 ghuddy 399
 
400
End Function
401
'----------------------------------------------------------------------------------------------------------------------------------------
402
Function GetBuildType ( nBuildType )
403
 
121 hknight 404
   If (NOT IsNull(nBuildType)) OR (NOT nBuildType = "") Then
119 ghuddy 405
 
121 hknight 406
      If ( CInt(nBuildType) = enumDB_BUILD_TYPE_NONE ) Then
407
         GetBuildType = "Build type not specified!"
408
      Else
409
         GetBuildType = GetBuildTypeString( nBuildType )
410
      End If
119 ghuddy 411
 
121 hknight 412
   Else
413
      GetBuildType = GetBuildTypeString( nBuildType )
119 ghuddy 414
 
121 hknight 415
   End If
119 ghuddy 416
 
121 hknight 417
   '' Wrap around brackets
418
   GetBuildType = "("& GetBuildType &")"
119 ghuddy 419
 
420
End Function
421
'----------------------------------------------------------------------------------------------------------------------------------------
422
Sub GetPackageMetrics (NNpv_id, rsTemp)
423
 
121 hknight 424
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 425
 
121 hknight 426
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("PackageMetrics.sql"), cint(0))
119 ghuddy 427
 
121 hknight 428
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 429
 
430
End Sub
431
'----------------------------------------------------------------------------------------------------------------------------------------
432
Sub GetCodeReviewURLs (NNpv_id, rsTemp)
433
 
121 hknight 434
   OraDatabase.Parameters.Add "PV_ID", NNpv_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 435
 
121 hknight 436
   Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("CodeReviewURLs.sql"), cint(0))
119 ghuddy 437
 
121 hknight 438
   OraDatabase.Parameters.Remove "PV_ID"
119 ghuddy 439
 
440
End Sub
441
'----------------------------------------------------------------------------------------------------------------------------------------
129 ghuddy 442
 
443
 
444
'----------------------------------------------------------------------------------------------------------------------------------------
119 ghuddy 445
%>
446
<%
447
'------------------ MAIN LINE --------------------
448
'-------------------------------------------------
449
%>
450
<!-- PACKAGE INFORMATION --------------------------------------------------------------------------------------------------------------->
121 hknight 451
   <a name="PACKAGE_INFORMATION"></a>
452
   <table width="100%" border="0" cellspacing="1" cellpadding="2">
453
      <tr>
454
         <td class="body_colb"><img src="images/s_info.gif" width="22" height="22" hspace="4" border="0" align="absmiddle">Package Information</td>
455
         <td align="right" valign="bottom">
456
            <%If pageIsEditable Then%>
457
               <a href='javascript:;' onClick="MM_openBrWindow('_wform_pkg_info.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','PackageInfo','resizable=yes,width=650,height=690')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
458
            <%End If%>
459
         </td>
460
      </tr>
461
   </table>
462
   <table width="100%" border="0" cellspacing="1" cellpadding="2">
129 ghuddy 463
      <%
464
      Set rsQry = OraDatabase.DbCreateDynaset( SQL_Package_Information ( parPv_id ), cint(0))
465
 
137 ghuddy 466
      Call get_vcs_info_for_package( rsQry("pkg_label"), rsQry("build_type"), rsQry("vcs_type_id"), rsQry("dlocked"), vcsInfoCollector )
129 ghuddy 467
 
468
      %>
121 hknight 469
      <tr>
470
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Deployable:</b></td>
471
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
472
            <%If IsNull( rsQry("is_deployable") ) Then%>No<%Else%>Yes<%End If%>
473
         </td>
474
      </tr>
129 ghuddy 475
 
139 ghuddy 476
      <%If (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG) OR (vcsInfoCollector.Item("vcs_tag") = enum_VCS_CVS_TAG) Then%>
129 ghuddy 477
         <tr>
478
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Version Control System:</b></td>
479
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
480
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
481
            </td>
482
         </tr>
483
         <tr>
484
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Label:</b></td>
485
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
486
               <%If IsNull( rsQry("pkg_label") ) Then%>
487
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pkg_label") ) )%>
488
               <%End If%>
489
            </td>
490
         </tr>
491
         <tr>
492
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Source Path:</b> </td>
493
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
494
               <%If IsNull( rsQry("src_path") ) Then%>
495
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
496
               <%End If%>
497
            </td>
498
         </tr>
499
      <%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG Then%>
500
         <tr>
501
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Version Control System:</b></td>
502
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
503
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
504
            </td>
505
         </tr>
506
         <tr>
507
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>SubVersion Tag:</b> </td>
508
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
509
               <%If IsNull( rsQry("src_path") ) Then%>
510
                  <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("src_path") ) )%>
511
               <%End If%>
512
            </td>
513
         </tr>
514
      <%ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_UNCONTROLLED_TAG Then%>
515
         <tr>
516
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Version Control System:</b></td>
517
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
518
               <%=NewLine_To_BR ( To_HTML( vcsInfoCollector.Item("vcs_name") ) )%>
519
            </td>
520
         </tr>
521
      <%Else%>
522
         <tr>
523
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Version Control System:</b></td>
524
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
525
               <span class='err_alert'>Required!</span>
526
            </td>
527
         </tr>
528
      <%End If%>
529
 
121 hknight 530
      <tr>
531
         <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Short Description:</b></td>
532
         <td witdh="100%" background="images/bg_form_lightgray.gif" class="sublbox_txt">
533
            <%If IsNull( rsQry("pv_description") ) Then%>
534
               <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pv_description") ) )%>
535
            <%End If%>
536
         </td>
537
      </tr>
538
      <tr>
539
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Package Overview:</b> </td>
540
         <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
541
            <%If IsNull( rsQry("pv_overview") ) Then%>
542
               <span class='err_alert'>Required!</span><%Else%><%=NewLine_To_BR ( To_HTML( rsQry("pv_overview") ) )%>
543
            <%End If%>
544
         </td>
545
      </tr>
546
      <tr>
123 ghuddy 547
         <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top">
548
            <b>Build Standard:</b>
121 hknight 549
         </td>
550
         <%
551
         If pkgInfoHash.Item ("bs_id") <> "" Then
552
            If pkgInfoHash.Item ("bs_id") = "1" Then
553
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'>JATS<br></td>"
119 ghuddy 554
 
121 hknight 555
            ElseIf pkgInfoHash.Item ("bs_id") = "2" Then
556
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'>ANT<br></td>"
119 ghuddy 557
 
121 hknight 558
            ElseIf pkgInfoHash.Item ("bs_id") = "3" Then
559
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'>NONE<br></td>"
560
            End If
561
         Else
129 ghuddy 562
            If vcsInfoCollector.Item("vcs_tag") <> enum_VCS_UNCONTROLLED_TAG Then
563
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'><span class='err_alert'>Required!</span><br></td>"
564
            Else
565
               Response.write "<td background='images/bg_form_lightgray.gif' class='sublbox_txt'>Unspecified<br></td>"
566
            End If
121 hknight 567
         End If
568
         %>
569
      </tr>
129 ghuddy 570
      <%If (NOT IsNull(pkgInfoHash.Item ("bs_id"))) AND (pkgInfoHash.Item ("bs_id") <> "3") Then%>
571
         <tr>
572
            <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>Build Environment:</b> </td>
573
            <%
574
            '--- Get Build Env Details
575
            Set rsTemp = OraDatabase.DbCreateDynaset( SQL_Build_Env ( parPv_id ), cint(0))
576
            %>
121 hknight 577
            <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
129 ghuddy 578
               <%If rsTemp.RecordCount = 0 Then%>
579
                  <%If rsQry("is_build_env_required") = enumDB_NO Then%>
580
                     Not Required
581
                  <%Else%>
582
                     <span class='err_alert'>Required!</span>
583
                  <%End If%>
584
               <%Else%>
585
                  <%If (IsNull( rsQry("is_build_env_required") ) AND (rsQry("comments") <> "Rippled Build.")) Then%>
586
                     <span class='err_alert'>Required!</span>
587
                  <%ElseIf rsQry("is_build_env_required") = enumDB_NO Then%>
588
                     Not Required.
589
                  <%Else%>
590
                     <table width="40%"  border="0" cellspacing="3" cellpadding="2">
591
                        <%
592
                        currG1 = 0
593
                        While (NOT rsTemp.BOF) AND (NOT rsTemp.EOF)
594
                           'retVal = Lookup_Document ( rsQry("doc_num"), sDocTitle, NULL, NULL, NULL  )
595
                        %>
596
                           <%If currG1 <> CInt(rsTemp("bm_id")) Then%>
597
                              <tr>
598
                                 <td colspan="2" nowrap class="sublbox_txt" background="images/bg_form_lightbluedark.gif">
599
                                    <%=rsTemp("bm_name")%>&nbsp;<%=GetBuildType( rsTemp("bsa_id") )%>
600
                                 </td>
601
                              </tr>
602
                              <%currG1 = CInt(rsTemp("bm_id"))
603
                           End If
604
                           rsTemp.MoveNext
605
                        WEnd
606
                        %>
607
                        <tr>
608
                           <td width="5%"></td>
609
                           <td width="95%"></td>
610
                        </tr>
611
                     </table>
612
                  <%End If%>
121 hknight 613
               <%End If%>
129 ghuddy 614
            </td>
615
         </tr>
616
      <%End If%>
617
 
618
      <%
619
      ' Previous Label/Tag, Codestriker and Beyond Compare differencing commands
620
      Dim oldLabel
621
      Dim old_vcs_tag
622
      Dim oldSrcPath
623
      Dim lastSignificantPVID
624
 
625
      If vcsInfoCollector.Item("vcs_tag") = enum_VCS_CLEARCASE_TAG Then
626
 
627
         lastSignificantPVID = getLastSignificantPVID(pkgInfoHash.Item("pv_id"), pkgInfoHash.Item("last_pv_id"))
145 ghuddy 628
         If (pv_id_exists(lastSignificantPVID) = TRUE) Then
129 ghuddy 629
            old_vcs_tag = get_vcs_tag(lastSignificantPVID)
630
            If (old_vcs_tag = enum_VCS_CLEARCASE_TAG) Then
631
               oldLabel = get_Pkg_Label(lastSignificantPVID)
632
               %>
633
               <tr>
634
                  <%
635
                  ' Previous Label
636
                  Dim rsQry2, rsQry3
637
                  Set rsQry2 = OraDatabase.DbCreateDynaset( "SELECT * from package_versions where pv_id ="&parPv_id , cint(0))
638
                  Set rsQry3 = OraDatabase.DbCreateDynaset( "SELECT pkg_label from package_versions where pv_id ="&rsQry2("last_pv_id") , cint(0))
639
                  %>
640
                  <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><strong>Previous Label:</strong><%=Quick_Help ( "PreviousLabel" )%></td>
641
                  <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
642
                     <%=NewLine_To_BR ( To_HTML( rsQry3("pkg_label") ) )%>
643
                  </td>
644
               </tr>
645
 
646
               <tr>
647
                  <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
648
                     <strong>Previous Significant Label:</strong><%=Quick_Help ( "PreviousSignificantLabel" )%>
649
                  </td>
650
                  <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
651
                     <%=NewLine_To_BR ( To_HTML( oldLabel ) )%>
652
                  </td>
653
               </tr>
654
 
655
               <tr>
656
                  <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><strong>Codestriker command:
657
                     </strong><%=Quick_Help ( "Codestriker" )%>
658
                  </td>
659
                  <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
660
                     <%=NewLine_To_BR ( To_HTML( Codestriker_Command (oldLabel, pkgInfoHash.Item("pkg_label")) ) )%>
661
                  </td>
662
               </tr>
663
               <tr>
664
                  <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
665
                     <strong>Beyond Compare command:</strong><%=Quick_Help ( "BeyondCompare" )%>
666
                  </td>
667
                  <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
668
                     <%=NewLine_To_BR ( To_HTML( BeyondCompare_Command (oldLabel, pkgInfoHash.Item("pkg_label")) ) )%>
669
                  </td>
670
               </tr>
121 hknight 671
               <%
129 ghuddy 672
            End If
673
         End If
674
 
675
      ElseIf vcsInfoCollector.Item("vcs_tag") = enum_VCS_SUBVERSION_TAG Then
676
 
677
         lastSignificantPVID = getLastSignificantPVID(pkgInfoHash.Item("pv_id"), pkgInfoHash.Item("last_pv_id"))
145 ghuddy 678
         If (pv_id_exists(lastSignificantPVID) = TRUE) Then
129 ghuddy 679
            old_vcs_tag = get_vcs_tag(lastSignificantPVID)
680
            If (old_vcs_tag = enum_VCS_SUBVERSION_TAG) Then
681
               oldSrcPath = get_Src_Path(lastSignificantPVID)
121 hknight 682
               %>
683
               <tr>
129 ghuddy 684
                  <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
685
                     <strong>Previous Significant SVN Tag:</strong><%=Quick_Help ( "PreviousSignificantLabel" )%>
686
                  </td>
687
                  <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
688
                     <%=NewLine_To_BR ( To_HTML( oldSrcPath ) )%>
689
                  </td>
121 hknight 690
               </tr>
129 ghuddy 691
               <%
692
            End If
693
         End If
694
      End If%>
119 ghuddy 695
 
121 hknight 696
      <%If pkgInfoHash.Item("is_deployable") = "Y" Then
697
         OraDatabase.Parameters.Add "PV_ID", pkgInfoHash.Item ("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
698
         Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("DeploymentManagerReference.sql"), cint(0))
699
         If rsTemp.RecordCount = 0 Then%>
700
            <tr>
701
               <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>SBOM Information:</b></td>
702
               <%If pkgInfoHash.Item("product_state") = 3 Then%>
703
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Deployment!</b></td>
704
               <%ElseIf pkgInfoHash.Item("product_state") = 2 Then%>
705
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Testing!</b></td>
706
               <%ElseIf pkgInfoHash.Item("product_state") = 1 Then%>
707
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Integration!</b></td>
708
               <%ElseIf pkgInfoHash.Item("product_state") = 5 Then%>
709
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Ready For Integration and Deployment!</b></td>
710
               <%ElseIf IsNull(pkgInfoHash.Item("product_state")) Then%>
711
                  <td background="images/bg_form_lightgray.gif" class="err_alert"><b>Information Unavailable!</b></td>
712
               <%End If%>
119 ghuddy 713
 
714
            </tr>
121 hknight 715
         <%Else%>
119 ghuddy 716
            <tr>
121 hknight 717
               <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top"><b>SBOM Added/Updated:</b></td>
718
               <td background="images/bg_form_lightgray.gif" class="sublbox_txt">
719
                  <%=rsTemp("branch_name")%> - <%=rsTemp("bom_name")%><%=VBNewLine%><%=rsTemp("version")%>
720
               </td>
119 ghuddy 721
            </tr>
121 hknight 722
         <%End If
723
         rsTemp.Close()
724
         Set rsTemp = Nothing
725
         OraDatabase.Parameters.Remove "PV_ID"
726
      End If
727
      %>
728
   </table>
729
   <br>
730
<!-- PACKAGE METRICS -------------------------------------------------------------------------------------------------------------------->
731
   <%If Request("rtag_id") <> "" Then%>
732
      <%
733
      Call GetPackageMetrics( parPv_id, rsPkgMetrics )
734
      %>
735
      <fieldset class="fset"><a href="javascript:;" onclick="ToggleDisplay('divPkgMetrics','pkg_metrics_filler')" class="lbl_link">
736
         <legend class="body_colb">
737
            <img src="images/i_metrics.gif" width="20" height="24" hspace="4" border="0" align="absmiddle" alt="Click to display Package Metrics">Package Metrics...
738
         </legend></a>
739
         <div name="pkg_metrics_filler" id="pkg_metrics_filler" style="display:block;" class="div_filler">
740
            <a href="javascript:;" onclick="ToggleDisplay('divPkgMetrics','pkg_metrics_filler')" class="txt_linked">Show...</a>
741
         </div>
742
         <div name="divPkgMetrics" id="divPkgMetrics" style="display:none;">
743
            <a name="PACKAGE_METRICS"></a>
744
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
745
               <tr>
746
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" width="20%"><b>Autobuilt:</b></td>
747
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%If rsPkgMetrics("is_autobuildable") = "Y" Then%>Yes<%Else%>No<%End If%></td>
748
               </tr>
749
               <tr>
750
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Unit Tested:</b></td>
751
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%If rsPkgMetrics("unit_tested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
752
               </tr>
753
               <tr>
754
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Autotested:</b></td>
755
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%If rsPkgMetrics("autotested") = "Y" Then%>Yes<%Else%>No<%End If%></td>
756
               </tr>
757
               <%If NOT IsNull(rsPkgMetrics("code_lines")) Then%>
758
               <tr>
759
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Code Lines:</b></td>
760
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("code_lines")%></td>
761
               </tr>
762
               <%End If%>
763
               <%If NOT IsNull(rsPkgMetrics("comment_lines")) Then%>
764
               <tr>
765
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Comment Lines:</b></td>
766
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("comment_lines")%></td>
767
               </tr>
768
               <%End If%>
769
               <%If NOT IsNull(rsPkgMetrics("blank_lines")) Then%>
770
               <tr>
771
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Blank Lines:</b></td>
772
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("blank_lines")%></td>
773
               </tr>
774
               <%End If%>
775
               <%If NOT IsNull(rsPkgMetrics("branches")) Then%>
776
               <tr>
777
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Number of Branches:</b></td>
778
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("branches")%></td>
779
               </tr>
780
               <%End If%>
781
               <%If NOT IsNull(rsPkgMetrics("branch_list")) Then%>
782
               <tr>
783
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Branch List:</b></td>
784
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("branch_list")%></td>
785
               </tr>
786
               <%End If%>
787
               <%If NOT IsNull(rsPkgMetrics("code_files")) Then%>
788
               <tr>
789
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Code Files:</b></td>
790
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("code_files")%></td>
791
               </tr>
792
               <%End If%>
793
               <%If NOT IsNull(rsPkgMetrics("ignored_files")) Then%>
794
               <tr>
795
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Ignored Files:</b></td>
796
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("ignored_files")%></td>
797
               </tr>
798
               <%End If%>
799
               <%If NOT IsNull(rsPkgMetrics("makefiles")) Then%>
800
               <tr>
801
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Makefiles:</b></td>
802
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("makefiles")%></td>
803
               </tr>
804
               <%End If%>
805
               <%If NOT IsNull(rsPkgMetrics("total_files")) Then%>
806
               <tr>
807
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Total Files:</b></td>
808
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("total_files")%></td>
809
               </tr>
810
               <%End If%>
811
               <%If NOT IsNull(rsPkgMetrics("directories")) Then%>
812
               <tr>
813
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Number of Directories:</b></td>
814
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("directories")%></td>
815
               </tr>
816
               <%End If%>
817
               <%If NOT IsNull(rsPkgMetrics("directory_depth")) Then%>
818
               <tr>
819
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Directory Depth:</b></td>
820
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("directory_depth")%></td>
821
               </tr>
822
               <%End If%>
823
               <%If NOT IsNull(rsPkgMetrics("created_stamp")) Then%>
824
               <tr>
825
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt"><b>Metrics Collected:</b></td>
826
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsPkgMetrics("created_stamp")%></td>
827
               </tr>
828
               <%End If%>
829
            </table>
830
         </div>
831
      </fieldset>
832
      <br>
833
      <%
834
      rsPkgMetrics.Close()
835
      Set rsPkgMetrics = nothing
836
      %>
837
   <%End If%>
838
<!-- PRODUCTS AFFECTED BY CHANGE -------------------------------------------------------------------------------------------------------->
119 ghuddy 839
 
840
<!-- REASON FOR DEPRECATION/DEPENDANCY DEPRECATED ----------------------------------------------------------------------------------------------------------------->
121 hknight 841
   <%If pkgInfoHash.Item("deprecated_state") = 6 Then %>
119 ghuddy 842
 
121 hknight 843
      <fieldset class="fset"><legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for deprecation</legend>
844
         <a name="REASON_FOR_DEPRECATION"></a>
845
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
846
            <tr>
847
               <td background="images/bg_form_lightgray.gif">
119 ghuddy 848
 
121 hknight 849
                  <%
850
                  Dim rsComment
851
                  Set rsComment = OraDatabase.DbCreateDynaset("SELECT * FROM DEPRECATED_PACKAGES WHERE RTAG_ID ="& Request("rtag_id") &" AND PKG_ID = "& pkgInfoHash.Item ("pkg_id") &"", cint(0))
852
                  If rsComment("comments") <> "" Then
853
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
854
                     Response.write "<tr>"
855
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR((  rsComment("comments") ) ) &"<br></td>"
856
                     Response.write "</tr>"
857
                     Response.write "</table>"
858
                  'Else
859
                  '   If FixedIssues ( parPv_id ) Then
860
                  '      Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
861
                  '   Else
862
                  '      Response.write "<span class='err_alert'>Required!</span><br>"
863
                  '   End If
864
                  End If
865
                  rsComment.Close()
866
                  Set rsComment = nothing
867
                  %>
868
               </td>
869
            </tr>
870
         </table>
871
      </fieldset>
872
      <br><br>
873
   <%End If%>
119 ghuddy 874
<!-- SBOM PRIORITY/CRITICALITY  --------------------------------------------------------------------------------------------------------->
121 hknight 875
   <%If NOT pageIsEditable AND pkgInfoHash.Item ("is_deployable") = "Y" Then%>
876
      <fieldset class="fset"><legend class="body_colb"><img src='icons/i_prod_sbom_priority.gif' hspace='4' border='0' align='absmiddle'>SBOM Priority</legend>
877
         <a name="SBOM_PRIORITY"></a>
878
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
879
            <tr>
880
               <td class="body_colb"></td>
881
               <td align="right" valign="bottom">
882
                  <%If (pkgInfoHash.Item ("dlocked") = "Y") Then%>
883
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_sbom_priority.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','SBOMPriority','resizable=yes,width=400,height=400')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
884
                  <%End If%>
885
               </td>
886
            </tr>
887
         </table>
888
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
889
            <tr>
890
               <td background="images/bg_form_lightgray.gif">
891
                  <%If pkgInfoHash.Item ("sbom_priority") <> "" Then%>
892
                     <table border='0' cellspacing='0' cellpadding='0'>
893
                        <tr>
894
                           <td class='sublbox_txt'>
895
                              <%
896
                              If pkgInfoHash.Item ("sbom_priority") = "C" Then
897
                                 Response.write "<b><font color='red'>Critical.</font></b>"
898
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "I" Then
899
                                 Response.write "<b>Important.</b>"
900
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "R" Then
901
                                 Response.write "Routine"
902
                              ElseIf pkgInfoHash.Item ("sbom_priority") = "L" Then
903
                                 Response.write "Low"
904
                              End If
905
                              %>
906
                           </td>
907
                        </tr>
908
                     </table>
909
                  <%Else%>
910
                     <span class='err_alert'>Required!</span><br>
911
                  <%End If%>
912
               </td>
913
            </tr>
914
         </table>
915
      </fieldset>
916
      <br><br>
917
   <%End If%>
119 ghuddy 918
<!-- CHANGE TYPE  ----------------------------------------------------------------------------------------------------------------------->
121 hknight 919
   <%If pkgInfoHash.Item ("build_type") = "A" Then%>
920
      <fieldset class="fset"><legend class="body_colb"><img src='icons/i_pkg_change_type.gif' hspace='4' border='0' align='absmiddle'>Change Type</legend>
921
         <a name="CHANGE_TYPE"></a>
922
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
923
            <tr>
924
               <td class="body_colb"></td>
925
               <td align="right" valign="bottom">
926
                  <%If (pkgInfoHash.Item ("dlocked") <> "A")  AND (pkgInfoHash.Item ("dlocked") <> "Y") AND criticalSectionIsEditable Then%>
927
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_change_type.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','ChangeType','resizable=yes,width=530,height=290')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
928
                  <%End If%>
929
               </td>
930
            </tr>
931
         </table>
932
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
933
            <tr>
934
               <td background="images/bg_form_lightgray.gif">
935
                  <%
936
                  If pkgInfoHash.Item ("change_type") <> "" Then
937
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
938
                     Response.write "<tr>"
939
                     If pkgInfoHash.Item ("change_type") = "M" Then
940
                        Response.write "<td class='sublbox_txt'>Major Change.<br></td>"
941
                     ElseIf pkgInfoHash.Item ("change_type") = "N" Then
942
                        Response.write "<td class='sublbox_txt'>Minor Change.<br></td>"
943
                     ElseIf pkgInfoHash.Item ("change_type") = "P" Then
944
                        Response.write "<td class='sublbox_txt'>Patch Change.<br></td>"
945
                     End If
946
                     Response.write "</tr>"
947
                     Response.write "</table>"
948
                  Else
949
                     Response.write "<span class='err_alert'>Required!</span><br>"
950
                  End If
951
                  %>
952
               </td>
953
            </tr>
954
         </table>
955
      </fieldset>
956
      <br><br>
957
   <%End If%>
131 ghuddy 958
 
959
 
960
 
119 ghuddy 961
<!-- RIPPLE PROPERTIES  ----------------------------------------------------------------------------------------------------------------------->
131 ghuddy 962
   <%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
121 hknight 963
      <fieldset class="fset"><legend class="body_colb"><img src='icons/i_pkg_ripple_type.gif' hspace='4' border='0' align='absmiddle' height='25' width='25'>Ripple Properties</legend>
964
         <a name="RIPPLE_PROPERTIES"></a>
965
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
966
            <tr>
967
               <td class="body_colb"></td>
968
               <td align="right" valign="bottom">
969
                  <%If (objAccessControl.IsVisible( "RipplePackage" ) AND pageIsEditable) OR criticalSectionIsEditable Then%>
131 ghuddy 970
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_ripple_properties.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','RippleType','resizable=yes,width=800,height=500')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
121 hknight 971
                  <%End If%>
972
               </td>
973
            </tr>
974
         </table>
975
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
131 ghuddy 976
 
977
            <%If Request("rtag_id") <> "" Then
978
               Dim rsQryPegged
979
               Dim isPegged
980
               Set rsQryPegged = OraDatabase.DbCreateDynaset( "SELECT * FROM PEGGED_VERSIONS WHERE RTAG_ID ="& Request("rtag_id") &"AND PV_ID ="& Request("pv_id"), cint(0))
981
 
982
               If rsQryPegged.RecordCount = 0  Then
983
                  isPegged = FALSE%>
984
               <%Else
985
                  isPegged = TRUE %>
986
                  <tr>
987
                     <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
988
                        <strong>Is Pegged</strong>
989
                        <%=Quick_Help ( "pegged_version" )%>
990
                     </td>
121 hknight 991
                     <td background="images/bg_form_lightgray.gif" class="sublbox_txt">Yes</td>
131 ghuddy 992
                  </tr>
993
               <%End If%>
994
               <%rsQryPegged.Close()
995
               Set rsQryPegged = nothing
996
            End If%>
997
 
998
            <%If isPegged = FALSE Then%>
999
               <tr>
1000
                  <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
1001
                     <strong>Build Inclusion</strong>
1002
                     <%=Quick_Help ( "ripple_build" )%>
1003
                  </td>
1004
                  <%If Request("rtag_id") <> "" Then
1005
                     Dim rsQryRipple
1006
                     Set rsQryRipple = OraDatabase.DbCreateDynaset( "SELECT * FROM DO_NOT_RIPPLE WHERE RTAG_ID ="& Request("rtag_id") &"AND PV_ID ="&Request("pv_id"), cint(0))
1007
                        If rsQryRipple.RecordCount = 0  Then %>
1008
                        <td background="images/bg_form_lightgray.gif" class="sublbox_txt">Yes</td>
1009
                     <%Else%>
1010
                        <td background="images/bg_form_lightgray.gif" class="sublbox_txt">No</td>
1011
                     <%End If%>
1012
                     <%rsQryRipple.Close()
1013
                     Set rsQryRipple = nothing
1014
                  End If%>
1015
               </tr>
1016
               <tr>
1017
                  <td width="20%" background="images/bg_form_lightbluedark.gif" class="sublbox_txt">
1018
                     <strong>Ripple Type</strong>
1019
                     <%=Quick_Help ( "ripple_type" )%>
1020
                  </td>
1021
                  <td width="80%" background="images/bg_form_lightgray.gif">
1022
                     <p>
1023
                        <%
1024
                        Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1025
                        Response.write "<tr>"
1026
                        Response.write "<td class='sublbox_txt'>"
1027
                        Dim anotherQry, selectedRippleType
1028
                        selectedRippleType = pkgInfoHash.Item ("ripple_field")
1029
                        Set anotherQry = OraDatabase.DbCreateDynaset( "SELECT state_name from ripple_field_states WHERE state_acronym ='"& selectedRippleType &"'", cint(0))
1030
                        If anotherQry.RecordCount = 0  Then
1031
                           Response.write "<span class='err_alert'>Required!</span>"
1032
                        Else
1033
                        Response.write( anotherQry.Fields("state_name").Value )
1034
                        End If
1035
                        anotherQry.Close()
1036
                        Set anotherQry = nothing
1037
                        If ( selectedRippleType = "L" ) Then
1038
                        Dim qry
1039
                        Set qry = OraDatabase.DbCreateDynaset( "SELECT major_limit, minor_limit, patch_limit, build_number_limit from package_versions where pv_id="& Request("pv_id"), cint(0))
1040
                        Response.write " "
1041
                        If isNull(qry("major_limit")) Then
1042
                           Response.write("0")
1043
                        Else
1044
                           Response.write( qry.Fields( "major_limit" ).Value )
1045
                        End If
1046
                        Response.write ", "
1047
                        If isNull(qry("minor_limit")) Then
1048
                           Response.write("0")
1049
                        Else
1050
                           Response.write( qry.Fields( "minor_limit" ).Value )
1051
                        End If
1052
                        Response.write ", "
1053
                        If isNull(qry("patch_limit")) Then
1054
                           Response.write("0")
1055
                        Else
1056
                           Response.write( qry.Fields( "patch_limit" ).Value )
1057
                        End If
1058
                        Response.write ", "
1059
                        If isNull(qry("build_number_limit")) Then
1060
                           Response.write("0")
1061
                        Else
1062
                           Response.write( qry.Fields( "build_number_limit" ).Value )
1063
                        End If
1064
                        qry.Close()
1065
                        Set qry = nothing
1066
                        End If
1067
                        Response.Write "<br></td>"
1068
                        Response.write "</tr>"
1069
                        Response.write "</table>"
1070
                        %>
1071
                     </p>
1072
                  </td>
1073
               </tr>
1074
            <%End If%>
121 hknight 1075
         </table>
1076
      </fieldset>
1077
      <br>
1078
      <br>
1079
   <%End If%>
131 ghuddy 1080
 
1081
 
1082
 
1083
 
119 ghuddy 1084
<!-- REASON FOR RELEASE ----------------------------------------------------------------------------------------------------------------->
121 hknight 1085
   <fieldset class="fset"><legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for this version</legend>
1086
      <a name="REASON_FOR_THIS_RELEASE"></a>
1087
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1088
         <tr>
1089
            <td align="right" valign="bottom">
1090
               <%If pageIsEditable Then%>
1091
                  <form name="updateversions" method="post" action="_update_versions.asp">
1092
                     <input type="submit" name="btn" value="Update Dependencies" class="form_btn" onClick="return confirmAction('Current comments would be deleted. Do you wish to continue?')">
1093
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_reason_for_version.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','ReasonForRelease','resizable=yes,width=500,height=270')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1094
                     <input name="pv_id" type="hidden" value="<%=parPv_id%>">
1095
                     <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
1096
                  </form>
1097
               <%End If%>
1098
            </td>
1099
         </tr>
1100
      </table>
119 ghuddy 1101
 
121 hknight 1102
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1103
         <tr>
1104
            <td background="images/bg_form_lightgray.gif">
1105
            <%If pkgInfoHash.Item ("comments") <> "" Then%>
1106
               <table border='0' cellspacing='0' cellpadding='0'>
1107
                  <tr>
1108
                     <td class='sublbox_txt'> <%Response.Write( NewLine_To_BR(pkgInfoHash.Item("comments")) )%><br></td>
1109
                  </tr>
1110
               </table>
1111
            <%ElseIf FixedIssues ( parPv_id ) Then%>
1112
               <span class='sublbox_txt'>Not specified.</span><br>
1113
            <%Else%>
1114
               <span class='err_alert'>Required!</span><br>
1115
            <%End If%>
1116
            </td>
1117
         </tr>
1118
      </table>
1119
   </fieldset>
1120
   <br><br>
119 ghuddy 1121
<!-- REASON FOR NON_RIPPLE RELEASE ----------------------------------------------------------------------------------------------------------------->
121 hknight 1122
   <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then%>
119 ghuddy 1123
 
121 hknight 1124
      <fieldset class="fset"><legend class="body_colb"><img src='images/s_notes.gif' width='21' height='24' hspace='4' border='0' align='absmiddle'>Reason for last non-ripple build</legend>
119 ghuddy 1125
 
121 hknight 1126
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
1127
            <tr>
1128
               <td background="images/bg_form_lightgray.gif">
1129
                  <%
1130
                  'Dim rsQry
1131
                  Call LastPvId(pkgInfoHash.Item ("pv_id"))
119 ghuddy 1132
 
121 hknight 1133
                  While rsQry("comments") = "Rippled Build."
1134
                     Call LastPvId(rsQry("last_pv_id"))
1135
                  Wend
119 ghuddy 1136
 
121 hknight 1137
                  If pkgInfoHash.Item ("comments") <> "" Then
1138
                     Response.write "<table border='0' cellspacing='0' cellpadding='0'>"
1139
                     Response.write "<tr>"
1140
                     Response.write "<td class='sublbox_txt'><b>Package Version:</b> <b>"& NewLine_To_BR(( rsQry ("pkg_version") ) ) &"</b><br></td>"
1141
                     Response.write "</tr>"
1142
                     Response.write "<tr>"
1143
                     Response.write "<td class='sublbox_txt'>"& NewLine_To_BR(( rsQry ("comments") ) ) &"<br></td>"
1144
                     Response.write "</tr>"
119 ghuddy 1145
 
121 hknight 1146
                     Response.write "</table>"%>
119 ghuddy 1147
 
121 hknight 1148
                     <table width="100%" border="0" cellspacing="1" cellpadding="2">
1149
                        <tr>
1150
                           <td valign="top" class="sublbox_txt"><b>Fixed Issues For Last Non-Ripple Build</b></td>
1151
                           <td align="right" valign="top">
1152
                              <%If pageIsEditable Then%>
1153
                                 <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">Import Fixed Issues from ClearQuest<img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1154
                              <%End If%>
1155
                           </td>
1156
                        </tr>
1157
                     </table>
1158
                     <%Call Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1159
                     If (retVal > 0) Then
1160
                        retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1161
                        If retVal = 0 Then%>
1162
                           <table width="100%" border="0" cellspacing="1" cellpadding="3">
1163
                              <tr>
1164
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field" align="center">Fixed</td>
1165
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Id&nbsp;</td>
1166
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;DB&nbsp;</td>
1167
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
1168
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Type&nbsp;</td>
1169
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Priority</td>
1170
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Status</td>
1171
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Note</td>
1172
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">&nbsp;</td>
1173
                              </tr>
1174
                              <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1175
                                 <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1176
                                    <tr>
1177
                                       <td align="center" nowrap background="images/bg_form_lightbluedark.gif"><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
1178
                                       <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked"><%=rsCQ("iss_num")%></a></td>
1179
                                       <td background="images/bg_form_lightgray.gif" class="form_item"><%If rsCQ("iss_db") = enumCLEARQUEST_DEVI_ID Then%>DEVI<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_TDSE_ID Then%>TDSE<%ElseIf rsCQ("iss_db") = enumCLEARQUEST_VT5DM_ID Then%>VT5DM<%Else%>VTSUP<%End If%></td>
1180
                                       <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1181
                                       <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issue_type")%></td>
1182
                                       <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1183
                                       <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("Status")%></td>
1184
                                       <%If sectionIsEditable Then%>
1185
                                           <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1186
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></a></td>
1187
                                          <%Else%>
1188
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')"><img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note"></a></td>
1189
                                          <%End If%>
1190
                                       <%Else%>
1191
                                          <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
1192
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>"></td>
1193
                                          <%Else%>
1194
                                             <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_note_off.gif" width="11" height="12" border="0"></td>
1195
                                          <%End If%>
1196
                                       <%End If%>
1197
                                       <%If NOT pageIsEditable Then%>
1198
                                          <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0"></td>
1199
                                       <%Else%>
1200
                                          <td align="center" background="images/bg_form_lightgray.gif" class="form_item"><a href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list"></a></td>
1201
                                       <%End If%>
1202
                                    </tr>
1203
                                    <%rsCQ.MoveNext
1204
                                 WEnd
1205
                                 rsCQ.Close()%>
1206
                              <%Else%>
1207
                                 <tr>
1208
                                    <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1209
                                    <td background="images/bg_form_lightgray.gif" nowrap></td>
1210
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1211
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1212
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1213
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1214
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1215
                                    <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1216
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
1217
                                 </tr>
1218
                              <%End If%>
1219
                           </table>
1220
                        <%End If%>
1221
                        <%If retVal <> 0 Then Response.write enumMSSQL_ERROR
1222
                     End If
1223
                  Else
1224
                     If FixedIssues ( parPv_id ) Then
1225
                        Response.write "<span class='sublbox_txt'>Not specified.</span><br>"
1226
                     Else
1227
                        Response.write "<span class='err_alert'>Required!</span><br>"
1228
                     End If
1229
                  End If
119 ghuddy 1230
 
121 hknight 1231
                  rsQry.Close()
1232
                  Set rsQry = nothing
1233
                  %>
1234
               </td>
1235
            </tr>
1236
         </table>
1237
      </fieldset>
1238
      <br><br>
1239
   <%End If%>
1240
<!-- FIXED ISSUES ----------------------------------------------------------------------------------------------------------------------->
123 ghuddy 1241
   <fieldset class="fset">
1242
      <legend class="body_colb">
1243
         <img src="images/s_bugs.gif" width="21" height="18" border="0" hspace="4" align="absmiddle">
1244
         Issues
1245
      </legend>
121 hknight 1246
      <p class="body_colb"><a name="ISSUES"></a></p>
1247
      <table width="100%" border="0" cellpadding="2" cellspacing="1">
1248
         <tr>
1249
            <td valign="top" class="body_colb">JIRA Issues</td>
1250
            <td align="right" valign="top">
1251
               <%If pageIsEditable Then%>
123 ghuddy 1252
                  <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_jira_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">
1253
                     Import JIRA issues
1254
                     <img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle">
1255
                  </a>
121 hknight 1256
               <%End If%>
1257
            </td>
119 ghuddy 1258
 
121 hknight 1259
            <%retVal = Get_JIRA_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1260
            If (retVal > 0) Then
1261
               retVal = Get_JIRA_Issues ( SQLstr, rsCQ )
123 ghuddy 1262
               If (retVal = 0 AND rsCQ.RecordCount > 0) Then%>
121 hknight 1263
 
1264
                  <table width="100%" border="0" cellspacing="1" cellpadding="3">
1265
                     <tr>
1266
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field" align="center">Fixed</td>
1267
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Id&nbsp;</td>
1268
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;DB&nbsp;</td>
1269
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
1270
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Type&nbsp;</td>
1271
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Priority</td>
1272
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Status</td>
1273
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Note</td>
1274
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">&nbsp;</td>
1275
                     </tr>
1276
                     <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1277
                        <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1278
                           <tr>
1279
                              <%If rsCQ("resolution") = 1 Then %>
123 ghuddy 1280
                                 <td align="center" nowrap background="images/bg_form_lightbluedark.gif">
1281
                                    <img src="images/i_tick_black.gif" width="7" height="7" vspace="2">
1282
                                 </td>
121 hknight 1283
                              <%Else%>
1284
                                 <td align="center" nowrap background="images/bg_form_lightbluedark.gif"></td>
1285
                              <%End If%>
123 ghuddy 1286
                              <td background="images/bg_form_lightgray.gif" nowrap class="form_item">
1287
                                 <a href="http://auperajir01:8080/browse/<%=rsCQ("iss_num")%>" target="_blank" class="txt_linked">
1288
                                    <%=rsCQ("iss_num")%>
1289
                                 </a>
1290
                              </td>
121 hknight 1291
                              <td background="images/bg_form_lightgray.gif" class="form_item">JIRA</td>
1292
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1293
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issuetype")%></td>
1294
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1295
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("state")%></td>
1296
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"></td>
1297
                              <%If NOT pageIsEditable Then%>
123 ghuddy 1298
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1299
                                    <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
1300
                                 </td>
121 hknight 1301
                              <%Else%>
123 ghuddy 1302
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1303
                                    <a href="_remove_jira_issue.asp?iss_link=<%=rsCQ("iss_num")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');">
1304
                                       <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
1305
                                    </a>
1306
                                 </td>
121 hknight 1307
                              <%End If%>
1308
                           </tr>
1309
                           <%rsCQ.MoveNext
1310
                        WEnd
1311
                        rsCQ.Close()%>
1312
                     <%Else%>
1313
                        <tr>
119 ghuddy 1314
                           <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1315
                           <td background="images/bg_form_lightgray.gif" nowrap></td>
1316
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1317
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1318
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1319
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1320
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1321
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
119 ghuddy 1322
                           <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1323
                        </tr>
1324
                     <%End If%>
119 ghuddy 1325
 
121 hknight 1326
                  </table>
1327
               <%End If%>
1328
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1329
            <%End If%>
119 ghuddy 1330
 
121 hknight 1331
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
1332
               <tr>
1333
                  <td valign="top" class="body_colb">Fixed Issues</td>
1334
                  <td align="right" valign="top">
1335
                     <%If pageIsEditable Then%>
123 ghuddy 1336
                        <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&skip_open=true','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">
1337
                           Import Fixed Issues from ClearQuest
1338
                           <img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle">
1339
                        </a>
121 hknight 1340
                     <%End If%>
1341
                  </td>
1342
               </tr>
1343
            </table>
119 ghuddy 1344
 
121 hknight 1345
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_FIXED )
1346
            If (retVal > 0) Then
1347
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1348
               If retVal = 0 Then%>
1349
                  <table width="100%" border="0" cellspacing="1" cellpadding="3">
1350
                     <tr>
1351
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field" align="center">Fixed</td>
1352
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Id&nbsp;</td>
1353
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;DB&nbsp;</td>
1354
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
1355
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Issue&nbsp;Type&nbsp;</td>
1356
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Priority</td>
1357
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Status</td>
1358
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">Note</td>
1359
                        <td background="images/bg_form_lightbluedark.gif" nowrap width="1" class="form_field">&nbsp;</td>
1360
                     </tr>
1361
                     <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1362
                        <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1363
                           <tr>
1364
                              <td align="center" nowrap background="images/bg_form_lightbluedark.gif"><img src="images/i_tick_black.gif" width="7" height="7" vspace="2"></td>
123 ghuddy 1365
                              <td background="images/bg_form_lightgray.gif" nowrap class="form_item">
1366
                                 <a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked">
1367
                                    <%=rsCQ("iss_num")%>
1368
                                 </a>
1369
                              </td>
1370
                              <td background="images/bg_form_lightgray.gif" class="form_item">
1371
                                 <%If rsCQ("iss_db") = enumCLEARQUEST_DEVI_ID Then%>
1372
                                    DEVI
1373
                                 <%ElseIf rsCQ("iss_db") = enumCLEARQUEST_TDSE_ID Then%>
1374
                                    TDSE
1375
                                 <%ElseIf rsCQ("iss_db") = enumCLEARQUEST_VT5DM_ID Then%>
1376
                                    VT5DM
1377
                                 <%Else%>
1378
                                    VTSUP
1379
                                 <%End If%>
1380
                              </td>
121 hknight 1381
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1382
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issue_type")%></td>
1383
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1384
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("Status")%></td>
1385
                              <%If sectionIsEditable AND pageIsEditable Then%>
1386
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
123 ghuddy 1387
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1388
                                       <a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')">
1389
                                          <img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
1390
                                       </a>
1391
                                    </td>
121 hknight 1392
                                 <%Else%>
123 ghuddy 1393
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1394
                                       <a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')">
1395
                                          <img src="images/i_note_off.gif" width="11" height="12" border="0" title="Add Note">
1396
                                       </a>
1397
                                    </td>
121 hknight 1398
                                 <%End If%>
1399
                              <%Else%>
1400
                                 <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
123 ghuddy 1401
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1402
                                       <img src="images/i_note_on.gif" width="11" height="12" border="0" title="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
1403
                                    </td>
121 hknight 1404
                                 <%Else%>
123 ghuddy 1405
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1406
                                       <img src="images/i_note_off.gif" width="11" height="12" border="0">
1407
                                    </td>
121 hknight 1408
                                 <%End If%>
1409
                              <%End If%>
1410
                              <%If NOT pageIsEditable Then%>
123 ghuddy 1411
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1412
                                    <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
1413
                                 </td>
121 hknight 1414
                              <%Else%>
123 ghuddy 1415
                                 <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1416
                                    <a href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');">
1417
                                       <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
1418
                                    </a>
1419
                                 </td>
121 hknight 1420
                              <%End If%>
1421
                           </tr>
1422
                           <%rsCQ.MoveNext
1423
                        WEnd
1424
                        rsCQ.Close()%>
1425
                     <%Else%>
1426
                        <tr>
119 ghuddy 1427
                           <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1428
                           <td background="images/bg_form_lightgray.gif" nowrap></td>
1429
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1430
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1431
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1432
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1433
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1434
                           <td background="images/bg_form_lightgray.gif" class="form_item"></td>
119 ghuddy 1435
                           <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1436
                        </tr>
1437
                     <%End If%>
119 ghuddy 1438
 
121 hknight 1439
                  </table>
1440
               <%End If%>
1441
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1442
            <%End If%>
119 ghuddy 1443
 
121 hknight 1444
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
1445
               <tr>
1446
                  <td valign="top" class="body_colb">Outstanding Issues</td>
1447
                  <td align="right" valign="top">
1448
                     <%If pageIsEditable Then%>
123 ghuddy 1449
                        <a href="javascript:;" onClick="MM_openBrWindow('_wform_import_issues.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','FindIssue','scrollbars=yes,resizable=yes,width=750,height=600')" class="txt_linked">
1450
                           Import Outstanding Issues from ClearQuest
1451
                           <img src="images/i_download.gif" width="12" height="12" hspace="2" border="0" align="absmiddle">
1452
                        </a>
121 hknight 1453
                     <%End If%>
1454
                  </td>
1455
               </tr>
1456
            </table>
119 ghuddy 1457
 
121 hknight 1458
            <%retVal = Get_Package_Issues ( parPv_id, SQLstr, fixedIssDict, notesIssDict, enumISSUES_STATE_IMPORTED )
1459
            If (retVal > 0) Then
1460
               retVal = Get_CQ_Issues ( SQLstr, rsCQ )
1461
               If retVal = 0 Then%>
1462
                  <table width="100%" border="0" cellspacing="1" cellpadding="2">
1463
                     <form name="fixedissues" method="get" action="_update_issues_state.asp">
1464
                        <tr>
1465
                           <%If pageIsEditable Then%>
1466
                              <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field" align="center">Fixed</td>
1467
                           <%End If%>
119 ghuddy 1468
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue&nbsp;Id&nbsp;</td>
121 hknight 1469
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue DB&nbsp;</td>
119 ghuddy 1470
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
121 hknight 1471
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue&nbsp;Type&nbsp;</td>
119 ghuddy 1472
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Priority</td>
121 hknight 1473
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Status</td>
1474
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Note</td>
119 ghuddy 1475
                           <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">&nbsp;</td>
121 hknight 1476
                        </tr>
1477
                        <%If ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF)) Then%>
1478
                           <%While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF))%>
1479
                              <tr>
1480
                                 <%If pageIsEditable Then%>
123 ghuddy 1481
                                    <td align="center" nowrap background="images/bg_form_lightbluedark.gif">
1482
                                       <input type="checkbox" name="FRfixed" value="<%=rsCQ("iss_db") &"."& rsCQ("iss_id")%>">
1483
                                    </td>
121 hknight 1484
                                 <%End If%>
123 ghuddy 1485
                                 <td background="images/bg_form_lightgray.gif" nowrap class="form_item">
1486
                                    <a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked">
1487
                                       <%=rsCQ("iss_num")%>
1488
                                    </a>
1489
                                 </td>
1490
                                 <td background="images/bg_form_lightgray.gif" class="form_item">
1491
                                    <%If rsCQ("iss_db") = enumCLEARQUEST_DEVI_ID Then%>
1492
                                       DEVI
1493
                                    <%ElseIf rsCQ("iss_db") = enumCLEARQUEST_TDSE_ID Then%>
1494
                                       TDSE
1495
                                    <%ElseIf rsCQ("iss_db") = enumCLEARQUEST_VT5DM_ID Then%>
1496
                                       VT5DM
1497
                                    <%Else%>
1498
                                       VTSUP
1499
                                    <%End If%>
1500
                                 </td>
121 hknight 1501
                                 <td background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR ( To_HTML ( rsCQ("summary") ) )%></td>
1502
                                 <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("issue_type")%></td>
1503
                                 <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("priority")%></td>
1504
                                 <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=rsCQ("Status")%></td>
1505
                                 <%If sectionIsEditable AND pageIsEditable Then%>
1506
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
123 ghuddy 1507
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1508
                                          <a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')">
1509
                                             <img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
1510
                                          </a>
1511
                                       </td>
121 hknight 1512
                                    <%Else%>
123 ghuddy 1513
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1514
                                          <a href="javascript:;" onClick="MM_openBrWindow('_wform_issue_notes.asp?rtag_id=<%=parRtag_id%>&pv_id=<%=parPv_id%>&iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>','IssueNotes','resizable=yes,width=400,height=250')">
1515
                                             <img src="images/i_note_off.gif" width="11" height="12" border="0" alt="Add Note">
1516
                                          </a>
1517
                                       </td>
121 hknight 1518
                                    <%End If%>
1519
                                 <%Else%>
1520
                                    <%If notesIssDict.Exists (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id"))) Then%>
123 ghuddy 1521
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1522
                                          <img src="images/i_note_on.gif" width="11" height="12" border="0" alt="<%=notesIssDict.Item (Cstr(rsCQ("iss_db") &"."& rsCQ("iss_id")))%>">
1523
                                       </td>
121 hknight 1524
                                    <%Else%>
123 ghuddy 1525
                                       <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1526
                                          <img src="images/i_note_off.gif" width="11" height="12" border="0">
1527
                                       </td>
121 hknight 1528
                                    <%End If%>
1529
                                 <%End If%>
1530
                                 <%If NOT pageIsEditable Then%>
123 ghuddy 1531
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1532
                                       <img src="images/i_delete_disable.gif" width="13" height="12" hspace="2" border="0">
1533
                                    </td>
121 hknight 1534
                                 <%Else%>
123 ghuddy 1535
                                    <td align="center" background="images/bg_form_lightgray.gif" class="form_item">
1536
                                       <a href="_remove_issue.asp?iss_db=<%=rsCQ("iss_db")%>&iss_id=<%=rsCQ("iss_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this issue from Release Manager');">
1537
                                          <img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this issue from the list">
1538
                                       </a>
1539
                                    </td>
121 hknight 1540
                                 <%End If%>
1541
                              </tr>
1542
                              <%rsCQ.MoveNext
1543
                           WEnd
1544
                           rsCQ.Close()%>
1545
                           <%If pageIsEditable Then%>
1546
                              <tr>
123 ghuddy 1547
                                 <td align="center" nowrap background="images/bg_form_lightbluedark.gif">
1548
                                    <input type="submit" name="Apply" value="Apply" class="form_btn">
1549
                                 </td>
121 hknight 1550
                                 <td></td>
1551
                                 <td></td>
1552
                                 <td></td>
1553
                                 <td></td>
1554
                                 <td></td>
1555
                                 <td></td>
1556
                                 <td></td>
1557
                                 <td></td>
1558
                              </tr>
1559
                           <%End If%>
1560
                        <%Else%>
1561
                           <tr>
1562
                              <%If pageIsEditable Then%>
1563
                                 <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1564
                              <%End If%>
1565
                              <td background="images/bg_form_lightgray.gif" nowrap></td>
1566
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1567
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1568
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1569
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1570
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1571
                              <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1572
                              <td align="center" background="images/bg_form_lightgray.gif" class="form_item"></td>
1573
                           </tr>
1574
                        <%End If%>
1575
                        <input name="pv_id" type="hidden" value="<%=parPv_id%>">
1576
                        <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
1577
                     </form>
1578
                  </table>
1579
               <%End If%>
1580
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1581
            <%End If%>
123 ghuddy 1582
<!-- DEVI-050133 Although it would seem to the human eye that the following row and table closing tags are needed, -->
1583
<!--             they do in fact cause the page to be rendered incorrectly. Hence they are commented out for now   -->
1584
<!--             until the true cause of the mis-rendering can be ascertained.                                    -->
1585
<!--     </tr> -->
1586
<!--  </table> -->
121 hknight 1587
   </fieldset>
1588
   <br><br>
119 ghuddy 1589
<!-- DEPENDENCY ISSUES (NOT FOR PATCHES!) ------------------------------------------------------------------------------------------------------->
1590
 
121 hknight 1591
   <%If IsNull(pkgInfoHash.Item ("is_patch")) Then%>
1592
      <fieldset class="fset"><legend class="body_colb"><img src="images/s_bugs.gif" width="21" height="18" border="0" hspace="4" align="absmiddle">Dependency Issues</legend>
1593
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
119 ghuddy 1594
 
121 hknight 1595
            <%Call Get_Package_Issues ( parPv_id, SQLstr, NULL, NULL, NULL )
1596
            If (retVal > 0) Then
1597
               retVal = Get_Dependency_CQ_Issues ( SQLstr, rsCQ, depIssDict, issArr )
1598
               If retVal = 0 Then%>
1599
                  <%
1600
                  currG1 = 0
1601
                  G1_template = _
1602
                  "<tr>"&_
1603
                  "  <td colspan='7'><img src='images/spacer.gif' width='2' height='2'></td>"&_
1604
                  "</tr>"&_
1605
                  "<tr>"&_
1606
                  "  <td colspan='7' background='images/bg_form_lightbluedark.gif' class='form_item'>/*DEP_NAME_VERSION*//*REASONS*/</td>"&_
1607
                  "</tr>"
1608
                  Set rsDepIss = OraDatabase.DbCreateDynaset( SQL_Dependency_Issues( parPv_id ), cint(0))
1609
                  %>
1610
                  <%If ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF)) Then%>
1611
                     <%While ((NOT rsDepIss.BOF) AND (NOT rsDepIss.EOF))%>
1612
                        <%
1613
                        iss_db_id = Cstr(rsDepIss("iss_db") &"."& rsDepIss("iss_id"))
1614
                        G1_style = Replace(G1_template, "/*DEP_NAME_VERSION*/", "<SPAN class='envolPkg'><b>"& rsDepIss("pkg_name") &" "& rsDepIss("pkg_version") &"</b></SPAN>")
1615
                        If IsNull(rsDepIss("iss_id")) Then
1616
                           If IsNull(rsDepIss("reasons")) Then
1617
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>Reason for this version is not specified.")
1618
                           Else
1619
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
1620
                           End If
1621
                        Else
1622
                           If IsNull(rsDepIss("reasons")) Then
1623
                              G1_style = Replace(G1_style, "/*REASONS*/", "")
1624
                           Else
1625
                              G1_style = Replace(G1_style, "/*REASONS*/", "<br>"& NewLine_To_BR ( To_HTML ( rsDepIss("reasons") ) ) )
1626
                           End If
1627
                        End If
119 ghuddy 1628
 
121 hknight 1629
                        Call Group_By ( rsDepIss("pv_id"), G1_style, currG1 )
1630
                        If NOT IsNull(rsDepIss("iss_id")) Then
1631
                           If rsDepIss("pv_id") <> currG1 Then
1632
                              currG1 = rsDepIss("pv_id")%>
1633
                              <tr>
123 ghuddy 1634
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field" align="center"></td>
1635
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field" align="center">Fixed</td>
1636
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue&nbsp;Id&nbsp;</td>
121 hknight 1637
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue DB&nbsp;</td>
123 ghuddy 1638
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Summary</td>
1639
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Issue&nbsp;Type&nbsp;</td>
1640
                                 <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Priority</td>
121 hknight 1641
                              </tr>
1642
                           <%End If%>
1643
                           <tr>
1644
                              <td background="images/bg_form_lightbluedark.gif"></td>
1645
                              <td align="center" nowrap background="images/bg_form_lightgray.gif">
1646
                                 <%If CInt(rsDepIss("iss_state")) = enumISSUES_STATE_FIXED Then%>
1647
                                    <img src="images/i_tick_black.gif" width="7" height="7" vspace="2">
1648
                                 <%Else%>
1649
                                    <img src="images/spacer.gif" width="7" height="7" vspace="2">
1650
                                 <%End If%>
1651
                              </td>
1652
                              <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><a href="javascript:;" onClick="MM_openBrWindow('_wform_issues_details.asp?iss_db=<%=asDepIss( iss_db_id, enumLoc_iss_db )%>&iss_id=<%=asDepIss( iss_db_id, enumLoc_iss_id )%>','IssueDetails','resizable=yes,width=580,height=500')" class="txt_linked"><%=asDepIss( iss_db_id, enumLoc_iss_num )%></a></td>
1653
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%If asDepIss( iss_db_id, enumLoc_iss_db ) = enumCLEARQUEST_DEVI_ID Then%>DEVI<%ElseIf asDepIss( iss_db_id, enumLoc_iss_db ) = enumCLEARQUEST_TDSE_ID Then%>TDSE<%ElseIf asDepIss( iss_db_id, enumLoc_iss_db ) = enumCLEARQUEST_VT5DM_ID Then%>VT5DM<%Else%>VTSUP<%End If%></td>
1654
                              <td background="images/bg_form_lightgray.gif" class="form_item"><%=asDepIss( iss_db_id, enumLoc_summary)%></td>
1655
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=asDepIss( iss_db_id, enumLoc_issue_type)%></td>
1656
                              <td nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=asDepIss( iss_db_id, enumLoc_priority)%></td>
1657
                           </tr>
1658
                        <%End If%>
1659
                        <%rsDepIss.MoveNext
1660
                     WEnd
1661
                     rsDepIss.Close()
1662
                     Set rsDepIss = nothing%>
1663
                  <%Else%>
1664
                     <tr>
1665
                        <td background="images/bg_form_lightbluedark.gif" nowrap>&nbsp;</td>
1666
                        <td background="images/bg_form_lightgray.gif"></td>
1667
                        <td background="images/bg_form_lightgray.gif"></td>
1668
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1669
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1670
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1671
                        <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1672
                     </tr>
1673
                  <%End If%>
1674
               <%End If%>
1675
               <%If retVal <> 0 Then Response.write enumMSSQL_ERROR%>
1676
            <%End If%>
1677
         </table>
1678
      </fieldset>
1679
      <br><br>
1680
   <%End If%>
119 ghuddy 1681
<!-- UNIT TESTS --------------------------------------------------------------------------------------------------------------------->
121 hknight 1682
   <%
1683
   Dim testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound
1684
   Call CheckUnitTestsState ( parPv_id, testCheckMSG, testCheckMSG_ID, testCheckNote, testCheckTestsFound  )
1685
   Set rsQry = OraDatabase.DbCreateDynaset( SQL_Unit_Tests ( parPv_id ), cint(0))
1686
   %>
1687
   <fieldset class="fset"><legend class="body_colb"><img src="images/i_unit_test.gif" width="18" height="25" hspace="4" border="0" align="absmiddle" alt="">Unit Tests
1688
      <%If testCheckMSG_ID = 0 Then%>
1689
         &nbsp;&nbsp;<%=testCheckMSG%>
1690
      <%End If%></legend>
1691
      <a name="UNIT_TESTS"></a>
1692
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1693
         <tr>
1694
            <td align="right" valign="bottom">
157 ghuddy 1695
               <%If ( scriptName = "fixed_issues.asp" ) Then%>
1696
                  <%If objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
1697
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_unit_test.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','UnitTest','resizable=yes,width=700,height=550')" class="txt_linked">New Test<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle" alt="Add new test."></a>
1698
                  <%End If%>
121 hknight 1699
                  <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = 0)  Then%>
1700
                     <a href='_not_done_unit_test.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&notdone=Y' class='txt_linked'>Click here if Not Done!<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle" alt="Add new test."></a>
1701
                  <%End If%>
1702
               <%End If%>
1703
            </td>
1704
         </tr>
1705
      </table>
1706
      <%If (NOT testCheckTestsFound) AND (testCheckMSG_ID = -1) Then%>
1707
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
1708
            <tr>
1709
               <td background="images/bg_form_lightgray.gif" class="form_item">
1710
                  <%Call DisplayInfo ( "UNIT_TEST_NOT_DONE", 300 )%>
1711
                  <span class="rep_small">Last Modified: <%=testCheckMSG%></span><br>
1712
                  <%=NewLine_To_BR( To_HTML ( testCheckNote ) )%>
1713
               </td>
1714
            </tr>
1715
         </table>
1716
      <%End If%>
119 ghuddy 1717
 
121 hknight 1718
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1719
         <form name="review" method="get" action="_update_unit_test_accepted_state.asp">
1720
            <tr>
1721
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" valign="middle">&nbsp;Test Type&nbsp;</td>
1722
               <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" valign="middle">&nbsp;Test Summary&nbsp;</td>
1723
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">Test<br>Completed</td>
1724
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">&nbsp;Passed<br># / Total&nbsp;</td>
1725
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">&nbsp;Results&nbsp;</td>
1726
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">&nbsp;Accepted&nbsp;</td>
1727
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" align="center" valign="middle">Review<br>Completed</td>
1728
               <td width="1%" nowrap background="images/bg_form_lightbluedark.gif" class="form_field" valign="middle">Comments /<br>Issue#</td>
1729
               <td width="1%" background="images/bg_form_lightbluedark.gif"></td>
1730
            </tr>
1731
            <%While ((NOT rsQry.BOF) AND (NOT rsQry.EOF) )%>
1732
               <tr>
1733
                  <%If NOT pageIsEditable Then%>
1734
                     <%If NOT IsNull(rsQry("test_id")) AND ( scriptName = "fixed_issues.asp") Then%>
1735
                        <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onClick="MM_openBrWindow('_wform_update_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','UpdateUT','resizable=yes,width=700,height=550')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align="absmiddle" border="0"><%=rsQry("test_type_name")%></a></td>
1736
                     <%Else%>
1737
                        <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><img src="images/i_test.gif" width="16" height="16" hspace="3" align="absmiddle"><%=rsQry("test_type_name")%></td>
1738
                     <%End If%>
1739
                  <%Else%>
1740
                     <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onClick="MM_openBrWindow('<%If Not IsNull(rsQry("test_id")) Then%>_wform_update_unit_test.asp<%Else%>_wform_unit_test.asp<%End If%>?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&test_type_id=<%=rsQry("test_type_id")%>','UpdateUT','resizable=yes,width=700,height=550')" class="txt_linked"><img src="images/i_test.gif" width="16" height="16" hspace="3" align="absmiddle" border="0"><%=rsQry("test_type_name")%></a></td>
1741
                  <%End If%>
1742
                  <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=NewLine_To_BR( To_HTML( rsQry("test_summary") ))%></td>
1743
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%If ( NOT IsNull(rsQry("tester")) ) Then%><%=EuroDate ( rsQry("completion_date") )%><br>by <a href="mailto:<%=rsQry("tester_email")%>" class="txt_linked"><%=rsQry("tester")%></a><%End If%></td>
1744
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top" align="center"><%=rsQry("numof_test")%></td>
119 ghuddy 1745
 
121 hknight 1746
                  <%If CInt(rsQry("test_type_id")) = enumTEST_TYPE_AUTOMATIC Then%>
1747
                     <td background="images/bg_form_lightgray.gif" class="form_item" align="center" valign="top">
1748
                        <%If NOT IsNull( rsQry("results_url") ) Then%>
1749
                           <%If InStr( rsQry("results_url"), "http://" ) = 1 Then%>
1750
                              <a href="<%=rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1751
                           <%Else%>
1752
                              <%If pkgInfoHash.Item ("base_view_id") = CStr(enumBASE_VIEW_PRODUCTS) Then%>
1753
                                 <a href="<%=deploy_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") & rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1754
                              <%Else%>
1755
                                 <a href="<%=dpkg_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") & rsQry("results_url")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1756
                              <%End If%>
1757
                           <%End If%>
1758
                        <%End If%>
1759
                     </td>
1760
                  <%Else%>
1761
                     <td background="images/bg_form_lightgray.gif" class="form_item"  align="center" valign="top">
1762
                        <%If NOT IsNull( rsQry("results_attachment_name") ) Then%>
1763
                           <%If pkgInfoHash.Item ("dlocked") = "Y" Then%>
1764
                              <%If pkgInfoHash.Item ("base_view_id") = CStr(enumBASE_VIEW_PRODUCTS) Then%>
1765
                                 <a href="<%=deploy_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1766
                              <%Else%>
1767
                                 <a href="<%=dpkg_archiveURL & pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1768
                              <%End If%>
119 ghuddy 1769
 
121 hknight 1770
                           <%Else%>
1771
                              <a href="<%=TEMP_FOLDER &"/"& pkgInfoHash.Item ("pkg_name") &"/"& pkgInfoHash.Item ("pkg_version") &"/"& rsQry("results_attachment_name")%>" target="_blank"><img src="images/i_results.gif" width="15" height="16" border="0" alt="View test results"></a>
1772
                           <%End If%>
1773
                        <%End If%>
1774
                     </td>
1775
                  <%End If%>
119 ghuddy 1776
 
121 hknight 1777
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="sublbox_txt" valign="top" align="center"><%=FormatAccepted( rsQry("test_accepted"), rsQry("test_id") )%></td>
1778
                  <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%If NOT IsNull(rsQry("reviewee")) Then%><%=EuroDate ( rsQry("acceptance_date") )%><br>by <a href="mailto:<%=rsQry("reviewee_email")%>" class="txt_linked"><%=rsQry("reviewee")%></a><%End If%></td>
1779
                  <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=NewLine_To_BR( To_HTML( rsQry("review_comments") ))%></td>
119 ghuddy 1780
 
157 ghuddy 1781
                  <%
1782
                  If (  (    pageIsEditable _
1783
                         AND (scriptName = "fixed_issues.asp") _
1784
                         AND (IsNull(rsQry("test_accepted")) OR (rsQry("test_accepted") = enumUNIT_TEST_NOTACCEPTED))) _
1785
                      OR _
1786
                        (    objAccessControl.UserLogedIn _
1787
                         AND (scriptName = "fixed_issues.asp") _
1788
                         AND (pkgInfoHash.Item("dlocked") = "Y") _
1789
                         AND (IsNull(rsQry("test_accepted")) OR (rsQry("test_accepted") = enumUNIT_TEST_NOTACCEPTED)) _
1790
                         AND (rsQry("test_type_id") <> CStr(enumTEST_TYPE_AUTOBUILD_UTF))) ) Then
1791
                  %>
1792
                     <td background="images/bg_form_lightgray.gif" valign="top"><%If NOT IsNull(rsQry("test_id")) Then%><a href="_remove_unit_test.asp?test_id=<%=rsQry("test_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this unit test');"><img src="images/i_delete.gif" alt="Remove this test." width="13" height="12" hspace="3" border="0"></a><%End If%></td>
1793
                  <%Else%>
121 hknight 1794
                     <td background="images/bg_form_lightgray.gif" valign="top"></td>
1795
                  <%End If%>
1796
               </tr>
157 ghuddy 1797
               <%
1798
               rsQry.MoveNext
1799
            WEnd
1800
            %>
121 hknight 1801
            <tr>
1802
               <td class="form_field"></td>
1803
               <td class="form_field"></td>
1804
               <td class="form_field"></td>
1805
               <td class="form_field"></td>
1806
               <td class="form_field"></td>
157 ghuddy 1807
               <td class="form_field" align="center">
1808
                  <%If (testCheckTestsFound) AND (testCheckMSG_ID = 0) AND ( scriptName = "fixed_issues.asp" ) AND pageIsEditable Then%>
1809
                     <input type="submit" name="Apply" value="Apply" class="form_btn">
1810
                  <%End If%>
1811
               </td>
121 hknight 1812
               <td class="form_field"></td>
1813
               <td class="form_field"></td>
1814
               <td class="form_field"></td>
1815
            </tr>
1816
            <input name="pv_id" type="hidden" value="<%=parPv_id%>">
1817
            <input name="rtag_id" type="hidden" value="<%=parRtag_id%>">
1818
         </form>
1819
      </table>
1820
   </fieldset>
1821
    <br><br>
119 ghuddy 1822
<!-- CODE REVIEW ------------------------------------------------------------------------------------------------------------------->
121 hknight 1823
   <fieldset class="fset"><legend class="body_colb"><img src='images/s_code_review.gif' width='21' height='23' hspace='4' border='0' align='absmiddle'>Code Review</legend>
1824
      <a name="CODE_REVIEW" id="CODE_REVIEW"></a>
1825
      <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_CodeReview ( parPv_id ), cint(0))%>
1826
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1827
         <tr>
157 ghuddy 1828
            <td align="right" valign="bottom">
1829
               <%If ( scriptName = "fixed_issues.asp" ) Then%>
1830
                  <%If objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
1831
                     <a href='javascript:;' onClick="MM_openBrWindow('_wform_update_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewEdit','scrollbars=yes,resizable=yes,width=950,height='+ ( screen.height - 100 ) +',top=0,left=0')" class="txt_linked">Edit<img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
119 ghuddy 1832
                  <%End If%>
157 ghuddy 1833
                  <%If rsQry.RecordCount > 0 Then%>
1834
                     <%If NOT IsNull(rsQry("date_of_review")) Then%>
1835
                        &nbsp;
1836
                        <a href='javascript:;' onClick="MM_openBrWindow('_wform_code_review.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewView','scrollbars=yes,resizable=yes,width=950,height='+ ( screen.height - 100 ) +',top=0,left=0')" class="txt_linked">View<img src="images/i_open.gif" width="12" height="12" hspace="2" border="0" align="absmiddle"></a>
1837
                     <%End If%>
1838
                  <%End If%>
121 hknight 1839
               <%End If%>
1840
            </td>
1841
         </tr>
1842
      </table>
1843
      <%If ((NOT rsQry.BOF) AND (NOT rsQry.EOF)) Then%>
1844
         <%If NOT IsNull(rsQry("date_of_review")) Then%>
119 ghuddy 1845
            <table width="100%"  border="0" cellspacing="1" cellpadding="4">
121 hknight 1846
               <tr>
1847
                  <td width="1%" align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Date of Review</td>
1848
                  <td width="1%" nowrap background="images/bg_form_lightgray.gif" class="form_item"><%=EuroDate ( rsQry("date_of_review") )%>&nbsp;&nbsp;&nbsp;</td>
1849
                  <td width="1%" align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">&nbsp;&nbsp;&nbsp;Time Spent:</td>
1850
                  <td width="100%" background="images/bg_form_lightgray.gif" class="form_item"><%=rsQry("time_spent")%> hrs </td>
1851
               </tr>
1852
               <tr>
1853
                  <td align="right" valign="top" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Reason for Review</td>
1854
                  <td colspan="3" background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR( To_HTML( rsQry("review_reason") ))%></td>
1855
               </tr>
1856
               <tr>
1857
                  <td align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Review Results </td>
1858
                  <td colspan="3" background="images/bg_form_lightgray.gif" class="form_item">
1859
                  <%=DecodeOverallResult( rsQry("review_results") )%>
1860
                  </td>
1861
               </tr>
1862
               <tr>
1863
                  <td align="right" nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Issues Raised </td>
1864
                  <td colspan="3" background="images/bg_form_lightgray.gif" class="form_item"><%=NewLine_To_BR( To_HTML( rsQry("issues_raised") ))%></td>
1865
               </tr>
119 ghuddy 1866
            </table>
121 hknight 1867
         <%Else%>
119 ghuddy 1868
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
121 hknight 1869
               <tr>
1870
                  <td background="images/bg_form_lightgray.gif"><span class='sublbox_txt'>No details found.</span></td>
1871
               </tr>
119 ghuddy 1872
            </table>
121 hknight 1873
         <%End If%>
1874
      <%Else%>
1875
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
1876
            <tr>
1877
               <td background="images/bg_form_lightgray.gif"><span class='sublbox_txt'>No details found.</span></td>
1878
            </tr>
1879
         </table>
1880
      <%End If%>
119 ghuddy 1881
 
121 hknight 1882
      <!-- Code Review URL section for this version -->
1883
      <%Call GetCodeReviewURLs( parPv_id, rsCodeReviewURL )%>
1884
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
1885
         <tr>
1886
            <td align="left" valign="top" class="body_colb">Code Review URL for this version</td>
1887
            <td align="right" valign="top" <%If NOT IsNull(rsCodeReviewURL("url")) Then Response.Write("colspan='5'")%>>
157 ghuddy 1888
               <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
121 hknight 1889
                  <a href="javascript:;" onclick="MM_openBrWindow('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','CodeReviewURLEdit','scrollbars=no,resizable=yes,width=930,height=185,top=0,left=0')" class="txt_linked">New<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle"></a>
1890
               <%End If%>
1891
            </td>
1892
         </tr>
1893
         <%If IsNull(rsCodeReviewURL("full_url")) Then %>
1894
            <tr>
1895
               <td background="images/bg_form_lightgray.gif" width="100%" class="form_item" colspan="2">
1896
                  <span class='sublbox_txt'>No details found.</span>
1897
               </td>
1898
            </tr>
1899
         <%Else%>
1900
            <tr>
1901
               <td background="images/bg_form_lightbluedark.gif" class="form_field">URL</td>
1902
               <td background="images/bg_form_lightbluedark.gif" width="25%" class="form_field">Reason for Review</td>
1903
               <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Date of Review</td>
1904
               <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Last Modified</td>
1905
               <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
1906
               <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
1907
            </tr>
1908
            <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
1909
               While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
1910
                  <tr>
1911
                     <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
1912
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
1913
                     <%Else%>
1914
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
1915
                     <%End If%>
1916
                     <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("reason")%></td>
1917
                     <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("date_of_review")%></td>
1918
                     <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("last_modified")%></td>
157 ghuddy 1919
                     <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (pkgInfoHash.Item("dlocked") = "Y")) Then%>
121 hknight 1920
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onclick="MM_openBrWindow('_wform_edit_code_review_url.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','CodeReviewURLEdit','scrollbars=no,resizable=yes,width=930,height=185')" class="txt_linked"><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle" alt="Edit this code review URL"></a></td>
1921
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onclick="return confirmDelete('this code review URL from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this code review URL"></a></td>
1922
                     <%Else%>
1923
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1924
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1925
                     <%End If%>
1926
                  </tr>
1927
                  <%rsCodeReviewURL.MoveNext
1928
               WEnd
1929
            Else%>
1930
               <tr>
119 ghuddy 1931
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1932
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1933
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1934
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1935
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1936
                  <td background="images/bg_form_lightgray.gif" class="form_item"></td>
121 hknight 1937
               </tr>
1938
            <%End If
1939
         End If%>
1940
      </table>
119 ghuddy 1941
 
121 hknight 1942
      <!-- Code Review URL section for last non-ripple build -->
1943
      <%If pkgInfoHash.Item ("comments") = "Rippled Build." Then
1944
         Call LastPvId(pkgInfoHash.Item ("pv_id"))
1945
         While rsQry("comments") = "Rippled Build."
119 ghuddy 1946
            Call LastPvId(rsQry("last_pv_id"))
121 hknight 1947
         Wend
1948
         Dim sOldPkgVersion
157 ghuddy 1949
         Dim oldDlocked
1950
         Call Get_Pkg_Short_Info ( rsQry("pv_id"), NULL, NULL, sOldPkgVersion, NULL, NULL, oldDlocked )
121 hknight 1951
         Call GetCodeReviewURLs( rsQry("pv_id"), rsCodeReviewURL )
1952
         %>
1953
         <table width="100%" border="0" cellspacing="1" cellpadding="2">
1954
            <tr>
1955
               <td align="left" valign="top" class="body_colb" <%If NOT IsNull(rsCodeReviewURL("url")) Then Response.Write("colspan='6'")%>>Code Review URL for last non-ripple build (<a class="lbl_link" href="fixed_issues.asp?pv_id=<%=rsQry("pv_id")%>"><%=sOldPkgVersion%></a>)</td>
1956
            </tr>
1957
            <%If IsNull(rsCodeReviewURL("url")) Then%>
1958
               <tr>
119 ghuddy 1959
                  <td background="images/bg_form_lightgray.gif" width="100%" class="form_item" colspan="2">
121 hknight 1960
                     <span class='sublbox_txt'>No details found.</span>
119 ghuddy 1961
                  </td>
121 hknight 1962
               </tr>
1963
            <%Else%>
1964
               <tr>
119 ghuddy 1965
                  <td background="images/bg_form_lightbluedark.gif" class="form_field">URL</td>
1966
                  <td background="images/bg_form_lightbluedark.gif" width="30%" class="form_field">Reason for Review</td>
1967
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Date of Review</td>
1968
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Last Modified</td>
1969
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
1970
                  <td background="images/bg_form_lightbluedark.gif" nowrap width="18px" class="form_field"></td>
121 hknight 1971
               </tr>
1972
               <%If ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF)) Then
119 ghuddy 1973
                  While ((NOT rsCodeReviewURL.BOF) AND (NOT rsCodeReviewURL.EOF))%>
121 hknight 1974
                     <tr>
1975
                        <%If (Left(rsCodeReviewURL("url"),4) = "http") Then%>
1976
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("url")%></a></td>
1977
                        <%Else%>
1978
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="<%=rsCodeReviewURL("full_url")%>" target="_blank" class="txt_linked"><%=rsCodeReviewURL("full_url")%></a></td>
1979
                        <%End If%>
1980
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("reason")%></td>
1981
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("date_of_review")%></td>
1982
                        <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsCodeReviewURL("last_modified")%></td>
157 ghuddy 1983
                        <%If (scriptName = "fixed_issues.asp") AND objAccessControl.UserLogedIn AND (pageIsEditable OR (oldDlocked = "Y")) Then%>
121 hknight 1984
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="javascript:;" onclick="MM_openBrWindow('_wform_edit_code_review_url.asp?pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>&cr_id=<%=rsCodeReviewURL("cr_id")%>','CodeReviewURLEdit','scrollbars=no,resizable=yes,width=930,height=185')" class="txt_linked"><img src="images/i_edit.gif" width="12" height="12" hspace="2" border="0" align="absmiddle" alt="Edit this code review URL"></a></td>
1985
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="_remove_code_review_url.asp?cr_id=<%=rsCodeReviewURL("cr_id")%>&pv_id=<%=rsCodeReviewURL("pv_id")%>&rtag_id=<%=parRtag_id%>" onclick="return confirmDelete('this code review URL from Release Manager');"><img src="images/i_delete.gif" width="13" height="12" hspace="2" border="0" alt="Delete this code review URL"></a></td>
1986
                        <%Else%>
1987
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1988
                           <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
1989
                        <%End If%>
1990
                     </tr>
1991
                     <%rsCodeReviewURL.MoveNext
119 ghuddy 1992
                  WEnd
121 hknight 1993
               Else%>
119 ghuddy 1994
                  <tr>
121 hknight 1995
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1996
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1997
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1998
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
1999
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
2000
                     <td background="images/bg_form_lightgray.gif" class="form_item"></td>
119 ghuddy 2001
                  </tr>
121 hknight 2002
               <%End If
2003
            End If%>
2004
         </table>
2005
      <%End If%>
119 ghuddy 2006
 
121 hknight 2007
   </fieldset>
2008
   <br>
2009
   <br>
119 ghuddy 2010
<!-- ADDITIONAL NOTES ------------------------------------------------------------------------------------------------------------------->
121 hknight 2011
   <fieldset class="fset"><legend class="body_colb"><img src="images/i_additional_notes.gif" width="26" height="20" hspace="4" border="0" align="absmiddle" alt="">Additional Notes</legend>
2012
      <a name="ADDITIONAL_NOTES"></a>
2013
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
2014
         <tr>
2015
            <td align="right" valign="bottom">
2016
               <%If pageIsEditable Then%>
2017
                  <a href='javascript:;' onClick="MM_openBrWindow('_wform_additional_note.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','AdditionalNotes','resizable=yes,width=600,height=400')" class="txt_linked">New Note<img src="images/i_new.gif" width="13" height="13" hspace="2" border="0" align="absmiddle" alt="Add new note."></a>
2018
               <%End If%>
2019
            </td>
2020
         </tr>
2021
      </table>
2022
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
2023
         <%Set rsQry = OraDatabase.DbCreateDynaset( SQL_Additional_Notes ( parPv_id ), cint(0))%>
2024
         <%If rsQry.RecordCount < 1 Then%>
2025
            <tr>
2026
               <td class="form_field" width="100%" background="images/bg_form_lightgray.gif">&nbsp;</td>
2027
            </tr>
2028
         <%End If%>
2029
         <%While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))%>
2030
            <tr>
2031
               <td width="100%" nowrap background="images/bg_form_lightbluedark.gif" class="body_col">
2032
                  <%If pageIsEditable Then%>
2033
                     <a href="javascript:;" onClick="MM_openBrWindow('_wform_update_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','UpdateAN','resizable=yes,width=600,height=400')" class="body_col"><img src="images/i_edit.gif" alt="Edit" width="12" height="12" hspace="3" vspace="3" border="0" align="absmiddle"><%=To_HTML (rsQry("note_title"))%></a>
2034
                  <%Else%>
2035
                     <%=To_HTML (rsQry("note_title"))%>
2036
                  <%End If%>
2037
               </td>
2038
               <td width="1" background="images/bg_form_lightbluedark.gif">
2039
                  <%If pageIsEditable Then%>
2040
                     <a href="_remove_additional_note.asp?note_id=<%=rsQry("note_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>" onClick="return confirmDelete('this note');"><img src="images/i_delete.gif" alt="Remove this note." width="13" height="12" hspace="3" border="0"></a>
2041
                  <%End If%>
2042
               </td>
2043
            </tr>
2044
            <tr>
2045
               <td colspan="2" background="images/bg_form_lightgray.gif" class="sublbox_txt">
2046
                  <%=NewLine_To_BR( To_HTML ( rsQry("note_body") ) )%><br><br>
2047
                  <span class="rep_small">Last Modified: <%=rsQry("lastmod")%></span>
2048
               </td>
2049
            </tr>
2050
            <tr>
2051
               <td colspan="2"><img src='images/spacer.gif' width='2' height='2'></td>
2052
            </tr>
2053
            <%rsQry.MoveNext
2054
         WEnd%>
2055
      </table>
2056
   </fieldset>
2057
   <br><br>