update from old git
This commit is contained in:
21
web/App_Code/Model/Partial/GuaDanOrder.cs
Normal file
21
web/App_Code/Model/Partial/GuaDanOrder.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
/// <summary>
|
||||
/// GuaDanOrder 的摘要描述
|
||||
/// </summary>
|
||||
namespace Model
|
||||
{
|
||||
public partial class GuaDanOrder
|
||||
{
|
||||
public static string GenerateStatusCode()
|
||||
{
|
||||
string prefix = "GD";
|
||||
string datePart = DateTime.Now.ToString("yyyyMMdd");
|
||||
string randomPart = Guid.NewGuid().ToString("N").Substring(0, 4).ToUpper();
|
||||
return $"{prefix}{datePart}-{randomPart}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user