Rev 6123 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'=====================================================' View Deplayable State Information' form_view_deployable_state.asp'=====================================================%><%Option explicit' Good idea to set when using redirectResponse.Expires = 0 ' always load the page, dont store%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_form_window_common.asp"--><!--#include file="_action_buttons.asp"--><!--#include file="class/classActionButtonControl.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_login.asp"--><!--#include file="_access_control_general.asp"--><%'------------ Variable Definition -------------Dim parRtagIddim modifyState'------------ Constants Declaration -----------'------------ Variable Init -------------------parRtagId = Request("rtag_id")objPMod.PersistInQryString("rtag_id")modifyState = "disabled"If canActionControlInProject("ConfigureRelease") OR canActionControlInProject("EditNonCriticalInfoForLockedPackage") Then modifyState = ""'----------------------------------------------%><html><head><title>Release Manager</title><link rel="shortcut icon" href="<%=FavIcon%>"/><meta HTTP-EQUIV="Pragma" CONTENT="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="images/release_manager_style.css" type="text/css"><link rel="stylesheet" href="images/navigation.css" type="text/css"><script language="JavaScript" src="images/common.js"></script><%bJqueryDataTables = TRUE%><!--#include file="_jquery_includes.asp"--><!-- TIPS --><script language="JavaScript" src="images/tipster.js"></script><script language="JavaScript" src="images/_help_tips.js"></script><script language="JavaScript" type="text/javascript">formTips.tips.h_deployable = stdTip(300, 'Deployable', 'Show packages that are marked as Deployable' +'<p>These packages may be processed by deployment tools and the package contents ' +'may be processed into a deployment BOM');</script><script type="text/javascript" charset="utf-8">var table;var showHide = false;$(document).ready(function() {/* Init DataTables */table = $("#deploymentstatetable").DataTable({processing: true,deferRender: true,dom: "frtiS",sScrollY: $( document ).height() - 45 - 200,scrollCollapse: true,retrieve:true,serverSide: true,ajax : {url : "deployable_state_json.asp",data : function (o){o.rtag_id = <%=parRtagId%>;o.show = showHide;},dataSrc : function (json){// Process the raw Ajax data// Create a checkbox for the state// Add a data item to the entry - to allow traceback when saving$.each(json.data, function(idx,row){var checked = row[5] == "Y" ? 'checked' : '';row[5] = '<div><input type="checkbox" class=clickable <%=modifyState%> '+ checked + ' data-pvid='+ row[0] +'></div>'});return json.data;}},ordering: true,order: [[ 1, "asc" ]],lengthChange : false,Scroller : {loadingIndicator : true,displayBuffer: 3,},columns: [{ visible : false },{ width: "20%", className: "dt-nowrap" },{ width: "20%", className: "dt-nowrap" },{ width: "1%", className: "dt-nowrap" },{ orderable: false },{ className: "dt-nowrap" }]});// Wire Up buttons$('#ds_refresh').on("click", function(){table.ajax.reload(null, false);});$('#ds_show').on("click", function(){$(this).text( showHide ? 'Show Deployable' : 'Show All');showHide = !showHide;table.ajax.reload();});// Process click on checkboxes within the datatable// this - a DOM node// $(this) - The jquery wrapped node//$('#deploymentstatetable').on( 'click', 'tbody td :checkbox', function () {getAjaxData ("_json_UpdateVersion.asp",{ opr : 'setDeployable',pv_id : $(this).data('pvid'),deployment_state : this.checked ? 'Y' : '-'});});} );// getAjaxData - with error processing// url - url to fetch// data - additional data to pass to ajax request// success - function to call on successfunction getAjaxData( url, data, success ){clearInfo();$("#ds_progressBar").css('visibility', 'visible');$(document.body).css({ 'cursor': 'progress' })$.ajax({url : url,type: "POST",data : data,dataType : "json",cache: false,success:function(data, textStatus, jqXHR){//data: return data from server//console.log ("UpdateData", data);if (data.result != 0){setInfo("Error:" + ((data.error != 0) ? data.emsgSummary : "Reason not given"));return;}// call user success functionif (jQuery.isFunction(success)){success(data);}},error: function(jqXHR, textStatus, errorThrown){setInfo("Error:" + errorThrown);//if fails},complete : function(){$("#ds_progressBar").css('visibility', 'hidden');$(document.body).css({ 'cursor': 'auto' })}});function setInfo(txt) {$("#ds_info").text( txt);}function clearInfo(txt) {$("#ds_info").text(" ");}}</script><!-- DROPDOWN MENUS --><!--#include file="_menu_def.asp"--><script language="JavaScript1.2" src="images/popup_menu.js"></script></head><body><!-- HEADER --><!--#include file="_header.asp"--><!-- BODY ----><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;"><tr><td width="146px" class="panel_bg" valign="top"> </td><td width="100%" valign="top" align="center" bgcolor="#EEEFEF"><table width="50%" border="0" cellspacing="0" cellpadding="0"><tr><td width="1%"></td><td width="100%"><span nowrap class="form_ttl">VIEW DEPLOYMENT STATE</span><!-- Section Top Border ----><div class="rounded_box" style="background: white;"><!-- Section Body Header ----><!-- Main Pane --><table id="deploymentstatetable" width=100% class="stripe"><thead class="body_col"><tr><th>PV_ID<th>Package Name<th>Package Version<th>Package Extension<th>Short Description<th><%=Quick_Help("h_deployable")%>Deployable</tr></thead><tbody></tbody></table><!-- Info / Ajax Progress bar --><div class='bg_dialog body_txt' style='position:relative;min-height:21px;' ><img id='ds_progressBar' style='visibility:hidden;position: absolute;display: block' src='icons/i_processing.gif' width='79' height='14'><div id='ds_info' style='position: absolute;'></div><div><button id='ds_refresh' style="display:inline; float:right;">Refresh</button><button id='ds_show' style="display:inline; float:right;">Show Deployable</button></div></div></div></td></tr></table></td></tr></table><!-- FOOTER --><!--#include file="_footer.asp"--></body></html>