Subversion Repositories DevTools

Rev

Rev 6699 | Rev 6707 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6699 Rev 6701
Line 28... Line 28...
28
Call objPMod.StoreParameter ( "rfile", "form_view_release_licencing.asp" )
28
Call objPMod.StoreParameter ( "rfile", "form_view_release_licencing.asp" )
29
'------------ ACCESS CONTROL ------------------
29
'------------ ACCESS CONTROL ------------------
30
%>
30
%>
31
<!--#include file="_access_control_login.asp"-->
31
<!--#include file="_access_control_login.asp"-->
32
<!--#include file="_access_control_general.asp"-->
32
<!--#include file="_access_control_general.asp"-->
33
<!--#include file="_access_control_project.asp"-->
-
 
34
<%
33
<%
35
'------------ Variable Definition -------------
34
'------------ Variable Definition -------------
36
Dim bShowAll
35
Dim bShowAll
37
Dim bShowAny
36
Dim bShowAny
38
Dim sPrevPage
-
 
39
Dim bOrdered
37
Dim bAllCots
40
Dim sOrderCheck
-
 
41
Dim sAllCheck
38
Dim sAllCheck
42
Dim sAnyCheck
39
Dim sAnyCheck
-
 
40
Dim sAllCots
43
'------------ Constants Declaration -----------
41
'------------ Constants Declaration -----------
44
'------------ Variable Init -------------------
42
'------------ Variable Init -------------------
45
bShowAll = Request("ShowAll")
43
bShowAll = Request("ShowAll")
46
bShowAny = Request("ShowAny")
44
bShowAny = Request("ShowAny")
47
bOrdered = Request("ordered") <> ""
45
bAllCots = Request("allCots")
48
 
46
 
49
If bOrdered       Then sOrderCheck = " Checked "
47
If bAllCots <> "" Then sAllCots = " Checked "
50
If bShowAny <> "" Then sAnyCheck = " Checked "
48
If bShowAny <> "" Then sAnyCheck = " Checked "
51
If bShowAll <> "" Then sAllCheck = " Checked "
49
If bShowAll <> "" Then sAllCheck = " Checked "
52
 
50
 
53
'--------------------------------------------------------------------------------------------------------------------------
51
'--------------------------------------------------------------------------------------------------------------------------
54
'  release_licencing_query_string
52
'  release_licencing_query_string
Line 118... Line 116...
118
                    "WHERE pv.pv_id   = rc.pv_id " &_
116
                    "WHERE pv.pv_id   = rc.pv_id " &_
119
                    "AND pkg.pkg_id   = pv.pkg_id " &_
117
                    "AND pkg.pkg_id   = pv.pkg_id " &_
120
                    "AND pv.pv_id     = lcng.pv_id (+) " &_
118
                    "AND pv.pv_id     = lcng.pv_id (+) " &_
121
                    "AND lcng.licence = lcs.licence (+) " &_
119
                    "AND lcng.licence = lcs.licence (+) " &_
122
                    "AND pv.pkg_id    = al.pkg_id(+) " &_
120
                    "AND pv.pkg_id    = al.pkg_id(+) " &_
123
                    "AND ((lcng.licence is not null) OR ('" & bShowAll & "' is not null) OR ( (al.name is not null) AND ('" & bShowAny & "' is not null) )) "
-
 
124
 
-
 
125
    If bOrdered Then
121
                    "AND ( " &_
126
        release_licencing_query_string = release_licencing_query_string &_
122
                        "(lcng.licence is not null) OR ('" & bShowAll & "' is not null)" &_
127
                    "ORDER BY Upper(licenceName), Upper( pkg.pkg_name), " &_
123
                        " OR ( (al.name is not null) AND ('" & bShowAny & "' is not null) )" &_
128
                    "  Upper(pv.pkg_version) "
124
                        " OR ((UPPER(pv.v_ext) = '.COTS') AND ('" & bAllCots & "' is not null))" &_
129
    Else        
125
                    ") " &_
