日期:2014-05-17 浏览次数:20564 次
/// <summary>
/// 婚姻状况
/// </summary>
/// <returns></returns>
public static Dictionary<int, string> MarryState()
{
Dictionary<int, string> dic = new Dictionary<int, string>();
dic.Add(0, "未知");
dic.Add(1, "未婚");
dic.Add(2, "已婚");
dic.Add(3, "离异");
dic.Add(4, "丧偶");
return dic;
}
foreach (KeyValuePair<int, string> kv in PowerGather.MarryState())
{
result += "<option value=\"" + kv.Key.ToString() + "\" >" + kv.Value + "</option>";
}
foreach (int value in Enum.GetValues(typeof(enumTest)))
{
string name = Enum.GetName(typeof(enumTest), value);
}