Edit D:\rfid\libsystem\page\iframe\js\iframe_per_bindhandler.js
var _bindPerObj=function(){};var _configData;var _initdata;var initJson;var myJsonRecord;var _updateMaxBarcode;$(function(){_bindPerObj.prototype.batchno();_initdata=mystorage.get("per_init_data");_configData=mystorage.get("per_config");initJson=[{code:"doctype",key:"doctype"},{code:"location,loccode",key:"location"},{code:"binding",key:"binding"},{code:"docsources",key:"docsources"},{code:"mediatype",key:"mediatype"},{code:"finsources",key:"finsources"},{code:"operid",key:"operid"},{code:"libcode",key:"libcode",condition:"code",value:vLibcode}];initJson.forEach(function(a,b,c){if(_initdata.rows[0][a.key]){_myPage.prototype.setData(_initdata.rows[0][a.key],a)}});$("#barcode").textbox("textbox").blur(function(a){_bindPerObj.prototype.addHoldRecord()});_bindPerObj.prototype.search();$(".easyui-panel").panel("resize");_bibPVG.prototype.rateFocus("orderprice","")});_bindPerObj.prototype.batchno=function(){if($("#batchno").length>0){var b={type:"3",page:"1",rows:"500"};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")}};_bindPerObj.prototype.setHoldRecordByAutoBar=function(){var a=mystorage.get("cat_autobar");var d=1;if(a){_updateMaxBarcode=undefined;var b=base_path+"hld/holding/getNextBarno.do";var c={};c.code=a;c.count=d;$.post(b,c,function(f){if(f.status=="0"){var e=f.rows;_updateMaxBarcode=e[0];setValue("barcode",_updateMaxBarcode)}else{openMessageDlg(f.message)}},"json")}};_bindPerObj.prototype.addHoldRecord=function(){var b={};b.barcode=getValue("barcode");b.loantime="999";var a=base_path+"hld/holding/getCheckHoldBarcode.do";$.post(a,b,function(c){if(c.status=="0"){if(c.total>0){if(_id==0){openMessageDlg("??????["+getValue("barcode")+"]???,?????????")}}}else{openMessageDlg(c.message)}},"json")};_bindPerObj.prototype.search=function(){cleanJsonData("record");var a=base_path+"lib/biblios/get.do";var b={};b.id=_bibId;if(parseInt(_id)>0){a=base_path+"per/bind/get.do";b.pk=_id}else{if(parseInt(_bibId)>0){b.id=_bibId}}$.post(a,b,function(c){if(c.status=="0"){_bindPerObj.prototype.set(c)}else{openMessageDlg(c.message)}},"json")};_bindPerObj.prototype.save=function(){var b=getJsonData(null,"record");if(!b){openMessageDlg("??????");return}if(!b.barcode){openMessageDlg("????????????");return}if(!b.price){openMessageDlg("???????????");return}if(!b.doctype){openMessageDlg("??????????????");return}if(!b.loccode){openMessageDlg("??????????????");return}var a=getValue("id");var c=base_path+"per/bind/insert.do";if(a>0){c=base_path+"per/bind/update.do"}$.post(c,b,function(d){if(d.status=="0"){if(_updateMaxBarcode&&_id==0){_AutoBarObj.prototype.updateAutoBarByMaxBar(_updateMaxBarcode,cataHoldSaveResultCallBack)}else{cataHoldSaveResultCallBack(d,b)}}else{openMessageDlg(d.message)}},"json")};function cataHoldSaveResultCallBack(b,a){parent.perBindHandlerSaveResult(b,a.bibid)}_bindPerObj.prototype.set=function(e){var h=e.rows[0];if(parseInt(_id)>0){setJsonData(null,h);if(!h.barcode){_bindPerObj.prototype.setHoldRecordByAutoBar()}if(!h.callno){setCheckCallNo()}$(".orderbib_tip").html("???:???????????????????"+_id+"??")}else{_bindPerObj.prototype.setHoldRecordByAutoBar();_bibPVG.prototype.setVPG(e.rows[0],"");_bibPVG.prototype.getCallno(e.rows[0],"callno");var k=JSON.parse(_configData.rows[0].paramjson);for(var f=0;f<initJson.length;f++){var b=initJson[f];if(b.code){if(b.code.indexOf(",")>0){var g=b.code.split(",");for(var d=0;d<g.length;d++){var a=g[d];if(k[a]){setValue(a,k[a])}}}else{if(k[b.code]){setValue(b.code,k[b.code])}}}}if(k.check_batchno){setValue("batchno",k.check_batchno)}if(k.ncy){setValue("orderncy",k.ncy)}if(k.location){setValue("loccode",k.location)}var c=getCurDateYMD();setValue("paydate",c);setValue("orderdate",c);setValue("libcode",vLibcode);setValue("bibid",_bibId);$(".orderbib_tip").html("???:?????????????????????????"+_bibId+"??")}};_bindPerObj.prototype.setTextByConifg=function(){var a=JSON.parse(_configData.rows[0].paramjson);for(var c=0;c<initJson.length;c++){var f=initJson[c];if(f.code){if(f.code.indexOf(",")>0){var d=f.code.split(",");for(var b=0;b<d.length;b++){var e=d[b];if(a[e]){setValue(e,a[e])}}}else{if(a[f.code]){setValue(f.code,a[f.code])}}}}if(a.check_batchno){setValue("batchno",a.check_batchno)}setValue("libcode",vLibcode)};function perbindhandlerReLoadData(a,b){_bibId=a;_id=b;_initdata=mystorage.get("per_init_data");_configData=mystorage.get("per_config");_bindPerObj.prototype.search()}function colseParentDlg(){parent.colseIframeDlg("perbindhandler_dlg",null,null)};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de