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);
        }
Exemple #2
0
        public ActionResult GetGridJson(string keyword)
        {
            var data = rolebll.GetModelList("F_Category=1");

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