Subversion Repositories DevTools

Rev

Rev 6370 | Rev 6440 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0   ' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'               Ripple Properties
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
17
<!--#include file="common/_popup_window_common.asp"-->
18
<%
19
' Set rfile parameter. This is a return page after Login
20
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
21
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<!--#include file="_access_control_project.asp"-->
26
<%
27
'------------ Variable Definition -------------
28
Dim parPv_id
29
Dim query
30
Dim rsQry, rsTemp
31
Dim checked
32
Dim FRripplebuildYES, FRripplebuildNO
33
Dim objFormCollector
34
Dim Query_String
35
Dim isDLocked
36
Dim isNotSdk
37
'------------ Constants Declaration -----------
38
'------------ Variable Init -------------------
39
Set objFormCollector = CreateObject("Scripting.Dictionary")
40
parPv_id = QStrPar("pv_id")
41
'----------------------------------------------
42
%>
43
<%
44
'------------------------------------------------------------------------------------------------------------------------------------
45
Sub UpdateRippleType ( )
46
   Dim rsTemp, Query_String
47
   Dim storedRippleType
48
   Dim storedMajorLimit
49
   Dim storedMinorLimit
50
   Dim storedPatchLimit
51
   Dim storedBuildNumberLimit
52
   Dim selectedRippleType
53
   selectedRippleType = Request("ripple_type_combo")
54
   Dim enteredMajorLimit
55
   ' enteredMajorLimit is a string of digits
56
   ' it will be compared with a string representing a NUMBER in the db
57
   ' use CInt to at least strip leading zeros
58
   enteredMajorLimit = CInt(Request("Major"))
59
   Dim enteredMinorLimit
60
   enteredMinorLimit = CInt(Request("Minor"))
61
   Dim enteredPatchLimit
62
   enteredPatchLimit = CInt(Request("Patch"))
63
   Dim enteredBuildLimit
64
   enteredBuildLimit = CInt(Request("Build"))
65
   Query_String = _
66
    " SELECT ripple_field, major_limit, minor_limit, patch_limit, build_number_limit"&_
67
   " FROM package_versions"&_
68
   " WHERE pv_id = "& Request("pv_id")
69
   Set rsTemp = OraDatabase.CreateDynaset( Query_String, cint(0))
70
   storedRippleType = rsTemp("ripple_field").Value
71
   storedMajorLimit = rsTemp("major_limit").Value
72
 
73
   If ( IsNull(storedMajorLimit) ) Then
74
     storedMajorLimit = "0"
75
   End If
76
 
77
   storedMinorLimit = rsTemp("minor_limit").Value
78
 
79
   If ( IsNull(storedMinorLimit) ) Then
80
     storedMinorLimit = "0"
81
   End If
82
 
83
   storedPatchLimit = rsTemp("patch_limit").Value
84
 
85
   If ( IsNull(storedPatchLimit) ) Then
86
     storedPatchLimit = "0"
87
   End If
88
 
89
   storedBuildNumberLimit = rsTemp("build_number_limit").Value
90
 
91
   If ( IsNull(storedBuildNumberLimit) ) Then
92
     storedBuildNumberLimit = "0"
93
   End If
94
 
95
   'normalise for comparison purposes
96
   storedMajorLimit = CInt( storedMajorLimit )
97
   storedMinorLimit = CInt( storedMinorLimit )
98
   storedPatchlimit = CInt( storedPatchLimit )
99
   storedBuildNumberLimit = CInt( storedBuildNumberLimit )
100
 
101
   If (storedRippleType <> selectedRippleType) OR IsNull(storedRippleType) Then
102
 
103
      'update fields
104
      rsTemp.Edit()
105
      rsTemp.Fields("ripple_field").Value = selectedRippleType
106
      rsTemp.Update()
107
 
5648 dpurdie 108
      Dim selectedRippleName, selectedRippleState
109
      selectedRippleName = rippleFieldName(selectedRippleType, selectedRippleState)
5357 dpurdie 110
 
111
      '/* Log Action */
