Subversion Repositories DevTools

Rev

Rev 131 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 131 Rev 151
Line 324... Line 324...
324
   End If
324
   End If
325
 
325
 
326
   objEH.CatchORA ( OraSession )
326
   objEH.CatchORA ( OraSession )
327
 
327
 
328
End Sub
328
End Sub
-
 
329
'------------------------------------------------------------------------------------------------------------------------------------
-
 
330
Sub AdvisoryRipplePackageVersion (applyAdvisoryRipple)
-
 
331
 
-
 
332
   objEH.TryORA ( OraSession )
-
 
333
   On Error Resume Next
-
 
334
 
-
 
335
   ' Delete the adv. rip. row for the requested RTAG_ID/PV_ID
-
 
336
   OraDatabase.ExecuteSQL _
-
 
337
   "DELETE FROM ADVISORY_RIPPLE WHERE RTAG_ID = " & parRtag_id & " AND PV_ID = " & parPv_id
-
 
338
 
-
 
339
   ' And if the user has requested advisory ripple to be turned on then Add it
-
 
340
   If applyAdvisoryRipple = True AND Err.Number = 0 Then
-
 
341
      OraDatabase.ExecuteSQL _
-
 
342
      "INSERT INTO ADVISORY_RIPPLE VALUES(" & parRtag_id & "," & parPv_id & ")"
-
 
343
   End If
-
 
344
 
-
 
345
   If Err.Number = 0 Then
-
 
346
 
-
 
347
      ' Touch the release so that the state icons are re-evaluated
-
 
348
      OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
-
 
349
 
-
 
350
      OraDatabase.ExecuteSQL "BEGIN Touch_Release( :RTAG_ID ); END;"
-
 
351
 
-
 
352
      OraDatabase.Parameters.Remove "RTAG_ID"
-
 
353
   End If
-
 
354
 
-
 
355
   objEH.CatchORA ( OraSession )
-
 
356
 
-
 
357
End Sub
329
 
358
 
330
'----------------------------------------------------------------------------------------------------------------------
359
'----------------------------------------------------------------------------------------------------------------------
331
%>
360
%>
332
<%
361
<%
333
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
362
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
Line 341... Line 370...
341
If CBool(QStrPar("action"))  AND  objAccessControl.UserLogedIn Then
370
If CBool(QStrPar("action"))  AND  objAccessControl.UserLogedIn Then
342
 
371
 
343
   Call UpdateRippleType()
372
   Call UpdateRippleType()
344
 
373
 
345
 
374
 
-
 
375
   ' Changes to DO NOT RIPPLE Status -----------------------------------------
346
   If NOT CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "1" Then
376
   If NOT CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "1" Then
347
      Call RipplePackage(True)
377
      Call RipplePackage(True)
348
   End If
378
   End If
349
 
379
 
350
   If CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "0" Then
380
   If CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "0" Then
351
      Call RipplePackage(False)
381
      Call RipplePackage(False)
352
   End If
382
   End If
353
 
383
 
-
 
384
   ' Changes to PEGGED Status ------------------------------------------------
354
   If NOT CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "1" Then
385
   If NOT CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "1" Then
355
      Call PegPackageVersion(True)
386
      Call PegPackageVersion(True)
356
   End If
387
   End If
357
 
388
 
358
   If CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "0" Then
389
   If CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "0" Then
359
      Call PegPackageVersion(False)
390
      Call PegPackageVersion(False)
360
   End If
391
   End If
361
 
392
 
-
 
393
   ' Changes to ADVISORY RIPPLE Status ---------------------------------------
-
 
394
   If NOT CBool(QStrPar("advRipFlag")) AND Request("FRadvrip") = "1" Then
-
 
395
      Call AdvisoryRipplePackageVersion(True)
-
 
396
   End If
-
 
397
 
-
 
398
   If CBool(QStrPar("advRipFlag")) AND Request("FRadvrip") = "0" Then
-
 
399
      Call AdvisoryRipplePackageVersion(False)
-
 
400
   End If
-
 
401
 
362
 
402
 
363
   Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
403
   Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
