28 lines
750 B
C#
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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|