130
 
-
 
131
        release_licencing_query_string = release_licencing_query_string &_
-
 
132
                    "ORDER BY Upper( pkg.pkg_name), " &_
126
                    "ORDER BY Upper( pkg.pkg_name), " &_
133
                    "  Upper(pv.pkg_version) "
127
                    "  Upper(pv.pkg_version) "
134
    End If
-
 
135
End Function
128
End Function
136
 
129
 
137
 
130
 
138
'--------------------------------------------------------------------------------------------------------------------------
131
'--------------------------------------------------------------------------------------------------------------------------
139
'  PV_ID_ListHTML
132
'  PV_ID_ListHTML
140
'
133
'
141
'  DESCRIPTION
134
'  DESCRIPTION
142
'     Constructs the HTML to render the rows of package names, versions and extensions, and licences
135
'     Constructs the HTML to render the rows of package names, versions and extensions, and licences
143
'
136
'
144
Function PV_ID_ListHTML
137
Sub PV_ID_ListHTML
145
   Dim rsQry
138
   Dim rsQry
146
   Dim html_string
-
 
147
 
-
 
148
 
139
 
149
   OraDatabase.Parameters.Add "RTAG_ID", parRtag_Id, ORAPARM_INPUT, ORATYPE_NUMBER
140
   OraDatabase.Parameters.Add "RTAG_ID", parRtag_Id, ORAPARM_INPUT, ORATYPE_NUMBER
150
   Set rsQry = OraDatabase.DbCreateDynaset( release_licencing_query_string(parRtag_Id), cint(0) )
141
   Set rsQry = OraDatabase.DbCreateDynaset( release_licencing_query_string(parRtag_Id), cint(0) )
151
   OraDatabase.Parameters.Remove "PV_ID"
142
   OraDatabase.Parameters.Remove "PV_ID"
152
 
143
 
153
   '--- Render rows ---
144
   '--- Render rows ---
154
   Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
145
   Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
155
 
146
 
156
      ' BEGIN ROW
147
      ' BEGIN ROW
157
      html_string = html_string & "<tr class='csvData'>"
148
      Response.Write "<tr class='csvData body_rowg top'>"
158
 
149
 
159
      ' PACKAGE NAME
150
      ' PACKAGE NAME
160
      html_string = html_string & "<td nowrap class='body_rowg'>"
151
      Response.Write "<td>"
161
      html_string = html_string & "<a href=dependencies.asp?pv_id=" & rsQry("pv_id") & "&rtag_id=" & parRtag_Id & ">" & rsQry("pkg_name") & "</a>"
152
      Response.Write "<a href=dependencies.asp?pv_id=" & rsQry("pv_id") & "&rtag_id=" & parRtag_Id & ">" & rsQry("pkg_name") & "</a>"
162
      html_string = html_string & "</td>"
153
      Response.Write "</td>"
163
 
154
 
164
      ' PACKAGE VERSION
155
      ' PACKAGE VERSION
165
      If IsNull(rsQry("v_ext")) Then
156
      If IsNull(rsQry("v_ext")) Then
166
         html_string = html_string & "<td nowrap class='body_rowg'>" & rsQry("pkg_version") & "</td>"
157
         Response.Write "<td>" & rsQry("pkg_version") & "</td>"
167
      Else
158
      Else
168
         html_string = html_string & "<td nowrap class='body_rowg'>" & Left(rsQry("pkg_version"), Len(rsQry("pkg_version")) - Len(rsQry("v_ext")) ) & "</td>"
159
         Response.Write "<td>" & Left(rsQry("pkg_version"), Len(rsQry("pkg_version")) - Len(rsQry("v_ext")) ) & "</td>"
169
      End If
160
      End If
170
 
161
 
171
      ' PACKAGE EXTENSION
162
      ' PACKAGE EXTENSION
172
      html_string = html_string & "<td nowrap class='body_rowg'>" & rsQry("v_ext") & "</td>"
163
      Response.Write "<td>" & rsQry("v_ext") & "</td>"
