Class HIBCLICCombinedCodetext
Namespace: Aspose.BarCode.ComplexBarcode
Assembly: Aspose.BarCode.dll (25.1.0)
HIBC LIC kodunda yer alan metni kodlamak ve çözmek için sınıf, birincil ve ikincil verileri saklar.
public class HIBCLICCombinedCodetext : HIBCLICComplexCodetext, IComplexCodetext
Miras
object ← HIBCLICComplexCodetext ← HIBCLICCombinedCodetext
Uygulamalar
Miras Alınan Üyeler
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()
Örnekler
Bu örnek, HIBCLICCombinedCodetext kullanarak HIBC LIC’in nasıl kodlanacağını ve çözüleceğini gösterir.
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("Ürün veya katalog numarası: " + result.PrimaryData.ProductOrCatalogNumber);
Console.WriteLine("Etiketleyici tanımlama kodu: " + result.PrimaryData.LabelerIdentificationCode);
Console.WriteLine("Ölçü birimi ID: " + result.PrimaryData.UnitOfMeasureID);
Console.WriteLine("Son kullanma tarihi: " + result.SecondaryAndAdditionalData.ExpiryDate);
Console.WriteLine("Miktar: " + result.SecondaryAndAdditionalData.Quantity);
Console.WriteLine("Parti numarası: " + result.SecondaryAndAdditionalData.LotNumber);
Console.WriteLine("Seri numarası: " + result.SecondaryAndAdditionalData.SerialNumber);
Console.WriteLine("Üretim tarihi: " + result.SecondaryAndAdditionalData.DateOfManufacture);
}
}
Yapıcılar
HIBCLICCombinedCodetext()
public HIBCLICCombinedCodetext()
Özellikler
PrimaryData
Birincil verileri tanımlar.
public PrimaryData PrimaryData { get; set; }
Özellik Değeri
SecondaryAndAdditionalData
İkincil ve ek destek verilerini tanımlar.
public SecondaryAndAdditionalData SecondaryAndAdditionalData { get; set; }
Özellik Değeri
Metotlar
Equals(object)
Bu örneğin, belirtilen Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext değeri ile eşit olup olmadığını belirten bir değer döndürür.
public override bool Equals(object obj)
Parametreler
obj
object
Bu örnekle karşılaştırılacak bir Aspose.BarCode.ComplexBarcode.HIBCLICCombinedCodetext değeri.
Dönüş
true eğer obj bu örnekle aynı değere sahipse; aksi takdirde false.
GetConstructedCodetext()
Kod metnini oluşturur.
public override string GetConstructedCodetext()
Dönüş
Oluşturulan kod metni
GetHashCode()
Bu örneğin hash kodunu döndürür.
public override int GetHashCode()
Dönüş
32 bit işaretli tam sayı hash kodu.
InitFromString(string)
Oluşturulmuş kod metninden örneği başlatır.
public override void InitFromString(string constructedCodetext)
Parametreler
constructedCodetext
string
Oluşturulmuş kod metni.