工作流绑定项目模块3

编程

1.区分模块流程

   @RequestMapping("goView")

public ModelAndView goView(HttpServletRequest request, HttpServletResponse response,

Integer id) {

ModelAndView modelView = new ModelAndView();

Information information = informationService.getInformationById(id);

//流程调用模块类型

modelView.addObject("moduleType", ProcessUtils.MODULE_TYPE_INFO);

//判断是否绑定流程

Boolean isProcessFalg = false;

//获取栏目id

Integer programaId = information.getProgramaId();

if(null!=programaId && programaId>0){

Programa programa= programaService.getProgramaById(programaId);

if(null!=programa && null!=programa.getProcessId()){

isProcessFalg = true;

}

}

modelView.addObject("isProcessFalg", isProcessFalg);

modelView.setViewName("information/view");

return modelView;

}

2.页面查看区分

<div class="layui-tab">

<ul class="layui-tab-title">

<li class="layui-this">基本信息</li>

<li th:if="${isProcessFalg}">审批节点</li>

</ul>

<div class="layui-tab-content">

<div class="layui-tab-item layui-show">

</div>

<!-- 增加流程审批节点页面引入 -->

<div class="layui-tab-item" th:if="${isProcessFalg}">

<iframe style="display: inline;margin-top: 21px;" width="99%" height="400px;" th:src="@{/processControl/goModuleSeeNote(moduleId=${information.id},moduleType=${moduleType})}"></iframe>

</div>

</div>

</div>

3.审核页面区分

<div class="layui-form-item">

<label class="layui-form-label">信息审核</label>

<div class="layui-input-block">

<!-- 模块未绑定流程-->

<div th:if="!${isProcessFalg}">

<input type="radio" name="isCheck" value="1" title="审核" th:checked="${information.isCheck eq 1}">

<input type="radio" name="isCheck" value="2" title="驳回" th:checked="${information.isCheck eq 2}">

</div>

<!-- 模块绑定流程-->

<div th:if="${isProcessFalg}">

<input type="radio" name="isCheck" value="3" title="流程审核 - 同意" th:checked="${information.isCheck eq 3}">

<input type="radio" name="isCheck" value="4" title="流程审核 - 驳回" th:checked="${information.isCheck eq 4}">

<input type="radio" name="isCheck" value="5" title="流程审核 - 流转" th:checked="${information.isCheck eq 5}">

</div>

</div>

</div>

以上是 工作流绑定项目模块3 的全部内容, 来源链接: utcz.com/z/517896.html

回到顶部