tijian_tieying/web/dccdc.BLL/G_identityBll.cs
2025-02-20 12:14:39 +08:00

28 lines
750 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using dccdc.DAL;
namespace dccdc.BLL
{
public class G_identityBll
{
public G_identityDal dal = new G_identityDal();
public string GetMaxId(string tableName, int needcount)
{
return dal.GetMaxId(tableName, needcount);
}
/// <summary>
/// 登记条码生成
/// </summary>
/// <returns></returns>
public string Tm(string firstNumber)
{
string num = firstNumber + DateTime.Now.ToString("yyyyMMdd") +Convert.ToInt32(dal.GetMaxId("professional_charge_project", 1)).ToString("D4");
return num;
}
}
}