364
   Call CloseWindow
404
   Call CloseWindow
365
 
405
 
366
End If
406
End If
Line 477... Line 517...
477
               </tr>
517
               </tr>
478
               <tr>
518
               <tr>
479
                  <td>&nbsp;</td>
519
                  <td>&nbsp;</td>
480
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Pegged Version?<%=Quick_Help ( "pegged_version" )%></td>
520
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Pegged Version?<%=Quick_Help ( "pegged_version" )%></td>
481
                  <%
521
                  <%
482
                  Dim FRpeggedYES, FRpeggedNO, FRdisabled
522
                  Dim FRpeggedYES, FRpeggedNO, FRpegDisabled
483
 
523
 
484
                  FRpeggedYES = ""
524
                  FRpeggedYES = ""
485
                  FRpeggedNO = ""
525
                  FRpeggedNO = ""
486
                  FRdisabled = "disabled='disabled'"
526
                  FRpegDisabled = "disabled='disabled'"
487
 
527
 
488
                  ' Allow pegging/un-pegging to occur for locked/released versions only, and by users who have the appropriate permission
528
                  ' Allow pegging/un-pegging to occur for locked/released versions only, and by users who have the appropriate permission
489
                  If (objAccessControl.IsVisible( "PegPackageVersions" )) AND isDLocked = "Y" Then
529
                  If (objAccessControl.IsVisible( "PegPackageVersions" )) AND isDLocked = "Y" Then
490
                     FRdisabled = ""
530
                     FRpegDisabled = ""
491
                  End If
531
                  End If
492
 
532
 
493
                  Dim rsQryPegged, peggedFlag
533
                  Dim rsQryPegged, peggedFlag
494
                  Set rsQryPegged = OraDatabase.DbCreateDynaset( "SELECT * FROM PEGGED_VERSIONS WHERE RTAG_ID ="& parRtag_id &"AND PV_ID ="& parPv_id, cint(0))
534
                  Set rsQryPegged = OraDatabase.DbCreateDynaset( "SELECT COUNT(*) as record_count FROM PEGGED_VERSIONS WHERE RTAG_ID ="& parRtag_id &"AND PV_ID ="& parPv_id, cint(0))
495
 
535
 
496
                  If rsQryPegged.RecordCount = 0  Then
536
                  If rsQryPegged("record_count") = 0  Then
497
                     FRpeggedNO = "checked"
537
                     FRpeggedNO = "checked"
498
                     peggedFlag = False
538
                     peggedFlag = False
499
                  Else
539
                  Else
500
                     FRpeggedYES = "checked"
540
                     FRpeggedYES = "checked"
501
                     peggedFlag = True
541
                     peggedFlag = True
Line 504... Line 544...
504
                  rsQryPegged.Close()
544
                  rsQryPegged.Close()
505
                  Set rsQryPegged = nothing
545
                  Set rsQryPegged = nothing
506
 
546
 
507
                  %>
547
                  %>
508
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
548
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
509
                     Yes<input name="FRpegged" type="radio" value="1" <%=FRdisabled%> <%=FRpeggedYES%> >&nbsp;&nbsp;
549
                     Yes<input name="FRpegged" type="radio" value="1" <%=FRpegDisabled%> <%=FRpeggedYES%> >&nbsp;&nbsp;
510
                     No<input name="FRpegged" type="radio" value="0"  <%=FRdisabled%> <%=FRpeggedNO%>  >&nbsp;&nbsp;
550
                     No<input name="FRpegged" type="radio" value="0"  <%=FRpegDisabled%> <%=FRpeggedNO%>  >&nbsp;&nbsp;
511
                  </td>
551
                  </td>
512
                  <td background="images/bg_form_lightbluedark.gif">
552
                  <td background="images/bg_form_lightbluedark.gif">
513
                     <span class='err_alert'><b>WARNING!</span>
553
                     <span class='err_alert'><b>WARNING!</span>
514
                     <font size='1'>
554
                     <font size='1'>
515
                        <br>
555
                        <br>
Line 517... Line 557...
517
                     </font></b>
557
                     </font></b>
