Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

İsim alanı : Aspose.BarCode.BarCodeRecognition Toplama: Aspose.BarCode.dll (25.4.0)

Müşteri Bilgileri alanı dekodasyonu için kamu arayüzü, AvustralyaPost sembolojisinde kullanılır.

public interface AustraliaPostCustomerInformationDecoder

Methods

Decode(Sırt)

Müşteri Bilgi alanını AvustralyaPost sembolojisinden dekore edin.NTable ve CTable kodlamasından farklı veri yorumları için kullanılabilir.Veriler bir satır değerleri olarak sağlanır: 0, 1, 2 veya 3.

string Decode(string customerInformationField)

Parameters

customerInformationField string

Müşteri Bilgi Alanı: 0, 1, 2 veya 3 çubuk değerleri olarak kodlanmıştır.

Returns

string

Decoded Müşteri Bilgi Alanı Çizgisi

Examples

Bu örnek, AustraliaPostCustomerInformationDecoder arayüzü ile verileri nasıl dekore edeceğinizi gösterir

string[] N_Table = { "00", "01", "02", "10", "11", "12", "20", "21", "22", "30" };
public string Decode(string customerInformationField)
{
    StringBuilder bd = new StringBuilder();
    for (int i = 0; customerInformationField.Length > i; i += 2)
    {
        if (customerInformationField.Length >= i + 2)
        {
            string tmp = customerInformationField.Substring(i, 2);
            for (int j = 0; N_Table.Length > j; j++)
            {
                if (N_Table[j].Equals(tmp))
                {
                    bd.Append(j);
                    break;
                }
            }
        }
    }
     return bd.ToString();
}
 Türkçe