Edit D:\rfid\libsystem\page\periodical\js\per_batchorder.js
var initflag;var initJson;var checkedItems=[];$(function(){initflag="page_,";initJson=[{key:"sysid",condition:"type",value:"1"},{key:"ctrlno",condition:"libcode",value:vLibcode},{key:"z3950",condition:"libcode",value:vLibcode},{key:"bookseller",condition:"libcode",value:vLibcode},{key:"location",condition:"libcode",value:vLibcode},{key:"doctype",condition:"libcode",value:vLibcode},{key:"libcode",condition:"code",value:vLibcode}];commonSetParaInit(initflag,null,"all",initJson);$("#orderDataGridList").datagrid({idField:"id",onCheck:function(b,a){addcheckItem()},onUncheck:function(b,a){removeSingleItem(b,a)},onCheckAll:function(a){addcheckItem()},onUncheckAll:function(a){removeAllItem(a)}});getPageConfig("page_type",callSetParaResult);initShowPageInfo()});function initShowPageInfo(){$(".bind_batchno").hide();$(".check_batchno").hide();$("#config-tabs").tabs("select",1);var a=$(window).height();var b=a-86;$(".order-bacth-box").css("height",b+"px");$("#tabsGrid").tabs("resize")}function orderBacthRecord(b){var a=base_path+"per/order/renewSelective.do";if(b=="1"){a=base_path+"per/order/renewAll.do"}var c=getParamData();if(b=="2"){c.ordertype="2"}if(b!="1"){c.ids=checkedItems.join(",");if(!c.ids){return openMessageDlg("?????????????????")}}onHnadlerSvaeBntScreen(null,true);$.post(a,c,function(d){onHnadlerSvaeBntScreen(null,false);console.log(d);if(d.status=="0"){serachOrderBib();openMessageDlg(d.message+"?????"+d.rows[0]+"?????")}else{openMessageDlg(d.message)}},"json")}function ischeckItem(){for(var a=0;a<checkedItems.length;a++){$("#orderDataGridList").datagrid("selectRecord",checkedItems[a])}}function findCheckedItem(a){for(var b=0;b<checkedItems.length;b++){if(checkedItems[b]==a){return b}}return -1}function addcheckItem(){var b=$("#orderDataGridList").datagrid("getChecked");for(var a=0;a<b.length;a++){if(findCheckedItem(b[a].id)==-1){checkedItems.push(b[a].id)}}}function removeAllItem(c){for(var b=0;b<c.length;b++){var a=findCheckedItem(c[b].id);if(a!=-1){checkedItems.splice(b,1)}}}function removeSingleItem(c,b){var a=findCheckedItem(b.id);if(a!=-1){checkedItems.splice(a,1)}}function serachOrderBib(){var a=base_path+"per/order/listRenewBatch.do";var b={};if(getValue("page_orderyear").length==0){return openMessageDlg("???????????????,????????????")}var b=getParamData();b.orderyear=getValue("page_orderyear");if(getValue("perindex").length>0&&getValue("keyword").length>0){b[""+getValue("perindex")+""]=getValue("keyword")}$("#orderDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){},method:"post"})}function getParamData(){var a={};a.orderyear=getValue("page_orderyear");if(getValue("perindex").length>0&&getValue("keyword").length>0){a[""+getValue("perindex")+""]=getValue("keyword")}return a}function callSetParaResult(c){if(c.status=="0"){var b=c.rows[0];var a=JSON.parse(b.paramjson);if(a.sysid){setJsonData("page_",a);$(".orderyear").html(a.orderyear)}}else{openMessageDlg("???????????????,???????????")}}function setPerPara(){$("#pageconfig_setpara_dlg").dialog("open")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de