518
                  </td>
558
                  </td>
519
               </tr>
559
               </tr>
520
               <tr>
560
               <tr>
521
                  <td>&nbsp;</td>
561
                  <td>&nbsp;</td>
-
 
562
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Advisory Ripple Version?<%=Quick_Help ( "advisory_ripple_version" )%></td>
-
 
563
                  <%
-
 
564
                  Dim FRadvripYES, FRadvripNO, FRadvripDisabled
-
 
565
 
-
 
566
                  FRadvripYES = ""
-
 
567
                  FRadvripNO = ""
-
 
568
                  FRadvripDisabled = "disabled='disabled'"
-
 
569
 
-
 
570
                  ' Allow setting of advisory ripple to occur only by users who have the appropriate permission
-
 
571
                  If (objAccessControl.IsVisible( "AdvRipPackageVersions" )) AND isDLocked = "Y" Then
-
 
572
                     FRadvripDisabled = ""
-
 
573
                  End If
-
 
574
 
-
 
575
                  Dim rsQryAdvRip, advRipFlag
-
 
576
                  Set rsQryAdvRip = OraDatabase.DbCreateDynaset( "SELECT COUNT(*) as record_count FROM ADVISORY_RIPPLE WHERE RTAG_ID ="& parRtag_id &"AND PV_ID ="& parPv_id, cint(0))
-
 
577
 
-
 
578
                  If rsQryAdvRip("record_count") = 0  Then
-
 
579
                     FRadvripNO = "checked"
-
 
580
                     advRipFlag = False
-
 
581
                  Else
-
 
582
                     FRadvripYES = "checked"
-
 
583
                     advRipFlag = True
-
 
584
                  End If
-
 
585
 
-
 
586
                  rsQryAdvRip.Close()
-
 
587
                  Set rsQryAdvRip = nothing
-
 
588
 
-
 
589
                  %>
-
 
590
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
-
 
591
                     Yes<input name="FRadvrip" type="radio" value="1" <%=FRadvripDisabled%> <%=FRadvripYES%> >&nbsp;&nbsp;
-
 
592
                     No<input name="FRadvrip" type="radio" value="0"  <%=FRadvripDisabled%> <%=FRadvripNO%>  >&nbsp;&nbsp;
-
 
593
                  </td>
-
 
594
                  <td background="images/bg_form_lightbluedark.gif">
-
 
595
                     <span class='err_alert'><b>WARNING!</span>
-
 
596
                     <font size='1'>
-
 
597
                        <br>
-
 
598
                        When set to Yes, a new version of this package will not cause a ripple of higher level packages in the current release.
-
 
599
                     </font></b>
-
 
600
                  </td>
-
 
601
 
-
 
602
               </tr>
-
 
603
               <tr>
-
 
604
                  <td>&nbsp;</td>
522
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Build Inclusion?<%=Quick_Help ( "ripple_build" )%></td>
605
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Build Inclusion?<%=Quick_Help ( "ripple_build" )%></td>
523
                  <%
606
                  <%
524
                  FRripplebuildYES = ""
607
                  FRripplebuildYES = ""
525
                  FRripplebuildNO = ""
608
                  FRripplebuildNO = ""
526
                  ' disabled="disabled" indicates the pv has been excluded indirectly
609
                  ' disabled="disabled" indicates the pv has been excluded indirectly
Line 618... Line 701...
618
   </table>
701
   </table>
619
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
702
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
620
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
703
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
621
<input type="hidden" name="rippleFlag" value="<%=rippleFlag%>">
704
<input type="hidden" name="rippleFlag" value="<%=rippleFlag%>">
622
<input type="hidden" name="peggedFlag" value="<%=peggedFlag%>">
705
<input type="hidden" name="peggedFlag" value="<%=peggedFlag%>">
-
 
706
<input type="hidden" name="advRipFlag" value="<%=advRipFlag%>">
623
<input type="hidden" name="action" value="true">
707
<input type="hidden" name="action" value="true">
624
</form>
708
</form>
625
</body>
709
</body>
626
</html>
710
</html>
627
<%
711
<%