用友NC-OA平台API参考手册 联系客服

发布时间 : 星期二 文章用友NC-OA平台API参考手册更新完毕开始阅读22fb1ffb04a1b0717fd5dd18

1.4.6

导出组织模型信息

将指定单位下所有部门、人员、岗位、职务级别导出为XML格式。 方法:exportData 参数:

参数 token accountName 数据类型 String String 说明 登录验证后获取的身份令牌。 单位名称 返回值:

String

成功返回XML,否则抛ServiceException。 示例: 远程调用:

OrganizationDataServiceStub stub = new OrganizationDataServiceStub(); OrganizationDataServiceStub.ExportData req = new OrganizationDataServiceStub.ExportData(); req.setToken(ServiceUtil.getToken()); req.setAccountName(\单位1\); OrganizationDataServiceStub.ExportDataResponse resp = stub .exportData(req); String xml = resp.get_return(); import com.seeyon.v3x.services organization.OrganizationDataService; import com.seeyon.v3x.services organization.impl. OrganizationDataServiceImpl; … OrganizationDataService service = new OrganizationDataServiceImpl(); String xml = service.exportData (token,accountName); 本地调用: 导出的XML:

1.4.7

导入组织模型信息

导入组织模型XML数据到指定单位。 方法:importData 参数:

参数 token accountName xml 数据类型 String String String 说明 登录验证后获取的身份令牌。 单位名称 组织模型信息xml格式 返回值:void 失败抛ServiceException。 示例: 远程调用:

OrganizationDataServiceStub stub = new OrganizationDataServiceStub(); OrganizationDataServiceStub.ImportData req = new OrganizationDataServiceStub.ImportData(); req.setToken(ServiceUtil.getToken()); req.setAccountName(\单位1\); req.setXml(xml); stub.importData(req); import com.seeyon.v3x.services organization.OrganizationDataService; import com.seeyon.v3x.services organization.impl. OrganizationDataServiceImpl; … OrganizationDataService service = new OrganizationDataServiceImpl(); String xml = service.importData (token,accountName); 本地调用:

1.5 文档导出

服务名称:documentService WSDL:

http://{host}:{port}/seeyon/services/documentService?wsdl 1.5.1 方法列表 名称 exportFlow exportEdoc exportNews exportBulletin exportResearch exportBbs exportOfflineEdocModel updateEdocState importEdoc 1.5.2 文档导出公共实体

说明 导出协同信息 导出公文信息 导出新闻信息 导出公告信息 导出调查信息 导入讨论信息 导出可离线查看的公文单(只支持本地调用) 回写公文状态 导入公文信息 1.5.2.1 人员实体(PersonExport)

参数 id name 名称 人员ID 人员名称 数据类型 long String 长度 备注 1.5.2.2 部门实体(DepartmentExport)

参数 id depName 名称 部门ID 部门名称 数据类型 long String 长度 备注 1.5.2.3 岗位实体(OcupationExport)

参数 id ocuName 名称 岗位ID 岗位名称 数据类型 long String 长度 备注 1.5.2.4 职务级别实体(OTypeExport)

参数

名称 数据类型 长度 备注 id oTypeName 职务级别ID 职务级别名称 long String 1.5.2.5 附件实体(AttachmentExport)

参数 id newsTypeName 名称 附件ID 附件名称 数据类型 long String 长度 备注 1.5.2.6 正文实体(TextExport)

参数 textType 名称 正文类型 数据类型 int 长度 备注 1=HTML类型的正文 2= Word、Excel、Wps、et类型的正文 3=表单正文 content 正文 TextHtmlExport 参见HTML正文实体 TextAttarchmentExport 参见附件正文实体 FormExport 参见表单实体 textType=3时 textType=2时 textType=1时 1.5.2.7 HTML正文实体(TextHtmlExport)

参数 textType content 名称 正文类型 正文 数据类型 int String 长度 备注 值恒为1 1.5.2.8 附件正文实体(TextAttachmentExport)

参数 textType tpe 名称 正文类型 附件类型 数据类型 int int 长度 备注 值恒为2 1=DOC 2=XSL 3=WPS 4=ET