Edit D:\rfid\libsystem\page\collection\js\holdtransfers.js
var jsonFormatDesign={code:"I_HLDIMPORTDATA"};var holdId=0;var holdrow=undefined;var datafilename;$(function(){autoPanle();setInitPageElementData();$("#barcode").textbox("textbox").focus();$(".easyui-panel-resize").panel("resize");enterEvent("barcode",onHandlerRecord)});function autoPanle(){var a=$(window).height();var b=a-(126+340);$(".datagrid-div").css("height",b+"px");$("#holdDataGridList").datagrid("resize")}function setInitPageElementData(){var d=[{code:"tagdoctype",key:"doctype"},{code:"orglibcode",key:"curlibcode"}];commonSetParaInit(null,"record",null,d);var c={key:"libcode"};initPageDataSingleElement("taglibcode",c,null);var a={key:"curlocation"};initPageDataSingleElement("taglocation",a,null);var b=[{id:"taglocation",key:"curlocation",condition:"libcode",value:vLibcode},{id:"tagdoctype",key:"doctype",condition:"libcode",value:vLibcode}];initNextSelectCombobox("taglibcode",b)}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 onHandlerMian(c){if(c>0){var a={};a.id=c;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")==0){a.libcode=getValue("taglibcode")}var b=base_path+"hld/holding/handleHolding.do";$.post(b,a,function(d){if(d.status=="0"){showHoldHandlerResult(d,a)}else{openMessageDlg(d.message)}},"json")}else{openMessageDlg("????????????")}}function showHoldHandlerResult(d,a){var c="";var b="";var e=d.rows[0];c="??????";b=c+"???"+getHoldOtherInfo(e,a);$(".hold-result-data").append("<div class='div-book-record'>"+b+"</div>")}function getHoldOtherInfo(c,a){var b="";if(a.curlibcode){b+=",??????["+getCurLibcodeNameByCode(holdrow.curlibcode)+"]???["+getCurLibcodeNameByCode(c.curlibcode)+"]"}if(a.curlocation){b+=",????????"+getCurLocationNameByCode(holdrow.curlocation)+"]???["+getCurLocationNameByCode(c.curlocation)+"]"}if(a.doctype){b+=",????????"+getDocTypeNameByCode(holdrow.doctype)+"]???["+getDocTypeNameByCode(c.doctype)+"]"}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")}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de