Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\periodical\js\lib_per_orderbatch.js
var fieldComBoxData=[{code:"libcode",name:"????????",param:[{key:"libcode",condition:"code",value:vLibcode}]},{code:"curlibcode",name:"????????",param:[{key:"curlibcode",condition:"code",value:vLibcode}]},{code:"doctype",name:"??????",param:[{key:"doctype",condition:"libcode",value:vLibcode}]},{code:"location",name:"??????????",param:[{key:"location",condition:"libcode",value:vLibcode}]},{code:"curlocation",name:"??????????",param:[{key:"curlocation",condition:"libcode",value:vLibcode}]},{code:"status",name:"???????",param:[{key:"hldstatus"}]},{code:"senddate",name:"??????",data:[{code:"20180101",name:"??????"}]},{code:"callno",name:"?????"},{code:"price",name:"???????"},{code:"totalprice",name:"???????"},{code:"shelfno",name:"?????"},{code:"volumeinfo",name:"??????"}];var fieldComBoxData=[{field:"lib_per_order.libcode",code:"libcode",name:globalLibName+"???",param:[{key:"libcode",condition:"code",value:vLibcode}]},{field:"lib_per_order.ordertype",code:"ordertype",name:"??????"},{field:"lib_per_order.orderno",code:"orderno",name:"?????"},{field:"lib_per_order.batchno",code:"batchno",name:"???"},{field:"lib_per_order.copies",code:"copies",name:"?????"},{field:"lib_per_order.ncy",code:"ncy",name:"?????"},{field:"lib_per_order.price",code:"price",name:"??????"},{field:"lib_per_order.orderncy",code:"orderncy",name:"??????"},{field:"lib_per_order.orderprice",code:"orderprice",name:"??????"},{field:"lib_per_order.yearprice",code:"yearprice",name:"??????"},{field:"lib_per_order.orderyear",code:"orderyear",name:"?????"},{field:"lib_per_order.docsources",code:"docsources",name:"??????",param:[{key:"docsources"}]},{field:"lib_per_order.finsources",code:"finsources",name:"??????",param:[{key:"finsources"}]},{field:"lib_per_order.mediatype",code:"mediatype",name:"??????",param:[{key:"mediatype"}]},{field:"lib_per_order.bookseller",code:"bookseller",name:"???????????",param:[{key:"bookseller"}]},{field:"lib_per_order.orderdate",code:"orderdate",name:"??????"},{field:"to_char(lib_per_order.operid)",code:"operid",name:"?????"},{field:"lib_per_order.issuenum",code:"issuenum",name:"???"},{field:"lib_per_order.frequency",code:"frequency",name:"??????"},{field:"lib_per_order.note",code:"note",name:"???"},{field:"lib_per_order.pertype",code:"pertype",name:"??????"},{field:"lib_per_order.shelfno",code:"shelfno",name:"?????"}];var jsonGridColumns=[{field:"field",title:"??????",width:"120",formatter:onShowJosnComBoxData,editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"200",required:true,editable:false,groupField:"group",data:fieldComBoxData,loadFilter:function(c){var b=[];for(var a=0;a<c.length;a++){if(c[a].code!="rdrno"&&c[a].code!="idcard"){b.push(c[a])}}return b},onChange:function(b,a){if(b!=undefined&&b!=a){setOtherFormatDesignBox(b)}}}}},{field:"defvalue",title:"?????",width:"80",editor:"textbox"},];var curPerviewIndex=1;var maxPerviewNum=undefined;var countPerviewNum=0;$(function(){initFormatDesignGrid();setCurImportDataGridHeight(350);var b=[{code:"libcode",key:"libcode",condition:"code",value:vLibcode},{code:"doctype",key:"doctype",condition:"libcode",value:vLibcode},{code:"curlocation",key:"location",condition:"libcode",value:vLibcode}];_myPage.prototype.initData(b);var a=mystorage.get("lowerlibcode")+",";initEventForCondition();console.log(a)});function setOtherFormatDesignBox(c){$(".otherFormatDesignPanelBody").html("?????");for(var b=0;b<fieldComBoxData.length;b++){if(c==fieldComBoxData[b].code){if(fieldComBoxData[b].param){var d=fieldComBoxData[b].param[0];var a=base_path+"par/common/getInitData.do";$.post(a,d,function(e){setOtherFormatDesignPanelBodyHtml(e.rows)},"json")}else{if(fieldComBoxData[b].data){setOtherFormatDesignPanelBodyHtml(fieldComBoxData[b].data)}}}}}function setOtherFormatDesignPanelBodyHtml(c){if(c.length>0){var b="";for(var a=0;a<c.length;a++){b+="<div class='div-book-record'><a href=\"JavaScript:onInitEidtorGridDefaultValue('"+c[a].code+'\')" style="text-decoration:none;cursor:pointer;">'+c[a].code+"|"+c[a].name+"</a></div>"}$(".otherFormatDesignPanelBody").html(b)}}function onInitEidtorGridDefaultValue(a){var b=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"defvalue"});$(b.target).textbox("setValue",a)}function initFormatDesignGrid(){eidtorGridObject=$("#setFldHandlerGrid");eidtorGridObject.datagrid({iconCls:"e-icon fa fa-cog",fit:true,title:"????????????",fitColumns:true,singleSelect:true,border:false,nowrap:false,striped:true,toolbar:toolbar,onClickRow:onClickEditorRow,columns:[jsonGridColumns]})}function onPerviewData(d){$("#showPerviewOrgMarcData").html("");$("#showPerviewTagMarcData").html("");var b=getCurPageRecord();if(!b){return openMessageDlg("????????????????????")}if(b.opertype=="0"){acceptEidtorGrid();var a=eidtorGridObject.datagrid("getRows");if(a.length==0){return openMessageDlg("?????????????????")}}if(b){if(d){curPerviewIndex=d}else{curPerviewIndex=1}b.index=curPerviewIndex;var c=base_path+"com/handlebatch/previewPerOrder.do";$.post(c,b,function(e){countPerviewNum=e.total;if(e.status=="0"){setDataToPageShowPerview(e)}else{if(e.status=="9003"){maxPerviewNum="max";openMessageDlg(e.message)}else{if(e.total>0){curPerviewIndex=e.total+1}openMessageDlg(e.message)}}},"json")}}function getCurPageRecord(){var b=getJsonDataByTypeHandler();if(!b||!b["limit[0].value"]){return null}var c=getSqlConditionInByLibcode();if(c.length>0){b["limit[20].condition"]="libcode";b["limit[20].typeHandler"]="3";b["limit[20].value"]=c}b.opertype=getValue("opertype");if(b.opertype=="0"){acceptEidtorGrid();var a=eidtorGridObject.datagrid("getRows");for(var d=0;d<a.length;d++){b[""+a[d].field+""]=a[d].defvalue}}return b}function setDataToPageShowPerview(c){var l=eidtorGridObject.datagrid("getRows");var g=[{field:"id",code:"id",name:"????????"},{field:"bibid",code:"bibid",name:"????????"},{field:"libcode",code:"libcode",name:globalLibName+"???"},{field:"batchno",code:"batchno",name:"???"},{field:"copies",code:"copies",name:"?????"},{field:"ncy",code:"ncy",name:"?????"},{field:"price",code:"acqprice",name:"???"},{field:"yearprice",code:"yearprice",name:"???"},{field:"orderprice",code:"orderprice",name:"??????"},{field:"orderno",code:"orderno",name:"?????"},{field:"batchno",code:"batchno",name:"???"},{field:"orderncy",code:"orderncy",name:"??????"},{field:"binding",code:"binding",name:"??????"},{field:"docsources",code:"docsources",name:"??????"},{field:"finsources",code:"finsources",name:"??????"},{field:"mediatype",code:"mediatype",name:"??????"},{field:"bookseller",code:"bookseller",name:"???????????"},{field:"orderdate",code:"orderdate",name:"??????"},{field:"operid",code:"operid",name:"?????"},{field:"publisher",code:"publisher",name:"?????"},{field:"frequency",code:"frequency",name:"??????"},{field:"issuenum",code:"issuenum",name:"???"},{field:"shelfno",code:"shelfno",name:"?????"},{field:"pattachment",code:"pattachment",name:"???"},{field:"ordertype",code:"ordertype",name:"??????"},{field:"orderyear",code:"orderyear",name:"?????"},{field:"note",code:"note",name:"???"}];var j=c.rows[0];if(j){var f=j.oldrecord;var e="<div class='div-book-record'>???????"+countPerviewNum+"???,??????????"+curPerviewIndex+"???</div>";for(var d=0;d<g.length;d++){if(f[g[d].field]){e+="<div class='div-book-record'>"+g[d].name+":"+f[g[d].field]+"</div>"}}$("#showPerviewOrgMarcData").html(e);if(j.newrecord){e="<div class='div-book-record'>"+curPerviewIndex+"</div>";if(typeof(j.newrecord)=="string"){e+="<div class='div-book-record'>"+j.newrecord+"</div>"}else{var h=j.newrecord;for(var d=0;d<g.length;d++){if(h[g[d].field]){var b="";for(var a=0;a<l.length;a++){if(g[d].field==l[a].field){b="color:red";break}}e+="<div class='div-book-record' style='"+b+"'>"+g[d].name+":"+h[g[d].field]+"</div>"}}}$("#showPerviewTagMarcData").html(e)}}}function onPerviewNextData(){if(maxPerviewNum){return openMessageDlg("??????????¤????")}if(curPerviewIndex<500){onPerviewData(curPerviewIndex+1)}else{openMessageDlg("????????500??")}}function onPerviewPrevData(){if(curPerviewIndex>1){onPerviewData(curPerviewIndex-1);maxPerviewNum=undefined}else{openMessageDlg("???????????")}}function onHandlerBacth(b){var c=getCurPageRecord();if(!c){return openMessageDlg("????????????????????")}if(c.opertype=="0"){acceptEidtorGrid();var a=eidtorGridObject.datagrid("getRows");if(a.length==0){return openMessageDlg("?????????????????")}}if(b){onBacthMianFun(b,c)}else{$.messager.confirm("??????","??????????????????",function(d){if(d){onBacthMianFun(b,c)}})}}function checkErrorFile(){var c=base_path+"com/webuploader/download.do?filename="+errorfile;var b=window.open(c)}function onBacthMianFun(a,c){$(".error-msg-result").html("");if(!a){errorcount=0;handlecount=0;successcount=0;$.messager.progress({title:"????????",msg:"?????????,?????..."})}if(a){c=a}else{c.rows=200;c.page=1}var b=base_path+"com/handlebatch/executePerOrder.do";$.post(b,c,function(d){$.messager.progress("close");if(d.status=="0"){var e=d.rows[0];if(e){errorfile=e.errorfile;errorcount+=e.errorcount;handlecount+=e.handlecount;successcount+=e.successcount;if(e.nextpage&&e.nextpage>0){$.messager.progress({title:"????????",msg:"?????"+handlecount+"]?????,???["+successcount+"]??,???["+errorcount+"]??,??????????? ..."});c.page=e.nextpage;c.errorfile=e.errorfile;onHandlerBacth(c)}else{$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open")}}else{openMessageDlg(d.message)}}else{openMessageDlg(d.message)}},"json").error(function(){$(".error-msg-result").html("?????????????,???????????!");$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open");$.messager.progress("close")})}function setCurImportDataGridHeight(b){var a=$(window).height();var c=a-b;$(".import-data-div").css("height",c+"px");$("#perviewlayout").layout("resize");$(".acceptTextTip").hide()};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de