Edit D:\rfid\apache-tomcat-8.5.32\webapps\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:"bindtype",name:"??????",param:[{key:"bindtype"}]},{code:"senddate",name:"??????",data:[{code:"20180101",name:"??????"}]},{code:"callno",name:"?????"},{code:"price",name:"???????"},{code:"totalprice",name:"???????"},{code:"shelfno",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;var countPerviewNum=0;$(function(){initFormatDesignGrid();setCurImportDataGridHeight(350);var b=[{code:"libcode,curlibcode",key:"libcode",condition:"code",value:vLibcode},{code:"doctype",key:"doctype",condition:"libcode",value:vLibcode},{code:"location,curlocation",key:"location",condition:"libcode",value:vLibcode}];_myPage.prototype.initData(b);var a=mystorage.get("lowerlibcode")+",";initEventForCondition();console.log(a)});_myPage.prototype.initPageByParam=function(){initBatchnoForHold("smcheckbatchno","1");initBatchnoForHold("qkcheckbatchno","3")};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){countPerviewNum=d.total;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 initBatchnoForHold(d,c){var e={page:"1",rows:"500"};var a=0;e["limit["+a+"].condition"]="status";e["limit["+a+"].typeHandler"]="0";e["limit["+a+"].value"]="0";a++;e["limit["+a+"].condition"]="libcode";e["limit["+a+"].typeHandler"]="3";e["limit["+a+"].value"]=getLibLimitForNoLimitLib();a++;e["limit["+a+"].condition"]="type";e["limit["+a+"].typeHandler"]="0";e["limit["+a+"].value"]=c;a++;e.orderBy=" libcode desc ";var b=base_path+"par/batchno/list.do";$.post(b,e,function(m){var l=[];for(var h=0;h<m.rows.length;h++){var k=_fmtGridDataRows.rows[0].libcode;for(var f=0;f<k.length;f++){if(k[f].code==m.rows[h].libcode.split("|")[0]){var g={code:""+m.rows[h].code+"",name:""+m.rows[h].code+"",group:""+k[f].name+""};l.push(g);break}}}var n="auto";if(m.rows.length>10){n="200px"}$("#"+d).combobox({data:l,valueField:"code",textField:"name",panelHeight:n,groupField:"group",loadFilter:function(i){var j={};j.code="";j.name="??????";i.splice(0,0,j);return i},onLoadSuccess:function(){$(this).combobox("select","")}})},"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}var f=getValue("smcheckbatchno");if(f.length>0){b["limit[21].condition"]="checkid";b["limit[21].typeHandler"]="3";b["limit[21].value"]="(select id from LIB_ACQ_CHECK where BATCHNO in '"+f+"')"}var e=getValue("qkcheckbatchno");if(e.length>0){b["limit[21].condition"]="checkid";b["limit[21].typeHandler"]="3";b["limit[21].value"]="(select id from LIB_PER_CHECK where BATCHNO in '"+e+"')"}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:"shelfno",code:"shelfno",name:"?????"},{field:"bindtype",code:"binding",name:"??????"},{field:"docsources",code:"docsources",name:"??????"},{field:"mediatype",code:"mediatype",name:"??????"},{field:"volumenum",code:"volumenum",name:"?????"},{field:"assetno",code:"assetno",name:"?????"},{field:"volumeinfo",code:"volumeinfo",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(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;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