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

訂單號生成

2013-11-13 10:14:23  來源: .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-2013 電腦知識網 Computer Knowledge   All rights reserved.