找回密码
 注册成为天翎用户
楼主: 期待

[已解决] 表单字段取某个指定审批人姓名和日期,当回退时,表单字段为什么还保留旧信息?

[复制链接]
 楼主| 期待 发表于 2014-9-19 09:40:07 | 显示全部楼层
我再研究一下看看吧
 楼主| 期待 发表于 2014-9-22 14:48:49 | 显示全部楼层
问题已解决,请关贴 谢谢
nice 发表于 2014-9-22 15:03:48 | 显示全部楼层
谢谢回帖!
nxzA 发表于 2014-9-25 19:45:24 | 显示全部楼层
谢谢分享哈


纪念章金镶玉china.makepolo.com/product-detail/100447977333.html

纪念抗日战争胜利70周年纪念银币china.makepolo.com/product-detail/100500233346.html

五大伟人银条纪念版sandib2b.cn/supply/1130915.html

五大伟人银条纪念版china.makepolo.com/product-detail/100407543250.html

五大伟人银条纪念版taojindi.com/product/10885232.html














红楼梦纪念章china.makepolo.com/product-detail/100448577849.html

水浒传纪念章detail.1688.com/offer/1244826352.html

水浒传纪念章china.makepolo.com/product-detail/100448578405.html

三国演义纪念章detail.1688.com/offer/1244830451.html

三国演义纪念章china.makepolo.com/product-detail/100448578930.html
 楼主| 期待 发表于 2014-9-26 11:00:05 | 显示全部楼层
解决办法,取数据库中按日期排列的最后一条数据。
//取流程节点的审批人
var opts="";
var userProcess = getUserProcess();
var doc = getCurrentDocument();
var domainid = getDomainid();
var nodeName="工艺审核";  //流程节点名称
println(nodeName+"======nodeName=====");
var sql="select * from(select id,actorid as item_actorid,processtime as item_processtime,name as item_name,'" + domainid + "' as domainid from T_ACTORHIS where NODEHIS_ID in (select ID from t_relationhis where docid='"+doc.getId()+"' and startnodename='"+nodeName+"' ) order by processtime desc)where rownum=1";
//var sql="select ID from t_relationhis where docid='"+doc.getId()+"' and startnodename='"+nodeName+"'";
var datas = queryBySQL(sql);
println(datas+"======datas=======");
for (var it = datas.iterator(); it.hasNext();) {
       var d = it.next();
    println(d+"==ddddd====");
       if(d!=null){
      opts=d.getItemValueAsString("name");
        println(opts+"=====opts====");}
}opts;

本版积分规则

手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-9-28 12:12

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表