Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\periodical\js\per_bind.js
var initJson;var checkdetailId;var checkdetailIdx;var checkdetailData;var eidtorAutoBindGridObject=undefined;var eidtorAutoBindGridIndex=undefined;var perBindController=function(){};$(function(){perBindController.prototype.init();perBindController.prototype.bind()});perBindController.prototype.bind=function(){$("#tabsLeftGrid").tabs({onSelect:tabsLeftGridController.prototype.tabsGridSelect})};var tabsLeftGridController=function(){};tabsLeftGridController.prototype.tabsGridSelect=function(c,a){if(a==1){var b=$("#acqDataGridList").datagrid("getSelected");if(b){if($("#editBibGrid").attr("class")){bibController.prototype.setDataByGirdSelect(b.id)}else{setTimeout(function(){bibController.prototype.setDataByGirdSelect(b.id)},500)}_linkbuttonObj.prototype.status(null,b)}}};function initEditGridViewByTabsLeftGrid(){bibController.prototype.initEditGridView()}perBindController.prototype.init=function(){initJson=[{code:"page_sysid",key:"sysid",condition:"type",value:vType,linkage:[{code:"page_template",key:"template",condition:"sysid",callfun:"templateApp"}]},{code:"page_ctrlno",key:"ctrlno",condition:"libcode",value:vLibcode},{code:"page_z3950",key:"z3950",condition:"libcode",value:vLibcode},{code:"page_editmodel",key:"editmodel"},{code:"page_finsources",key:"finsources"},{code:"page_mediatype",key:"mediatype"},{code:"page_binding",key:"binding"},{code:"page_docsources",key:"docsources"},{code:"page_ncy",key:"ncy"},{code:"page_bookseller",key:"bookseller",condition:"libcode",value:vLibcode},{code:"page_location,location",key:"location",condition:"libcode",value:vLibcode},{code:"page_doctype,doctype",key:"doctype",condition:"libcode",value:vLibcode},{code:"page_pertype",key:"pertype"},{code:"acqstatus",key:"acqstatus"},{code:"operid",key:"operid"},{code:"libcodeSelect",key:"libcode",condition:"code",value:vLibcode},{code:"frequency",key:"frequency",fmt:"entity"},{code:"ordertype",key:"perordertype"},{code:"status",key:"percheckstatus"}];_myPage.prototype.getLoadData(initJson);perBindController.prototype.initAcqGrid();renderControllerView.prototype.batchNoByParam("orderbatchno","2","?????????");var a=$(window).height();var b=a-80;$(".per-com-layout-div").css("height",b+"px");$("#perBindLayOut").layout("resize");getLayWHByResize("perBindLayOut")};_myPage.prototype.getLoadSuccess=function(a,b){mystorage.set("per_init_data",a);_fmtGridDataRows=a;perComSearch.prototype.init()};perBindController.prototype.initAcqGrid=function(){var a=$("#acqDataGridList");if(!a.attr("class")){a.datagrid({singleSelect:true,fit:true,fitColumns:true,pagination:true,striped:true,border:false,rowStyler:rowStylerIsUpdateByLibcode,onSelect:perBindController.prototype.acqSelect,onDblClickRow:perBindController.prototype.onDblClickRow,onHeaderContextMenu:function(f,d){f.preventDefault();if(!bindTableMenu){createColumnMenu(a)}bindTableMenu.menu("show",{left:f.pageX,top:f.pageY})},columns:[bibGridColumns]});$("#acqDataGridList").datagrid("showColumn","orderno");$("#acqDataGridList").datagrid("showColumn","unifiedno");$("#acqDataGridList").datagrid("showColumn","hxqk");var c=$("#acqDataGridList").datagrid("getColumnOption","title");c.title="???";var b=$("#acqDataGridList").datagrid("getColumnOption","isbn");b.title="ISSN??"}};perBindController.prototype.acqSelect=function(a,b){if(!isUpdateByLibcode(b.libcode)){_linkbuttonObj.prototype.status(true,b)}else{_linkbuttonObj.prototype.status(false,b)}bibGlobalController.prototype.loadGridData(b.id,"bind",vType,"tabsGrid",0,"??????","batchno");bibGlobalController.prototype.loadGridData(b.id,"hold",vType,"tabsGrid",1,"???")};bibGlobalController.prototype.loadGridData=function(c,m,k,h,d,n,i){if(c>0){var g=0;var o=$("#"+m+"DataGridList").datagrid("getSelected");if(o){g=$("#"+m+"DataGridList").datagrid("getRowIndex",o)}var b=base_path+"acq/"+m+"/list.do";if(k&&k==1){b=base_path+"per/"+m+"/list.do"}if(m=="hold"){b=base_path+"hld/holding/list.do"}var e={};e.rows=10;e.page=1;e.orderBy=" id desc ";var f=0;e["limit["+f+"].condition"]="bibid";e["limit["+f+"].value"]=c;f++;var a=getValue("bibindex");var j=getValue("keyword");if(i&&a=="BIND.BATCHNO"&&j){e["limit["+f+"].condition"]="batchno";e["limit["+f+"].value"]=j;f++}if($("#libcodeSelect").length>0){var l=getValue("libcodeSelect");if(l){e["limit["+f+"].condition"]="libcode";e["limit["+f+"].value"]=vLibcode;f++}else{e=getParamLibForNoLimitLib(e,f)}}$("#"+m+"DataGridList").datagrid({url:b,queryParams:e,onLoadSuccess:function(p){bibGlobalController.prototype.onLoadGridSuccess(m+"DataGridList",p,g);if(h&&n){bibGlobalController.prototype.updateTabsGridTitByIndex(h,d,n,p.total)}bibGlobalController.prototype.onLoadGridSuccessAfter(m,p)},method:"post"})}else{if(h&&n){bibGlobalController.prototype.updateTabsGridTitByIndex(h,d,n,0)}deleteGridData(""+m+"DataGridList")}};perBindController.prototype.onDblClickRow=function(b,a){$("#tabsLeftGrid").tabs("select",1);if($("#editBibGrid").attr("class")){bibController.prototype.setDataByGirdSelect(a.id)}else{setTimeout(function(){bibController.prototype.setDataByGirdSelect(a.id)},500)}_linkbuttonObj.prototype.status(null,a)};perBindController.prototype.clear=function(){selectEditBibId=0;if($("#editBibGrid").attr("class")){clearGridData("editBibGrid")}clearGridData("acqDataGridList,bindDataGridList,holdDataGridList")};perBindController.prototype.select=function(b,a){if(!isUpdateByLibcode(a.libcode)){$("#deleteOrderBib").linkbutton({disabled:true});$("#orderPerRecord1").linkbutton({disabled:true});$("#orderPerRecord2").linkbutton({disabled:true})}else{$("#deleteOrderBib").linkbutton({disabled:false});$("#orderPerRecord1").linkbutton({disabled:false});$("#orderPerRecord2").linkbutton({disabled:false})}};perBindController.prototype.add=function(c){var b=0;var e=0;if(!c){if(!cataConfigData&&!cataConfigData.check_batchno){return openMessageDlg("???????????,?????????????????????")}var d=$("#acqDataGridList").datagrid("getSelected");if(!d){return openMessageDlg("????????????????,??????")}if(!d.classno){return openMessageDlg("???????????????????????????,???????????????????????!")}b=d.id}else{b=c.bibid;e=c.id}var a="??????";if($(".perbindhandlerFrame").html()==""){$(".perbindhandlerFrame").html('<iframe id="perbindhandlerFrame" name="perbindhandlerFrame" frameborder="0" src="../iframe/iframe_per_bindhandler.jsp?bibId='+b+"&id="+e+'" class="perbindhandler-iframe-content"></iframe>')}else{perbindhandlerFrame.perbindhandlerReLoadData(b,e)}$("#perbindhandler_dlg").dialog("setTitle",a);$("#perbindhandler_dlg").dialog("open")};perBindController.prototype.update=function(b,a){if(isUpdateByLibcode(a.libcode)){perBindController.prototype.add(a)}else{return openMessageDlg("??????????????")}};perBindController.prototype.edit=function(){var a=$("#bindDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("?????????¤?????????,?????????")}perBindController.prototype.add(a)};perBindController.prototype.trash=function(){var a=$("#bindDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("?????????¤?????????,??????")}$.messager.confirm("??????","???????????????["+a.id+"]??????????????",function(c){if(c){var d={};d.pk=a.id;var b=base_path+"per/bind/delete.do";$.post(b,d,function(e){if(e.status=="0"){openMessageDlg(e.message,5000);bibGlobalController.prototype.loadGridData(a.bibid,"bind",vType,"tabsGrid",0,"??????")}else{openMessageDlg(e.message)}},"json")}})};function perBindHandlerSaveResult(b,a){openMessageDlg(b.message,5000);bibGlobalController.prototype.loadGridData(a,"bind",vType,"tabsGrid",0,"??????");bibGlobalController.prototype.loadGridData(a,"hold",vType,"tabsGrid",1,"???");$("#perbindhandler_dlg").dialog("close");$("#tabsGrid").tabs("select",0)}perBindController.prototype.initOtherGrid=function(){var b=$("#bindDataGridList");if(!b.attr("class")){b.datagrid({iconCls:"e-icon fa fa-table",title:"",singleSelect:true,fit:true,fitColumns:true,pagination:true,striped:true,rowStyler:rowStylerIsUpdateByLibcode,columns:[bindGridColumns]});b.datagrid({onDblClickRow:perBindController.prototype.update,onSelect:perBindController.prototype.select})}var a=$("#holdDataGridList");if(!a.attr("class")){a.datagrid({iconCls:"e-icon fa fa-table",title:"",singleSelect:true,fit:true,fitColumns:true,pagination:true,striped:true,rowStyler:rowStylerIsUpdateByLibcode,columns:[holdGridColumns]})}};var tabsGridController=function(){};function onLoadBySouth(){perBindController.prototype.initOtherGrid();$("#tabsGrid").tabs({onSelect:tabsGridController.prototype.tabsGridSelect})}tabsGridController.prototype.tabsGridSelect=function(b,a){tabsGridController.prototype.tools(b,a)};tabsGridController.prototype.tools=function(b,a){$(".bind-tools").hide();$(".hold-tools").hide();if(a==0){$(".bind-tools").show()}if(a==1){$(".hold-tools").show()}$("#tabsGrid").tabs("resize")};bibController.prototype.set=function(){$("#pageconfig_setpara_dlg").dialog({onLoad:function(){perParamContorller.prototype.init();var a=$("#config-tabs");a.tabs("select",1).tabs("resize");$(".order_batchno").hide();$(".bind_batchno").hide();$(".per_check_batchno").hide();$(".print-content-list").hide()}}).dialog("open")};bibController.prototype.addOkBefore=function(){perBindController.prototype.clear();$("#tabsLeftGrid").tabs("select",1)};bibController.prototype.addOkAfter=function(a){setTimeout(function(){$("#editBibGrid").datagrid("loadData",a);bibController.prototype.addAttrCtrlNO()},300)};bibController.prototype.pasteBefore=function(){$("#tabsLeftGrid").tabs("select",1);if($("#editBibGrid").attr("class")){$("#pasteMarcDlg").dialog("open")}else{setTimeout(function(){$("#pasteMarcDlg").dialog("open")},500)}};bibController.prototype.clear=function(a){perBindController.prototype.clear()};bibController.prototype.searchPostAfter=function(b,a){updataGridBibFlag(b,"acqDataGridList");$("#tabsLeftGrid").tabs("select",0);$("#tabsGrid").tabs("select",0);bibGlobalController.prototype.onLoadGridSuccess("acqDataGridList",b,a)};function onResizeBySouth(b,a){if(a!=320){setLayWHByResize("perBindLayOut","south",b,a)}}function otherLayResizeToMy(){$(".easyui-panel").panel("resize");$("#perBindLayOut").layout("resize")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de