Table of Contents

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 BarcodeGenerationDetailModel
workStationId Guid?

Returns

GenerationProcessor<ExtraPropertyDictionary>

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

Task<string>

自增索引唯一标识

GenerateTimeFormatAsync(int, DateTimeOffset)

扩展:系统字段-系统时间-时间格式

public virtual Task<string> GenerateTimeFormatAsync(int timeFormatType, DateTimeOffset now)

Parameters

timeFormatType int

时间格式

now DateTimeOffset

当前日期时间

Returns

Task<string>

按指定时间格式转换后的日期字符串

GetWeekOfYear(DateOnly)

Weeks the of year.

protected virtual int GetWeekOfYear(DateOnly date)

Parameters

date DateOnly

The date.

Returns

int

Week Of Year

GetWeekOfYear(DateTimeOffset)

Weeks the of year.

protected virtual int GetWeekOfYear(DateTimeOffset date)

Parameters

date DateTimeOffset

The date.

Returns

int

Week Of Year