'======================================== '= 过程名:main '= 参 数: '= 功 能:主调函数 '= 根据不同动作参数执行不同的操作 '= 返回值: '======================================== sub main() select case Request("act") case "list" list() case else list() end select end sub
'======================================== '= 过程名:list '= 参 数: '= 功 能:显示列表画面 '= 返回值: '======================================== sub list() dim oRs set oRs = ActiveConnection.execute("select *,(select name from wf_config where id=w.wf_id) as wfname from wf_log w where step_id=1 and user_id=" & session("usr")("uid")) '(select * from wf_log where id in (select max(id),wf_id,tab_id,rec_id from wf_log group by wf_id,tab_id,rec_id where wf_id= and tab_id=))
待办事宜:
```
```
流程名称
申请人
申请时间
完成时间
状态
操作
```
do while not oRs.eof dim maxID,Next_id if glbFunc.getMaxID(oRs("id").value,ActiveConnection,maxID,Next_id) then