
var bsy=-1;var qjk=null;var cov=null;$(document).ready(function(){sgo()});$(window).load(function(){});function gpd(){if(!isNaN(bsy)&&bsy>0)return bsy;var a="/WebServices/Comman/Comman.asmx/gpd";var b=0;$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);bsy=r}});return bsy}
function sgo(){if(!ymr(qjk))return qjk;gpd();var c="/WebServices/Entity/Entity_Run.asmx/GetEntityList_CheckPower";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:c,async:false,data:"{MenuId:"+bsy+"}",dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){art.VLdialog.alert("获取网页菜单失败。详情："+JSON2.stringify(a),function(){},668,"提示");return false},success:function(a){a=hmy(a);if(a==null){art.VLdialog.alert("获取主页应用失败！",function(){},8,"提示");return false}
qjk=a;var b=$("div[ctrlarea=1]").find("select[fieldname='EntId']:first");b.html(elz())}})}
function elz(){var a=new nzy();if(qjk!=undefined&&qjk!=null){for(var i=0;i<qjk.length;i++){var b=qjk[i];a.append("<option  value=\""+b.EntId+"\">"+b.EntName+"</option>")}}
return a.toString()}