示例#1
0
    /// <summary>
    /// 获取菜单HTML 
    /// </summary>
    /// <returns></returns>
    private string GetMenuHTML()
    {
        if (string.IsNullOrEmpty(FileItems))
            return "";

        Test_BUL.sys_Common common = new Test_BUL.sys_Common();
        DataSet ds = common.GetList(" select id,menuName,imgUrl from tb_sys_sysmenu order by menuOrder asc ");
        if (Tools.Validator.CheckDataSet(ds, 0))
        {
            Test_BUL.sys_sysmenu bulMenu = new Test_BUL.sys_sysmenu();           
            return bulMenu.GetSystemMenu(ds, FileItems);
        }
        return "";
    }
示例#2
0
    /// <summary>
    /// 获取菜单HTML
    /// </summary>
    /// <returns></returns>
    private string GetMenuHTML()
    {
        if (string.IsNullOrEmpty(FileItems))
        {
            return("");
        }

        Test_BUL.sys_Common common = new Test_BUL.sys_Common();
        DataSet             ds     = common.GetList(" select id,menuName,imgUrl from tb_sys_sysmenu order by menuOrder asc ");

        if (Tools.Validator.CheckDataSet(ds, 0))
        {
            Test_BUL.sys_sysmenu bulMenu = new Test_BUL.sys_sysmenu();
            return(bulMenu.GetSystemMenu(ds, FileItems));
        }
        return("");
    }
示例#3
0
    /// <summary>
    /// 获取菜单HTML 
    /// </summary>
    private void LoadMenu()
    {
        //重新获取用户权限页面id集合,并写入缓存
        DataSet SysAdminDS = common.GetList(" select pageId from tb_sys_role where id=" + adminGetRoleId);
        Tools.CacheUtil.InsertCach(Test_BUL.sysParam.CachePageIdDs, (object)SysAdminDS, Test_BUL.sysParam.CachePageIdDsTimes, 2);

        string FileItems = SysAdminDS.Tables[0].Rows[0]["pageId"].ToString();//1,2,3,4,5,6,7,8,9...
        if (string.IsNullOrEmpty(FileItems))
            return;

        //获取所有系统菜单
        DataSet ds = common.GetList(" select id,menuName,imgUrl from tb_sys_sysmenu order by menuOrder asc ");
        if (Tools.Validator.CheckDataSet(ds, 0))
        {
            Test_BUL.sys_sysmenu bulMenu = new Test_BUL.sys_sysmenu();
            _response = bulMenu.GetSystemMenu(ds, FileItems);
        }
    }
示例#4
0
    /// <summary>
    /// 获取菜单HTML
    /// </summary>
    private void LoadMenu()
    {
        //重新获取用户权限页面id集合,并写入缓存
        DataSet SysAdminDS = common.GetList(" select pageId from tb_sys_role where id=" + adminGetRoleId);

        Tools.CacheUtil.InsertCach(Test_BUL.sysParam.CachePageIdDs, (object)SysAdminDS, Test_BUL.sysParam.CachePageIdDsTimes, 2);

        string FileItems = SysAdminDS.Tables[0].Rows[0]["pageId"].ToString();//1,2,3,4,5,6,7,8,9...

        if (string.IsNullOrEmpty(FileItems))
        {
            return;
        }

        //获取所有系统菜单
        DataSet ds = common.GetList(" select id,menuName,imgUrl from tb_sys_sysmenu order by menuOrder asc ");

        if (Tools.Validator.CheckDataSet(ds, 0))
        {
            Test_BUL.sys_sysmenu bulMenu = new Test_BUL.sys_sysmenu();
            _response = bulMenu.GetSystemMenu(ds, FileItems);
        }
    }