5648 dpurdie 112
      Call Log_Action ( Request("pv_id"), "ripple_type_update", selectedRippleName)
5357 dpurdie 113
   End If
114
 
115
   If ( storedMajorLimit <> enteredMajorLimit ) Then
116
 
117
      'update fields
118
      rsTemp.Edit()
119
      If ( enteredMajorLimit <> "0" ) Then
120
        rsTemp.Fields("major_limit").Value = enteredMajorLimit
121
      Else
122
        rsTemp.Fields("major_limit").Value = NULL
123
      End If
124
      rsTemp.Update()
125
 
126
      '/* Log Action */
127
      Call Log_Action ( Request("pv_id"), "major_limit_update", enteredMajorLimit )
128
   End If
129
 
130
   If ( storedMinorLimit <> enteredMinorLimit ) Then
131
 
132
      'update fields
133
      rsTemp.Edit()
134
      If ( enteredMinorLimit <> "0" ) Then
135
        rsTemp.Fields("minor_limit").Value = enteredMinorLimit
136
      Else
137
        rsTemp.Fields("minor_limit").Value = NULL
138
      End If
139
      rsTemp.Update()
140
 
141
      '/* Log Action */
142
      Call Log_Action ( Request("pv_id"), "minor_limit_update", enteredMinorLimit )
143
   End If
144
 
145
   If ( storedPatchLimit <> enteredPatchLimit ) Then
146
 
147
      'update fields
148
      rsTemp.Edit()
149
      If ( enteredPatchLimit <> "0" ) Then
150
        rsTemp.Fields("patch_limit").Value = enteredPatchLimit
151
      Else
152
        rsTemp.Fields("patch_limit").Value = NULL
153
      End If
154
      rsTemp.Update()
155
 
156
      '/* Log Action */
157
      Call Log_Action ( Request("pv_id"), "patch_limit_update", enteredPatchLimit )
158
   End If
159
 
160
   If ( storedBuildNumberLimit <> enteredBuildLimit ) Then
161
 
162
      'update fields
163
      rsTemp.Edit()
164
      If ( enteredBuildLimit <> "0" ) Then
165
        rsTemp.Fields("build_number_limit").Value = enteredBuildLimit
166
      Else
167
        rsTemp.Fields("build_number_limit").Value = NULL
168
      End If
169
      rsTemp.Update()
170
 
171
      '/* Log Action */
172
      Call Log_Action ( Request("pv_id"), "build_number_limit_update", enteredBuildLimit )
173
   End If
174
 
175
   rsTemp.Close()
176
   Set rsTemp = nothing
177
End Sub
178
'------------------------------------------------------------------------------------------------------------------------------------
179
Sub RipplePackage (flag)
180
 
181
   OraDatabase.Parameters.Add "PV_ID",   parPv_id,                  ORAPARM_INPUT, ORATYPE_NUMBER
182
   OraDatabase.Parameters.Add "RTAG_ID", parRtag_id,                ORAPARM_INPUT, ORATYPE_NUMBER
183
   OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId,   ORAPARM_INPUT, ORATYPE_NUMBER
184
 
185
   objEH.TryORA ( OraSession )
186
   On Error Resume Next
187
 
188
   If flag Then
189
      OraDatabase.ExecuteSQL _
190
      "BEGIN  Ripple_Package( :PV_ID, :RTAG_ID, :USER_ID );  END;"
191
   Else
192
      OraDatabase.ExecuteSQL _
193
      "BEGIN  UnRipple_Package( :PV_ID, :RTAG_ID, :USER_ID );  END;"
194
   End If
195
 
196
   objEH.CatchORA ( OraSession )
197
 
198
   OraDatabase.Parameters.Remove "PV_ID"
199
   OraDatabase.Parameters.Remove "RTAG_ID"
200
   OraDatabase.Parameters.Remove "USER_ID"
201
 
202
End Sub
203
'------------------------------------------------------------------------------------------------------------------------------------
204
Sub Get_Form_Details( nRtag_id, nPv_id, ByRef objDetails )
205
   Dim rsTemp, Query_String
