Esempio n. 1
0
    //显示自定义菜单
    private void BindFunctionList()
    {
        //this.UserFunctionLab.Text = UserHelper.GetUserFunctionText(userFunction, true);

        UserQueryTableBLL query_bll = new UserQueryTableBLL();
        DataTable         dt        = query_bll.GetUserQueryList(userId);

        menuHelper.SetQueryData(dt);

        this.MenuList.DataSource = menuHelper.GetUserFunction(function);
        this.MenuList.DataBind();
    }
Esempio n. 2
0
    //显示菜单
    private void BindMenuList()
    {
        UserQueryTableBLL query_bll = new UserQueryTableBLL();
        DataTable         dt        = query_bll.GetUserQueryList(userId);

        menuHelper.SetQueryData(dt);

        DataTable menus = menuHelper.GetMenuData();

        menus.DefaultView.RowFilter = "MenuType='system'";
        this.SystemMenu.DataSource  = menus;
        this.SystemMenu.DataBind();

        menus.DefaultView.RowFilter = "MenuType='query'";
        this.QueryList.DataSource   = menus;
        this.QueryList.DataBind();

        menus.DefaultView.RowFilter = "MenuType='user'";
        this.UserMenu.DataSource    = menus;
        this.UserMenu.DataBind();

        AddCheckBox();
    }