173
 
164
 
174
      ' PACKAGE Short Description
165
      ' PACKAGE Short Description
175
      html_string = html_string & "<td class='body_rowg'>" & rsQry("pv_description") & "</td>"
166
      Response.Write "<td>" & rsQry("pv_description") & "</td>"
176
 
167
 
177
      ' LICENCE NAME
168
      ' LICENCE NAME
178
      html_string = html_string & "<td nowrap class='body_rowg'>" & rsQry("licenceName") & "</td>"
169
      Response.Write "<td>" & rsQry("licenceName") & "</td>"
179
 
170
 
180
      ' Other Licences
171
      ' Other Licences
181
      html_string = html_string & "<td nowrap class='body_rowg'>" & rsQry("otherlicenses") & "</td>"
172
      Response.Write "<td>" & rsQry("otherlicenses") & "</td>"
182
 
173
 
183
      ' Edit License
174
      ' Edit License
184
      Dim sonclick
175
      Dim sonclick
185
      sonclick="""MM_openVixIFrame('_wform_change_licence.asp?pv_id="& rsQry("pv_id") &"&rtag_id="& parRtag_id &"','Change License')"""
176
      sonclick="""MM_openVixIFrame('_wform_change_licence.asp?pv_id="& rsQry("pv_id") &"&rtag_id="& parRtag_id &"','Change License')"""
186
      Dim data
177
      Dim data
Line 191... Line 182...
191
               "</a>"
182
               "</a>"
192
     Else
183
     Else
193
        data = "<img src='images/i_edit_disable.gif' width='12' height='12' border='0'>"
184
        data = "<img src='images/i_edit_disable.gif' width='12' height='12' border='0'>"
194
     End If
185
     End If
195
 
186
 
196
      html_string = html_string & "<td nowrap class='body_rowg'>" & data & "</td>"
187
      Response.Write "<td>" & data & "</td>"
197
 
188
 
198
      ' END ROW
189
      ' END ROW
199
      html_string = html_string & "</tr>"
190
      Response.Write "</tr>"
200
 
191
 
201
      rsQry.MoveNext
192
      rsQry.MoveNext
202
 
-
 
203
      ' ROW SEPERATOR
-
 
204
      If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
-
 
205
         html_string = html_string & "<tr><td colspan='8' style='border-bottom: 1pt solid #dad7c8;'></td></tr>"
-
 
206
      End If
-
 
207
   Loop
193
   Loop
208
 
194
 
209
   ' destroy objects
195
   ' destroy objects
210
   rsQry.Close()
196
   rsQry.Close()
211
   Set rsQry = nothing
197
   Set rsQry = nothing
212
 
198
 
213
   ' return result
-
 
214
   PV_ID_ListHTML = html_string
-
 
215
End Function
199
End Sub
216
 
200
 
217
'--------------------------------------------------------------------------------------------------------------------------
201
'--------------------------------------------------------------------------------------------------------------------------
218
 
-
 
219
'----------------------------------------------
-
 
220
Sub LeftPanelContent
202
Sub LeftPanelContent
221
   objFormComponent.FormName = "FormName"
203
   objFormComponent.FormName = "FormName"
222
   objFormComponent.Method = "get"
204
   objFormComponent.Method = "get"
223
   objFormComponent.Action = ScriptName
205
   objFormComponent.Action = ScriptName
224
   Call objFormComponent.FormStart()
206
   Call objFormComponent.FormStart()
225
%>
207
%>
226
 
208
 
227
<fieldset class="body_rowg fset">
209
<fieldset class="body_rowg fset">
228
    <legend>Options</legend>
210
    <legend>Options</legend>
229
    <input     name="ordered" type="checkbox" class="form_btn" <%=sOrderCheck%> value=1 onChange="this.form.submit()">Ordered
211
        <input name="showAny" type="checkbox" class="form_btn" <%=sAnyCheck%> value=1 onChange="this.form.submit()">Show Any<%=Quick_Help("h_showAny")%>