206
   Query_String = _
207
   " SELECT * "&_
208
   "  FROM package_versions pv, packages pkg"&_
209
   " WHERE pv.pkg_id = pkg.pkg_id"&_
210
   "   AND pv_id = "& nPv_id
211
 
212
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
213
   If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
214
      objDetails.Item("pkg_name")              = rsTemp("pkg_name")
215
      objDetails.Item("pkg_version")           = rsTemp("pkg_version")
216
      objDetails.Item("pkg_label")             = rsTemp("pkg_label")
217
      objDetails.Item("src_path")              = rsTemp("src_path")
218
      objDetails.Item("pv_description")        = rsTemp("pv_description")
219
      objDetails.Item("pv_overview")           = rsTemp("pv_overview")
220
      objDetails.Item("v_ext")                 = rsTemp("v_ext")
221
      objDetails.Item("is_deployable")         = rsTemp("is_deployable")
222
      objDetails.Item("is_build_env_required") = rsTemp("is_build_env_required")
223
      objDetails.Item("build_type")            = rsTemp("build_type")
224
      objDetails.Item("bs_id")                 = rsTemp("bs_id")
225
      objDetails.Item("ripple_field")          = rsTemp("ripple_field")
226
      objDetails.Item("dlocked")               = rsTemp("dlocked")
227
 
228
      If isNull(rsTemp("major_limit")) Then
229
        objDetails.Item("major_limit")         = "0"
230
      Else
231
        objDetails.Item("major_limit")         = rsTemp("major_limit")
232
      End If
233
      If isNull(rsTemp("minor_limit")) Then
234
        objDetails.Item("minor_limit")         = "0"
235
      Else
236
        objDetails.Item("minor_limit")         = rsTemp("minor_limit")
237
      End If
238
      If isNull(rsTemp("patch_limit")) Then
239
        objDetails.Item("patch_limit")         = "0"
240
      Else
241
        objDetails.Item("patch_limit")         = rsTemp("patch_limit")
242
      End If
243
      If isNull(rsTemp("build_number_limit")) Then
244
        objDetails.Item("build_number_limit")  = "0"
245
      Else
246
        objDetails.Item("build_number_limit")  = rsTemp("build_number_limit")
247
      End If
248
   End If
249
 
250
   rsTemp.Close()
251
   Set rsTemp = Nothing
252
 
253
   '
254
   '    Release Based Properties
255
   objDetails.Item("is_sdkpkg") = FALSE
256
   If nRtag_id <> "" Then
257
       Query_String = _
258
       " SELECT * "&_
259
       "  FROM RELEASE_CONTENT rc"&_
260
       " WHERE rc.rtag_id = " & nRtag_id &_
261
       " AND pv_id = " & nPv_id
262
 
263
       Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
264
       If (NOT rsTemp.BOF ) AND (NOT rsTemp.EOF) Then
265
          objDetails.Item("is_sdkpkg")              = (NOT IsNull(rsTemp("sdktag_id")))
266
       End If
267
       rsTemp.Close()
268
       Set rsTemp = Nothing
269
   End If
270
 
271
End Sub
272
'----------------------------------------------------------------------------------------------------------------------
273
Sub RenderRippleTypeCombo( cRippleType, cDLocked )
274
 
275
   Dim isEditable
5671 dpurdie 276
   Dim ii
277
   Dim bFlag
5357 dpurdie 278
 
279
   ' DEVI-49267 - ripple type needs to be changeable by team leaders post release so the permission constraint on
280
   ' this is relaxed to non-critical info level (See definition of Is_Page_Editable() in common_subs.asp)
281
   isEditable = Is_Page_Editable ( isDLocked )
282
 
283
 
5671 dpurdie 284
   If IsNull(cRippleType) Then
285
    cRippleType = "b"
286
   End If
287
 
288
 
5357 dpurdie 289
   If (isEditable) Then
