Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\iframe\js\iframe_checkbib.js
var eidtorGridObject=undefined;var eidtorGridIndex=undefined;var callNoItemList;var barcodeItemList;var autoBarRows;var autoAssetnoRows;var autoSelect=true;var holdToolbar=[{text:"???",iconCls:"e-icon fa fa-remove",handler:function(){removeitEidtorGridRow()}},"-",{text:"???",iconCls:"e-icon fa fa-repeat",handler:function(){$("#checkhold_eidtorgrid").datagrid("loadData",[])}},"-",{text:"?????????????????",iconCls:"e-icon fa fa-th-list",handler:function(){$("#checkhold_eidtorgrid").datagrid("loadData",[]);autoBarcodeByCopies()}},"-",{text:"?????????????????????",iconCls:"e-icon fa fa-bars",plain:false,handler:function(){$("#checkhold_eidtorgrid").datagrid("loadData",[]);autoBarcodeByCopiesGridList()}},"-",{text:"??arc??????????????????",iconCls:"e-icon fa fa-bars",plain:false,handler:function(){$("#checkhold_eidtorgrid").datagrid("loadData",[]);autoBarcodeByMarcFld()}}];var _checkBibObj=function(){};var _configData;var initJson;var auto_callno=null;var _initdata;var ncyAutoSelect=false;$(function(){getMyStorageItemData();_bibPVG.prototype.batchnoComBox("batchno",1,"bookseller",null,vLibcode);initJson=[{code:"finsources",key:"finsources"},{code:"mediatype",key:"mediatype"},{code:"binding",key:"binding"},{code:"docsources",key:"docsources"},{code:"ncy,orderncy",key:"ncy"},{code:"operid",key:"operid"},{code:"bookseller",key:"bookseller",condition:"libcode",value:vLibcode},{code:"libcode",key:"libcode",condition:"code",value:vLibcode},{code:"location",key:"location",condition:"libcode",value:vLibcode},{code:"doctype",key:"doctype",condition:"libcode",value:vLibcode}];initJson.forEach(function(f,g,h){if(_initdata.rows[0][f.key]){_myPage.prototype.setData(_initdata.rows[0][f.key],f)}});$(".easyui-panel").panel("resize");_checkBibObj.prototype.search();$("#barcode").textbox("textbox").keydown(function(f){if(f.keyCode==13){_checkBibObj.prototype.addHoldRecord()}}).bind("keyup",function(g){var f=JSON.parse(_configData.rows[0].paramjson);if(f.barcoderule&&f.barcoderule=="0"){$("#barcode").textbox("setValue",$(this).val().replace(/[^\d-]/g,""))}else{if(f.barcoderule&&f.barcoderule=="1"){$("#barcode").textbox("setValue",$(this).val().replace(/[^\dA-Za-z0-9-]/g,""))}}});enterEvent("callno",_checkBibObj.prototype.updataCallno);for(var e in tooltipJson){var c=tooltipJson[e];var d="<table class='table-box rdr-table-input'>";d+="<tr>";d+="<td>";d+=c.name+"??????:";d+="</td>";d+="</tr>";for(var b in c.tipList){d+="<tr>";d+="<td>";d+=c.tipList[b].data;d+="</td>";d+="</tr>"}d+="</table>";$("#"+c.code+"Tooltip").tooltip({content:d});_bibPVG.prototype.enterEvent(c.code,_bibPVG.prototype.setPriceApp)}$("#ncy,#orderncy").combobox({onChange:function(g,f){if(ncyAutoSelect){_bibPVG.prototype.getDataForPrice("");ncyAutoSelect=false}else{_bibPVG.prototype.getRateApp("")}},onClick:function(g,f){ncyAutoSelect=true}});var a={code:"location",unionlist:[{code:"defdoctype",orgcode:"doctype"}]};_myPage.prototype.initUnionShowByLocation(a);_myPage.prototype.initUnionLocationByLibcode()});function onOrderTotalPriceEnterFun(){var a=getValue("volumes");if(a>0){setValue("orderprice",parseFloat(getValue("ordertotalprice")/a).toFixed(2))}else{setValue("orderprice",getValue("ordertotalprice"))}}function onTotalPriceEnterFun(){var a=getValue("volumes");if(a>0){setValue("price",parseFloat(getValue("totalprice")/a).toFixed(2))}else{setValue("price",getValue("totalprice"))}_bibPVG.prototype.rate("")}function onPriceEnterFun(){var a=getValue("volumes");if(a>0){setValue("totalprice",getValue("price")*a)}else{setValue("totalprice",getValue("price"))}_bibPVG.prototype.rate("")}function onVolumesPriceEnterFun(){var a=getValue("volumes");if(a>0){setValue("price",parseFloat(getValue("totalprice")/a).toFixed(2))}else{setValue("price",getValue("totalprice"))}_bibPVG.prototype.rate("")}function onOrderPriceEnterFun(){var a=getValue("volumes");if(a>0){setValue("ordertotalprice",parseFloat(getValue("orderprice")*a).toFixed(2))}else{setValue("ordertotalprice",getValue("orderprice"))}}_checkBibObj.prototype.batchno=function(){if($("#batchno").length>0){var b={type:"1",page:"1",rows:"500",status:"0"};b.orderBy=" CREATEDATE desc ,CODE desc";var a=base_path+"par/batchno/page.do";$.post(a,b,function(h){var g=[];for(var e=0;e<h.rows.length;e++){var f=_initdata.rows[0].libcode;for(var c=0;c<f.length;c++){if(f[c].code==h.rows[e].libcode){var d={code:""+h.rows[e].code+"",name:""+h.rows[e].code+"",group:""+f[c].name+""};g.push(d);break}}}$("#batchno").combobox({data:g,valueField:"code",textField:"name",groupField:"group",panelHeight:"200px"})},"json")}};_myPage.prototype.initComboxByOperatorParm=function(g){var a=JSON.parse(_configData.rows[0].paramjson);if(g.showacqloccode){var c=_initdata.rows[0].location;var f=[];for(var d=0;d<c.length;d++){var e=c[d].code+",";if(g.showacqloccode.indexOf(e)>-1){f.push(c[d])}}$("#location").combobox("loadData",f);var h={};h["limit[0].condition"]="code";h["limit[0].typeHandler"]="3";h["limit[0].value"]=getSqlConditionLimitIn(g.showacqloccode);var b=base_path+"par/location/list.do";$.post(b,h,function(o){var n=o.rows;_myLocationData=n;var p=_initdata.rows[0].libcode;var l=[];for(var m=0;m<p.length;m++){for(var j=0;j<n.length;j++){if(n[j].libcode.split("|")[0]==p[m].code){l.push(p[m]);break}}}$("#libcode").combobox("loadData",l);var q=_initdata.rows[0].doctype;$("#doctype").combobox("loadData",q);setValue("doctype",a.doctype);setValue("location",a.location);_bibPVG.prototype.getLocationByClassno(a.uselocbyclassno);_checkBibObj.prototype.initGrid(true)},"json")}else{var h={};var b=base_path+"par/location/list.do";$.post(b,h,function(j){var i=j.rows;_myLocationData=i;_bibPVG.prototype.getLocationByClassno(a.uselocbyclassno);_checkBibObj.prototype.initGrid(false)},"json")}};_checkBibObj.prototype.search=function(){_myPage.prototype.getOperatorParam()};_checkBibObj.prototype.searchResult=function(){cleanJsonData("record");var a=base_path+"lib/biblios/get.do";var b={};b.id=_bibId;if(parseInt(_id)>0){a=base_path+"acq/check/get.do";b.pk=_id}if(parseInt(_orderid)>0){a=base_path+"acq/order/get.do";b.pk=_orderid}$.post(a,b,function(c){if(c.status=="0"){_checkBibObj.prototype.set(c)}else{openMessageDlg(c.message)}},"json")};_checkBibObj.prototype.setDataToHoldGrid=function(c){eidtorGridObject=$("#checkhold_eidtorgrid");if(_id>0){var a=base_path+"hld/holding/page.do";var b={};b.checkid=c;b.rows=10000;b.page=1;eidtorGridObject.datagrid({url:a,queryParams:b,onLoadSuccess:function(d){},method:"post"})}else{eidtorGridObject.datagrid("loadData",[])}};_checkBibObj.prototype.set=function(f){var l=JSON.parse(_configData.rows[0].paramjson);if(l.discount){setValue("discount",l.discount)}eidtorGridObject.datagrid("loadData",[]);var k=f.rows[0];if(parseInt(_id)>0){setJsonData(null,k);_checkBibObj.prototype.setDataToHoldGrid(k.id);$(".checkbib_tip").html("???:???????????????????"+_id+"??")}else{if(parseInt(_orderid)>0){k.id=0;k.orderid=_orderid;setJsonData(null,k);k.classno=mystorage.get("cat_classno");_bibPVG.prototype.getCallno(f.rows[0],"callno");if(l.check_batchno){setValue("batchno",l.check_batchno);_bibPVG.prototype.getDataByBatchno(l.check_batchno)}if(l.location){setValue("location",l.location)}if(l.doctype){setValue("doctype",l.doctype)}setValue("libcode",vLibcode);$(".checkbib_tip").html("???:???????????????????"+_orderid+"??")}else{var b=parent.getCallnoByClassnoForCallno();if(b){if(l.useoldcallno=="1"){setValue("callno",b)}else{$.messager.confirm("??????","????????????????????????????",function(i){if(i){setValue("callno",b)}else{_bibPVG.prototype.getCallno(f.rows[0],"callno")}})}}else{_bibPVG.prototype.getCallno(f.rows[0],"callno")}for(var g=0;g<initJson.length;g++){var c=initJson[g];if(c.code){if(c.code.indexOf(",")>0){var h=c.code.split(",");for(var e=0;e<h.length;e++){var a=h[e];if(l[a]){setValue(a,l[a])}}}else{if(l[c.code]){setValue(c.code,l[c.code])}}}}if(l.check_batchno){setValue("batchno",l.check_batchno)}if(l.ncy){setValue("orderncy",l.ncy)}if(l.copies){setValue("copies",l.copies)}if(l.billno){setValue("billno",l.billno)}var d=getCurDateYMD();setValue("checkdate",d);setValue("libcode",vLibcode);setValue("bibid",_bibId);setValue("operid",vOperid);_bibPVG.prototype.setVPGNewApp(f.rows[0],"");$(".checkbib_tip").html("???:?????????????????????????"+_bibId+"??")}}};_bibPVG.prototype.getCallnoCallBack=function(a){if(!a){_checkBibObj.prototype.setHoldRecordByAutoBar()}};function getAutPinyinCodeCallBack(){}_checkBibObj.prototype.saveCheck=function(){acceptEidtorGrid();var a=eidtorGridObject.datagrid("getRows");var b=JSON.parse(_configData.rows[0].paramjson);if(b.checkcopies=="1"||!b.checkcopies){var d=parseInt(getValue("volumes"));var c=parseInt(getValue("copies"));if(d>1){c=copies*d}if(a.length!=c||a.length==0){$.messager.confirm("??????","?????????????????????????????",function(e){if(e){setValue("copies",a.length);_checkBibObj.prototype.save()}})}else{_checkBibObj.prototype.save()}}else{if(b.checkcopies=="0"){_checkBibObj.prototype.save()}}};_checkBibObj.prototype.allocation=function(){var a=eidtorGridObject.datagrid("getRows");var c="";var e=[];for(var b=0;b<a.length;b++){var d={};d.libcode=a[b].libcode;d.curlocation=a[b].curlocation;d.doctype=a[b].doctype;d.barcode=a[b].barcode;d.assetno=a[b].assetno;d.callno=a[b].callno;barcodeItemList.push({barcode:a[b].barcode,callno:getValue("callno")});if(a[b].id==undefined||a[b].id==0){d.id=0}else{d.id=a[b].id}e.push(d)}setValue("copies",a.length);return JSON.stringify(e)};_checkBibObj.prototype.save=function(){var b=getJsonData(null,"record");if(!b){openMessageDlg("??????");return}if(!b.orderprice){openMessageDlg("??????????????");return}var c={};c.bibid=b.bibid;c.callno=b.callno;c.libcode=b.libcode;var a=base_path+"hld/holding/checkRepeadCallno.do";$.post(a,c,function(d){if(d.status=="0"){_checkBibObj.prototype.saveApp(b)}else{$.messager.confirm("??????","?????????????,???????????",function(e){if(e){_checkBibObj.prototype.saveApp(b)}})}},"json")};_checkBibObj.prototype.saveApp=function(b){var d=getValue("id");var c=base_path+"acq/check/saveCheckRecord.do";if(auto_callno){b.auto_callno=auto_callno}b.allocation=_checkBibObj.prototype.allocation();var a=JSON.parse(_configData.rows[0].paramjson);b.sysid=a.sysid;$.post(c,b,function(g){if(g.status=="0"){callNoItemList.push({callno:getValue("callno")});mystorage.set("callNoItemList",callNoItemList);mystorage.set("barcodeItemList",barcodeItemList);if(autoBarRows&&_id==0){var f=autoBarRows[autoBarRows.length-1];_AutoBarObj.prototype.updateAutoBarByMaxBar(f,cataHoldSaveResultCallBack)}else{if(autoAssetnoRows){var e=autoAssetnoRows[autoAssetnoRows.length-1];_AutoBarObj.prototype.updateAutoAssetnoByMaxAssetno(e)}else{cataHoldSaveResultCallBack(g,b)}}}else{openMessageDlg(g.message)}},"json")};function cataHoldSaveResultCallBack(b,a){if(_bibId&&!a){var a={};a.bibid=_bibId}parent.checkSaveResult(b,a.bibid)}_checkBibObj.prototype.initGrid=function(a){eidtorGridObject=$("#checkhold_eidtorgrid");if(!eidtorGridObject.attr("class")){eidtorGridObject.datagrid({iconCls:"e-icon fa fa-table",title:"",toolbar:holdToolbar,fit:true,fitColumns:true,singleSelect:true,border:true,nowrap:false,striped:true,onClickRow:onClickEditorRow,columns:[[{field:"id",title:"?????",hidden:true},{field:"libcode",title:globalLibName+"???",width:"20%",formatter:onShowLibName,editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"200px",required:true,editable:false,data:$("#libcode").combobox("getData"),onChange:function(d,b){if(d!=undefined&&d!=b){if(eidtorGridIndex!=undefined){var h=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"curlocation"});var o=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"doctype"});if(!a){if(h&&$(h.target)){var j={key:"location",condition:"libcode",value:d};var c=base_path+"par/common/getInitData.do";$.post(c,j,function(i){try{$(h.target).combobox("loadData",i.rows)}catch(k){}},"json")}if(o&&$(o.target)){j={key:"doctype",condition:"libcode",value:d};var c=base_path+"par/common/getInitData.do";$.post(c,j,function(i){try{$(o.target).combobox("loadData",i.rows)}catch(k){}},"json")}}else{var g="";for(var e=0;e<_myLocationData.length;e++){if(_myLocationData[e].libcode.split("|")[0]==d){var n=_myLocationData[e].code;if(n){g+=n+","}}}var m=_initdata.rows[0].location;var l=[];for(var f=0;f<m.length;f++){var p=m[f].code+",";if(g.indexOf(p)>-1){l.push(m[f])}}if(h&&$(h.target)){if(l.length>0){$(h.target).combobox("loadData",l);$(h.target).combobox("setValue",l[0].code)}}}}}}}}},{field:"curlocation",title:"??????",width:"18%",formatter:onShowLocationName,editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"200px",groupField:"group",required:true,editable:false,data:$("#location").combobox("getData"),onChange:function(f,d){if(f!=undefined&&f!=d){if(eidtorGridIndex!=undefined){if(a){var b=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"doctype"});for(var c=0;c<_myLocationData.length;c++){if(_myLocationData[c].code==f){var e=_myLocationData[c].defdoctype;$(b.target).combobox("setValue",e);break}}}}}}}}},{field:"doctype",title:"??????",width:"16%",formatter:onShowDocTypeName,editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"200px",groupField:"group",required:true,editable:false,data:$("#doctype").combobox("getData")}}},{field:"barcode",title:"?????",width:"16%",editor:{type:"text",options:{required:true}}},{field:"assetno",title:"?????",width:"16%",editor:{type:"text"}},{field:"callno",title:"?????",width:"16%",editor:{type:"text"}}]]})}_checkBibObj.prototype.searchResult()};_checkBibObj.prototype.updataCallno=function(){var a=eidtorGridObject.datagrid("getRows");for(var b=0;b<a.length;b++){eidtorGridObject.datagrid("updateRow",{index:b,row:{callno:getCurCallno(b)}})}};_checkBibObj.prototype.addHoldRecord=function(){var h=JSON.parse(_configData.rows[0].paramjson);var g={};g.libcode=getValue("libcode");g.curlocation=getValue("location");g.doctype=getValue("doctype");g.barcode=getValue("barcode");g.callno=getValue("callno");if(h.autobartoassetno=="1"){g.assetno=_bibPVG.prototype.getAssetnoBySubstr(h,g.barcode)}if(g.barcode.length==0){return openMessageDlg("????????????")}var j=eidtorGridObject.datagrid("getRows");for(var b=0;b<j.length;b++){if(j[b].barcode.length==0){eidtorGridObject.datagrid("updateRow",{index:b,row:{barcode:g.barcode}});$("#barcode").textbox("textbox").focus().select();return}}for(var b=0;b<j.length;b++){if(g.barcode==j[b].barcode){$("#barcode").textbox("textbox").focus().select();return openMessageDlg("?????????????????")}}var f=parseInt(getValue("volumes"));var a=parseInt(getValue("copies"));if(f>1){a=copies*f}if(j.length>=a){$("#barcode").textbox("textbox").focus().select();return openMessageDlg("?????????????????,???????????")}if(g.barcode.indexOf("-")>-1){var e=g.barcode.split("-");var c=parseInt(e[1]);var d=e[0];_checkBibObj.prototype.setHoldRecord(g,c,d,0)}else{_checkBibObj.prototype.setHoldRecordIsExit(g)}$("#barcode").textbox("textbox").focus().select()};_checkBibObj.prototype.setHoldRecordIsExit=function(c){var b={};b.barcode=c.barcode;b.loantime="999";var a=base_path+"hld/holding/getCheckHoldBarcode.do";$.post(a,b,function(d){if(d.status=="0"){if(d.total>0){openMessageDlg("????????????")}else{appendEidtorGridRow(c)}}else{openMessageDlg(d.message)}},"json")};_checkBibObj.prototype.setHoldRecord=function(h,d,e,g){var i=JSON.parse(_configData.rows[0].paramjson);if(parseInt(g)>=parseInt(d)){appendRestulFun();return}var f=parseInt(getValue("volumes"));var b=parseInt(getValue("copies"));if(f>1){b=copies*f}if(parseInt(d)>0){var a=base_path+"hld/holding/getCheckHoldBarcode.do";var c={};c.barcode=e;c.loantime="999";$.post(a,c,function(k){if(k.status=="0"){if(k.total>0){return openMessageDlg("?????"+e+"?????,???????????")}if(k.total==0){var j={};j.libcode=h.libcode;j.curlocation=h.curlocation;j.doctype=h.doctype;j.barcode=e;if(i.autobartoassetno=="1"){j.assetno=_bibPVG.prototype.getAssetnoBySubstr(i,j.barcode)}j.callno=getCurCallno(g);appendEidtorGridRow(j);g=g+1}e=addOne(e);_checkBibObj.prototype.setHoldRecord(h,d,e,g)}else{}},"json")}};function getCurCallno(c){var b=getValue("callno");var d=parseInt(getValue("volumes"));var e=parseInt(getValue("copies"));if(d>1&&b.indexOf(":")<0){for(var a=1;a<=d;a++){if((a*e)>c){b=b+":"+a;break}}}return b}function appendRestulFun(){var c=eidtorGridObject.datagrid("getRows");var a=JSON.parse(_configData.rows[0].paramjson);if(a.assetno&&a.autobartoassetno=="0"){autoAssetnoRows=undefined;var b=base_path+"hld/holding/getNextAssetno.do";var d={};d.code=a.assetno;d.count=c.length;$.post(b,d,function(f){if(f.status=="0"){eidtorGridObject.datagrid("loadData",[]);autoAssetnoRows=f.rows;for(var e=0;e<c.length;e++){c[e].assetno=_bibPVG.prototype.getAssetnoBySubstr(a,autoAssetnoRows[e]);appendEidtorGridRow(c[e],"resutl")}}else{openMessageDlg(f.message)}},"json")}}function autoBarcodeByCopies(){var a=mystorage.get("cat_autobar");if(a){eidtorGridObject.datagrid("loadData",[]);_checkBibObj.prototype.setHoldRecordByAutoBar()}else{openMessageDlg("?????????-??????-?????????????????")}}function autoBarcodeByCopiesGridList(){var a=base_path+"lib/biblios/get.do";var b={};b.id=_bibId;$.post(a,b,function(d){if(d.status=="0"){var c=d.rows[0];a=base_path+"par/defloc/getParamByClassno.do";b={};b.classno=c.classno;$.post(a,b,function(f){if(f.status=="0"){var g=JSON.parse(f.rows[0]);var e=JSON.parse(g.page_copiesDataGridList);autoBarcodeByParamByClassno(e)}else{openMessageDlg("?????????-??????-???????????????????????????????????")}},"json")}},"json")}function autoBarcodeByParamByClassno(q){var e=q;var d=parseInt(getValue("copies"));var g;for(var f=0;f<e.length;f++){if(parseInt(e[f].copies)==d){g=e[f];break}}if(g){var a=mystorage.get("cat_autobar");if(a){eidtorGridObject.datagrid("loadData",[]);_checkBibObj.prototype.setHoldRecordByAutoBar(g)}else{eidtorGridObject.datagrid("loadData",[]);var p=JSON.parse(g.rule);var k=[];var l=parseInt(getValue("volumes"));if(l>1){for(var f=0;f<l;f++){for(var j=0;j<p.length;j++){k.push(p[j])}}}if(k.length==0){k=p}var h=0;for(var j=0;j<k.length;j++){var n=k[j];var b=parseInt(n.copies);for(var f=0;f<b;f++){var m={};m.libcode=n.libcode;m.curlocation=n.location;m.doctype=n.doctype;m.barcode="";m.callno=getCurCallno(h);h++;appendEidtorGridRow(m)}}}}else{var l=parseInt(getValue("volumes"));var d=parseInt(getValue("copies"));if(l>1){d=d*l}var o={};o.libcode=getValue("libcode");o.location=getValue("location");o.doctype=getValue("doctype");for(var f=0;f<d;f++){var m={};m.libcode=o.libcode;m.curlocation=o.location;m.doctype=o.doctype;m.barcode="";m.callno=getCurCallno(f);appendEidtorGridRow(m)}openMessageDlg("????????-??????-??????????????????????????????????????,??????????????????????????")}}_checkBibObj.prototype.setHoldRecordByAutoBar=function(e){var a=mystorage.get("cat_autobar");var i=JSON.parse(_configData.rows[0].paramjson);var f=parseInt(getValue("volumes"));var c=parseInt(getValue("copies"));if(f>1){c=c*f}if(a){autoBarRows=undefined;var h={};h.libcode=getValue("libcode");h.curlocation=getValue("location");h.doctype=getValue("doctype");h.barcode=getValue("barcode");var b=base_path+"hld/holding/getNextBarno.do";var d={};d.code=a;d.count=c;$.post(b,d,function(k){if(k.status=="0"){var j=k.rows;autoBarRows=j;if(e){addHoldGridDataBycopiesDataGridList(i,j,e)}else{addHoldGridDataByCatHoldList(h,i,j)}appendRestulFun()}else{openMessageDlg(k.message)}},"json")}else{var g=getValue("autoCreateGrid");if(g=="1"&&parseInt(_id)==0){autoBarcodeByCopiesGridList()}}};function addHoldGridDataBycopiesDataGridList(m,l,d){$("#checkhold_eidtorgrid").datagrid("loadData",[]);var a=0;var k=JSON.parse(d.rule);var f=[];var g=parseInt(getValue("volumes"));if(g>1){for(var b=0;b<g;b++){for(var e=0;e<k.length;e++){f.push(k[e])}}}if(f.length==0){f=k}for(var e=0;e<f.length;e++){var j=f[e];for(var b=0;b<j.copies;b++){var h={};h.libcode=j.libcode;h.curlocation=j.location;h.doctype=j.doctype;h.barcode=l[a];if(m.autobartoassetno=="1"){h.assetno=_bibPVG.prototype.getAssetnoBySubstr(m,h.barcode)}h.callno=getCurCallno(a);appendEidtorGridRow(h);a++}}}function addHoldGridDataByCatHoldList(k,m,l){$("#checkhold_eidtorgrid").datagrid("loadData",[]);var f=mystorage.get("cat_holdlist");if(f&&f.length>0){var d=JSON.parse(f);var b=[];var a=0;for(var e=0;e<d.length;e++){var g=parseInt(d[e].copies);for(var c=0;c<g;c++){var h={};h.libcode=d[e].libcode;h.curlocation=d[e].curlocation;h.doctype=d[e].doctype;h.barcode=l[a];h.callno=getCurCallno(a);if(m.autobartoassetno=="1"){h.assetno=_bibPVG.prototype.getAssetnoBySubstr(m,h.barcode)}if(h.barcode){appendEidtorGridRow(h);a++}}}}else{for(var e=0;e<l.length;e++){var h={};h.libcode=k.libcode;h.curlocation=k.curlocation;h.doctype=k.doctype;h.barcode=l[e];if(m.autobartoassetno=="1"){h.assetno=_bibPVG.prototype.getAssetnoBySubstr(m,h.barcode)}h.callno=getCurCallno(e);appendEidtorGridRow(h)}}}function autoBarcodeByMarcFld(){var a=JSON.parse(_configData.rows[0].paramjson);if(a.marcfldbarcode&&a.marcfldbarcode.indexOf("$")>-1){var b=base_path+"lib/biblios/getMarcRecordForEdit.do";var c={};c.id=_bibId;$.post(b,c,function(j){if(j.status=="0"){var h=j.rows;var g=[];for(var f=0;f<h.length;f++){if(a.marcfldbarcode.indexOf(h[f].field)>-1){var e=getDataDirect(h[f].data,a.marcfldbarcode.split("$")[1]);g.push(e)}}for(var f=0;f<g.length;f++){var d={};d.libcode=getValue("libcode");d.curlocation=getValue("location");d.doctype=getValue("doctype");d.callno=getCurCallno(f);d.barcode=g[f];if(a.autobartoassetno=="1"){d.assetno=_bibPVG.prototype.getAssetnoBySubstr(a,d.barcode)}appendEidtorGridRow(d)}}else{openMessageDlg(j.message)}},"json")}else{openMessageDlg("??????-?????????????????????marc???,????????:908$a!")}}function checkbibReLoadData(a,c,b){eidtorGridIndex=undefined;_bibId=a;_orderid=c;_id=b;getMyStorageItemData();autoBarRows=undefined;autoAssetnoRows=undefined;clearGridData("checkhold_eidtorgrid");_checkBibObj.prototype.search()}function getMyStorageItemData(){_initdata=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");callNoItemList=mystorage.get("callNoItemList");if(!callNoItemList){callNoItemList=[]}barcodeItemList=mystorage.get("barcodeItemList");if(!barcodeItemList){barcodeItemList=[]}}function colseParentDlg(){parent.colseIframeDlg("checkbib_dlg",null,null)}function clearHoldGrid(){$("#checkhold_eidtorgrid").datagrid("loadData",[])}function getCheckRepeatBibId(){return getValue("bibid")};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de