Class HIBCLICCombinedCodetext
Именује се: Aspose.BarCode.ComplexBarcode Асамблеја: Aspose.BarCode.dll (25.5.0)
Класа за кодирање и декодирање текста уграђеног у ХИБЦ ЛИЦ код који складишти примарне и секундарне податке.
public class HIBCLICCombinedCodetext : HIBCLICComplexCodetext, IComplexCodetextInheritance
object ← HIBCLICComplexCodetext ← HIBCLICCombinedCodetext
Implements
Наслеђени чланови
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
Овај узор показује како кодирати и декодирати ХИБЦ ЛИЦ користећи ХИБЦЛИЦЦомбинедЦодетекст.
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
ХИБКЛИЦКомбинираниКодтекст()
public HIBCLICCombinedCodetext()Properties
PrimaryData
Идентификује примарне податке.
public PrimaryData PrimaryData { get; set; }Вредност имовине
SecondaryAndAdditionalData
Идентификује секундарне и додатне податке.
public SecondaryAndAdditionalData SecondaryAndAdditionalData { get; set; }Вредност имовине
Methods
Equals(Објекат)
Враћа вредност која указује да ли је ова инстанција једнака одређеној вредности Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext.
public override bool Equals(object obj)Parameters
obj object
Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext вредност да се упореди са овим инстанцијом.
Returns
Истински ако OBJ има исту вредност као и ова инстанција; иначе, фалсификовани.
GetConstructedCodetext()
Изградња кодетекста
public override string GetConstructedCodetext()Returns
Конструисани кодекс
GetHashCode()
Повратак хаш кода за ову инстанцију.
public override int GetHashCode()Returns
32-бит је потписао интегрисани хаш код.
InitFromString(Стринг)
Иницијалише примјер из изграђеног кодетекста.
public override void InitFromString(string constructedCodetext)Parameters
constructedCodetext string
Конструисани кодекс.