22 lines
531 B
C#
22 lines
531 B
C#
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}";
|
|
}
|
|
}
|
|
}
|