Edit D:\rfid\libsystem\page\iframe\js\iframe_orderbib.js
var _orderBibObj=function(){};var _configData;var initJson;var _initdata;$(function(){_initdata=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");_orderBibObj.prototype.batchno();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}];initJson.forEach(function(a,b,c){if(_initdata.rows[0][a.key]){_myPage.prototype.setData(_initdata.rows[0][a.key],a)}});$(".easyui-panel").panel("resize");_orderBibObj.prototype.search();_bibPVG.prototype.rateFocus("orderprice","");_bibPVG.prototype.volumesFocus("volumes","");_bibPVG.prototype.rateBlur("orderprice","");_bibPVG.prototype.volumesBlur("volumes","")});_orderBibObj.prototype.batchno=function(){if($("#batchno").length>0){var b={type:"0",page:"1",rows:"500"};b.orderBy=" libcode 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")}};_orderBibObj.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+"acq/order/get.do";b.pk=_id}$.post(a,b,function(c){if(c.status=="0"){_orderBibObj.prototype.set(c)}else{openMessageDlg(c.message)}},"json")};_orderBibObj.prototype.set=function(e){var h=e.rows[0];if(parseInt(_id)>0){setJsonData(null,h);$(".orderbib_tip").html("???:???????????????????"+_id+"??")}else{_bibPVG.prototype.setVPG(e.rows[0],"");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.order_batchno){setValue("batchno",k.order_batchno)}if(k.ncy){setValue("orderncy",k.ncy)}if(k.copies){setValue("copies",k.copies)}var c=getCurDateYMD();setValue("paydate",c);setValue("orderdate",c);setValue("libcode",vLibcode);setValue("bibid",_bibId);$(".orderbib_tip").html("???:?????????????????????????"+_bibId+"??")}};_orderBibObj.prototype.save=function(){var b=getJsonData(null,"record");if(!b){openMessageDlg("??????");return}if(parseFloat(b.orderprice)<=0){openMessageDlg("??????????????");return}var a=getValue("id");var c=base_path+"acq/order/insert.do";if(a>0){c=base_path+"acq/order/update.do"}$.post(c,b,function(d){if(d.status=="0"){parent.ordreSaveResult(d,b.bibid)}else{openMessageDlg(d.message)}},"json")};function orderbibReLoadData(a,b){_initdata=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");_bibId=a;_id=b;_orderBibObj.prototype.search()}function colseParentDlg(){parent.colseIframeDlg("orderbib_dlg",null,null)};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de