Subversion Repositories DevTools

Rev

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

Rev 5061 Rev 5086
Line 31... Line 31...
31
Dim checked
31
Dim checked
32
Dim FRripplebuildYES, FRripplebuildNO
32
Dim FRripplebuildYES, FRripplebuildNO
33
Dim objFormCollector
33
Dim objFormCollector
34
Dim Query_String
34
Dim Query_String
35
Dim isDLocked
35
Dim isDLocked
-
 
36
Dim isNotSdk
36
'------------ Constants Declaration -----------
37
'------------ Constants Declaration -----------
37
'------------ Variable Init -------------------
38
'------------ Variable Init -------------------
38
Set objFormCollector = CreateObject("Scripting.Dictionary")
39
Set objFormCollector = CreateObject("Scripting.Dictionary")
39
parPv_id = QStrPar("pv_id")
40
parPv_id = QStrPar("pv_id")
40
'----------------------------------------------
41
'----------------------------------------------
Line 200... Line 201...
200
   OraDatabase.Parameters.Remove "RTAG_ID"
201
   OraDatabase.Parameters.Remove "RTAG_ID"
201
   OraDatabase.Parameters.Remove "USER_ID"
202
   OraDatabase.Parameters.Remove "USER_ID"
202
 
203
 
203
End Sub
204
End Sub
204
'------------------------------------------------------------------------------------------------------------------------------------
205
'------------------------------------------------------------------------------------------------------------------------------------
205
Sub Get_Form_Details( nPv_id, ByRef objDetails )
206
Sub Get_Form_Details( nRtag_id, nPv_id, ByRef objDetails )
206
   Dim rsTemp, Query_String
207
   Dim rsTemp, Query_String
207
   Query_String = _
208
   Query_String = _
208
   " SELECT * "&_
209
   " SELECT * "&_
209
   "  FROM package_versions pv, packages pkg"&_
210
   "  FROM package_versions pv, packages pkg"&_
210
   " WHERE pv.pkg_id = pkg.pkg_id"&_
211
   " WHERE pv.pkg_id = pkg.pkg_id"&_
Line 222... Line 223...
222
      objDetails.Item("is_deployable")         = rsTemp("is_deployable")
223
      objDetails.Item("is_deployable")         = rsTemp("is_deployable")
223
      objDetails.Item("is_build_env_required") = rsTemp("is_build_env_required")
224
      objDetails.Item("is_build_env_required") = rsTemp("is_build_env_required")
224
      objDetails.Item("build_type")            = rsTemp("build_type")
225
      objDetails.Item("build_type")            = rsTemp("build_type")
225
      objDetails.Item("bs_id")                 = rsTemp("bs_id")
226
      objDetails.Item("bs_id")                 = rsTemp("bs_id")
226
      objDetails.Item("ripple_field")          = rsTemp("ripple_field")
227
      objDetails.Item("ripple_field")          = rsTemp("ripple_field")
-
 
228
      objDetails.Item("dlocked")               = rsTemp("dlocked")
-
 
229
 
227
      If isNull(rsTemp("major_limit")) Then
230
      If isNull(rsTemp("major_limit")) Then
228
        objDetails.Item("major_limit")         = "0"
231
        objDetails.Item("major_limit")         = "0"
229
      Else
232
      Else
230
        objDetails.Item("major_limit")         = rsTemp("major_limit")
233
        objDetails.Item("major_limit")         = rsTemp("major_limit")
231
      End If
234
      End If
Line 246... Line 249...
246
      End If
249
      End If
247
   End If
250
   End If
248
 
251
 
249
   rsTemp.Close()
252
   rsTemp.Close()
250
   Set rsTemp = Nothing
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
 
251
End Sub
273
End Sub
252
'----------------------------------------------------------------------------------------------------------------------
274
'----------------------------------------------------------------------------------------------------------------------
253
Sub RenderRippleTypeCombo( cRippleType, cDLocked )
275
Sub RenderRippleTypeCombo( cRippleType, cDLocked )
254
 
276
 
255
   Dim isEditable
277
   Dim isEditable
Line 359... Line 381...
359
'----------------------------------------------------------------------------------------------------------------------
381
'----------------------------------------------------------------------------------------------------------------------
360
%>
382
%>
361
<%
383
<%
362
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
384
'------------------------------- RUN BEFORE PAGE RENDER ----------------------------
363
 
385
 
364
Call Get_Form_Details( parPv_id, objFormCollector )
386
Call Get_Form_Details( parRtag_id, parPv_id, objFormCollector )
365
 
-
 
-
 
