Subversion Repositories DevTools

Rev

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