/// <summary>
    /// 主题分类
    /// </summary>
    public enum SubjectType
    {
        心脑血管 = 1310,
        内分泌 = 1309,
        肿瘤 = 1308,
        骨科 = 1307,
        消化 = 1306,
        呼吸 = 1305,
        泌尿 = 1304,
        神经 = 1303,
        核医学 = 1302,
        麻醉 = 1301
    }

 

 

 

 

int abd = Convert.ToInt32(MenZhen.Components.Enumerations.SubjectType.心脑血管) = 1310;
            string sdds = MenZhen.Components.Enumerations.SubjectType.心脑血管.ToString() = 心脑血管;

            hlkMetting.Text = ((MenZhen.Components.Enumerations.SubjectType)abd).ToString() = 心脑血管;

            this.ddlType.DataSource = Enum.GetNames(typeof(MenZhen.Components.Enumerations.SubjectType));
            this.ddlType.DataBind();

            int dd = Convert.ToInt32(Enum.Parse(typeof(MenZhen.Components.Enumerations.SubjectType), ddlType.SelectedValue));

posted on 2011-10-31 16:23  freedom831215  阅读(143)  评论(0编辑  收藏  举报