Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)

ממשק ציבורי לפיענוח שדה מידע לקוח, שמשמש בסימבולוגיה של AustraliaPost. היישום צריך להיות מסופק על ידי המשתמש.

public interface AustraliaPostCustomerInformationDecoder

שיטות

Decode(string)

פיענוח שדה מידע לקוח מתוך סימבולוגיה של AustraliaPost.
ניתן להשתמש בו לפרשנות נתונים שונים מקידוד NTable ו-CTable.
הנתונים מסופקים כשורה של ערכי בר: 0, 1, 2 או 3.

string Decode(string customerInformationField)

פרמטרים

customerInformationField string

שדה מידע לקוח מקודד כשורה של ערכי בר גולמיים: 0, 1, 2 או 3

מחזיר

string

מחרוזת שדה מידע לקוח המפוענחת

דוגמאות

דוגמה זו מראה כיצד לפענח נתונים עם ממשק 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();
}
 Ελληνικά