Edit D:\rfid\libsystem\page\global\js\bib_rate_priec_other.js
var _bibPVG=function(){};_bibPVG.prototype.setVPG=function(n,k){try{if(n.price){var g=/(\d{1,3})+(?:\.\d+)?/g;var l=n.price.match(g);var f=/[??$CNYUSD]/g;var j=n.price.match(f);var b="";if(j){for(var d=0;d<j.length;d++){b+=j[d]}}if($("#ncy").length>0){var c=$("#ncy").combobox("getData");var a=false;for(var d=0;d<c.length;d++){if(c[d].code==b){a=true}}if(a){setValue(""+k+"ncy",b)}else{setValue(""+k+"ncy","")}}setValue(""+k+"price",l[0]);setValue(""+k+"totalprice",l[0])}if(!n.page){setValue(k+"volumes",1)}else{var g=/(\d{1,3})+(?:\.\d+)?/g;var l=n.page.match(g);var f=/[\u4e00-\u9fa5]/g;var j=n.page.match(f);var m=0;for(var d=0;d<l.length;d++){if(j){if(j[d]){if("?????".indexOf(j[d])>-1){m+=parseInt(l[d])}}}}if(m>0){setValue(k+"volumes",m)}else{setValue(k+"volumes",1)}}}catch(h){}_bibPVG.prototype.rate(k)};_bibPVG.prototype.rate=function(c){var d=getValue(c+"price");if(d>0){var f=getValue(c+"orderprice");if(f==0){var b=0;var a=base_path+"par/rate/getRate.do";var e={};e.originalncy=getValue(c+"ncy");e.conversionncy=getValue(c+"orderncy");$.post(a,e,function(h){if(h.status=="0"){b=h.rows[0];if(d>0&&b>0){setValue(c+"orderprice",d*b);var g=getValue(c+"volumes");if(g>0){setValue(c+"ordertotalprice",getValue(c+"orderprice")*g);setValue(c+"totalprice",getValue(c+"orderprice")*g)}else{setValue(c+"ordertotalprice",getValue(c+"orderprice"));setValue(c+"totalprice",getValue(c+"orderprice"))}}}},"json")}}};_bibPVG.prototype.perRate=function(d,b){var e=getValue(d+"price");if(e>0){var g=getValue(d+"orderprice");if(g==0||b){var c=0;var a=base_path+"par/rate/getRate.do";var f={};f.originalncy=getValue(d+"ncy");f.conversionncy=getValue(d+"orderncy");$.post(a,f,function(i){if(i.status=="0"){c=i.rows[0];if(e>0&&c>0){setValue(d+"orderprice",e*c);var h=getValue(d+"issuenum");if(b){h=parseInt(b)}if(h>0){setValue(d+"ordertotalprice",getValue(d+"orderprice")*h);setValue(""+d+"totalprice",getValue(d+"orderprice")*h)}else{setValue(d+"ordertotalprice",getValue(d+"orderprice"));setValue(""+d+"totalprice",getValue(d+"orderprice")*h)}}}},"json")}}};_bibPVG.prototype.perYearPrice=function(c,a,b){$("#"+c+"").numberbox().next("span").find("input").focus(function(d){_bibPVG.prototype.setPerYearPrice(c,a,b)})};_bibPVG.prototype.setPerYearPrice=function(d,b,c){var a=getValue(b+"issuenum");if(c){setValue(d,getValue("price")*a)}else{setValue(d,getValue("orderprice")*a)}};_bibPVG.prototype.volumes=function(b){var a=getValue(b+"ordertotalprice");var c=getValue(b+"volumes");if(a>0&&c>0){setValue(b+"orderprice",a/c)}a=getValue(b+"totalprice");if(a>0&&c>0){setValue(b+"price",a/c)}};_bibPVG.prototype.rateFocus=function(b,a){$("#"+b+"").numberbox().next("span").find("input").focus(function(c){if($("#"+a+"issuenum").length>0){_bibPVG.prototype.perRate(a,getValue(a+"issuenum"))}else{_bibPVG.prototype.rate(a)}}).blur(function(c){if($("#"+a+"issuenum").length>0){_bibPVG.prototype.perRate(a,getValue(a+"issuenum"))}else{_bibPVG.prototype.rate(a)}});if($("#"+a+"issuenum").length>0){$("#"+b+"").numberbox().next("span").find("input").blur(function(c){_bibPVG.prototype.setPerYearPrice("yearprice","")}).focus(function(c){_bibPVG.prototype.setPerYearPrice("yearprice","")})}};_bibPVG.prototype.volumesFocus=function(b,a){$("#"+b+"").numberbox().next("span").find("input").focus(function(c){_bibPVG.prototype.volumes(a)}).blur(function(c){_bibPVG.prototype.volumes(a)})};_bibPVG.prototype.rateBlur=function(b,a){$("#"+b+"").numberbox().next("span").find("input").blur(function(c){if($("#"+a+"issuenum").length>0){_bibPVG.prototype.perRate(a,getValue(a+"issuenum"))}else{_bibPVG.prototype.rate(a)}}).focus(function(c){if($("#"+a+"issuenum").length>0){_bibPVG.prototype.perRate(a,getValue(a+"issuenum"))}else{_bibPVG.prototype.rate(a)}});if($("#"+a+"issuenum").length>0){$("#"+b+"").numberbox().next("span").find("input").blur(function(c){_bibPVG.prototype.setPerYearPrice("yearprice","")}).focus(function(c){_bibPVG.prototype.setPerYearPrice("yearprice","")})}};_bibPVG.prototype.volumesBlur=function(b,a){$("#"+b+"").numberbox().next("span").find("input").blur(function(c){_bibPVG.prototype.volumes(a)}).focus(function(c){_bibPVG.prototype.volumes(a)})};_bibPVG.prototype.getCallno=function(a,c){var b=base_path+"cat/titlenum/getCurCallno.do";var d={};d.classno=a.classno;d.bibid=!a.bibid?a.id:a.bibid;$.post(b,d,function(g){var e=1;var f=g.rows[0];if(f.titnum){e=f.titnum}auto_callno=f.auto_callno;if(g.status=="0"){if(g.total==0){setValue(c,a.classno+"/1")}else{setValue(c,f.classno+"/"+e)}}else{if(g.status=="4002"){if(g.total==0){setValue(c,a.classno+"/1")}else{setValue(c,f.classno+"/"+e)}openMessageDlg(g.message)}else{if(g.status=="4003"){_bibPVG.prototype.showPy(g,c,a)}else{openMessageDlg(g.message)}}}},"json")};var _pyRows=undefined;var _pyObj;var _pyRowBib;_bibPVG.prototype.showPy=function(f,e,o){_pyObj=e;_pyRowBib=o;var g="";var q="pinyin";var r=f.rows;_pyRows=r;var k="";var i="";var d="";for(var b=0;b<r.length;b++){var h=r[b].py;var m=r[b].ch;var l="";if(h.length==0){l=m}else{if(h.length==1){l=h[0]}else{if(h.length>1){var c=q+"_"+b;l=h[0];m="<span style='color:red;'>"+r[b].ch+"</span>";d+='<div class="div-py-record clearfix">';d+="<label>"+m+"</label>";for(var a=0;a<h.length;a++){var n="";if(a==0){n="checked"}d+='<label><input type="radio" class="py-index-postion" name="'+c+'" value="'+h[a]+'" '+n+"/>"+h[a]+"</label>"}d+="</div>"}}}i+=l;k+=m}if(d.length>0){g+="<tr>";g+="<td>";g+=k;g+="</td>";g+="<td>"+d+"</td>";g+="</tr>"}$(".py-body-list").html(g);$("#pyDlg").dialog("open")};_bibPVG.prototype.savePy=function(){var a={};var i="pinyin";var b="";var k=_pyRows;var e="";for(var c=0;c<k.length;c++){var f=k[c].py;var h=k[c].ch;b+=h;var g="";if(f.length==0){g=h}else{if(f.length==1){g=f[0]}else{if(f.length>1){var d=i+"_"+c;var g=$('input:radio[name="'+d+'"]:checked').val()}}}e+=g+" "}getAutPinyinCode(b,e);$("#pyDlg").dialog("close")};function getAutPinyinCode(c,b){var a=base_path+"par/common/getAutPinyinCode.do";var d={};d.request_type=123;d.author=c;d.pinyin=b;$.post(a,d,function(e){if(e.status=="0"){if(e.rows[0]){setValue(_pyObj,_pyRowBib.classno+"/"+e.rows[0])}else{setValue(_pyObj,_pyRowBib.classno+"/1")}}else{openMessageDlg(e.message)}},"json")}function setCheckCallNo(){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];_bibPVG.prototype.getCallno(c,"callno")}else{openMessageDlg(d.message)}},"json")}_bibPVG.prototype.getLocationByClassno=function(){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/getLoccodeByClassno.do";b={};b.classno=c.classno;$.post(a,b,function(f){if(f.status=="0"){var e=f.rows[0];if(e){setValue("location",e)}}else{}},"json")}},"json")};_bibPVG.prototype.bulidCallno=function(b,c){var d={};var a=getValue(c);if(a.length>0&&a.substr(a.length-1,1)=="/"){a=a.substr(0,a.length-1);d.bibid=getValue(b);d.classno=a;_bibPVG.prototype.getCallno(d,c)}else{openMessageDlg("??????????/]?????????????????1/")}};var _AutoBarObj=function(){};_AutoBarObj.prototype.updateAutoBarByMaxBar=function(d,c,e){var a=mystorage.get("cat_autobar");if(e){a=e}var b=base_path+"hld/holding/updateCurAutoBarno.do";var f={};f.code=a;f.barno=d;$.post(b,f,function(g){if(g.status=="0"){if(c){c(g)}}else{openMessageDlg(g.message)}},"json")};_AutoBarObj.prototype.updateAutoAssetnoByMaxAssetno=function(d){var b=JSON.parse(_configData.rows[0].paramjson);if(b.assetno){var a=b.assetno;var c=base_path+"hld/holding/updateCurAutoAssetno.do";var e={};e.code=a;e.assetno=d;$.post(c,e,function(f){if(f.status=="0"){console.log(f)}else{openMessageDlg(f.message)}},"json")}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de