26 lines
622 B
C#
26 lines
622 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LearningOfficer.OA.Common.Helpers
|
|
{
|
|
public class AccountHelper
|
|
{
|
|
/// <summary>
|
|
/// 获取随机生成的账号
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static string GetAutoAccount()
|
|
{
|
|
string accountHead = "qx";
|
|
|
|
Random random = new Random();
|
|
int randomNumber = random.Next(10000000, 100000000);
|
|
accountHead += randomNumber.ToString();
|
|
return accountHead;
|
|
}
|
|
}
|
|
}
|