Edit D:\rfid\libsystem\page\catalogue\global_tabsgrid.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <div id="tabGrid-tools"> <a id="cancelOrderBibRecord" href="javascript:void(0)" class="easyui-linkbutton" style="display:none;" data-options="plain:true,iconCls:'e-icon fa fa-close'" title="????" onclick="cancelOrderBibRecord(null,0)">????</a> <a id="deleteOrderBib" href="javascript:void(0)" class="easyui-linkbutton" style="display:none;" data-options="plain:true,iconCls:'e-icon fa fa-trash'" title="?????????" onclick="deleteOrderBib()">?????????</a> <a id="deleteCheckBib" href="javascript:void(0)" class="easyui-linkbutton" style="display:none;" data-options="plain:true,iconCls:'e-icon fa fa-trash'" title="?????????" onclick="deleteCheckBib()">?????????</a> <a id="checkHoldlist0" href="javascript:void(0)" class="easyui-linkbutton" style="display:none;" data-options="plain:true,iconCls:'e-icon fa fa-filter'" onclick="chckeHoldListByFilter(0)">?????????</a> <a id="checkHoldlist1" href="javascript:void(0)" class="easyui-linkbutton" style="display:none;" data-options="plain:true,iconCls:'e-icon fa fa-list'" onclick="chckeHoldListByFilter(1)">?????????</a> </div> <div id="tabsGrid" class="easyui-tabs" data-options="tools:'#tabGrid-tools',fit:true,border:false" style="margin-top: -1px;"> <div title="?????????" style="margin-top: -1px;"> <table id="acqDataGridList"></table> </div> <div title="?????????" style="margin-top: -1px;"> <table id="centerDataGridList"></table> </div> <div title="(???)??????" style="margin-top: -1px;"> <table id="orderDataGridList"></table> </div> <div title="(???)??????" style="margin-top: -1px;"> <table id="checkDataGridList"></table> </div> <div title="(???)??????" style="margin-top: -1px;"> <table id="holdDataGridList"></table> </div> <div title="z3950???" style="margin-top: -1px;"> <table id="z3950DataGridList"></table> </div> <div title="???????????" style="margin-top: -1px;"> <table id="rfidDataGridList"></table> </div> </div> <script type="text/javascript"> var tabGrid_title = "(???)"; var tabsGridController = function() {}; tabsGridController.prototype.acqSelect = function(index, rowData) { if (!isUpdateByLibcode(rowData.libcode)) { _linkbuttonObj.prototype.status(true); } else { _linkbuttonObj.prototype.status(false); } bibController.prototype.setDataByGirdSelect(rowData.id); }; tabsGridController.prototype.initAcqGrid = function() { var acqGridObject = $("#acqDataGridList"); if (!acqGridObject.attr("class")) { acqGridObject.datagrid({ iconCls : 'e-icon fa fa-table', title : '', singleSelect : true, fit : true, fitColumns : true, pagination : true, striped : true, rowStyler : rowStylerIsUpdateByLibcode, onSelect : tabsGridController.prototype.acqSelect, onHeaderContextMenu : function(e, field) { e.preventDefault(); if (!bindTableMenu) { createColumnMenu(acqGridObject); } bindTableMenu.menu('show', { left : e.pageX, top : e.pageY }); }, columns : [ bibGridColumns ] }); } } tabsGridController.prototype.centerSelect = function(index, rowData){ /* if(!isUpdateByLibcode(rowData.libcode)) { $('#centerOrderBibRecord').linkbutton({ disabled:true }); $('#centerCheckBibRecord').linkbutton({ disabled:true }); }else{ $('#centerOrderBibRecord').linkbutton({ disabled:false }); $('#centerCheckBibRecord').linkbutton({ disabled:false }); } $("#centerOrderBibRecord").show(); $("#centerCheckBibRecord").show(); $("#centerOrderCheckBibRecord").show(); */ selectCenterBibId = rowData.id; $(".showBibGrid-tip").html("??????????"+rowData.id+"??"); bibGlobalController.prototype.loadEidtGridByPost(selectCenterBibId,"centerDataGridDetail"); bibCenterController.prototype.title("??????????????"); } tabsGridController.prototype.initOtherGrid = function(){ var centerGridObject = $("#centerDataGridList"); if (!centerGridObject.attr("class")) { centerGridObject.datagrid({ iconCls : 'e-icon fa fa-table', title : '', singleSelect : true, fit : true, fitColumns : true, pagination : true, striped : true, rowStyler : rowStylerIsUpdateByLibcode, onSelect : tabsGridController.prototype.centerSelect, columns : [ bibGridColumns ] }); } var orderObject = $("#orderDataGridList"); if (!orderObject.attr("class")) { orderObject.datagrid({ iconCls : 'e-icon fa fa-table', title : '', singleSelect : true, fit : true, fitColumns : true, pagination : true, striped : true, rowStyler:rowStylerIsUpdateByLibcode, columns : [ orderGridColumns ] }); if(vType == "order" || vType == "com"){ orderObject.datagrid({ onDblClickRow:updateOrderBib, onSelect:selectOrderBib }); } } var checkObject = $("#checkDataGridList"); if (!checkObject.attr("class")) { checkObject.datagrid({ iconCls : 'e-icon fa fa-table', title : '', singleSelect : true, fit : true, fitColumns : true, pagination : true, striped : true, rowStyler : rowStylerIsUpdateByLibcode, columns : [ checkGridColumns ] }); if(vType == "check" || vType == "tobookcheck" || vType == "com"){ mystorage.remove("callNoItemList"); mystorage.remove("barcodeItemList"); $("#checkDataGridList").datagrid({ onDblClickRow:updateCheckBib, onSelect:selectCheckBib }); $("#orderDataGridList").datagrid({ onSelect:onSelectOrderDataGridList }); } } var holdObject = $("#holdDataGridList"); var holdObject = $("#holdDataGridList"); if (!holdObject.attr("class")) { holdObject.datagrid({ iconCls : 'e-icon fa fa-table', title : '', singleSelect : true, fit : true, fitColumns : true, pagination : true, striped : true, /* rowStyler : rowStylerIsUpdateByLibcode, onSelect : tabsGridController.prototype.centerSelect, */ columns : [ holdGridColumns ] }); } } tabsGridController.prototype.tabsGridSelect = function(title,index) { var id = selectEditBibId; if(tabGrid_title == "(???)"){ id = selectCenterBibId; } _linkbuttonObj.prototype.setToolBar(index); if(id > 0){ var vTitle = null; if (index == 0) { tabGrid_title = "(???)"; } if (index == 1) { tabGrid_title = "(???)"; } var type = "order"; if (index == 2) { vTitle = "???"; } else if (index == 3) { type = "check"; vTitle = "???"; } else if (index == 4) { type = "hold"; vTitle = "???"; } else if (index == 5) { } tabsGridController.prototype.setTitle(index, type, vTitle,id); } } tabsGridController.prototype.setTitle = function(index,type,title,id){ bibGlobalController.prototype.loadGridData(id,type); if(title){ var vtabToTitle = tabGrid_title + title + "???"; var tab = $('#tabsGrid').tabs('getTab', index); $('#tabsGrid').tabs('update', { tab : tab, options : { title : vtabToTitle } }); }else{ if(index == 0 || index == 1){ var titleArr = ["","","???","???","???"]; for(var k =2;k <= 4;k++){ var vtabToTitle = tabGrid_title + titleArr[k] + "???"; var tab = $('#tabsGrid').tabs('getTab', k); $('#tabsGrid').tabs('update', { tab : tab, options : { title : vtabToTitle } }); } } } } /* tabsGridController.prototype.updateTitle = function(index, total) { var tab = $('#tabsGrid').tabs('getTab', index); // ??????????? $('#tabsGrid').tabs('update', { tab : tab, options : { title : '???????(<span style="color:red;">' + data.total + '</span>)' } }); } */ function chckeHoldListByFilter(type){ var id = selectEditBibId; if(tabGrid_title == "(???)"){ id = selectCenterBibId; } if(id>0){ var vSelectIndex = 0; var row = $("#holdDataGridList").datagrid('getSelected'); if(row){ vSelectIndex = $("#holdDataGridList").datagrid('getRowIndex',row); } var url = base_path+'hld/holding/page.do'; var param = {}; param.bibid=id; param.rows=10; param.page=1; param.orderBy=" id desc "; if(type == 0){ param.libcode = vLibcode; } $("#holdDataGridList").datagrid({ url: url, queryParams:param, onLoadSuccess: function(data){ if(data.total > 0 && data.total > vSelectIndex){ $("#holdDataGridList").datagrid('selectRow',vSelectIndex); }else if(data.total > 0){ $("#holdDataGridList").datagrid('selectRow',0); } }, method:"post" }); } } $(function() { tabsGridController.prototype.initAcqGrid(); $('#tabsGrid').tabs({ onSelect : tabsGridController.prototype.tabsGridSelect }); $('#tabsGrid').tabs('resize'); }); </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de