Class HIBCPASCodetext

Class HIBCPASCodetext

Именује се: Aspose.BarCode.ComplexBarcode Асамблеја: Aspose.BarCode.dll (25.4.0)

Класа за кодирање и декодирање текста уграђеног у код ХИБЦ ПАС.

public class HIBCPASCodetext : IComplexCodetext

Inheritance

object HIBCPASCodetext

Implements

IComplexCodetext

Наслеђени чланови

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Овај узор показује како кодирати и декодирати ХИБЦ ПАС користећи ХИБЦПАСЦОДЕКСТ.

HIBCPASComplexCodetext complexCodetext = new HIBCPASComplexCodetext();
complexCodetext.DataLocation = HIBCPASDataLocation.Patient;
complexCodetext.AddRecord(HIBCPASDataType.LabelerIdentificationCode, "A123");
complexCodetext.AddRecord(HIBCPASDataType.ManufacturerSerialNumber, "SERIAL123");
complexCodetext.BarcodeType = EncodeTypes.HIBCDataMatrixPAS;
using (ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext))
{
    using (BarCodeReader reader = new BarCodeReader(generator.GenerateBarCodeImage(), DecodeType.HIBCDataMatrixPAS))
    {
        reader.ReadBarCodes();
        string codetext = reader.FoundBarCodes[0].CodeText; 
		HIBCPASComplexCodetext readCodetext = ComplexCodetextReader.TryDecodeHIBCPAS(codetext);
		Console.WriteLine("Data location: {0}", readCodetext.DataLocation);
        Console.Write("Data type: {0}. ", readCodetext.GetRecords()[0].DataType);
        Console.WriteLine("Data: {0}", readCodetext.GetRecords()[0].Data);
        Console.Write("Data type: {0}. ", readCodetext.GetRecords()[1].DataType);
        Console.WriteLine("Data: {0}", readCodetext.GetRecords()[1].Data);

    }
}

Constructors

ХИБЦПАСКОДЕКСТ()

public HIBCPASCodetext()

Properties

BarcodeType

HIBC PAS codetext se može kodirati pomoću HIBCCode39PAS, HIBCCode128PAS, HIBCAztec:PAS, HIBCDataMatrixPAS i HIBCQRPAS kod tipa.Стандардна вредност: HIBCCode39PAS.

public BaseEncodeType BarcodeType { get; set; }

Вредност имовине

BaseEncodeType

DataLocation

Идентификује локацију података.

public HIBCPASDataLocation DataLocation { get; set; }

Вредност имовине

HIBCPASDataLocation

Methods

AddRecord(ХИБЦПАСДАНАТИПЕ, Стринг)

Додај нови рекорд

public void AddRecord(HIBCPASDataType dataType, string data)

Parameters

dataType HIBCPASDataType

Тип података

data string

Стринг података

AddRecord(ХИБЦПАСРекорд)

Додај нови рекорд

public void AddRecord(HIBCPASRecord record)

Parameters

record HIBCPASRecord

Рекорд који треба додати

Clear()

Чисте листе рекорда

public void Clear()

Equals(Објекат)

Враћа вредност која указује да ли је ова инстанција једнака одређеној вредности Aspose.BarCode.ComplexBarcode.HIBCPASCodetext.

public override bool Equals(object obj)

Parameters

obj object

Aspose.BarCode.ComplexBarcode.HIBCPASCodetext вредност да се упореди са овим примјером.

Returns

bool

Истински ако OBJ има исту вредност као и ова инстанција; иначе, фалсификовани.

GetBarcodeType()

добија врсту баркода.

public BaseEncodeType GetBarcodeType()

Returns

BaseEncodeType

Тип баркода

GetConstructedCodetext()

Изградња кодетекста

public string GetConstructedCodetext()

Returns

string

Конструисани кодекс

GetHashCode()

Повратак хаш кода за ову инстанцију.

public override int GetHashCode()

Returns

int

32-бит је потписао интегрисани хаш код.

GetRecords()

Добијају листу рекорда

public List<hibcpasrecord> GetRecords()

Returns

List < HIBCPASRecord >

Списак рекорда

InitFromString(Стринг)

Иницијалише примјер из изграђеног кодетекста.

public void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

Конструисани кодекс.

 Српски