Class HIBCLICCombinedCodetext

Class HIBCLICCombinedCodetext

Названий на: Aspose.BarCode.ComplexBarcode Асамблея: Aspose.BarCode.dll (25.4.0)

Клас для кодування та декодування тексту, вбудованого в код HIBC LIC, який зберігає первинні та вторинні дані.

public class HIBCLICCombinedCodetext : HIBCLICComplexCodetext, IComplexCodetext

Inheritance

object HIBCLICComplexCodetext HIBCLICCombinedCodetext

Implements

IComplexCodetext

Нападні члени

HIBCLICComplexCodetext.GetConstructedCodetext() , HIBCLICComplexCodetext.InitFromString(string) , HIBCLICComplexCodetext.GetBarcodeType() , HIBCLICComplexCodetext.BarcodeType , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Цей зразк показує, як кодувати і декодувати HIBC LIC за допомогою HIBCLICCombinedCodetext.

HIBCLICCombinedCodetext combinedCodetext = new HIBCLICCombinedCodetext();
combinedCodetext.BarcodeType = EncodeTypes.HIBCQRLIC;
combinedCodetext.PrimaryData = new PrimaryData();
combinedCodetext.PrimaryData.ProductOrCatalogNumber = "12345";
combinedCodetext.PrimaryData.LabelerIdentificationCode = "A999";
combinedCodetext.PrimaryData.UnitOfMeasureID = 1;
combinedCodetext.SecondaryAndAdditionalData = new SecondaryAndAdditionalData();
combinedCodetext.SecondaryAndAdditionalData.ExpiryDate = DateTime.Now;
combinedCodetext.SecondaryAndAdditionalData.ExpiryDateFormat = HIBCLICDateFormat.MMDDYY;
combinedCodetext.SecondaryAndAdditionalData.Quantity = 30;
combinedCodetext.SecondaryAndAdditionalData.LotNumber = "LOT123";
combinedCodetext.SecondaryAndAdditionalData.SerialNumber = "SERIAL123";
combinedCodetext.SecondaryAndAdditionalData.DateOfManufacture = DateTime.Now;
using (ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(combinedCodetext))
{
    Bitmap image = generator.GenerateBarCodeImage();
    using (BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC))
    {
        reader.ReadBarCodes();
        string codetext = reader.FoundBarCodes[0].CodeText;
        HIBCLICCombinedCodetext result = (HIBCLICCombinedCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
        Console.WriteLine("Product or catalog number: " + result.PrimaryData.ProductOrCatalogNumber);
        Console.WriteLine("Labeler identification code: " + result.PrimaryData.LabelerIdentificationCode);
        Console.WriteLine("Unit of measure ID: " + result.PrimaryData.UnitOfMeasureID);
        Console.WriteLine("Expiry date: " + result.SecondaryAndAdditionalData.ExpiryDate);
        Console.WriteLine("Quantity: " + result.SecondaryAndAdditionalData.Quantity);
        Console.WriteLine("Lot number: " + result.SecondaryAndAdditionalData.LotNumber);
        Console.WriteLine("Serial number: " + result.SecondaryAndAdditionalData.SerialNumber);
        Console.WriteLine("Date of manufacture: " + result.SecondaryAndAdditionalData.DateOfManufacture);
    }
}

Constructors

Створення HIBCLICCombinedCodetext()

public HIBCLICCombinedCodetext()

Properties

PrimaryData

Визначити основні дані.

public PrimaryData PrimaryData { get; set; }

вартість нерухомості

PrimaryData

SecondaryAndAdditionalData

Визначити вторинні та додаткові дані.

public SecondaryAndAdditionalData SecondaryAndAdditionalData { get; set; }

вартість нерухомості

SecondaryAndAdditionalData

Methods

Equals(Об’єкт)

Повертає значення, що вказує на те, чи дорівнює ця інстанція визначеному значенням Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext.

public override bool Equals(object obj)

Parameters

obj object

A Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext значення порівнювати з цим прикладом.

Returns

bool

правда якщо OBJ має таку ж вартість, як і ця інстанція; інакше, Фальшиві.

GetConstructedCodetext()

Створення Кодекс

public override string GetConstructedCodetext()

Returns

string

Створений кодекс

GetHashCode()

Поверніть код hash для цього прикладу.

public override int GetHashCode()

Returns

int

32-бітний підписання повного коду хаша.

InitFromString(стрічка)

Ініціалізація прикладу з побудованого кодетексту.

public override void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

Створений кодекс.

 Українська