Esempio n. 1
0
        public ActionResult TestGetActionName()
        {
            ActionPermissionService aps = new ActionPermissionService();

            List <Model.gn> gns = aps.GetAllActionByAssembly() as List <Model.gn>;

            return(View(gns));
        }
Esempio n. 2
0
        public ActionResult Init()
        {
            DAL.gn gndal = dal as DAL.gn;

            //清空现有功能表
            gndal.DeleteAll();

            //利用反射获取程序功能写入到t_gn表中
            ActionPermissionService aps = new ActionPermissionService();
            IList <Model.gn>        gns = aps.GetAllActionByAssembly();

            foreach (Model.gn gn in gns)
            {
                gndal.Add(gn);
            }
            return(Json(new ViewModels.Message {
                sno = 1, msg = ""
            }));
        }