Esempio n. 1
0
        /// <summary>
        ///  树节点
        /// </summary>
        /// Author  : Napoleon
        /// Created : 2015-01-10 19:46:37
        public ActionResult GetTree()
        {
            string    ruleId = PublicFields.RuleIdCookies.ReadCookie();
            DataTable dt     = _menuAndRuleService.GetMenuTable(ruleId, PublicFields.ProjectId);
            string    json   = dt.ConvertToTreeJson(false);

            return(Content(json));
        }
Esempio n. 2
0
        public DataTable GetMenuXml(string ruleId, string projectId)
        {
            DataTable dt = _menuAndRuleService.GetMenuTable(ruleId, projectId);

            return(dt);
        }