天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
12
返回列表 发新帖
楼主: 云南腾俊

[已解决] 如何在打开已审批完成的表单时,隐藏没用的垃圾信息

[复制链接]
irene 发表于 2012-7-4 13:48:35 | 显示全部楼层
跟客户沟通,已通过参考给出的例子修改文件解决问题。
 楼主| 云南腾俊 发表于 2012-7-5 08:36:39 | 显示全部楼层
没解决,您的方案里面有bug

An error occurred at line: 84 in the jsp file: /portal/share/workflow/runtime/fl
owprcss.jsp
DocumentProcessBean cannot be resolved to a type
81:
82:     <%
83:     String docid = session.getAttribute("docid").toString();
84:     DocumentProcessBean dpb =new DocumentProcessBean("11e1-aeaf-ccaf3692-a3b
2-4960a74ab202");//è&frac12;&macr;&auml;&raquo;&para;&ccedil;&#353;&#8222;&aring;&ordm;”&ccedil;”¨id
85:     Document doc1 = (Document)dpb.doView(docid);
86:     String state1 = doc1.getStateLabel();
87:     if( state1.indexOf("&ccedil;&raquo;“&aelig;")<0 ){
 楼主| 云南腾俊 发表于 2012-7-5 08:59:12 | 显示全部楼层
还有一个问题,是 仅仅出现 提交 按钮的时候,才出提交备注,怎么弄呢
 楼主| 云南腾俊 发表于 2012-7-5 09:58:34 | 显示全部楼层
其实只要一条语句即可,

    <%
    if( docState.indexOf("结束")<0 ){
    %>  

替代以前一大堆语句

docState 其实jsp的顶部就已经获得值了,不需原先代码那么麻烦
irene 发表于 2012-7-5 10:08:47 | 显示全部楼层
回复 12# 云南腾俊


    抱歉,由于给出的参考帖子缺少了引包的语句,所以报错,先已将此语句添加,烦请再测试以便
irene 发表于 2012-7-5 15:57:48 | 显示全部楼层
与用户私下沟通,参考再次修改过后的帖子解决问题
 楼主| 云南腾俊 发表于 2012-7-5 16:10:54 | 显示全部楼层
<%
    if( docState.indexOf("结束")<0  &&  auditorlist.indexOf(userid)> -1){ //未结束且是审批用户才显示
    %>
                       
                                        <table class="table_noborder">
                                                <tr>
                                                        <td align="right" width="36px">审批或阅处意见:</td>
                                                        <td><ww:textarea rows="2" name="_attitude"
                                                                cssStyle="height:66px;overflow:auto;width:190px;" /></td>
                                <td>常用批示:<br><select name="sel_attitute" id="sel_attitute" onChange="document.document_content._attitude.value=document.document_content.sel_attitute.options[document.document_content.sel_attitute.selectedIndex].value"><option></option>
                                        <option value="同意。--<%=username%>">同意</option> <option value="请审批。--<%=username%>">请审批</option>
                                        <option value="不同意,请修改。--<%=username%>">不同意,请修改</option> </select></td>
                                                        <td width="5px">&nbsp;&nbsp;<td>
                                                        <td width="200px"><b>提示:</b><font color="red">先</font>选左边的流程分支并确认下一步流程处理人,<font color="red">再</font>填写意见,<font color="red">再</font>提交给下一环节。按右边“图表”查看流程走向,按“历史”查看他人审阅记录</td>                               
                                                </tr>
                                        </table>
    <%
    }//if docState.indexOf("结束")               
    %>

本版积分规则

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

GMT+8, 2026-8-12 11:42

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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