Edit D:\rfid\libsystem\page\collection\js\holdbatch.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:"volumeinfo",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;$(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")+",";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(c){$("#showPerviewOrgMarcData").html("");$("#showPerviewTagMarcData").html("");var a=getCurPageRecord();if(!a){return openMessageDlg("????????????????????")}if(a){if(c){curPerviewIndex=c}else{curPerviewIndex=1}a.index=curPerviewIndex;var b=base_path+"com/handlebatch/previewHolding.do";$.post(b,a,function(d){if(d.status=="0"){setDataToPageShowPerview(d)}else{if(d.status=="9003"){maxPerviewNum="max";openMessageDlg(d.message)}else{if(d.total>0){curPerviewIndex=d.total+1}openMessageDlg(d.message)}}},"json")}}function getCurPageRecord(){var b=getJsonDataByTypeHandler();if(!b){return openMessageDlg("????????????????????")}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");if(a.length==0){return openMessageDlg("?????????????????")}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:"libcode",code:"libcode",name:"?????"},{field:"curlibcode",code:"curlibcode",name:"?????"},{field:"barcode",code:"barcode",name:"?????"},{field:"status",code:"hldstatus",name:"????"},{field:"callno",code:"callno",name:"?????"},{field:"senddate",code:"senddate",name:"??????"},{field:"price",code:"price",name:"???"},{field:"totalprice",code:"totalprice",name:"???"},{field:"doctype",code:"doctype",name:"??????"},{field:"location",code:"location",name:"??????????"},{field:"loandate",code:"loandate",name:"??????"},{field:"loantime",code:"loantime",name:"??????"},{field:"returndate",code:"returndate",name:"??????"},{field:"renewnum",code:"renewnum",name:"???????"},{field:"checkdate",code:"checkdate",name:"??????"},{field:"curlocation",code:"curlocation",name:"??????????"},{field:"bindtype",code:"binding",name:"??????"},{field:"docsources",code:"docsources",name:"??????"},{field:"mediatype",code:"mediatype",name:"??????"},{field:"volumenum",code:"volumenum",name:"?????"},{field:"volumeinfo",code:"volumeinfo",name:"??????"}];var j=c.rows[0];if(j){var f=j.oldrecord;var e="<div class='div-book-record'>"+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){var h=j.newrecord;e="<div class='div-book-record'>"+curPerviewIndex+"</div>";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(a){var b=getCurPageRecord();if(!b){return openMessageDlg("????????????????????")}if(a){onBacthMianFun(a,b)}else{$.messager.confirm("??????","??????????????????",function(c){if(c){onBacthMianFun(a,b)}})}}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/executeHolding.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;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