function MenuConvertTools(data) { this.data = data; } // 获取系统菜单 MenuConvertTools.prototype.getSystemMenus = function () { var endtM = this.data; console.log(GetQueryString("EnName")) var mypk = new WebUser().No + "_Funcs_HS_" + GetQueryString("EnName"); var userRegedit = new Entity("BP.Sys.UserRegedit"); userRegedit.SetPKVal(mypk); var count = userRegedit.RetrieveFromDBSources(); //求出所有的分组名称. var systemNode = []; var GroupName = []; var GroupNames = []; var j = 0; for (var i = 0; i < endtM.length; i++) { var en = endtM[i]; if (en.GroupName == null || en.GroupName == "") continue; if (GroupNames.indexOf(en.GroupName) == -1) { j++; GroupNames[j] = en.GroupName; Gl = { "Name": en.GroupName, "No": "Tno" + j, "Icon":"icon-folder"} GroupName.push(Gl); } } if (GroupName.length==0) GroupName.push({ "Name": "基本信息", "No": "Tno0", "Icon": "icon-folder" }); //生成菜单. var adminMenuNodes = []; for (var i = 0; i < GroupName.length; i++) { var systemNode = GroupName[i]; systemNode.children = []; if (i == 0) { systemNode.open = true; } else { systemNode.open = false; } if (count != 0 && userRegedit.MVals.indexOf(",dtM_" + systemNode.Name + ",") != -1) continue; /* var gName = GroupName[i]; if (gName == "") continue; if (userRegedit != null && userRegedit != undefined && userRegedit.MVals.indexOf(",dtM_" + gName + ",") != -1) continue; if (gName.length == 2 && gName.indexOf('基本信息') != -1) html += ""; else systemNode=gName;*/ //填入菜单内容. /*html += "