290
      Response.Write "<select name='ripple_type_combo' id='rtc' class='form_item' onChange='changeToRippleType(this.options[this.selectedIndex].value)'>"
291
   Else
292
      Response.Write "<select name='ripple_type_combo' id='rtc' class='form_item' disabled>"
293
   End If
294
 
5671 dpurdie 295
   For ii=0 to ubound(rippleFieldValues)
296
      Dim val, name, selected
5357 dpurdie 297
 
5671 dpurdie 298
      val = rippleFieldValues(ii)
299
      name = rippleFieldName(val, bFlag)
300
      selected = iif(cRippleType = val, "selected", "")
5357 dpurdie 301
 
5671 dpurdie 302
      Response.write "<option value='"& val &"' "& selected &">"& name &"</option>"
5357 dpurdie 303
 
5671 dpurdie 304
   Next
305
 
5357 dpurdie 306
   Response.Write "</select>"
307
 
308
End Sub
309
'------------------------------------------------------------------------------------------------------------------------------------
310
Sub PegPackageVersion (applyPegging)
311
 
312
   objEH.TryORA ( OraSession )
313
   On Error Resume Next
314
 
315
   ' try and clean up the pegged_versions table of any stranded rows (should never happen but this will fix it anyway)
316
   ' This means, remove any and all pegging rows whose values are not in an existing release somewhere
317
   OraDatabase.ExecuteSQL _
318
   " delete from pegged_versions"&_
319
   " where (rtag_id, pv_id) IN ("&_
320
   " select rtag_id, pv_id from pegged_versions"&_
321
   " minus"&_
322
   " select rtag_id, pv_id from release_content)"
323
 
324
   If Err.Number = 0 Then
325
 
326
      ' Delete the pegging row for the requested RTAG_ID/PV_ID
327
      OraDatabase.ExecuteSQL _
328
      "DELETE FROM PEGGED_VERSIONS WHERE RTAG_ID = " & parRtag_id & " AND PV_ID = " & parPv_id
329
 
330
      ' And if the user has requested PEGGING to be turned on then Add the PEGGING
331
      If applyPegging = True AND Err.Number = 0 Then
332
         OraDatabase.ExecuteSQL _
333
         "INSERT INTO PEGGED_VERSIONS VALUES(" & parRtag_id & "," & parPv_id & ")"
334
      End If
335
 
336
      If Err.Number = 0 Then
337
 
338
         ' Touch the release so that the state icons are re-evaluated
339
         OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
340
 
341
         OraDatabase.ExecuteSQL "BEGIN Touch_Release( :RTAG_ID ); END;"
342
 
343
         OraDatabase.Parameters.Remove "RTAG_ID"
344
      End If
345
   End If
346
 
347
   objEH.CatchORA ( OraSession )
348
 
349
End Sub
350
'------------------------------------------------------------------------------------------------------------------------------------
351
Sub AdvisoryRipplePackageVersion (applyAdvisoryRipple)
352
 
353
   objEH.TryORA ( OraSession )
354
   On Error Resume Next
355
 
356
   ' Delete the adv. rip. row for the requested RTAG_ID/PV_ID
357
   OraDatabase.ExecuteSQL _
358
   "DELETE FROM ADVISORY_RIPPLE WHERE RTAG_ID = " & parRtag_id & " AND PV_ID = " & parPv_id
359
 
360
   ' And if the user has requested advisory ripple to be turned on then Add it
361
   If applyAdvisoryRipple = True AND Err.Number = 0 Then
362
      OraDatabase.ExecuteSQL _
363
      "INSERT INTO ADVISORY_RIPPLE VALUES(" & parRtag_id & "," & parPv_id & ")"
364
   End If
365
 
366
   If Err.Number = 0 Then
367
 
368
      ' Touch the release so that the state icons are re-evaluated
369
      OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
370
 
371
      OraDatabase.ExecuteSQL "BEGIN Touch_Release( :RTAG_ID ); END;"
372
 
373
      OraDatabase.Parameters.Remove "RTAG_ID"
374
   End If
375
 
376
   objEH.CatchORA ( OraSession )
