var rowNum=0;var textArr=[];var updateRows;var _updateLocation;$(function(){initLocationTree(vLibcode)});var compare=function(a){return function(e,d){var c=e[a];var b=d[a];if(!isNaN(Number(c))&&!isNaN(Number(b))){c=Number(c);b=Number(b)}if(cb){return 1}else{return 0}}}};function initLocationTree(){var c=[];var b=new Map();b.set(vLibcode,vLibcode);var d={key:"location",condition:"libcode",value:vLibcode};var a=base_path+"par/common/getInitData.do";d.fmt="entity";$.post(a,d,function(f){var g=f.rows;for(var e=0;e0){var a=base_path+"par/common/getInitData.do";var c={key:"location",condition:"libcode",value:vLibcode};$.post(a,c,function(k){var h=k.rows;var g=[];for(var f=0;f3){var a=o.completecode.split(",");var g=n;var b=[];var f=[];for(var e=0;e20){openMessageDlg("显示的馆藏地点条数不能超过20条!");return}}if(h.showrdrtype){var j=$("#showrdrtype").datagrid("getChecked");if(j.length>20){openMessageDlg("显示的读者类型条数不能超过20条!");return}}if($(".sysOp").length>0){if(_updateLocation&&_updateLocation.length>0){var b=$("#location").tree("getChildren");var l=","+h.location+",";var k=",";for(var g=0;g=0&&d.indexOf(",")>=0){c.datagrid("checkRow",e)}else{if(f[e].id&&d.indexOf(","+f[e].id+",")>=0&&d.indexOf(",")>=0){c.datagrid("checkRow",e)}}}},100)}function setTreeChecked(a){a=","+a;var b=$("#location").tree("getChildren");for(var c=0;c=0&&a.indexOf(",")>=0){$("#location").tree("check",b[c].target)}else{$("#location").tree("uncheck",b[c].target)}}}function getTreeChecked(){var a=$("#location").tree("getChecked");var c="";for(var b=0;b