var cataConfigData;var editMarcType;function callSetParaResult(a){_setConfig.prototype.callSet(a)}var _setConfig=function(){};_setConfig.prototype.callSet=function(c){if(c.status=="0"){if(vType=="0"||vType=="cata"||vType=="order"||vType=="check"||vType=="tobookcheck"||vType=="com"){mystorage.set("cat_config",c)}else{if(vType=="1"){mystorage.set("per_config",c)}}var b=c.rows[0];var a=JSON.parse(b.paramjson);cataConfigData=a;if(a.sysid){getEditBibMessage(a.sysid);if(a.libcode){setValue("libcodeSelect",a.libcode)}else{setValue("libcodeSelect","")}setJsonData("page_",a);if(a.autobar){mystorage.set("cat_autobar",a.autobar)}else{mystorage.remove("cat_autobar")}if(a.holdlist){mystorage.set("cat_holdlist",a.holdlist)}else{mystorage.remove("cat_holdlist")}if(a.editmodel){if(a.editmodel=="simple"){$("#pasteMarcRecord").hide()}else{$("#pasteMarcRecord").show()}}if($("#editBibGrid").attr("class")){initEidtBiBModel(a.editmodel)}if(a.sysid){getEditMarcType(a.sysid);if(_fmtGridDataAllValues&&_fmtGridDataAllValues.rows[0].sysid){$(".show-sysid-html").html("【"+onFmtGridDataRowsBycode(_fmtGridDataAllValues.rows[0].sysid,a.sysid)+"】")}}if(vType=="check"||vType=="tobookcheck"){$(".show-batchno-html").html("当前验收批号【"+a.check_batchno+"】")}else{if(vType=="order"||vPageNameFlag=="征订订购"){$(".show-batchno-html").html("当前订购批号【"+a.order_batchno+"】")}}jdMarcRequiredfields(a);_setConfig.prototype.otherAPP(a)}}};_setConfig.prototype.otherAPP=function(a){if($("#dinggoudayin").length>0){initPrinterCombox(a)}};_setConfig.prototype.bibSetParam=function(a){if(vType=="com"||vType=="check"||vType=="tobookcheck"){$(".yanshou-printer").show();$(".yanshou-grid").show()}if(cataConfigData){setJsonData("page_",cataConfigData);if(a!="acq_sub_order"&&(vType=="check"||vType=="tobookcheck")){initPrinterCombox(cataConfigData)}}if(a!="acq_sub_order"&&(vType=="check"||vType=="tobookcheck")){initPrinterFmtCombox()}};_setConfig.prototype.check=function(){if(!cataConfigData){openMessageDlg("请您先点击设置按钮,设置编目参数!");return false}if(!cataConfigData.sysid){openMessageDlg("请您先点击设置按钮,设置分系统参数!");return false}if(!cataConfigData.ctrlno){openMessageDlg("请您先点击设置按钮,设置控制区号参数!");return false}_setConfig.prototype.initPage();return true};function getEditMarcType(c){var b=base_path+"par/subsystem/get.do";var a={};a.pk=c;$.post(b,a,function(d){if(d.status=="0"){editMarcType=d.rows["0"].marctype.toString().toLocaleLowerCase()}},"json")}_setConfig.prototype.initPage=function(){};