377
 
378
End Sub
379
 
380
'----------------------------------------------------------------------------------------------------------------------
381
%>
382
<%
383
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
384
 
385
Call Get_Form_Details( parRtag_id, parPv_id, objFormCollector )
386
isDLocked = objFormCollector.Item("dlocked")
387
isNotSdk = NOT objFormCollector.Item("is_sdkpkg")
388
 
389
'-------------------------------------
390
'Start Process Submission
391
If CBool(QStrPar("action"))  AND  objAccessControl.UserLogedIn Then
392
 
393
   Call UpdateRippleType()
394
 
395
 
396
   ' Changes to DO NOT RIPPLE Status -----------------------------------------
397
   If NOT CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "1" Then
398
      Call RipplePackage(True)
399
   End If
400
 
401
   If CBool(QStrPar("rippleFlag")) AND Request("FRripplebuild") = "0" Then
402
      Call RipplePackage(False)
403
   End If
404
 
405
   ' Changes to PEGGED Status ------------------------------------------------
406
   If NOT CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "1" Then
407
      Call PegPackageVersion(True)
408
   End If
409
 
410
   If CBool(QStrPar("peggedFlag")) AND Request("FRpegged") = "0" Then
411
      Call PegPackageVersion(False)
412
   End If
413
 
414
   ' Changes to ADVISORY RIPPLE Status ---------------------------------------
415
   If NOT CBool(QStrPar("advRipFlag")) AND Request("FRadvrip") = "1" Then
416
      Call AdvisoryRipplePackageVersion(True)
417
   End If
418
 
419
   If CBool(QStrPar("advRipFlag")) AND Request("FRadvrip") = "0" Then
420
      Call AdvisoryRipplePackageVersion(False)
421
   End If
422
 
423
 
424
   Call OpenInParentWindow ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id &"&hidenv=true" )
425
   Call CloseWindow
426
 
427
End If
428
'End Process Submission
429
'--------------------------------------------------------------------------------------------
430
%>
431
<html>
432
<head>
433
<title>Release Manager</title>
434
<link rel="shortcut icon" href="<%=FavIcon%>"/>
435
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
436
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
437
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
438
<link rel="stylesheet" href="images/navigation.css" type="text/css">
439
<script language="JavaScript" src="images/common.js"></script>
440
<!-- TIPS -->
441
<script language="JavaScript" src="images/tipster.js"></script>
442
<script language="JavaScript" src="images/_help_tips.js"></script>
443
<script language="JavaScript" type="text/JavaScript">
444
<!--
445
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
446
   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
447
      document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
448
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
449
}
450
MM_reloadPage(true);
451
function isNum(passedVal)
452
{
453
  if (passedVal == "")
454
  {
455
    return false
456
  }
457
  for(i=0; i<passedVal.length; i++)
458
  {
459
    if (passedVal.charAt(i) < "0")
460
    {
461
      return false
462
    }
463
    if (passedVal.charAt(i) > "9")
464
    {
465
      return false
466
    }
467
  }
468
  return true
469
}
470
function valid(form)
471
{
472
  if (!isNum(rippleproperties.Major.value)) {
473
    vixAlert("Invalid major number:" + rippleproperties.Major.value)
474
    return false
475
  }
476
  if (!isNum(rippleproperties.Minor.value)) {
477
    vixAlert("Invalid minor number:" + rippleproperties.Minor.value)
478
    return false
479
  }
480
  if (!isNum(rippleproperties.Patch.value)) {
481
    vixAlert("Invalid patch number:" + rippleproperties.Patch.value)
482
    return false
483
  }
484
  if (!isNum(rippleproperties.Build.value)) {
485
    vixAlert("Invalid build number:" + rippleproperties.Build.value)
486
    return false
487
  }
488
 
489
  return true
490
}
491
function changeToRippleType(val)
492
{
493
  if ( val.match("L") )
494
  {
495
    document.getElementById("limits_row").style.visibility="visible"
496
  }
497
  else
498
  {
499
    document.getElementById("limits_row").style.visibility="hidden"
500
    document.getElementById("Major").value  = "0"
501
    document.getElementById("Minor").value  = "0"
502
    document.getElementById("Patch").value  = "0"
503
    document.getElementById("Build").value  = "0"
504
  }
505
}
506
function loader()
507
{
508
  changeToRippleType(document.getElementById("rtc").options[document.getElementById("rtc").selectedIndex].value)
509
}
510
if (window.addEventListener)
511
{
512
  window.addEventListener("load", loader, false)
513
}
514
else if (window.attachEvent)
515
{
516
  window.attachEvent("onload", loader)
517
}
518
else if (document.getElementById)
519
{
520
  window.onload=loader
521
}
522
//-->
523
</script>
524
</head>
525
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
5590 dpurdie 526
<form onSubmit="return valid(this)" name="rippleproperties" id="rp" method="post" action="<%=scriptName%>" class="form_tight">
527
   <table border="0" cellspacing="0" cellpadding="2" width="800px">
