1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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, string text = "");
- /// <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);
- /// <summary>
- /// 获取下一个序列号带key同时更新(可指定序列号位数)
- /// </summary>
- /// <param name="key">序列号的类别标识</param>
- /// <returns></returns>
- string SetDialySN(string key, int postfixLength = 2);
- }
- }
|