Subversion Repositories DevTools

Rev

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

Rev 129 Rev 131
Line 283... Line 283...
283
   Set rsTemp = nothing
283
   Set rsTemp = nothing
284
 
284
 
285
   Response.Write "</select>"
285
   Response.Write "</select>"
286
 
286
 
287
End Sub
287
End Sub
-
 
288
'------------------------------------------------------------------------------------------------------------------------------------
-
 
289
Sub PegPackageVersion (applyPegging)
-
 
290
 
-
 
291
   objEH.TryORA ( OraSession )
-
 
292
   On Error Resume Next
-
 
293
 
-
 
294
   ' try and clean up the pegged_versions table of any stranded rows (should never happen but this will fix it anyway)
-
 
295
   ' This means, remove any and all pegging rows whose values are not in an existing release somewhere
-
 
296
   OraDatabase.ExecuteSQL _
-
 
297
   " delete from pegged_versions"&_
-
 
298
   " where (rtag_id, pv_id) IN ("&_
-
 
299
   " select rtag_id, pv_id from pegged_versions"&_
-
 
300
   " minus"&_
-
 
301
   " select rtag_id, pv_id from release_content)"
-
 
302
 
-
 
303
   If Err.Number = 0 Then
-
 
304
 
-
 
305
      ' Delete the pegging row for the requested RTAG_ID/PV_ID
-
 
306
      OraDatabase.ExecuteSQL _
-
 
307
      "DELETE FROM PEGGED_VERSIONS WHERE RTAG_ID = " & parRtag_id & " AND PV_ID = " & parPv_id
-
 
308
 
-
 
309
      ' And if the user has requested PEGGING to be turned on then Add the PEGGING
-
 
310
      If applyPegging = True AND Err.Number = 0 Then
-
 
311
         OraDatabase.ExecuteSQL _
-
 
312
         "INSERT INTO PEGGED_VERSIONS VALUES(" & parRtag_id & "," & parPv_id & ")"
-
 
313
      End If
-
 
314
 
-
 
315
      If Err.Number = 0 Then
-
 
316
 
-
 
317
         ' Touch the release so that the state icons are re-evaluated
-
 
318
         OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
-
 
319
 
-
 
320
         OraDatabase.ExecuteSQL "BEGIN Touch_Release( :RTAG_ID ); END;"
-
 
321
 
-
 
322
         OraDatabase.Parameters.Remove "RTAG_ID"
-
 
323
      End If
-
 
324
   End If
-
 
325
 
-
 
326
   objEH.CatchORA ( OraSession )
-
 
327
 
-
 
328
End Sub
-
 
329
 
288
'----------------------------------------------------------------------------------------------------------------------
330
'----------------------------------------------------------------------------------------------------------------------
289
%>
331
%>
290
<%
332
<%
291
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
333
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
292
 
334
 
Line 307... Line 349...
307
 
349
 
308
   If CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "0" Then
350
   If CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "0" Then
309
      Call RipplePackage(False)
351
      Call RipplePackage(False)
310
   End If
352
   End If
311
 
353
 
-
 
354
   If NOT CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "1" Then
-
 
355
      Call PegPackageVersion(True)
-
 
356
   End If
-
 
357
 
-
 
358
   If CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "0" Then
-
 
359
      Call PegPackageVersion(False)
-
 
360
   End If
-
 
361
 
312
 
362
 
313
   Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
363
   Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
314
   Call CloseWindow
364
   Call CloseWindow
315
 
365
 
316
End If
366
End If
Line 425... Line 475...
425
                  <td nowrap width="1%">&nbsp; </td>
475
                  <td nowrap width="1%">&nbsp; </td>
426
                  <td nowrap width="100%">&nbsp;</td>
476
                  <td nowrap width="100%">&nbsp;</td>
427
               </tr>
477
               </tr>
428
               <tr>
478
               <tr>
429
                  <td>&nbsp;</td>
479
                  <td>&nbsp;</td>
-
 
480
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Pegged Version?<%=Quick_Help ( "pegged_version" )%></td>
-
 
481
                  <%
-
 
482
                  Dim FRpeggedYES, FRpeggedNO, FRdisabled
-
 
483
 
-
 
484
                  FRpeggedYES = ""
-
 
485
                  FRpeggedNO = ""
-
 
486
                  FRdisabled = "disabled='disabled'"
-
 
487
 
-
 
488
                  ' 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
-
 
490
                     FRdisabled = ""
-
 
491
                  End If
-
 
492
 
-
 
493
                  Dim rsQryPegged, peggedFlag
-
 
494
                  Set rsQryPegged = OraDatabase.DbCreateDynaset( "SELECT * FROM PEGGED_VERSIONS WHERE RTAG_ID ="& parRtag_id &"AND PV_ID ="& parPv_id, cint(0))
-
 
495
 
-
 
496
                  If rsQryPegged.RecordCount = 0  Then
-
 
497
                     FRpeggedNO = "checked"
-
 
498
                     peggedFlag = False
-
 
499
                  Else
-
 
500
                     FRpeggedYES = "checked"
-
 
501
                     peggedFlag = True
-
 
502
                  End If
-
 
503
 
-
 
504
                  rsQryPegged.Close()
-
 
505
                  Set rsQryPegged = nothing
-
 
506
 
-
 
507
                  %>
-
 
508
                  <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;
-
 
510
                     No<input name="FRpegged" type="radio" value="0"  <%=FRdisabled%> <%=FRpeggedNO%>  >&nbsp;&nbsp;
-
 
511
                  </td>
-
 
512
                  <td background="images/bg_form_lightbluedark.gif">
-
 
513
                     <span class='err_alert'><b>WARNING!</span>
-
 
514
                     <font size='1'>
-
 
515
                        <br>
-
 
516
                        When set to Yes, this package version is never rippled in the current release regardless of the other ripple settings below.
-
 
517
                     </font></b>
-
 
518
                  </td>
-
 
519
               </tr>
-
 
520
               <tr>
-
 
521
                  <td>&nbsp;</td>
430
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Build Inclusion?<%=Quick_Help ( "ripple_build" )%></td>
522
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Build Inclusion?<%=Quick_Help ( "ripple_build" )%></td>
431
                  <%
523
                  <%
432
                  FRripplebuildYES = ""
524
                  FRripplebuildYES = ""
433
                  FRripplebuildNO = ""
525
                  FRripplebuildNO = ""
434
                  ' disabled="disabled" indicates the pv has been excluded indirectly
526
                  ' disabled="disabled" indicates the pv has been excluded indirectly
Line 525... Line 617...
525
      </tr>
617
      </tr>
526
   </table>
618
   </table>
527
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
619
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
528
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
620
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
529
<input type="hidden" name="rippleFlag" value="<%=rippleFlag%>">
621
<input type="hidden" name="rippleFlag" value="<%=rippleFlag%>">
-
 
622
<input type="hidden" name="peggedFlag" value="<%=peggedFlag%>">
530
<input type="hidden" name="action" value="true">
623
<input type="hidden" name="action" value="true">
531
</form>
624
</form>
532
</body>
625
</body>
533
</html>
626
</html>
534
<%
627
<%