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;e0){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;f0){var g=b.code.split(",");for(var d=0;d0){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)};