Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

Tên không gian: Aspose.BarCode.BarCodeRecognition Tổng hợp: Aspose.BarCode.dll (25.4.0)

Giao diện công cộng cho Bộ mã hóa trường thông tin khách hàng được sử dụng trong biểu tượng AustraliaPost.

public interface AustraliaPostCustomerInformationDecoder

Methods

Decode(String)

Xóa trường thông tin khách hàng từ AustraliaPost Symbology.Có thể được sử dụng để giải thích dữ liệu khác nhau từ NTable và CTable mã hóa.Dữ liệu được cung cấp như một chuỗi các giá trị thanh: 0, 1, 2 hoặc 3.

string Decode(string customerInformationField)

Parameters

customerInformationField string

Trường thông tin khách hàng được mã hóa như một chuỗi các giá trị hàng rào: 0, 1, 2 hoặc 3

Returns

string

Màn hình trường thông tin khách hàng decoded

Examples

Mẫu này cho thấy cách giải mã dữ liệu với AustraliaPostCustomerInformationDecoder giao diện

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();
}
 Tiếng Việt