var eidtorGridObject=undefined;var eidtorGridIndex=undefined;var holdToolbar=[{text:"新增",iconCls:"e-icon fa fa-plus",handler:function(){_checkBibObj.prototype.addHoldRecord()}},"-",{text:"删除",iconCls:"e-icon fa fa-remove",handler:function(){removeitEidtorGridRow()}}];var _checkBibObj=function(){};var _initdata,_configData;$(function(){eidtorGridObject=$("#checkhold_eidtorgrid");_initdata=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");$(".easyui-panel").panel("resize");_myPage.prototype.getOperatorParam()});function checkRepeatHoldGrid(e){_copies=e;_initdata=mystorage.get("cat_init_data");_configData=mystorage.get("cat_config");var c=mystorage.get("cat_holdlist");if(mystorage.get("set_grid_holdlist")){c=mystorage.get("set_grid_holdlist");mystorage.remove("cat_holdlist")}eidtorGridIndex=undefined;clearGridData("checkhold_eidtorgrid");if(c&&c.length>0){var d=JSON.parse(c);for(var b=0;b-1){e.push(b[c])}}var g={};g["limit[0].condition"]="code";g["limit[0].typeHandler"]="3";g["limit[0].value"]=getSqlConditionLimitIn(f.showacqloccode);var a=base_path+"par/location/list.do";$.post(a,g,function(n){var r=n.rows;_myLocationData=r;var l=_initdata.rows[0].libcode;var q=[];for(var o=0;o-1){q.push(r[m])}}if(o&&$(o.target)){$(o.target).combobox("loadData",q);$(o.target).combobox("setValue",q[0].code)}}}}}}}},{field:"curlocation",title:"馆藏地点",width:"25%",formatter:onShowLocationNameByMyStorage,editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"200px",groupField:"group",required:true,editable:false,data:d,onChange:function(l,i){if(l!=undefined&&l!=i){if(eidtorGridIndex!=undefined){if(a){var g=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"doctype"});for(var h=0;h<_myLocationData.length;h++){if(_myLocationData[h].code==l){var j=_myLocationData[h].defdoctype;$(g.target).combobox("setValue",j);break}}}}}}}}},{field:"doctype",title:"文献类型",width:"25%",formatter:onShowDocTypeNameByMyStorage,editor:{type:"combobox",options:{valueField:"code",textField:"name",panelHeight:"200px",groupField:"group",required:true,editable:false,data:c}}},{field:"copies",title:"数量",width:"25%",editor:{type:"numberbox",options:{required:true}}}]]});var f=_copies;checkRepeatHoldGrid(f)};_checkBibObj.prototype.saveCheck=function(){acceptEidtorGrid();var a=eidtorGridObject.datagrid("getRows");var c=0;for(var b=0;b0){var d=0;for(var c=0;c=_copies){return openMessageDlg("设置分配验收数量合计不能大于副本数!")}}var a={};appendEidtorGridRow(a)};function colseParentDlg(){parent.colseIframeDlg("holdgrid_dlg",null,null)}function onShowLibNameByMyStorage(b,c){var d=_initdata.rows[0].libcode;if(b){for(var a=0;a