230
    <br><input name="showAny" type="checkbox" class="form_btn" <%=sAnyCheck%>   value=1 onChange="this.form.submit()">Show Any<%=Quick_Help("h_showAny")%>
212
    <br><input name="allCots" type="checkbox" class="form_btn" <%=sAllCots%>  value=1 onChange="this.form.submit()">Show All COTS<%=Quick_Help("h_allCots")%>
231
    <br><input name="showAll" type="checkbox" class="form_btn" <%=sAllCheck%>   value=1 onChange="this.form.submit()">Show All<%=Quick_Help("h_showAll")%>
213
    <br><input name="showAll" type="checkbox" class="form_btn" <%=sAllCheck%> value=1 onChange="this.form.submit()">Show All<%=Quick_Help("h_showAll")%>
232
    <br><input name="rtag_id" type="hidden" value=<%=parRtag_Id%> 
214
    <br><input name="rtag_id" type="hidden" value=<%=parRtag_Id%>
233
</fieldset>
215
</fieldset>
234
   <%
216
   <%
235
   Call objFormComponent.FormEnd()
217
   Call objFormComponent.FormEnd()
236
   '-- FROM END ----------------------------------------------------------------------------------------------------------------
218
   '-- FROM END ----------------------------------------------------------------------------------------------------------------
237
   %>
219
   %>
Line 255... Line 237...
255
            <div class="rounded_box">
237
            <div class="rounded_box">
256
               <div style="background-color: white;border-left: white solid 10px;border-right: white solid 10px;">
238
               <div style="background-color: white;border-left: white solid 10px;border-right: white solid 10px;">
257
                    <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
239
                    <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
258
                    <!--#include file="messages/_msg_inline.asp"-->
240
                    <!--#include file="messages/_msg_inline.asp"-->
259
                    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
241
                    <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
260
                    <table width="100%" class="embedded_table etable">
242
                    <table width="100%" class="embedded_table etable underline" id='pkgLicences'>
261
                        <tr>
-
 
262
                           <td valign="top"></td>
243
                        <thead class="body_hcol">
263
                           <tr>
244
                            <tr>
264
                              <th valign="top" nowrap class="body_hcol">Package Name</th>
245
                              <th valign="top" nowrap >Package Name</th>
265
                              <th valign="top" nowrap class="body_hcol">Package Version</th>
246
                              <th valign="top" nowrap >Package Version</th>
266
                              <th valign="top" nowrap class="body_hcol">Package Extension</th>
247
                              <th valign="top" nowrap >Package Extension</th>
267
                              <th valign="top"        class="body_hcol">Short Description</th>
248
                              <th valign="top"        >Short Description</th>
268
                              <th valign="top" nowrap class="body_hcol">Licences<%=Quick_Help("h_licences")%></th>
249
                              <th valign="top" nowrap >Licences<%=Quick_Help("h_licences")%></th>
269
                              <th valign="top" nowrap class="body_hcol">Other Licences<%=Quick_Help("h_other")%></th>
250
                              <th valign="top" nowrap >Other Licences<%=Quick_Help("h_other")%></th>
270
                              <th valign="top" nowrap class="body_hcol noCsv">Edit</th>
251
                              <th valign="top" nowrap class="noCsv">Edit</th>
271
                           </tr>
252
                           </tr>
-
 
253
                        </thead>
-
 
254
                        <tbody>
272
                           <%=PV_ID_ListHTML()%>
255
                           <%Call PV_ID_ListHTML%>
273
                        </tr>
256
                        </tbody>
274
                    </table>
257
                    </table>
275
               </div>
258
               </div>
276
            </div>
259
            </div>
277
         </td>
260
         </td>
278
      </tr>
261
      </tr>
Line 288... Line 271...
288
      <meta http-equiv="Pragma" content="no-cache">
271
      <meta http-equiv="Pragma" content="no-cache">
289
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
272
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
290
      <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
273
      <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
291
      <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
274
      <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
