Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

ชื่อพื้นที่: Aspose.BarCode.BarCodeRecognition การประกอบ: Aspose.BarCode.dll (25.4.0)

อินเตอร์เฟซสาธารณะสําหรับการ decoding Field ของข้อมูลลูกค้าซึ่งจะใช้ใน สัญลักษณ์ AustraliaPost การดําเนินการควรจะให้โดยผู้ใช้

public interface AustraliaPostCustomerInformationDecoder

Methods

Decode(รั้ว)

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

string Decode(string customerInformationField)

Parameters

customerInformationField string

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

Returns

string

ลวดแถบข้อมูล πελάτηที่ลบ

Examples

ตัวอย่างนี้แสดงให้เห็นวิธีการ decode data ด้วยอินเตอร์เฟซ 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();
}
 แบบไทย