var initJson;var saveStatus=true;$(function(){orderCheckController.prototype.init();orderCheckController.prototype.bind()});orderCheckController.prototype.bind=function(){$("#tabsLeftGrid").tabs({onSelect:tabsLeftGridController.prototype.tabsGridSelect})};var tabsLeftGridController=function(){};tabsLeftGridController.prototype.tabsGridSelect=function(c,a){if(a==1){var b=$("#acqDataGridList").datagrid("getSelected");if(b){bibController.prototype.setDataByGirdSelect(b.id);_linkbuttonObj.prototype.status(null,b)}}};function initEditGridViewByTabsLeftGrid(){bibController.prototype.initEditGridView()}orderCheckController.prototype.init=function(){initJson=[{code:"page_sysid",key:"sysid",condition:"type",value:"0",linkage:[{code:"page_template",key:"template",condition:"sysid",callfun:"templateApp"}]},{code:"page_ctrlno",key:"ctrlno",condition:"libcode",value:vLibcode},{code:"page_z3950",key:"z3950",condition:"libcode",value:vLibcode},{code:"page_editmodel",key:"editmodel"},{code:"page_finsources",key:"finsources"},{code:"page_mediatype",key:"mediatype"},{code:"page_binding",key:"binding"},{code:"page_docsources",key:"docsources"},{code:"page_ncy,checkbib_ncy",key:"ncy"},{code:"page_bookseller",key:"bookseller",condition:"libcode",value:vLibcode},{code:"page_location",key:"location",condition:"libcode",value:vLibcode},{code:"page_doctype",key:"doctype",condition:"libcode",value:vLibcode},{code:"page_libcode",key:"libcode",condition:"code",value:vLibcode},{code:"operid",key:"operid"}];_myPage.prototype.getLoadData(initJson);orderCheckController.prototype.initAcqGrid();var a=$(window).height();var b=a-80;$(".acq-com-layout-div").css("height",b+"px");getLayWHByResize("acqComOrderCheckLayout")};_myPage.prototype.getLoadSuccess=function(a,b){if(vType=="0"||vType=="cata"||vType=="order"||vType=="check"||vType=="tobookcheck"||vType=="com"){mystorage.set("cat_init_data",a)}else{if(vType=="1"){mystorage.set("per_init_data",a)}}_fmtGridDataRows=a;orderCheckController.prototype.initOrderTable();_bibPVG.prototype.batchnoComBox("checkbib_batchno",1,"checkbib_bookseller","curpage")};orderCheckController.prototype.setLayOut=function(){var a=$(window).height();var b=a-80;$(".acq-com-layout-div").css("height",b+"px");getLayWHByResize("acqComLayout")};orderCheckController.prototype.clear=function(a){if(a){clearGridData("acqDataGridList,orderDataGridList,checkDataGridList,holdDataGridList")}else{clearGridData("acqDataGridList,orderDataGridList,checkDataGridList,holdDataGridList")}if($("#editBibGrid").attr("class")){clearGridData("editBibGrid")}};orderCheckController.prototype.initAcqGrid=function(){var a=$("#acqDataGridList");if(!a.attr("class")){a.datagrid({singleSelect:true,fit:true,fitColumns:true,pagination:true,striped:true,border:false,rowStyler:rowStylerIsUpdateByLibcode,onSelect:orderCheckController.prototype.acqSelect,onDblClickRow:orderCheckController.prototype.onDblClickRow,onHeaderContextMenu:function(c,b){c.preventDefault();if(!bindTableMenu){createColumnMenu(a)}bindTableMenu.menu("show",{left:c.pageX,top:c.pageY})},columns:[bibGridColumnsFilter]})}};orderCheckController.prototype.acqSelect=function(a,b){if(!isUpdateByLibcode(b.libcode)){_linkbuttonObj.prototype.status(true,b)}else{_linkbuttonObj.prototype.status(false,b)}if(vType=="check"){orderCheckController.prototype.cleanCheckBibRecord();$("#tabsGrid").tabs("select",0)}if(vType=="tobookcheck"){orderCheckController.prototype.addOrder();$("#tabsGrid").tabs("select",1);if(!onExpandForCheckBibStatus){$("#acqMianLayout").layout("expand","east")}}selectEditBibId=b.id;bibGlobalController.prototype.loadGridData(b.id,"order",vType,"tabsGrid",0,"订购");bibGlobalController.prototype.loadGridData(b.id,"check",vType,"tabsGrid",1,"验收");bibGlobalController.prototype.loadGridData(b.id,"hold",vType,"tabsGrid",2,"馆藏")};orderCheckController.prototype.onDblClickRow=function(b,a){$("#tabsLeftGrid").tabs("select",1);bibController.prototype.setDataByGirdSelect(a.id);_linkbuttonObj.prototype.status(null,a)};orderCheckController.prototype.cleanJsonData=function(){bibGlobalController.prototype.updateLayOutTitle("acqComOrderCheckLayout","east","订购验收处理");cleanJsonData("checkbib_record")};_setConfig.prototype.initPage=function(){z3950Controller.prototype.initGrid();rfidController.prototype.intiGrid()};_setConfig.prototype.bibSetParam=function(a){$(".yanshou-grid").show();setJsonData("page_",cataConfigData)};bibController.prototype.set=function(){$("#pageconfig_setpara_dlg").dialog({onLoad:function(){var a=$("#config-tabs");a.tabs("select",1).tabs("resize")}}).dialog("open")};bibController.prototype.addOkBefore=function(){orderCheckController.prototype.clear();orderCheckController.prototype.cleanJsonData();$("#tabsLeftGrid").tabs("select",1)};bibController.prototype.addOkAfter=function(a){setTimeout(function(){$("#editBibGrid").datagrid("loadData",a);bibController.prototype.addAttrCtrlNO()},300)};bibController.prototype.pasteBefore=function(){$("#tabsLeftGrid").tabs("select",1);if($("#editBibGrid").attr("class")){$("#pasteMarcDlg").dialog("open")}else{setTimeout(function(){$("#pasteMarcDlg").dialog("open")},500)}};bibController.prototype.clear=function(a){orderCheckController.prototype.clear()};bibController.prototype.searchPostAfter=function(b,a){updataGridBibFlag(b,"acqDataGridList");$("#tabsLeftGrid").tabs("select",0);$("#tabsGrid").tabs("select",0);bibGlobalController.prototype.onLoadGridSuccess("acqDataGridList",b,a);$("#tabsLeftGrid").tabs("resize");$("#acqDataGridList").datagrid("resize")};rfidController.prototype.tabsGridApp=function(){$("#tabsLeftGrid").tabs("select",1);$("#tabsGrid").tabs("select",4)};rfidController.prototype.select=function(a,b){orderCheckController.prototype.cleanJsonData();if($("#editBibGrid").attr("class")){$("#editBibGrid").datagrid("loadData",b.marcrows)}else{setTimeout(function(){$("#editBibGrid").datagrid("loadData",b.marcrows)},500)}bibController.prototype.updateEditGridLeftTip("【阿法迪资源数据】"+addStyleHtmlNoSplit("未保存")+"")};z3950Controller.prototype.tabsGridApp=function(){$("#tabsLeftGrid").tabs("select",1);z3950TabIndex=3;$("#tabsGrid").tabs("select",z3950TabIndex)};z3950Controller.prototype.select=function(a,b){marcFlagType="0";orderCheckController.prototype.cleanJsonData();if($("#editBibGrid").attr("class")){$("#editBibGrid").datagrid("loadData",b.marcrows)}else{setTimeout(function(){$("#editBibGrid").datagrid("loadData",b.marcrows)},500)}bibController.prototype.updateEditGridLeftTip("【Z3950资源数据】"+addStyleHtmlNoSplit("未保存")+" ")};z3950Controller.prototype.searchDetailResult=function(b,a){$("#editBibGrid").datagrid("loadData",b.rows)};function handlerEidtBibModelCallFun(b,a){var c=$("#acqDataGridList").datagrid("getSelected");if(c){bibController.prototype.setDataByGirdSelect(c.id)}}function onResizeBySouth(b,a){if(a!=320){setLayWHByResize("acqComOrderCheckLayout","south",b,a)}}function otherLayResizeToMy(){$("#acqMianLayout").layout("resize");$(".easyui-panel").panel("resize");$("#acqMianLayout").layout("collapse","east");$("#tabsLeftGrid").tabs("resize")}bibGlobalController.prototype.onLoadGridSuccessAfter=function(a,b){if(a=="order"){updataGridOrderFlag(b,"orderDataGridList")}};