文档中心 > API文档

4.38.4.4. 导出可离线查看的公文单

用于文档交换归档公文单,不提供Webservice,只支持本地调用

方法:exportOfflineEdocModel 

参数:

参数

数据类型

说明

Id

long

公文id

返回:String

成功返回公文XML和公文XSL的数组,通过XSLT可以将返回的XML和XSL转为可离线查看的HTML。

否则抛出SericeException

导出的XML示例:

<?xml version="1.0" encoding="UTF-8"?>
 <my:myFields xmlns:my="www.seeyon.com/form/2007">
  <my:subject>发文</my:subject>
  <my:doc_type>公报</my:doc_type>
  <my:send_type>上行文</my:send_type>
  <my:doc_mark/>
  <my:serial_no>发文00000010</my:serial_no>
  <my:secret_level>普通</my:secret_level>
  <my:urgent_level>普通</my:urgent_level>
  <my:keep_period>无限期</my:keep_period>
  <my:create_person>康小小</my:create_person>
  <my:send_unit>用友集团</my:send_unit>
  <my:issuer>康小小</my:issuer>
  <my:signing_date>2009-12-14</my:signing_date>
  <my:send_to>北京致远协创软件有限公司</my:send_to>
  <my:copy_to/>
  <my:report_to/>
  <my:keyword/>
  <my:print_unit/>
  <my:copies>0</my:copies>
  <my:printer/>
 </my:myFields>
 

XSL略,经过XSLT转换后得出的HTML显示如下: