var Util={isEmpty:function(a){return $.isArray(a)?0==a.length:$.isPlainObject(a)?$.isEmptyObject(a):"undefined"==typeof a||null===a||""==a},reloadDataGrid:function(a){$("#"+a).datagrid("reload")},reloadTreeGrid:function(a){$("#"+a).treegrid("reload")},array2Object:function(a){for(var b={},c=0,d=a.length;c=e?(a.width=b*d/e,a.height=c,a.style.marginLeft="-"+parseInt((a.width-b)/2)+"px"): (a.width=b,a.height=c*e/d,a.style.marginTop="-"+parseInt((a.height-c)/2)+"px");return a},getDeviceTypeIcon:function(a){var b=null;return b=a&&a.toString().startsWith("Linux")?"":a&&a.toString().startsWith("Win32")?"":a&&a.toString().startsWith("Android")?"":a&&a.toString().startsWith("LUA")?"":""},decodeStyleStr:function(a){if(!a)return null; var b=[];a=a.split(";");for(var c=a.length-1;0<=c;c--){var d=a[c].split(":");d[0]&&0=b.length)return a;for(var c=b.length,d=a.length,e="",f=0,g=0;g=c&&(f=0);return e},encodeParams:function(a){if("function"!=typeof getCookie)return console.log("getCookie===="+typeof getCookie),a;var b=getCookie("strkey");if(null==a||null==b)return a;var c={};$.each(a,function(a,b){void 0!=b.name?c[b.name]="string"==typeof b.value?encodeURI(b.value):b.value:c[a]="string"==typeof b?encodeURI(b):b});return{_p:window.btoa(Xxtea.xxtea_encrypt(JSON.stringify(c), b))}},MergeArray:function(a,b){for(var c=[],d=0;d=e/c)var f=b*e/c,b=e;else f=d,b=c*d/b;d=(d-f)/2;e=(e-b)/2;$(a).css({width:f+ "px",height:b+"px",marginLeft:d+"px",marginTop:e+"px"})}};