EAS_审批转交相关实现

EAS后台有个意见表,意见表里保存打回,跳转、加签、转交等时的意见

 表中一个属性type标识了各个类型

表中的数据如下,该表保存了转交的意见,单据id,转交后的人,操作前的流程id,操作后的流程id、活动示例id

 我们如果想要传给按EAS页面将转交的先关意见给第三方,可以按如下方式

   private void addtip() {
        String tip = "";

        try {
            String sql = "select c.ftype,c.FOpinion_l2,c.fassignmentid FROM t_bas_option c \t WHERE c.FNEXTASSIGNID='" + this.assignmentId + "'";
            IRowSet rs = null;
            IEnactmentService svc = EnactmentServiceFactory.createRemoteEnactService();
            ISQLExecutor sqlExecutor = SQLExecutorFactory.getRemoteInstance(sql);
            rs = sqlExecutor.executeSQL();
            if (rs != null && rs.next()) {
                AssignmentInfo Info = svc.getAssignmentById(rs.getString(3));
                String type = OptionType.getEnum(Integer.parseInt(rs.getString(1).toString())).getAlias();
                String opinion = rs.getString(2);
                if (opinion == null) {
                    opinion = "空";
                }
                tip = "此审批任务为 [" + Info.getAssignInfo().getPersonUserName() + "] 在节点 [" + Info.getActDefName(this.getCurrentLocale()) + "] " + type + "的任务," + type + "意见:" + opinion;
        System.out.println(tip);
            }
        } catch (Exception var9) {
            log.error(var9);
        }

    }

 

posted @ 2025-07-16 18:09  凉了记忆  阅读(8)  评论(0)    收藏  举报