Class DefaultGenerationProcessor
- Namespace
- CMS.Plugin.BarcodeManagement.Abstractions.Implements
- Assembly
- CMS.Plugin.BarcodeManagement.Abstractions.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class DefaultGenerationProcessor : IGenerationProcessor
- Inheritance
-
DefaultGenerationProcessor
- Implements
- Inherited Members
Methods
BuildProcessor(BarcodeGenerationDetailModel, Guid?)
构建条码生成器
public virtual GenerationProcessor<ExtraPropertyDictionary> BuildProcessor(BarcodeGenerationDetailModel generationDetailModel, Guid? workStationId = null)
Parameters
generationDetailModel
BarcodeGenerationDetailModelworkStationId
Guid?
Returns
GenerateDateIndexKeyAsync(int, Guid, string, DateOnly, Guid?)
扩展:自增数字规则
public virtual Task<string> GenerateDateIndexKeyAsync(int incrementType, Guid barcodeGenerationId, string segmentName, DateOnly date, Guid? workStationId)
Parameters
incrementType
int自增数字规则类型
barcodeGenerationId
Guid条码Id
segmentName
string条码段名称
date
DateOnly当前日期时间
workStationId
Guid?工位Id
Returns
GenerateTimeFormatAsync(int, DateTimeOffset)
扩展:系统字段-系统时间-时间格式
public virtual Task<string> GenerateTimeFormatAsync(int timeFormatType, DateTimeOffset now)
Parameters
timeFormatType
int时间格式
now
DateTimeOffset当前日期时间
Returns
GetWeekOfYear(DateOnly)
Weeks the of year.
protected virtual int GetWeekOfYear(DateOnly date)
Parameters
date
DateOnlyThe date.
Returns
- int
Week Of Year
GetWeekOfYear(DateTimeOffset)
Weeks the of year.
protected virtual int GetWeekOfYear(DateTimeOffset date)
Parameters
date
DateTimeOffsetThe date.
Returns
- int
Week Of Year