You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
893 B
27 lines
893 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Base.Config.DBHelper;
|
|
using System.Data;
|
|
|
|
namespace ICSSoft.Frame.Data.DAL
|
|
{
|
|
public class APPConfigDAL
|
|
{
|
|
/// <summary>
|
|
/// 获取单据号
|
|
/// </summary>
|
|
/// <param name="tbName"></param>
|
|
/// <param name="colName"></param>
|
|
/// <param name="Pre"></param>
|
|
/// <param name="numLen"></param>
|
|
/// <returns></returns>
|
|
public static string GetSerialCode(string connectString, string tbName, string colName, string Pre, int numLen)
|
|
{
|
|
string sql = "EXEC Addins_GetSerialCode '{0}','{1}','{2}',{3},{4}";
|
|
sql = string.Format(sql, new object[] {"",tbName, colName, Pre, numLen });
|
|
return DBHelper.ExecuteScalar(connectString, CommandType.Text, sql).ToString();
|
|
}
|
|
}
|
|
}
|