5357 dpurdie 528
      <tr>
529
         <td valign="top" nowrap colspan="3" class="wform_ttl" background="images/bg_form_lightgray.gif">
530
            <table width="100%" border="0" cellspacing="1" cellpadding="2">
531
               <%If NOT IsNull(parRtag_id) AND parRtag_id <> "" AND isNotSdk Then%>
532
               <tr>
533
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Pegged Version?<%=Quick_Help ( "pegged_version" )%></td>
534
                  <%
535
                  Dim FRpeggedYES, FRpeggedNO, FRpegDisabled
536
 
537
                  FRpeggedYES = ""
538
                  FRpeggedNO = ""
539
                  FRpegDisabled = "disabled='disabled'"
540
 
541
                  ' Allow pegging/un-pegging to occur for locked/released versions only, and by users who have the appropriate permission
542
                  If (canShowControlInProject( "PegPackageVersions" )) AND isDLocked = "Y" Then
543
                     FRpegDisabled = ""
544
                  End If
545
 
546
                  Dim rsQryPegged, peggedFlag
547
                  Set rsQryPegged = OraDatabase.DbCreateDynaset( "SELECT COUNT(*) as record_count FROM PEGGED_VERSIONS WHERE RTAG_ID ="& parRtag_id &"AND PV_ID ="& parPv_id, cint(0))
548
 
549
                  If rsQryPegged("record_count") = 0  Then
550
                     FRpeggedNO = "checked"
551
                     peggedFlag = False
552
                  Else
553
                     FRpeggedYES = "checked"
554
                     peggedFlag = True
555
                  End If
556
 
557
                  rsQryPegged.Close()
558
                  Set rsQryPegged = nothing
559
 
560
                  %>
561
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
562
                     Yes<input name="FRpegged" type="radio" value="1" <%=FRpegDisabled%> <%=FRpeggedYES%> >&nbsp;&nbsp;
563
                     No<input name="FRpegged" type="radio" value="0"  <%=FRpegDisabled%> <%=FRpeggedNO%>  >&nbsp;&nbsp;
564
                  </td>
565
                  <td background="images/bg_form_lightbluedark.gif">
566
                     <span class='err_alert'><b>WARNING!</span>
567
                     <font size='1'>
568
                        <br>
569
                        When set to Yes, this package version is never rippled in the current release regardless of the other ripple settings below.
570
                     </font></b>
571
                  </td>
572
               </tr>
573
               <%End If%>
574
               <%If NOT IsNull(parRtag_id) AND parRtag_id <> "" Then%>
575
               <tr>
576
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Advisory Ripple Version?<%=Quick_Help ( "advisory_ripple_version" )%></td>
577
                  <%
578
                  Dim FRadvripYES, FRadvripNO, FRadvripDisabled
579
 
580
                  FRadvripYES = ""
581
                  FRadvripNO = ""
582
                  FRadvripDisabled = "disabled='disabled'"
583
 
584
                  ' Allow setting of advisory ripple to occur only by users who have the appropriate permission
