private void SourDataBind() { EnTypeEnum ete = new EnTypeEnum(); enType.Items.Clear(); foreach (string cname in Enum.GetNames(ete.GetType())) { int s_value = Convert.ToInt16(Enum.Parse(ete.GetType(), cname)); string s_text = EnumCatch.GetCompanyType(s_value); enType.Items.Add(new ListItem(s_text, s_value.ToString())); } CommTypeEnum cte = new CommTypeEnum(); enco.Items.Clear(); foreach (string ecname in Enum.GetNames(cte.GetType())) { int s_value = Convert.ToInt16(Enum.Parse(cte.GetType(), ecname)); string s_text = EnumCatch.GetEnCommType(s_value); enco.Items.Add(new ListItem(s_text, s_value.ToString())); } enconfig.AddTableData(CardConfigs.GetCardConfigList(), "ccname", "id"); }
/// <summary> /// 获取企业经济类型名称 /// </summary> public static string GetEnCommType(CommTypeEnum cte) { return GetEnCommType(Convert.ToInt16(cte)); }