Пример #1
0
        public string GetRoleList()
        {
            List <SUC_ROLE> rs = new SUC_ROLE().FindAll();

            JSS.Serialize(rs, sb);
            return(sb.ToString());
        }
Пример #2
0
        public string GetUserList(string s_name)
        {
            List <SUC_USER> us = new List <SUC_USER>();
            SUC_USER        u  = new SUC_USER();

            if (!string.IsNullOrEmpty(s_name))
            {
                u = new SUC_USER()
                {
                    NAME = s_name
                };
            }
            us = u.FindByCondition(u);
            if (us != null)
            {
                us.ForEach(x => x.Rolename = x.ROLE.NAME);
            }
            JSS.Serialize(us, sb);
            return(sb.ToString());
        }