Edit D:\rfid\libsystem\page\iframe\js\iframe_subscribeorderbib.js
var _subOrderBibObj=function(){};var _configData;var initJson;var _initdata;$(function(){_initdata=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");_subOrderBibObj.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)}});_subOrderBibObj.prototype.search();$("#acceptFileResultDlg").dialog({onClose:function(){colseParentDlg()}});_bibPVG.prototype.rateFocus("orderprice","");_bibPVG.prototype.volumesFocus("volumes","");$(".easyui-panel").panel("resize")});_subOrderBibObj.prototype.batchno=function(){if($("#batchno").length>0){var b={type:"0",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")}};_subOrderBibObj.prototype.search=function(){$(".acceptTextTip").hide();if(_type=="0"){$(".order-type-div").hide()}else{$(".order-type-div").show()}cleanJsonData("record");var b=base_path+"acq/collect/get.do";var c={};if(parseInt(_id)>0){b=base_path+"acq/order/get.do";c.pk=_id}else{if(parseInt(_bibId)>0){c.id=_bibId}}if(_type=="1"&&parseInt(_bibId)==0){setTextShowStatus(true);_subOrderBibObj.prototype.setTextByConifg();var a=mystorage.get("acq_suborder_checkedItems");$(".orderbib_tip").html("???:??????????????????,???????"+a.length+"??????")}else{$.post(b,c,function(d){if(d.status=="0"){_subOrderBibObj.prototype.set(d)}else{openMessageDlg(d.message)}},"json")}};_subOrderBibObj.prototype.set=function(b){var c=b.rows[0];if(parseInt(_id)>0){setJsonData(null,c);$(".orderbib_tip").html("???:???????????????????"+_id+"??")}else{_bibPVG.prototype.setVPG(b.rows[0],"");setValue("order_ids",c.id);_subOrderBibObj.prototype.setTextByConifg();setValue("catacode",c.catacode);if(_type=="0"){setTextShowStatus(false);$(".orderbib_tip").html("???:?????????????????????????"+_bibId+"??")}else{setTextShowStatus(true);var a=mystorage.get("acq_suborder_checkedItems");$(".orderbib_tip").html("???:??????????????????,???????"+a.length+"??????")}}};_subOrderBibObj.prototype.setTextByConifg=function(){var a=JSON.parse(_configData.rows[0].paramjson);for(var d=0;d<initJson.length;d++){var g=initJson[d];if(g.code){if(g.code.indexOf(",")>0){var e=g.code.split(",");for(var c=0;c<e.length;c++){var f=e[c];if(a[f]){setValue(f,a[f])}}}else{if(a[g.code]){setValue(g.code,a[g.code])}}}}if(a.order_batchno){setValue("batchno",a.order_batchno)}if(a.ncy){setValue("orderncy",a.ncy)}if(a.copies){setValue("copies",a.copies)}var b=getCurDateYMD();setValue("paydate",b);setValue("orderdate",b);setValue("libcode",vLibcode);setValue("order_type","0")};_subOrderBibObj.prototype.save=function(c){var d=getJsonData(null,"record");if(!d){openMessageDlg("??????");return}if(parseFloat(d.orderprice)<=0){openMessageDlg("??????????????");return}d.ordstatus="0";if(_type=="0"){var b=getValue("id");var e=base_path+"acq/collect/orderCollectbibs.do";if(b>0){e=base_path+"acq/order/update.do"}d.page=1;d.rows=1;$.post(e,d,function(f){if(f.status=="0"){parent.subOrderSaveResult(f,d)}else{openMessageDlg(f.message)}},"json")}else{if(c){onBacthMianFun(c,d)}else{var a=mystorage.get("acq_suborder_checkedItems");d.order_ids=a.join(",");if(d.order_type=="0"&&a.length==0){openMessageDlg("????????????????????????");return}$.messager.confirm("??????","?????????????????????",function(f){if(f){onBacthMianFun(c,d)}})}}};function checkErrorFile(){var c=base_path+"com/webuploader/download.do?filename="+errorfile;var b=window.open(c)}function onBacthMianFun(a,c){$(".error-msg-result").html("");if(!a){$.messager.progress({title:"????????",msg:"?????????,?????..."})}if(a){c=a}else{c.rows=200;c.page=1;successcount=0}var b=base_path+"acq/collect/orderCollectbibs.do";$.post(b,c,function(d){$.messager.progress("close");if(d.status=="0"){var e=d.rows[0];if(e){errorfile=e.errorfile;successcount+=parseInt(e.successcount);if(e.nextpage&&e.nextpage>0){$.messager.progress({title:"????????",msg:"??????????? ..."});c.page=e.nextpage;_subOrderBibObj.prototype.save(c)}else{$(".handlecount").html("?????"+successcount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???[0]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open")}}else{openMessageDlg(d.message)}}else{openMessageDlg(d.message)}},"json").error(function(){$(".error-msg-result").html("?????????????,???????????!");$(".handlecount").html("?????"+handlecount+"]?????");$(".successcount").html("???["+successcount+"]??");$(".errorcount").html("???["+errorcount+"]??");$("#checkerrorfile").show();$("#acceptFileResultDlg").dialog("open");$.messager.progress("close")})}function setTextShowStatus(a){if(a){$("#price").numberbox("disable");$("#orderprice").numberbox("disable");$("#ordertotalprice").numberbox("disable");$("#totalprice").numberbox("disable");$("#volumes").textbox("disable");$("#volinfo").textbox("disable")}else{$("#price").numberbox("enable");$("#orderprice").numberbox("enable");$("#ordertotalprice").numberbox("enable");$("#totalprice").numberbox("enable");$("#volumes").textbox("enable");$("#volinfo").textbox("enable")}}function subscribeorderReLoadData(a,c,b){_bibId=a;_id=c;_type=b;_subOrderBibObj.prototype.search()}function colseParentDlg(){parent.colseIframeDlg("subscribeorder_dlg",null,null)};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de