Пример #1
0
        /// <summary>
        /// ���ȫ���б�
        /// </summary>
        /// <returns>ArrayList(DiagnoseType)</returns>
        public static ArrayList List()
        {
            DiagnoseType    aDiagnoseType;
            enuDiagnoseType e        = new enuDiagnoseType();
            ArrayList       alReturn = new ArrayList();
            int             i;

            for (i = 1; i <= System.Enum.GetValues(e.GetType()).GetUpperBound(0); i++)
            {
                aDiagnoseType      = new DiagnoseType();
                aDiagnoseType.ID   = (enuDiagnoseType)i;
                aDiagnoseType.Memo = i.ToString();
                alReturn.Add(aDiagnoseType);
            }
            return(alReturn);
        }
Пример #2
0
        /// <summary>
        /// ���ȫ���б� ���ص�ʵ�� �̳���ISpellCode�ӿ�
        /// </summary>
        /// <returns>ArrayList(DiagnoseType)</returns>
        public static ArrayList SpellList()
        {
            neusoft.HISFC.Object.Base.SpellCode info = null;
            DiagnoseType    aDiagnoseType;
            enuDiagnoseType e        = new enuDiagnoseType();
            ArrayList       alReturn = new ArrayList();
            int             i;

            for (i = 1; i <= System.Enum.GetValues(e.GetType()).GetUpperBound(0) + 1; i++)
            {
                info               = new neusoft.HISFC.Object.Base.SpellCode();
                aDiagnoseType      = new DiagnoseType();
                aDiagnoseType.ID   = i;
                aDiagnoseType.Memo = i.ToString();
                info.ID            = i.ToString();
                info.Name          = aDiagnoseType.Name;
                alReturn.Add(info);
            }
            return(alReturn);
        }