コード例 #1
0
        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"));
            }
        }
コード例 #2
0
ファイル: Common.cs プロジェクト: adhittia/skripsi-2009
 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");
     }
 }