예제 #1
0
        private object GetDutyList()
        {
            Sys_RoleBLL rbll = new Sys_RoleBLL();
            var         data = rbll.GetModelList("F_Category=1");
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            foreach (var item in data)
            {
                var fieldItem = new
                {
                    encode   = item.F_EnCode,
                    fullname = item.F_FullName
                };
                dictionary.Add(item.F_Id, fieldItem);
            }
            return(dictionary);
        }
예제 #2
0
        public ActionResult GetGridJson(string keyword)
        {
            var data = rolebll.GetModelList("F_Category=1");

            return(Content(data.ToJson()));
        }