private static String CreateIdNumber(TypeSMS type) { switch (type) { case TypeSMS.Broadcast: return("b" + DateTime.Now.ToString("yyyyMMddHHmmssff")); case TypeSMS.Input: return("i" + DateTime.Now.ToString("yyyyMMddHHmmssff")); case TypeSMS.Output: return("o" + DateTime.Now.ToString("yyyyMMddHHmmssff")); default: return("u" + DateTime.Now.ToString("yyyyMMddHHmmssff")); } }
private static String CreateIdNumber(TypeSMS type) { switch (type) { case TypeSMS.Broadcast: return "b" + DateTime.Now.ToString("yyyyMMddHHmmssff"); case TypeSMS.Input: return "i" + DateTime.Now.ToString("yyyyMMddHHmmssff"); case TypeSMS.Output: return "o" + DateTime.Now.ToString("yyyyMMddHHmmssff"); default: return "u" + DateTime.Now.ToString("yyyyMMddHHmmssff"); } }