泛微OA 工作流WebService接口使用说明(3)

2025-11-22

wrti[0].setEdit(true);

wrti[1] = new WorkflowRequestTableField(); wrti[1].setFieldName(\);//单价 wrti[1].setFieldValue(\); wrti[1].setView(true); wrti[1].setEdit(true);

wrti[2] = new WorkflowRequestTableField(); wrti[2].setFieldName(\);//小记 wrti[2].setFieldValue(\); wrti[2].setView(true); wrti[2].setEdit(true);

wrtri[0] = new WorkflowRequestTableRecord(); wrtri[0].setWorkflowRequestTableFields(wrti);

//第二行

wrti = new WorkflowRequestTableField[3]; //每行3个字段 wrti[0] = new WorkflowRequestTableField(); wrti[0].setFieldName(\);//数量 wrti[0].setFieldValue(\); wrti[0].setView(true); wrti[0].setEdit(true);

wrti[1] = new WorkflowRequestTableField(); wrti[1].setFieldName(\);//单价 wrti[1].setFieldValue(\); wrti[1].setView(true); wrti[1].setEdit(true);

wrti[2] = new WorkflowRequestTableField(); wrti[2].setFieldName(\);//小记 wrti[2].setFieldValue(\); wrti[2].setView(true); wrti[2].setEdit(true);

wrtri[1] = new WorkflowRequestTableRecord(); wrtri[1].setWorkflowRequestTableFields(wrti);

wdti[0] = new WorkflowDetailTableInfo();

wdti[0].setWorkflowRequestTableRecords(wrtri);//加入明细表1的数//明细表1 end

//明细表2 start

wrtri = new WorkflowRequestTableRecord[1];//数据行数,假设添加1行

明细数据 据

//明细表2 end

WorkflowBaseInfo wbi = new WorkflowBaseInfo(); wbi.setWorkflowId(\);//workflowid 5 代表内部留言

wrtri[0] = new WorkflowRequestTableRecord(); wrtri[0].setWorkflowRequestTableFields(wrti);

wdti[1] = new WorkflowDetailTableInfo();

wdti[1].setWorkflowRequestTableRecords(wrtri);//加入明细表2的数

//第一行

wrti = new WorkflowRequestTableField[3]; //每行3个字段 wrti[0] = new WorkflowRequestTableField(); wrti[0].setFieldName(\);// wrti[0].setFieldValue(\); wrti[0].setView(true); wrti[0].setEdit(true);

wrti[1] = new WorkflowRequestTableField(); wrti[1].setFieldName(\);// wrti[1].setFieldValue(\); wrti[1].setView(true); wrti[1].setEdit(true);

WorkflowRequestInfo wri = new WorkflowRequestInfo();//流程基本信

wri.setCreatorId(\);//创建人id

wri.setRequestLevel(\);//0 正常,1重要,2紧急 wri.setRequestName(\留言测试接口\);//流程标题

wri.setWorkflowMainTableInfo(wmi);//添加主字段数据 wri.setWorkflowBaseInfo(wbi);

wri.setWorkflowDetailTableInfos(wdti);

//执行创建流程接口 WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowServicePortTypeProxy();

String requestid =

WorkflowServicePortTypeProxy.doCreateWorkflowRequest(wri, 111); } System.out.println(\+requestid); 2) 获取代办列表数量

/**

* 获得代办事宜数量

* @throws RemoteException */

public static void getDaiBanShuLiang() throws RemoteException{

WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new int count =

System.out.println(\代办事宜数量:\+count);//获取待办事宜接口

WorkflowServicePortTypeProxy();

WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111, null); //带查询条件查询,只能写关于这2个表的查询条件 workflow_requestbase t1,workflow_currentoperator t2

//查询条件里面不需要写and

String conditions[] = new String[2];

conditions[0] = \t1.currentnodetype = 2 \;//状态为审批 conditions[1] = \t1.creater = 111 \;//创建人为111 count =

WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111, conditions);

}

System.out.println(\代办事宜数量:\+count);//获取待办事宜接口

3) 获得代办事宜列表 /** * 获得代办列表 */ public static void getDaiBanLieBiao() throws Exception{ WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowRequestInfo WorkflowRequestInfo[] = WorkflowServicePortTypeProxy(); WorkflowServicePortTypeProxy.getToDoWorkflowRequestList(1, 15, 100, 111, null);//获取待办事宜接口 System.out.println(\代办事宜列表数量:\+WorkflowRequestInfo.length); for(int i=0;i

泛微OA 工作流WebService接口使用说明(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:离散数学复习指导1

相关阅读
本类排行
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 7

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219