585
                  If (canShowControlInProject( "AdvRipPackageVersions" )) AND isDLocked = "Y" Then
586
                     FRadvripDisabled = ""
587
                  End If
588
 
589
                  Dim rsQryAdvRip, advRipFlag
590
                  Set rsQryAdvRip = OraDatabase.DbCreateDynaset( "SELECT COUNT(*) as record_count FROM ADVISORY_RIPPLE WHERE RTAG_ID ="& parRtag_id &"AND PV_ID ="& parPv_id, cint(0))
591
 
592
                  If rsQryAdvRip("record_count") = 0  Then
593
                     FRadvripNO = "checked"
594
                     advRipFlag = False
595
                  Else
596
                     FRadvripYES = "checked"
597
                     advRipFlag = True
598
                  End If
599
 
600
                  rsQryAdvRip.Close()
601
                  Set rsQryAdvRip = nothing
602
 
603
                  %>
604
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
605
                     Yes<input name="FRadvrip" type="radio" value="1" <%=FRadvripDisabled%> <%=FRadvripYES%> >&nbsp;&nbsp;
606
                     No<input name="FRadvrip" type="radio" value="0"  <%=FRadvripDisabled%> <%=FRadvripNO%>  >&nbsp;&nbsp;
607
                  </td>
608
                  <td background="images/bg_form_lightbluedark.gif">
609
                     <span class='err_alert'><b>WARNING!</span>
610
                     <font size='1'>
611
                        <br>
612
                        When set to Yes, a new version of this package will not cause a ripple of higher level packages in the current release.
613
                     </font></b>
614
                  </td>
615
 
616
               </tr>
617
               <%End If%>
618
               <%If NOT IsNull(parRtag_id) AND parRtag_id <> "" Then%>
619
               <tr>
620
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Build Inclusion?<%=Quick_Help ( "ripple_build" )%></td>
621
                  <%
622
                  FRripplebuildYES = ""
623
                  FRripplebuildNO = ""
624
                  ' disabled="disabled" indicates the pv has been excluded indirectly
625
                  ' this is due to another pv (the root_pv_id) being excluded directly
626
                  ' allowing it to be included is somewhat pointless
627
                  ' fixing the root cause is a somewhat better approach
628
                  Dim disabled
629
                  disabled="disabled"
630
 
631
                  Dim rsQryRipple, rippleFlag
632
                  Set rsQryRipple = OraDatabase.DbCreateDynaset( "SELECT root_pv_id FROM DO_NOT_RIPPLE WHERE RTAG_ID ="& parRtag_id &"AND PV_ID ="& parPv_id, cint(0))
633
 
634
                  If rsQryRipple.RecordCount = 0  Then
635
                     FRripplebuildYES = "checked"
636
                     rippleFlag = True
637
                     ' do not disable the default
638
                     disabled=""
639
                  Else
640
                     If isNull(rsQryRipple("root_pv_id")) Then
641
                        ' pv has been excluded directly
642
                        ' ie has a null pv_id
643
                        ' once fixed, pv should be included ie do not disable
644
                        disabled=""
645
                     End If
646
                     FRripplebuildNO = "checked"
647
                     rippleFlag = False
648
                  End If
649
 
650
                  rsQryRipple.Close()
651
                  Set rsQryRipple = nothing
652
 
653
                  %>
654
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
655
                     Yes<input name="FRripplebuild" type="radio" value="1" <%=FRripplebuildYES%>  <%=disabled%>>&nbsp;&nbsp;
656
                     No<input name="FRripplebuild" type="radio" value="0" <%=FRripplebuildNO%>>&nbsp;&nbsp;
657
                  </td>
658
                  <td background="images/bg_form_lightbluedark.gif">
659
                     <span class='err_alert'><b>WARNING!</span>
660
                     <font size='1'>
6370 dpurdie 661
                        <br>When set to No, this package and <u>all</u> packages which depend on this package, either directly or indirectly,
662
                        will be excluded from the build. 
663
                        <br>When the Yes option is disabled then this package has been excluded indirectly.
