Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

โดเมน: Aspose.BarCode.BarCodeRecognition คอมไพล์: Aspose.BarCode.dll (26.1.0)

อินเทอร์เฟซทั่วไปสำหรับการแตกข้อมูลของอาเรย์ที่มีข้อมูลของลูกค้า ใช้ในการเข้ารหัส AustraliaPost ผู้ใช้ต้องจัดเตรียมการนำไปใช้.

public interface AustraliaPostCustomerInformationDecoder

Parameters

Decode(string)

การถอดรหัสฟิลด์ข้อมูลลูกค้าจากรหัสของ AustraliaPost สามารถใช้เพื่อการตีความข้อมูลการเข้ารหัส NTable และ CTable ได้ ข้อมูลจะถูกให้เป็นชุดค่าบนแถบ: 0, 1, 2 หรือ 3.

string Decode(string customerInformationField)

Parameters

customerInformationField ซีรีส์

ฟิลด์ข้อมูลลูกค้าถูกเข้ารหัสเป็นลำดับค่าดังนี้: 0, 1, 2 หรือ 3

Parameters

ซีรีส์

อาเรย์ของฟิลด์ข้อมูลลูกค้าเสียหาย

Parameters

ตัวอย่างนี้แสดงวิธีการถอดรหัสข้อมูลโดยใช้อินเทอร์เฟซ AustraliaPostCustomerInformationDecoder.

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();
}
 แบบไทย