Edit D:\rfid\apache-tomcat-8.5.32\webapps\libsystem\page\iframe\js\iframe_orderbib.js
var _orderBibObj=function(){};var _configData;var initJson;var _initdata;var saveStatus=true;var ncyAutoSelect=false;$(function(){_initdata=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");_bibPVG.prototype.batchnoComBox("batchno",0,"bookseller");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(e,f,g){if(_initdata.rows[0][e.key]){_myPage.prototype.setData(_initdata.rows[0][e.key],e)}});$(".easyui-panel").panel("resize");_orderBibObj.prototype.search();for(var d in tooltipJson){var b=tooltipJson[d];var c="<table class='table-box rdr-table-input'>";c+="<tr>";c+="<td>";c+=b.name+"??????:";c+="</td>";c+="</tr>";for(var a in b.tipList){c+="<tr>";c+="<td>";c+=b.tipList[a].data;c+="</td>";c+="</tr>"}c+="</table>";$("#"+b.code+"Tooltip").tooltip({content:c});_bibPVG.prototype.enterEvent(b.code,_bibPVG.prototype.setPriceApp)}$("#ncy,#orderncy").combobox({onChange:function(f,e){if(ncyAutoSelect){_bibPVG.prototype.getDataForPrice("");ncyAutoSelect=false}else{_bibPVG.prototype.getRateApp("")}},onClick:function(f,e){ncyAutoSelect=true}})});_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];var k=JSON.parse(_configData.rows[0].paramjson);if(k.discount){setValue("discount",k.discount)}if(parseInt(_id)>0){setJsonData(null,h);$(".orderbib_tip").html("???:???????????????????"+_id+"??")}else{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)}_bibPVG.prototype.setVPGNewApp(e.rows[0],"");var c=getCurDateYMD();setValue("paydate",c);setValue("orderdate",c);setValue("libcode",vLibcode);setValue("bibid",_bibId);setValue("operid",vOperid);$("#copies").numberbox().next("span").find("input").focus();$(".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"}saveStatus=false;onHnadlerSvaeBntScreen("saveOrderBibBnt",true);$.post(c,b,function(d){saveStatus=true;onHnadlerSvaeBntScreen("saveOrderBibBnt",false);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