示例#1
0
        private void __OutputFuncInfo(FuncTree __func)
        {
            object obj2;

            object[] objArray;
            __func.TargetUrl    = FuncTree.GetURLOfFirstValidEntity(this.Page, __func);
            obj2                = this.FuncsArrayInfo;
            this.FuncsArrayInfo = string.Concat(new object[] { obj2, "funcs_array[\"", (int)__func.Id, "\"] = {Id:", (int)__func.Id, ",LocalName:\"", __func.LocalName, "\",Icon:\"", __func.Icon, "\",TargetUrl:\"", __func.TargetUrl, "\"}\n" });
            return;
        }
示例#2
0
        private void __InirTopMenu()
        {
            FuncTree[]      treeArray;
            List <FuncTree> list;
            int             num;
            int             num2;
            FuncTree        tree;
            string          str;
            string          str2;
            string          str3;
            string          str4;
            string          str5;
            bool            flag;

            object[] objArray;
            this.ltTopMenu.Text = "<ul id='index-nav'>";
            if ((FunUtil.IsAdmin() == 0) != null)
            {
                goto Label_003E;
            }
            this.ltTopMenu.Text = this.ltTopMenu.Text + "<li><a class='runoob-pop' href='../../../Default.aspx' data-id='index' title='首页'><span class='spanTM current'>首页</span></a></li>";
Label_003E:
            treeArray = FuncTree.GetAllFuncs(-1);
            list      = new List <FuncTree>();
            if ((treeArray == null) != null)
            {
                goto Label_005D;
            }
            list.AddRange(treeArray);
Label_005D:
            num  = 0;
            num2 = 0;
            goto Label_01D6;
Label_0066:
            tree = list[num2];
            if (FunUtil.IsAdmin() != null)
            {
                goto Label_00D9;
            }
            if ((((((tree.Name != "单人模拟") == null) || ((tree.Name != "多人模拟") == null)) || ((tree.Name != "智能Agent仿真") == null)) ? 1 : ((tree.Name != "大数据分析") == 0)) != null)
            {
                goto Label_00D8;
            }
            goto Label_01D2;
            Label_00D8 :;
            Label_00D9 :
            str  = tree.Name;
            str2 = tree.LocalName;
            if ((string.IsNullOrEmpty(FuncTree.GetURLOfFirstValidEntity(this.Page, tree)) == 0) != null)
            {
                goto Label_010F;
            }
            goto Label_01D2;
Label_010F:
            if (((tree.Overdue == "1") == 0) != null)
            {
                goto Label_012E;
            }
            goto Label_01D2;
Label_012E:
            if (FunUtil.CanExecFunc(this.nUserId, tree.Id) != null)
            {
                goto Label_014B;
            }
            goto Label_01D2;
Label_014B:
            if (((num < 10) ? 1 : ((str != "系统维护") == 0)) == null)
            {
                goto Label_01D2;
            }
            num += 1;
            str4 = "runoob-pop";
            str5 = string.Format("<li><a href=\"javascript:;\" funcid=\"{0}\" onclick=\"navigate('{0}');return false;\" hidefocus=\"hidefocus\" align=\"absmiddle\" border=\"0\" class='{3}' /><span class='spanTM'>{2}</span></a></label>", new object[] { (int)tree.Id, tree.Icon, tree.LocalName, str4 });
            this.ltTopMenu.Text = this.ltTopMenu.Text + str5;
Label_01D2:
            num2 += 1;
Label_01D6:
            if ((num2 < list.Count) != null)
            {
                goto Label_0066;
            }
            this.ltTopMenu.Text = this.ltTopMenu.Text + "<li><a class='runoob-pop' href='../../../Default.aspx?act=logout' class='runoob-pop'><span class='spanTM'>退出登录</span></a></li>";
            this.ltTopMenu.Text = this.ltTopMenu.Text + "</ul>";
            return;
        }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            FuncTree tree;

            FuncTree[] treeArray;
            FuncTree   tree2;
            string     str;
            int        num;
            bool       flag;

            FuncTree[] treeArray2;
            int        num2;

            this.nSelFuncId = Util.GetInt(base.Request, "p", 0);
            if (((this.nSelFuncId < 1) == 0) != null)
            {
                goto Label_0031;
            }
            this.nSelFuncId = -1;
Label_0031:
            if (((this.nSelFuncId > 0) == 0) != null)
            {
                goto Label_010F;
            }
            tree = FuncTree.Get(this.nSelFuncId);
            if ((tree == null) != null)
            {
                goto Label_010E;
            }
            this.strDesktopName = tree.LocalName;
            this.strDesktopURL  = FuncTree.GetURLOfFirstValidEntity(this.Page, tree);
            if ((string.IsNullOrEmpty(this.strDesktopURL) == 0) != null)
            {
                goto Label_010D;
            }
            treeArray = FuncTree.GetAllFuncs(tree.Id);
            if (((treeArray == null) ? 1 : ((((int)treeArray.Length) > 0) == 0)) != null)
            {
                goto Label_010C;
            }
            treeArray2 = treeArray;
            num2       = 0;
            goto Label_00FD;
Label_00C0:
            tree2 = treeArray2[num2];
            str   = FuncTree.GetURLOfFirstValidEntity(this.Page, tree2);
            if (string.IsNullOrEmpty(str) != null)
            {
                goto Label_00F6;
            }
            this.strDesktopName = tree2.LocalName;
            this.strDesktopURL  = str;
            goto Label_010B;
Label_00F6:
            num2 += 1;
Label_00FD:
            if ((num2 < ((int)treeArray2.Length)) != null)
            {
                goto Label_00C0;
            }
            Label_010B :;
            Label_010C :;
            Label_010D :;
            Label_010E :;
Label_010F:
            if (base.IsPostBack != null)
            {
                goto Label_0162;
            }
            SkinUtil.AdhereStyleSheet(this.Page, "content.css");
            if (((PortalSettings.get_DefaultTypeSub() == 2) == 0) != null)
            {
                goto Label_015A;
            }
            this.m_strFuncBarBgStyle = "style='display:none;'";
            this.m_strWorkAreaStyle  = "style='top:0px;'";
Label_015A:
            this.__InitTabs();
Label_0162:
            return;
        }