var LODOP;$(function(){mystorage.remove("callNoItemList");mystorage.remove("barcodeItemList");$("#checkDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode,onDblClickRow:updateCheckBib,onSelect:selectCheckBib});$("#orderDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode,onSelect:onSelectOrderDataGridList});$(".yanshou-printer").show();$(".yanshou-grid").show();initPrinterFmtCombox()});function initPrinterCombox(a){setTimeout(function(){try{LODOP=getLodop();var c=LODOP.GET_PRINTER_COUNT();var d=[];for(var b=0;b0){$("#printer-confirm-dlg").dialog("open");$(".printer-confirm-body").html(d.message+",以下列表是您的验收记录!");var c=mystorage.get("barcodeItemList");if(c){$("#printerDataGridList").datagrid("loadData",c)}else{var b=mystorage.get("callNoItemList");if(b){$("#printerDataGridList").datagrid("loadData",b)}}}else{return openMessageDlg(d.message)}}function printerPerviewBookLable(){var b=mystorage.get("callNoItemList");if(b){var c={};c.rows=b;var a=getValue("page_booklablefmt");var d=getValue("page_booklableprinter");if(a.length==0){return openMessageDlg("请在设置-采访参数-设置书标格式!")}printerDataByDesignkeycode(a,c,d,0)}}function printerBookLable(){var b=mystorage.get("callNoItemList");if(b){var c={};c.rows=b;var a=getValue("page_booklablefmt");var d=getValue("page_booklableprinter");if(a.length==0){return openMessageDlg("请在设置-采访参数-设置书标格式!")}mystorage.remove("callNoItemList");printerDataByDesignkeycode(a,c,d,1)}}function printerPerviewBookBarcode(){var c=mystorage.get("barcodeItemList");if(c){var d={};d.rows=c;var b=getValue("page_barcodefmt");var a=getValue("page_barcodeprinter");if(b.length==0){return openMessageDlg("请在设置-采访参数-设置条码格式!")}printerDataByDesignkeycode(b,d,a,0)}}function printerBookBarcode(){var d=mystorage.get("barcodeItemList");if(d){var e={};e.rows=d;var b=getValue("page_barcodefmt");var a=getValue("page_barcodeprinter");if(b.length==0){return openMessageDlg("请在设置-采访参数-设置条码格式!")}mystorage.remove("barcodeItemList");printerDataByDesignkeycode(b,e,a,1)}var c=mystorage.get("callNoItemList");if(c){$("#printerDataGridList").datagrid("loadData",c)}}function printerDataByDesignkeycode(b,e,a,d){var c=base_path+"lib/design/get.do";var f={};f.pk=b;$.post(c,f,function(g){if(g.status=="0"){setLabelDisplayArea(g,e,a,d)}else{alert(g.message)}},"json")}function deleteCheckBib(){var a=$("#checkDataGridList").datagrid("getSelected");if(isUpdateByLibcode(a.libcode)){if(!a){return openMessageDlg("请先选择一条验收信息,进行删除")}openConfirmDlg("您确定要删除记录号为["+a.id+"]的订购数据吗?",null,deleteCheckBibResult,null)}else{return openMessageDlg("不能删除非本馆数据")}}function deleteCheckBibResult(){var c=$("#checkDataGridList").datagrid("getSelected");var b={};b.pk=c.id;var a=base_path+"acq/check/delete.do";$.post(a,b,function(d){if(d.status=="0"){openMessageDlg(d.message,5000);_comGridObj.prototype.loadData(c.bibid,"check")}else{openMessageDlg(d.message)}},"json")}function savePageConfig(){var c=getJsonData("page_","record");if(!c){openMessageDlg("记录异常");return}var b=JSON.parse(c.paramjson);if(b.holdlist){var a=JSON.parse(b.holdlist);var f=0;for(var e=0;e