var filterParam=[{code:"name",key:"location",condition:"libcode",value:vLibcode}];var onLoadParamNum=0;function overLoadInitData(){var a=getInitJsonArray(getInitCodeArray("record"));filterParam.forEach(function(c,d,e){a.push(c)});a.push({code:"copiesLocation",key:"location",condition:"libcode",value:vLibcode});a.push({code:"copiesDoctype",key:"doctype",condition:"libcode",value:vLibcode});a.push({code:"copiesLibcode",key:"libcode",condition:"code",value:vLibcode});_myPage.prototype.initData(a);_myPage.prototype.getOperatorParam();$("#page_copiesDataGridList").datagrid({onSelect:copiesController.prototype.gridSelect});bindConpiesEvent();var b={code:"copiesLocation",unionlist:[{code:"defdoctype",orgcode:"copiesDoctype"}]};_myPage.prototype.initUnionShowByLocation(b);initSelectRuleList();$("#ruleList").combobox({onChange:function(d,c){if(d){setRuleGridByNewValue(d)}}})}function setRuleGridByNewValue(c){var b={};b.pk=c;var a=base_path+"par/defloc/get.do";$.post(a,b,function(e){var d=e.rows[0].paramjson;if(d){d=JSON.parse(d);setValue("page_copiesDataGridList",d.page_copiesDataGridList)}else{openMessageDlg("当前选中的分类号没有设置复本数分配规则!")}},"json")}function closeWin(){$("#win").window("close");initSelectRuleList()}function initSelectRuleList(){var b={};var a=base_path+"par/defloc/list.do";$.post(a,b,function(c){var d="auto";if(c.rows.length>10){d="200px"}$("#ruleList").combobox({data:c.rows,valueField:"code",textField:"code",panelHeight:d,loadFilter:function(e){var f={};f.code="";f.code="无";e.splice(0,0,f);return e},onLoadSuccess:function(){$(this).combobox("select","")}})},"json")}function bindConpiesEvent(){$("#copiesCopies").numberbox().next("span").find("input").focus().select().keydown(function(a){if(a.keyCode==13){copiesController.prototype.insertRow()}})}_myPage.prototype.initComboxByOperatorParm=function(f){if(f.showacqloccode){var b=_fmtGridDataRows.rows[0].location;var e=[];for(var c=0;c-1){e.push(b[c])}}$("#copiesLocation").combobox("loadData",e);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 m=n.rows;_myLocationData=m;var p=_fmtGridDataRows.rows[0].doctype;$("#copiesDoctype").combobox("loadData",p);var o=_fmtGridDataRows.rows[0].libcode;var j=[];for(var l=0;l