|
@@ -0,0 +1,107 @@
|
|
|
+<?xml version="1.0" encoding="gb2312" ?>
|
|
|
+<entity name="Print">
|
|
|
+
|
|
|
+ <!-- 打印盖章服务 -->
|
|
|
+ <class name="PrintService" overlap="true" exclusive="false">
|
|
|
+ <!-- 打印 -->
|
|
|
+ <twoway name="DoPrint" overlap="true">
|
|
|
+ <req>
|
|
|
+ <!-- 打印任务uuid 16位 -->
|
|
|
+ <param name="uuid" type="wstring"/>
|
|
|
+ <!--打印类型:0:激光、墨盒打印机 1:针式打印机-->
|
|
|
+ <param name="print_type" type="int"/>
|
|
|
+ <!-- 打印内容类型:web txt html jpg等 -->
|
|
|
+ <param name="content_type" type="wstring"/>
|
|
|
+ <!-- web打印时对应的url -->
|
|
|
+ <param name="print_url" type="wstring"/>
|
|
|
+ <!-- 打印内容(非web打印) -->
|
|
|
+ <param name="print_data" type="blob"/>
|
|
|
+ <!-- 打印内容长度(非web打印) -->
|
|
|
+ <param name="print_data_len" type="int"/>
|
|
|
+ <!-- 纸张类型:如A4 -->
|
|
|
+ <param name="paper_type" type="wstring"/>
|
|
|
+ <!-- 纸张朝向 0:纵向 1:横向 -->
|
|
|
+ <param name="orientation" type="int"/>
|
|
|
+ <!-- 打印总页数 -->
|
|
|
+ <param name="page_count" type="int"/>
|
|
|
+ <!-- Web打印页面设置:页边距(left,top,right,bottom),页眉,页脚 ,是否打印背景 ,是否收缩打印 以'|'分隔 -->
|
|
|
+ <param name="page_settings" type="wstring"/>
|
|
|
+ <!-- 打印份数(默认1份) -->
|
|
|
+ <param name="print_copies_count" type="int"/>
|
|
|
+ <!-- 纸张长度(单位毫米)-->
|
|
|
+ <param name="paper_length" type="int"/>
|
|
|
+ <!-- 纸张宽度(单位毫米)-->
|
|
|
+ <param name="paper_width" type="int"/>
|
|
|
+ <!-- 备用字段1 -->
|
|
|
+ <param name="reserve1" type="int"/>
|
|
|
+ <!-- 备用字段2 -->
|
|
|
+ <param name="reserve2" type="wstring"/>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ <!-- 错误码 -->
|
|
|
+ <param name="error_code" type="wstring"/>
|
|
|
+ <!-- 错误消息 -->
|
|
|
+ <param name="error_msg" type="wstring"/>
|
|
|
+ <!-- 用于打印的打印机名称 -->
|
|
|
+ <param name="printer_name" type="wstring"/>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+ <!-- windows打印任务取消-->
|
|
|
+ <twoway name="CancelPrint" overlap="true">
|
|
|
+ <req>
|
|
|
+ <!-- 打印任务uuid 16位 -->
|
|
|
+ <param name="uuid" type="wstring"/>
|
|
|
+ <!--打印类型:0:激光、墨盒打印机 1:针式打印机-->
|
|
|
+ <param name="print_type" type="int"/>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+ <!--打印机打印前状态查询:脱机,连接状态-->
|
|
|
+ <twoway name="PrinterStatus" overlap="true">
|
|
|
+ <req>
|
|
|
+ <!--打印类型:0:激光、墨盒打印机 1:针式打印机-->
|
|
|
+ <param name="print_type" type="int"/>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ <!--打印机状态:0:就绪 1:打印机未配置 2:打开打印机失败 3:打印机状态错误 4:打印机脱机 5: RPC服务不可用-->
|
|
|
+ <param name="print_status" type="int"/>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+ <!--打印实体当前状态:0 未打印 1 打印中-->
|
|
|
+ <twoway name="PrintEntityStatus" overlap="true">
|
|
|
+ <req>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ <!--机器是否支持打印:0 不支持 1 支持-->
|
|
|
+ <param name="isSupportPrint" type="bool"/>
|
|
|
+ <!--打印实体当前状态:0 未打印 1 打印中-->
|
|
|
+ <param name="isPrinting" type="int"/>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+ <!--重新启动RPC服务,重启后会清除所有打印机下面的任务-->
|
|
|
+ <twoway name="RestartRPC" overlap="true">
|
|
|
+ <req>
|
|
|
+ </req>
|
|
|
+ <res>
|
|
|
+ </res>
|
|
|
+ </twoway>
|
|
|
+ </class>
|
|
|
+
|
|
|
+ <!-- 打印结果返回 -->
|
|
|
+ <message name="PrintResult">
|
|
|
+ <!-- 打印任务uuid 16位 -->
|
|
|
+ <param name="uuid" type="wstring"/>
|
|
|
+ <!-- 打印结果:0 成功 1 失败 -->
|
|
|
+ <param name="print_Result" type="int"/>
|
|
|
+ <!-- 打印机名称 -->
|
|
|
+ <param name="printer_name" type="wstring"/>
|
|
|
+ <!-- 打印机类型 -->
|
|
|
+ <param name="print_type" type="int"/>
|
|
|
+ <!-- 错误码 -->
|
|
|
+ <param name="error_code" type="wstring"/>
|
|
|
+ <!-- 错误消息:打印机状态预检查、加载页面失败、启监控失败、windows打印任务报错、... -->
|
|
|
+ <param name="error_msg" type="wstring"/>
|
|
|
+ </message>
|
|
|
+
|
|
|
+</entity>
|