/// <summary> /// 返回中文 /// </summary> public enuSysClass GetIDFromName(string Name) { enuSysClass c = new enuSysClass(); for (int i = 0; i < 100; i++) { c = (enuSysClass)i; if (c.ToString() == Name) { return(c); } } return((Neusoft.HISFC.Object.Base.SysClass.enuSysClass) int.Parse(Name)); }
/// <summary> /// 获得全部列表 /// </summary> /// <returns>ArrayList(SysClass)</returns> public static ArrayList List() { SysClass o; enuSysClass e = new enuSysClass(); ArrayList alReturn = new ArrayList(); int i; for (i = 0; i <= System.Enum.GetValues(e.GetType()).GetUpperBound(0); i++) { o = new SysClass(); o.ID = (enuSysClass)i; o.Memo = i.ToString(); alReturn.Add(o); } return(alReturn); }