292
      <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
275
      <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
293
<script language="JavaScript" src="scripts/remote_scripting.js?ver=<%=VixVerNum%>"></script>
276
      <script language="JavaScript" src="scripts/remote_scripting.js?ver=<%=VixVerNum%>"></script>
294
      <!-- DROPDOWN MENUS -->
277
      <!-- DROPDOWN MENUS -->
-
 
278
      <%bJqueryDataTables = TRUE%>
295
<%bCsvExport = True%>
279
      <%bCsvExport = True%>
296
      <!--#include file="_jquery_includes.asp"-->
280
      <!--#include file="_jquery_includes.asp"-->
297
      <!--#include file="_menu_def.asp"-->
281
      <!--#include file="_menu_def.asp"-->
298
      <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
282
      <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
299
<!-- TIPS -->
283
<!-- TIPS -->
300
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
284
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
Line 311... Line 295...
311
                                                          '<p>A package may have several licences and the packages licences may change over time.' 
295
                                                          '<p>A package may have several licences and the packages licences may change over time.' 
312
                                                          );
296
                                                          );
313
 
297
 
314
formTips.tips.h_showAny       = stdTip(300, 'Show Any', 'Show packages, in this Release, that have a licence in any release, not just this release.');
298
formTips.tips.h_showAny       = stdTip(300, 'Show Any', 'Show packages, in this Release, that have a licence in any release, not just this release.');
315
formTips.tips.h_showAll       = stdTip(300, 'Show All', 'Show all packages in this Release, not just those with a licence.');
299
formTips.tips.h_showAll       = stdTip(300, 'Show All', 'Show all packages in this Release, not just those with a licence.');
-
 
300
formTips.tips.h_allCots       = stdTip(300, 'All COTS', 'Force the inclusion of COTS packages as these should have licencing information.');
-
 
301
</script>
-
 
302
<script language="JavaScript" type="text/javascript">
-
 
303
	$(document).ready(function() {
-
 
304
		/* Init DataTables */
316
 
305
 
-
 
306
        table = $("#pkgLicences").DataTable({
-
 
307
            "paging":   false,
-
 
308
            "info":     true,
-
 
309
            dom: "frti",
-
 
310
            ordering: true,
-
 
311
            order: [[ 0, "asc" ]],
-
 
312
            lengthChange : false,
-
 
313
 
-
 
314
            columns: [
-
 
315
               { width: "5%", className: "dt-nowrap"},
-
 
316
               { width: "5%", className: "dt-nowrap"},
-
 
317
               { width: "1%", className: "dt-nowrap"  },
-
 
318
               { orderable: false, searchable: false },
-
 
319
               { className: "dt-nowrap" },
-
 
320
               { width: "1%", orderable: true, className: "dt-nowrap" },
-
 
321
               { width: "40px", orderable: false, searchable: false },
-
 
322
           ],
-
 
323
        });
-
 
324
    });
317
</script>
325
</script>
318
   </head>
326
   </head>
319
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
327
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
320
      <!-- HEADER -->
328
      <!-- HEADER -->
321
      <!--#include file="_header.asp"-->
329
      <!--#include file="_header.asp"-->
Line 329... Line 337...
329
                <%Call MainPanelContent%>
337
                <%Call MainPanelContent%>
330
            </td>
338
            </td>
331
         </tr>
339
         </tr>
332
         <tr>
340
         <tr>
333
            <td class="panel_bg" valign="bottom" align="center" height="350">
341
            <td class="panel_bg" valign="bottom" align="center" height="350">
334
                <img src="images/img_gears.png" vspace="20" hspace="30"></td>
342
                <img src="images/img_padlock.png" vspace="20" hspace="30"></td>
335
         </tr>
343
         </tr>
336
      </table>
344
      </table>
337
      <!-- FOOTER -->
345
      <!-- FOOTER -->
338
      <!--#include file="_footer.asp"-->
346
      <!--#include file="_footer.asp"-->
339
   </body>
347
   </body>