Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\collection\js\holdtransfers.js
var jsonFormatDesign={code:"I_HLDIMPORTDATA"};var holdId=0;var holdrow=undefined;var datafilename;var vType=5;$(function(){autoPanle();setInitPageElementData();$("#barcode").textbox("textbox").focus();$(".easyui-panel-resize").panel("resize");enterEvent("barcode",onHandlerRecord);getLayWHByResize("hldTreansLayOut");enterEvent("checkPrintBarcode",searchHoldRecord)});function autoPanle(){var a=$(window).height();var b=a-170;$(".datagrid-div").css("height",b+"px");$("#hldTreansLayOut").layout("resize")}function onMoreBarHandler(){$("#checkPrintDlg").window("open")}function searchHoldRecord(){var a=base_path+"hld/holding/getHoldingWithBib.do";var b={};if(getValue("checkPrintBarcode").length==0){getFocusHoldins();return openMessageDlg("???????????")}b.barcode=getValue("checkPrintBarcode");$.post(a,b,function(e){if(e.status=="0"){var f=e.rows[0];var c=$("#checkPrintGridList").datagrid("getRows");for(var d in c){if(c[d].barcode==f.barcode){getFocusHoldins();return openMessageDlg("?????"+b.barcode+"]???????????,?????????")}}$("#checkPrintGridList").datagrid("insertRow",{index:0,row:f});$("#checkPrintGridList").datagrid("checkRow",0);getFocusHoldins()}else{openMessageDlg(e.message);getFocusHoldins()}},"json")}function onUnCheckList(){var c=$("#checkPrintGridList").datagrid("getRows");var h=$("#checkPrintGridList").datagrid("getChecked");$("#checkPrintGridList").datagrid("uncheckAll");var f=c.length;var b=h.length;var a=new Array();for(var e=0;e<f;e++){var g=new Array();for(var d=0;d<b;d++){if(c[e]==h[d]){break}else{g[g.length]=h[d]}}if(g.length==b){$("#checkPrintGridList").datagrid("checkRow",e)}}}function getFocusHoldins(){$("#checkPrintBarcode").textbox("textbox").focus().select()}function onClearGridData(){$("#checkPrintGridList").datagrid("loadData",[])}function setInitPageElementData(){var b=[{code:"tagdoctype",key:"doctype"},{code:"orglibcode",key:"curlibcode"},{code:"taglibcode",key:"libcode"},{code:"taglocation",key:"curlocation"}];_myPage.prototype.initData(b);var a=[{id:"taglocation",key:"curlocation",condition:"libcode",value:vLibcode},{id:"tagdoctype",key:"doctype",condition:"libcode",value:vLibcode}];initNextSelectCombobox("taglibcode",a)}_myPage.prototype.onLoadSuccess=function(a,b){_fmtGridDataRows=a};function onHandlerRecord(){if(getValue("barcode").length==0){return openMessageDlg("???????????")}var a=getValue("barcode");if(a.length>=0){$(".bib-html-data").html("");deleteGridData("holdDataGridList");var b=base_path+"hld/holding/getCheckHoldBarcode.do";var c={};c.barcode=a;$.post(b,c,function(d){if(d.status=="0"){if(d.total>0){holdId=d.rows[0].id;holdrow=d.rows[0];bindDataGridListByBibId(d.rows[0].bibid,"hold");bindDataToBiBByBibId(d.rows[0].bibid);var e=["","","???","???/????"];if(holdrow.status=="2"||holdrow.status=="3"){return openMessageDlg("??????["+e[parseInt(holdrow.status)]+"]????,????????????")}onHandlerMian(holdId)}else{return openMessageDlg("??????????????")}}else{openMessageDlg(d.message)}},"json")}}function onMoreBarChangeData(){var a=$("#checkPrintGridList").datagrid("getChecked");if(a.length==0){return openMessageDlg("????????????????!")}startBarChange(a,0)}function startBarChange(b,a){if(a>(b.length-1)){return}holdrow=b[a];onHandlerMian(b[a].id,b,a)}function onHandlerMian(e,d,c){if(e>0){var a={};a.id=e;a.handletype="5";if(getValue("taglibcode").length>0){a.curlibcode=getValue("taglibcode")}if(getValue("taglocation").length>0){a.curlocation=getValue("taglocation")}if(getValue("tagdoctype").length>0){a.doctype=getValue("tagdoctype")}if(getValue("changelibcode")=="1"){a.libcode=getValue("taglibcode");a.location=getValue("taglocation")}var b=base_path+"hld/holding/handleHolding.do";$.post(b,a,function(f){if(f.status=="0"){if(c!=undefined){updateMoreBarGrid(f,a,d,c,"???");c++;startBarChange(d,c)}else{showHoldHandlerResult(f,a)}}else{if(c!=undefined){updateMoreBarGrid(f,a,d,c,addStyleHtmlNoSplit(f.message));c++;startBarChange(d,c)}else{openMessageDlg(f.message)}}},"json")}else{openMessageDlg("????????????")}}function updateMoreBarGrid(b,e,h,a,i){var c="";var d="";var k=b.rows[0];c="??????";var g="";if(k){d=c+i;g=k.curlocation}else{d=addStyleHtmlNoSplit(c+"???,"+i)}var f=h[a];var j=$("#checkPrintGridList").datagrid("getRowIndex",f);$("#checkPrintGridList").datagrid("updateRow",{index:j,row:{result:d,inlocation:g}})}function showHoldHandlerResult(d,a){var c="";var b="";var e=d.rows[0];c="??????";b=c+"???"+getHoldOtherInfo(e,a);$("#barcode").textbox("textbox").focus().select();$(".hold-result-data").append("<div class='div-book-record'>"+b+"</div>")}function getHoldOtherInfo(d,a,c){var b="";if(a.curlibcode){b+=",??????["+addStyleHtmlNoSplit(getCurLibcodeNameByCode(holdrow.curlibcode),c)+"]???["+addStyleHtmlNoSplitGreen(getCurLibcodeNameByCode(d.curlibcode),c)+"]"}if(a.curlocation){b+=",????????"+addStyleHtmlNoSplit(getCurLocationNameByCode(holdrow.curlocation),c)+"]???["+addStyleHtmlNoSplitGreen(getCurLocationNameByCode(d.curlocation),c)+"]"}if(a.doctype){b+=",????????"+addStyleHtmlNoSplit(getDocTypeNameByCode(holdrow.doctype),c)+"]???["+addStyleHtmlNoSplitGreen(getDocTypeNameByCode(d.doctype),c)+"]"}return b}function getCurLibcodeNameByCode(a){return onGridShowNameBycode("orglibcode",a)}function getCurLocationNameByCode(a){return onGridShowNameBycode("taglocation",a)}function getDocTypeNameByCode(a){return onGridShowNameBycode("tagdoctype",a)}function bindDataToBiBByBibId(c){var a=base_path+"lib/biblios/get.do";var b={};b.id=c;$.post(a,b,function(d){if(d.status=="0"){setBibHtmlShow(d)}else{$(".bib-html-data").html(d.message)}},"json")}function setBibHtmlShow(d){var e=d.rows[0];var c="";var b=[{code:"title",name:"???"},{code:"author",name:"????"},{code:"isbn",name:"ISBN"},{code:"price",name:"???"},{code:"classno",name:"?????"},{code:"subject",name:"?????"},{code:"publish",name:"?????"},{code:"publishaddress",name:"?????"},{code:"publishdate",name:"?????"},{code:"callno",name:"?????"},{code:"content",name:"???????"}];for(var a=0;a<b.length;a++){c+="<div class='div-book-record'>"+b[a].name+":"+(e[b[a].code]==null?"":e[b[a].code])+"</div>"}$(".bib-html-data").html(c)}function bindDataGridListByBibId(a,c){if(a>0){var b=base_path+"hld/holding/page.do";var d={};d.bibid=a;d.rows=10;d.page=1;$("#"+c+"DataGridList").datagrid({url:b,queryParams:d,onLoadSuccess:function(e){},method:"post"})}else{deleteGridData(""+c+"DataGridList")}}function onHldBacthHandler(){$(".acceptTextTip").show();$(".acceptTextTip").html("????????????????xt???,??????????");$("#hldBatchDlg").window("open")}function onPerviewData(c){$("#showPerviewOrgMarcData").html("");if(datafilename){var a=getJsonData("batch_","record");a.filename=datafilename.filelist[0];var b=base_path+"com/webuploader/perviewTextData.do";$.post(b,a,function(d){if(d.status=="0"){setDataToPageShowPerview(d)}else{if(d.status=="9003"){openMessageDlg(d.message)}else{openMessageDlg(d.message)}}},"json")}else{openMessageDlg("?????????????????")}}function setDataToPageShowPerview(d){var c=d.rows;if(c.length>0){var b="";for(var a=0;a<c.length;a++){b+="<div class='div-book-record'><strong>"+(a+1)+"</strong>,"+c[a]+"</div>"}$("#showPerviewOrgMarcData").html(b)}}function onStartHldBatch(a){$(".error-msg-result").html("");if(datafilename){if(!a){$.messager.progress({title:"????????",msg:"?????????,?????..."})}var c=getJsonData("","record");if(a){c=a}else{errorcount=0;handlecount=0;successcount=0;c.opertype=vType;c.filename=datafilename.filelist[0];c.page=1;c.rows=500}c.curlibcode=c.taglibcode;c.curlocation=c.taglocation;c.doctype=c.tagdoctype;if(c.changelibcode=="1"){c.libcode=c.taglibcode;c.location=c.taglocation}var b=base_path+"hld/holding/handleHoldingByFile.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;successcount+=e.successcount;handlecount+=parseInt(e.handlecount);if(e.nextfile){$.messager.progress({title:"????????",msg:"?????"+handlecount+"]?????,??????????? ..."});c.errorfile=e.errorfile;c.filename=e.nextfile;onStartHldBatch(c)}else{$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open")}}}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")})}else{openMessageDlg("?????????????????")}}function onResetAcceptFormatDesignPage(){$(".acceptTextTip").show();$(".acceptTextTip").html("????????????????xt???,??????????");$("#showPerviewOrgMarcData").html("")}function uploadSuccessHandler(a,b){if(b.status==0){datafilename=b.rows[0]}else{openMessageDlg(b.message)}}function onResizeByNorth(b,a){if(a!=66){setLayWHByResize("hldTreansLayOut","north",b,a)}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de