コード例 #1
0
ファイル: TextUtilss.cs プロジェクト: B06-0253/NVTHAO
        static public string generateCode()
        {
            DateTime Date = TextUtilss.GetSystemDate();

            return(Date.Year.ToString() + Date.Month.ToString() + Date.Day.ToString() + Date.Hour.ToString()
                   + Date.Minute.ToString() + Date.Second.ToString() + Date.Millisecond.ToString());
        }
コード例 #2
0
ファイル: TextUtilss.cs プロジェクト: B06-0253/NVTHAO
 public static DateTime GetSystemDate()
 {
     try
     {
         return(Convert.ToDateTime(TextUtilss.getTable("spGetDateSystem", null, "Table").Rows[0][0]));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
コード例 #3
0
ファイル: TextUtilss.cs プロジェクト: B06-0253/NVTHAO
 public static DateTime GetBusinessDate()
 {
     try
     {
         return(Convert.ToDateTime(TextUtilss.getTable("spGetDate", null, "Table").Rows[0][0].ToString()));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }