public static string GetData(Flag Flag, string CustomerID = "") { switch (Flag) { case Flag.Birth: return(birth.AutoData()); case Flag.Address: return(add.AutoData()); case Flag.Email: return(email.AutoData()); case Flag.Name: return(name.AutoData()); case Flag.Num: return(num.AutoData()); case Flag.Pwd: return(pwd.AutoData()); case Flag.Phone: return(phone.AutoData()); case Flag.QQ: return(qq.AutoData()); case Flag.Sex: return(sex.AutoData()); case Flag.Age: return(age.AutoData()); case Flag.Customer: //自定义数据有点特殊 取一个集合 return(customerData[CustomerID].AutoData()); case Flag.GUID: return(guid.AutoData()); case Flag.NowTime: return(nowtime.AutoData()); case Flag.ToDay: return(today.AutoData());; default: return(""); } }