UniPRT SDK  v1.0.0.0
com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured 介面 參考文件

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

類別com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured的繼承圖:
com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeData com.UniPRT.Sdk.LabelMaker.Abstract.AMaxicodeMsgStructured com.UniPRT.Sdk.LabelMaker.PGL.MaxicodeMsgStructured com.UniPRT.Sdk.LabelMaker.TSPL.MaxicodeMsgStructured

公開方法(Public Methods)

String GetPostalCode ()
 
void SetPostalCode (String postalCode)
 
String GetCountryCode ()
 
void SetCountryCode (String countryCode)
 
String GetServiceClass ()
 
void SetServiceClass (String serviceClass)
 
String GetRemainingMsg ()
 
void SetRemainingMsg (String remainingMsg)
 
- 公開方法(Public Methods) 繼承自 com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeData
MaxicodeModeEnum GetMode ()
 用於說明條碼數據格式的模式。請參見MaxicodeModeEnum以獲取支持的模式。 更多...
 
void SetMode (MaxicodeModeEnum mode)
 
String GetData ()
 條碼數據,包括要編碼在條碼中的主要讯息和次要讯息。 更多...
 

詳細描述

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)

函式成員說明文件

◆ GetCountryCode()

String com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.GetCountryCode ( )

◆ GetPostalCode()

String com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.GetPostalCode ( )

◆ GetRemainingMsg()

String com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.GetRemainingMsg ( )

◆ GetServiceClass()

String com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.GetServiceClass ( )

◆ SetCountryCode()

void com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.SetCountryCode ( String  countryCode)

◆ SetPostalCode()

void com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.SetPostalCode ( String  postalCode)

◆ SetRemainingMsg()

void com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.SetRemainingMsg ( String  remainingMsg)

◆ SetServiceClass()

void com.UniPRT.Sdk.LabelMaker.Interface.IMaxicodeMsgStructured.SetServiceClass ( String  serviceClass)

此介面(interface) 文件是由下列檔案中產生: