UniPRT SDK  v1.0.0.0
IMaxicodeMsgStructured 介面 參考文件

Maxicode 條碼數據。Maxicode 自由格式承載讯息。僅適用於模式 2 和 3。 更多...

類別IMaxicodeMsgStructured的繼承圖:
IMaxicodeData AMaxicodeMsgStructured MaxicodeMsgStructured MaxicodeMsgStructured

公開方法(Public Methods)

String GetCountryCode ()
 
String GetData ()
 條碼數據,包括要編碼在條碼中的主要讯息和次要讯息。
 
MaxicodeModeEnum GetMode ()
 用於說明條碼數據格式的模式。請參見MaxicodeModeEnum以獲取支持的模式。
 
String GetPostalCode ()
 
String GetRemainingMsg ()
 
String GetServiceClass ()
 
void SetCountryCode (String countryCode)
 
void SetMode (MaxicodeModeEnum mode)
 
void SetPostalCode (String postalCode)
 
void SetRemainingMsg (String remainingMsg)
 
void SetServiceClass (String serviceClass)
 

詳細描述

Maxicode 條碼數據。Maxicode 自由格式承載讯息。僅適用於模式 2 和 3。

模式 2、3 的「結構化承載讯息」需要郵政編碼、國家代碼和服務類別字段。

  • 讯息格式通常編碼如下:
    • <primaryMsg><secondaryMsg> = <postalCode>Gs<countryCode>Gs<serviceClass>Gs<secondaryMsg>EOT
  • 郵政編碼(6-9 字符)、國家代碼(3 位數字)、服務類別(3 位數字)
    • 模式 2 = 美國:最多 9 位數字的郵政編碼(全數字)
    • 模式 3 = 加拿大:6 位數字的郵政編碼(字母數字混合) 說明:
  • Gs:組分隔符(0x1D)
  • EOT:傳輸結束(0x04)