12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace EMIS.CommonLogic.SystemServices
- {
- public interface ISerialNumberServices
- {
- /// <summary>
- /// 获取下一个序列号带key(可指定序列号位数)
- /// </summary>
- /// <param name="key">序列号的类别标识</param>
- /// <returns></returns>
- string GetSN(string key, int postfixLength = 2);
- /// <summary>
- /// 获取下一个序列号带key同时更新(可指定序列号位数)
- /// </summary>
- /// <param name="key">序列号的类别标识</param>
- /// <returns></returns>
- string SetSN(string key, int postfixLength = 2);
- /// <summary>
- /// 获取下一位序列号不带key
- /// </summary>
- /// <param name="key">序列号的类别标识</param>
- /// <returns></returns>
- int GetSNValue(string key);
- /// <summary>
- /// 设置下一个序列号,同时更新(带skip)
- /// 把序列号向后跳过一定的数量,该方法主要用于批量建立序列号
- /// </summary>
- /// <param name="key"></param>
- /// <param name="skipCount"></param>
- /// <returns></returns>
- void SkipSN(string key, int skipCount);
- }
- }
|