熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

訂單號生成

2022-06-13   來源: .NET編程 

  Random random = new Random();

  string strRandom = (randomNext( intMaxValue)ToString() + )Substring( );

  string orderId = name + DateTimeNowToString(yyyyMMddHHmmssffff) + strRandom;


From:http://tw.wingwit.com/Article/program/net/201311/13013.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.