Edit D:\rfid\libsystem\page\iframe\js\iframe_catahold.js
var _cataHoldObj=function(){};var _configData;var initJson;var auto_callno;var _updateMaxBarcode;$(function(){var a=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");if(_type=="1"){a=mystorage.get("per_init_data");_configData=mystorage.get("per_config")}initJson=[{code:"doctype",key:"doctype"},{code:"location",key:"location"},{code:"bindtype",key:"binding"},{code:"docsources",key:"docsources"},{code:"mediatype",key:"mediatype"},{code:"operid",key:"operid"},{code:"libcode",key:"libcode",condition:"code",value:vLibcode}];initJson.forEach(function(b,c,d){if(a.rows[0][b.key]){_myPage.prototype.setData(a.rows[0][b.key],b)}});$("#barcode").textbox("textbox").blur(function(b){_cataHoldObj.prototype.addHoldRecord()});$(".easyui-panel").panel("resize");_cataHoldObj.prototype.search()});_cataHoldObj.prototype.search=function(){cleanJsonData("record");var a=base_path+"lib/biblios/get.do";var b={};if(_id>0){a=base_path+"hld/holding/get.do";b.pk=_id}else{if(_bibId>0){b.id=_bibId}}$.post(a,b,function(c){if(c.status=="0"){_cataHoldObj.prototype.set(c)}else{openMessageDlg(c.message)}},"json")};_cataHoldObj.prototype.save=function(){var b=getJsonData(null,"record");if(!b){openMessageDlg("??????");return}if(!b.barcode){openMessageDlg("???????????");return}if(!b.price){openMessageDlg("???????????");return}if(!b.callno){openMessageDlg("????????????");return}var c=base_path+"hld/holding/saveHolding.do";if(auto_callno){b.auto_callno=auto_callno}var a=JSON.parse(_configData.rows[0].paramjson);b.sysid=a.sysid;$.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){if(_bibId&&!a){var a={};a.bibid=_bibId}parent.cataHoldSaveResult(b,a.bibid)}_cataHoldObj.prototype.set=function(e){var h=e.rows[0];if(parseInt(_id)>0){setJsonData(null,h);$(".orderbib_tip").html("???:???????????????????"+_id+"??")}else{_cataHoldObj.prototype.setHoldRecordByAutoBar();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])}}}}_bibPVG.prototype.setVPG(e.rows[0],"");_bibPVG.prototype.getCallno(e.rows[0],"callno");var c=getCurDateYMD();setValue("bindtype",k.binding);setValue("senddate",c);setValue("libcode",vLibcode);setValue("bibid",_bibId);$(".orderbib_tip").html("???:???????????????????"+_bibId+"??")}};_cataHoldObj.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")}};_cataHoldObj.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")};function cataholdReLoadData(c,a,b){_id=c;_bibId=a;_type=b;closeMessageDlg();_cataHoldObj.prototype.search()}function ikownDlg(){$("#global-message-dlg").dialog("close");$("#barcode").textbox("textbox").focus().select()}function colseParentDlg(){parent.colseIframeDlg("catahold_dlg",null,null)};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de