664
                        <br>This setting is normally controlled by the build system.
5357 dpurdie 665
                     </font></b>
666
                  </td>
667
               </tr>
668
               <%End If%>
669
               <%If isNotSdk Then %>
670
               <tr>
671
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Ripple Type?<%=Quick_Help ( "ripple_type" )%></td>
672
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
673
                    &nbsp;&nbsp;<% Call RenderRippleTypeCombo( objFormCollector.Item("ripple_field"), isDLocked )%>&nbsp;&nbsp;
674
                  </td>
675
                  <td background="images/bg_form_lightbluedark.gif">
676
                     <span class='err_alert'><b>WARNING!</span>
677
                     <font size='1'>
678
                        <br>
679
                        This enables a package to advertise how it will be numbered when rippled.<br>
680
                        THIS IS PRIMARILY INTENDED TO CATER FOR PACKAGES WHICH DO NOT SUPPORT A NON ZERO PATCH/BUILD NUMBER,<br>
681
                        AND FOR PRODUCTS WHERE CONSTANTLY RIPPLING A PATCH/BUILD NUMBER IS DISLIKED BY A CUSTOMER.
682
                     </font></b>
683
                  </td>
684
               </tr>
685
               <%End If%>
686
               <tr id="limits_row" style="visibility:hidden; position:static">
687
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Version Field Limits</td>
688
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
689
                     Major&nbsp;&nbsp;<input name="Major" id="Major" type="text" class="form_item" size="8" value="<%=objFormCollector.Item("major_limit")%>">&nbsp;&nbsp;<br>
690
                     Minor&nbsp;&nbsp;<input name="Minor" id="Minor" type="text" class="form_item" size="8" value="<%=objFormCollector.Item("minor_limit")%>">&nbsp;&nbsp;<br>
691
                     Patch&nbsp;&nbsp;<input name="Patch" id="Patch" type="text" class="form_item" size="8" value="<%=objFormCollector.Item("patch_limit")%>">&nbsp;&nbsp;<br>
692
                     Build&nbsp;&nbsp;<input name="Build" id="Build" type="text" class="form_item" size="8" value="<%=objFormCollector.Item("build_number_limit")%>">&nbsp;&nbsp;
693
                  </td>
694
                  <td background="images/bg_form_lightbluedark.gif">
695
                     <span class='err_alert'><b>WARNING!</span>
696
                     <font size='1'>
697
                        <br>
698
                        A field (major/minor/patch/build number) may be assigned non zero limits to determine how it will be numbered when rippled.<br>
699
                        Prior to reaching a limit, the rightmost field able to be incremented will be when rippled.<br>
700
                        Upon reaching a limit, that rightmost field will be set to zero and the field next left with a non zero limit (if one exists) will be incremented when rippled.<br>
701
                        A field may be assigned to zero to fix the field (to 0 or 000 for the build number field) when rippled.
702
                     </font></b>
703
                  </td>
704
               </tr>
705
            </table>
706
        </td>
707
      </tr>
708
      <tr>
5590 dpurdie 709
         <td align="right">
710
            <input type="submit" name="btn" value="Submit" class="form_btn_comp">
711
            <input type="reset" name="btn" value="Cancel" class="form_btn_comp" onclick="parent.closeIFrame();">
712
         </td>
5357 dpurdie 713
      </tr>
714
   </table>
715
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
716
<input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
717
<input type="hidden" name="rippleFlag" value="<%=rippleFlag%>">
718
<input type="hidden" name="peggedFlag" value="<%=peggedFlag%>">
719
<input type="hidden" name="advRipFlag" value="<%=advRipFlag%>">
720
<input type="hidden" name="action" value="true">
721
</form>
722
</body>
723
</html>
724
<%
725
'------------- RUN AFTER PAGE RENDER ---------------
726
Set objFormCollector = Nothing
727
'---------------------------------------------------
728
%>
729
<!-- DESTRUCTOR ------->
730
<!--#include file="common/destructor.asp"-->