You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

232 lines
4.6 KiB

3 years ago
/*!
* \~chinese
* @header PTLabel.h
* @abstract
*
* \~english
* @header PTLabel.h
* @abstract Express template
*/
#import <Foundation/Foundation.h>
/*!
* \~chinese
* @brief 使 1.使使2. @""3.
*
* \~english
* @brief By using electronic waybill template, only filling in it accordingly can send and print it outNote 1. When using template to print, you should fill in all the blanks as the template sample showed.2.If there is null data, e.g. claiming value is null, please input null character string @"".3.The data to fill in differs depending on the template, please subject to the sample showed.
*/
@interface PTLabel : NSObject
/*!
* \~chinese
*
*
* \~english
* Express company
*/
@property(strong,nonatomic,readwrite) NSString *express_company;
/*!
* \~chinese
*
*
* \~english
* Delivery number
*/
@property(strong,nonatomic,readwrite) NSString *delivery_number;
/*!
* \~chinese
*
*
* \~english
* Order number
*/
@property(strong,nonatomic,readwrite) NSString *order_number;
/*!
* \~chinese
*
*
* \~english
* Distributing
*/
@property(strong,nonatomic,readwrite) NSString *distributing;
/*!
* \~chinese
*
*
* \~english
* Barcode
*/
@property(strong,nonatomic,readwrite) NSString *barcode;
/*!
* \~chinese
*
*
* \~english
* The character below the bar code
*/
@property(strong,nonatomic,readwrite) NSString *barcode_text;
/*!
* \~chinese
*
*
* \~english
* QRcode
*/
@property(strong,nonatomic,readwrite) NSString *qrcode;
/*!
* \~chinese
*
*
* \~english
* The character below the QR code
*/
@property(strong,nonatomic,readwrite) NSString *qrcode_text;
/*!
* \~chinese
*
*
* \~english
* Recipient name
*/
@property(strong,nonatomic,readwrite) NSString *receiver_name;
/*!
* \~chinese
*
*
* \~english
* Recipient phone
*/
@property(strong,nonatomic,readwrite) NSString *receiver_phone;
/*!
* \~chinese
*
*
* \~english
* Recipient address
*/
@property(strong,nonatomic,readwrite) NSString *receiver_address;
/*!
* \~chinese
*
*
* \~english
* Recipient Information
*/
@property(strong,nonatomic,readwrite) NSString *receiver_message;
/*!
* \~chinese
*
*
* \~english
* Sender name
*/
@property(strong,nonatomic,readwrite) NSString *sender_name;
/*!
* \~chinese
*
*
* \~english
* Sender phone
*/
@property(strong,nonatomic,readwrite) NSString *sender_phone;
/*!
* \~chinese
*
*
* \~english
* Sender address
*/
@property(strong,nonatomic,readwrite) NSString *sender_address;
/*!
* \~chinese
*
*
* \~english
* Sender information
*/
@property(strong,nonatomic,readwrite) NSString *sender_message;
/*!
* \~chinese
*
*
* \~english
* Item name
*/
@property(strong,nonatomic,readwrite) NSString *article_name;
/*!
* \~chinese
*
*
* \~english
* Item weight
*/
@property(strong,nonatomic,readwrite) NSString *article_weight;
/*!
* \~chinese
*
*
* \~english
* Affirmation value
*/
@property(strong,nonatomic,readwrite) NSString *amount_declare;
/*!
* \~chinese
*
*
* \~english
* Payment amount
*/
@property(strong,nonatomic,readwrite) NSString *amount_paid;
/*!
* \~chinese
*
*
* \~english
* Prepayment amount
*/
@property(strong,nonatomic,readwrite) NSString *amount_paid_advance;
/// 由模板数据生成下发给打印机的数据
/// @param filePath 模板路径
- (NSData *)dataWithSourceFile:(NSString *)filePath;
/// 生成TSPL指令的数据
- (NSData *)dataWithTSPL;
/// 由模板数据生成下发给打印机的数据
/// @param source 资源
/// @param labelDict 模板定义的key
/// @param orderDetails 订单详情
- (NSData *)getTemplateData:(NSString *)source labelDict:(NSDictionary *)labelDict orderDetails:(NSArray *)orderDetails;
/// 由模板数据生成下发给打印机的数据
/// @param source 资源
/// @param labelDict 模板定义的key
- (NSData *)getTemplateData:(NSString *)source labelDict:(NSDictionary *)labelDict;
@end