/// <summary>
        /// 保存rolecontrolmenudata数据集数据
        /// </summary>
        /// <param name="rolecontrolmenudata">数据集对象</param>
        /// <returns>返回保存后的响应信息</returns>
        public String SaveRoleControlMenu(RoleControlMenuData rolecontrolmenudata)
        {
            #region
            RoleControlMenuClass rolecontrolmenuclass = new RoleControlMenuClass();
            return(base.Save(rolecontrolmenudata, rolecontrolmenuclass));

            #endregion
        }
        /****************************************
         ***生成器版本:V1.0.1.31494
         ***生成时间:2013-04-06 17:31:07
         ***公司:山西ICat Studio有限公司
         ***友情提示:以下代码为生成器自动生成,可做参照修改之用;
         ***         如需有其他业务要求,可在region外添加新方法;
         ***         如发现任何编译和运行时错误,请联系QQ:330669393。
         *****************************************/

        #region public members methods

        /// <summary>
        /// 根据条件筛选所有RoleControlMenu指定页码的数据(分页型)
        /// </summary>
        /// <param name="rolecontrolmenu">实体对象</param>
        /// <param name="pageparams">分页对象</param>
        /// <returns></returns>
        public string GetJsonByPage(EntityRoleControlMenu rolecontrolmenu, PageParams pageparams)
        {
            #region
            int totalCount = 0;
            RoleControlMenuClass rolecontrolmenuclass = new RoleControlMenuClass();
            DataSet rolecontrolmenudata = this.GetData(rolecontrolmenu, pageparams, out totalCount);
            return(base.GetJson(rolecontrolmenudata, totalCount));

            #endregion
        }
示例#3
0
        /// <summary>
        /// 维护权限时显示的菜单(附带是否赋予权限)
        /// </summary>
        /// <param name="roleId"></param>
        /// <param name="usable"></param>
        /// <returns></returns>
        public string GetRoleControlMenu(string roleId)
        {
            #region
            string menulistjson = "";
            RoleControlMenuClass rolecontrolmenuclass = new RoleControlMenuClass();

            DataSet menulistdata = rolecontrolmenuclass.GetControlMenu(Convert.ToInt16(roleId));
            menulistjson += "{ \"text\":\".\",\"checked\": true,\"children\": [";

            string treejson = "";
            this.iteratorControlMenu(menulistdata, "0", ref treejson);

            treejson = treejson.Remove(treejson.Length - 1, 1);

            menulistjson += treejson + "]}";
            return(menulistjson);

            #endregion
        }