387
isDLocked = objFormCollector.Item("dlocked")
366
Call Get_Pkg_Short_Info( parPv_id, NULL, NULL, NULL, NULL, NULL, isDLocked )
388
isNotSdk = NOT objFormCollector.Item("is_sdkpkg")
367
 
389
 
368
'-------------------------------------
390
'-------------------------------------
369
'Start Process Submission
391
'Start Process Submission
370
If CBool(QStrPar("action"))  AND  objAccessControl.UserLogedIn Then
392
If CBool(QStrPar("action"))  AND  objAccessControl.UserLogedIn Then
371
 
393
 
Line 513... Line 535...
513
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
535
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="10" height="30"></td>
514
                  <td width="1%" nowrap class="form_group" valign="bottom"></td>
536
                  <td width="1%" nowrap class="form_group" valign="bottom"></td>
515
                  <td nowrap width="1%">&nbsp; </td>
537
                  <td nowrap width="1%">&nbsp; </td>
516
                  <td nowrap width="100%">&nbsp;</td>
538
                  <td nowrap width="100%">&nbsp;</td>
517
               </tr>
539
               </tr>
518
               <%If NOT IsNull(parRtag_id) AND parRtag_id <> "" Then%>
540
               <%If NOT IsNull(parRtag_id) AND parRtag_id <> "" AND isNotSdk Then%>
519
               <tr>
541
               <tr>
520
                  <td>&nbsp;</td>
542
                  <td>&nbsp;</td>
521
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Pegged Version?<%=Quick_Help ( "pegged_version" )%></td>
543
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Pegged Version?<%=Quick_Help ( "pegged_version" )%></td>
522
                  <%
544
                  <%
523
                  Dim FRpeggedYES, FRpeggedNO, FRpegDisabled
545
                  Dim FRpeggedYES, FRpeggedNO, FRpegDisabled
Line 653... Line 675...
653
                        will be excluded from the build. When the Yes option is disabled, indicates this package has been excluded indirectly.
675
                        will be excluded from the build. When the Yes option is disabled, indicates this package has been excluded indirectly.
654
                     </font></b>
676
                     </font></b>
655
                  </td>
677
                  </td>
656
               </tr>
678
               </tr>
657
               <%End If%>
679
               <%End If%>
-
 
680
               <%If isNotSdk Then %>
658
               <tr>
681
               <tr>
659
                  <td>&nbsp;</td>
682
                  <td>&nbsp;</td>
660
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Ripple Type?<%=Quick_Help ( "ripple_type" )%></td>
683
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_field">Ripple Type?<%=Quick_Help ( "ripple_type" )%></td>
661
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
684
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt">
662
                    &nbsp;&nbsp;<% Call RenderRippleTypeCombo( objFormCollector.Item("ripple_field"), isDLocked )%>&nbsp;&nbsp;
685
                    &nbsp;&nbsp;<% Call RenderRippleTypeCombo( objFormCollector.Item("ripple_field"), isDLocked )%>&nbsp;&nbsp;
Line 669... Line 692...
669
                        THIS IS PRIMARILY INTENDED TO CATER FOR PACKAGES WHICH DO NOT SUPPORT A NON ZERO PATCH/BUILD NUMBER,<br>
692
                        THIS IS PRIMARILY INTENDED TO CATER FOR PACKAGES WHICH DO NOT SUPPORT A NON ZERO PATCH/BUILD NUMBER,<br>
670
                        AND FOR PRODUCTS WHERE CONSTANTLY RIPPLING A PATCH/BUILD NUMBER IS DISLIKED BY A CUSTOMER.
693
                        AND FOR PRODUCTS WHERE CONSTANTLY RIPPLING A PATCH/BUILD NUMBER IS DISLIKED BY A CUSTOMER.
671
                     </font></b>
694
                     </font></b>
672
                  </td>
695
                  </td>
673
               </tr>
696
               </tr>
-
 
697
               <%End If%>
674
               <tr id="limits_row" style="visibility:hidden; position:static">
698
               <tr id="limits_row" style="visibility:hidden; position:static">
675
                  <td>&nbsp;</td>
699
                  <td>&nbsp;</td>
676
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Version Field Limits</td>
700
                  <td nowrap class="form_field" background="images/bg_form_lightbluedark.gif">Version Field Limits</td>
677
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
701
                  <td nowrap background="images/bg_form_lightbluedark.gif" class="form_txt" align="right">
678
                     Major&nbsp;&nbsp;<input name="Major" id="Major" type="text" class="form_item" size="8" value="<%=objFormCollector.Item("major_limit")%>">&nbsp;&nbsp;<br>
702
                     Major&nbsp;&nbsp;<input name="Major" id="Major" type="text" class="form_item" size="8" value="<%=objFormCollector.Item("major_limit")%>">&nbsp;&nbsp;<br>