1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace YLShipBuildLandMap.Services.SystemSetting
- {
- public interface ISNServices
- {
- /// <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, string text = "");
- /// <summary>
- /// 获取下一位序列号不带key(可指定序列号位数)
- /// </summary>
- /// <param name="key">序列号的类别标识</param>
- /// <returns></returns>
- string GetSNValue(string key, int postfixLength = 2);
- /// <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);
- /// <summary>
- /// 获取下一个序列号带key同时更新,不带key(可指定序列号位数)
- /// </summary>
- /// <param name="key"></param>
- /// <returns></returns>
- string SetSNValue(string key, int postfixLength = 2, string text = "");
- }
- }
|