using Ant.Service.Common.Enums; using Central.Control.Domain; using MES.Production.Service.ServiceImp; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ChangFa.Machinery.WebPage { public enum CommonCodeType { 运动分类, 裁判级别, 性别, 年级, 户籍性质, 学校大类, 学校小类, 运动类型, 组队参赛, 比赛编码, 赛事状态 } public enum UserRoleType { /// /// 学校 /// School = 0, /// /// 管理者 /// Manage = 2 } public class CommonEnumHelper { public static List LoadDic(CommonCodeType CommonCodeType) { var codeTYpe = ClsDic.DicCodeType.Where(p => p.Key == CommonCodeType.ToString()).FirstOrDefault().Value; return new CodeManage().GetDicType().Where(p => p.CODETYPE == codeTYpe).ToList(); } } }