Class HIBCLICCombinedCodetext

Class HIBCLICCombinedCodetext

Nazwa przestrzeń: Aspose.BarCode.ComplexBarcode Zgromadzenie: Aspose.BarCode.dll (25.4.0)

Klasa kodowania i dekodowania tekstu wbudowanego w kod HIBC LIC, który przechowuje dane podstawowe i sekundarne.

public class HIBCLICCombinedCodetext : HIBCLICComplexCodetext, IComplexCodetext

Inheritance

object HIBCLICComplexCodetext HIBCLICCombinedCodetext

Implements

IComplexCodetext

Dziedziczeni członkowie

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

Ten próbek pokazuje, jak kodować i dekodować HIBC LIC za pomocą 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

ŁańcuchCombinedCodetext()

public HIBCLICCombinedCodetext()

Properties

PrimaryData

Identyfikacja danych podstawowych.

public PrimaryData PrimaryData { get; set; }

Wartość nieruchomości

PrimaryData

SecondaryAndAdditionalData

Identyfikuje dodatkowe i dodatkowe dane.

public SecondaryAndAdditionalData SecondaryAndAdditionalData { get; set; }

Wartość nieruchomości

SecondaryAndAdditionalData

Methods

Equals(Obiekt)

Powraca wartość wskazującą, czy ta instancja jest równa określonej wartości Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext.

public override bool Equals(object obj)

Parameters

obj object

A Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext wartość do porównania z tą instancją.

Returns

bool

prawda jeśli obj ma taką samą wartość jak ta instancja; w przeciwnym razie, fałszywe.

GetConstructedCodetext()

Tworzenie kodektu

public override string GetConstructedCodetext()

Returns

string

Wykonane kodeksy

GetHashCode()

Wróć do kodu hash w tym przypadku.

public override int GetHashCode()

Returns

int

32-bitowy podpis całego kodu hash.

InitFromString(strumień)

Inicjalizuje przykład z wybudowanego kodektu.

public override void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

Wykonane kodeksy.

 Polski