1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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
- {
- /// <summary>
- /// 学校
- /// </summary>
- School = 0,
- /// <summary>
- /// 管理者
- /// </summary>
- Manage = 2
- }
- public class CommonEnumHelper
- {
- public static List<SYS_CODE> 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();
- }
- }
- }
|