| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>软件技术类签报</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
- <script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
- <script src="plug-in/layer/layer.js"></script>
- </head>
- <body>
- <c:set var="update">
- <c:if test="${param.flag==1}">false</c:if>
- <c:if test="${param.flag!=1}">false</c:if>
- </c:set>
- <t:formvalid formid="formobj" tipSweep="true" dialog="false" usePlugin="password" layout="table" action="tBusActivitiGreenController.do?doUpdate" tiptype="1"
- callback="callback" beforeSubmit="beforeSubmit">
- <input id="id" name="id" type="hidden" value="${entity.id }"/>
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">
- 申请人:
- </label>
- </td>
- <td class="value" colspan="2" >
- ${entity.createName}
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 申请部门:
- </label>
- </td>
- <td class="value" colspan="2" >
- ${entity.depName}
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 当前状态:
- </label>
- </td>
- <td class="value" colspan="2" >
- <textarea style="width:600px;height: 80px;" class="inputxt" rows="6" <c:if test="${!update}">disabled="disabled"</c:if>
- id="current" maxlength="500" name="current" datatype="*" placeholder="请输入签报内容"
- >${ entity.current}</textarea>
- <label class="Validform_label" style="display: none;">签报内容</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 期望效果:
- </label>
- </td>
- <td class="value" colspan="2" >
- <textarea style="width:600px;height: 80px;" class="inputxt" rows="6" <c:if test="${!update}">disabled="disabled"</c:if>
- id="expect" maxlength="500" name="expect" datatype="*" placeholder="请输入签报内容"
- >${ entity.expect}</textarea>
- <label class="Validform_label" style="display: none;">期望效果</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- 现状附件:
- </label>
- </td>
- <td class="value" colspan="2" >
- <t:webUploader auto="true" busiId="${entity.id}" readOnly="true"
- busiTable="t_b_activiti_green"
- bizType="attachment"
- extensions="png,jpg,jpeg,bmp,pdf,doc,docx,xls,xlsx"
- name="attachment" duplicate="true" fileNumLimit="10"
- nullMsg="附件不可为空"></t:webUploader>
- </td>
- </tr>
- <c:if test="${param.flag ==10}"><%--分配任务--%>
- <tr>
- <td colspan="3">
- <div>
- <t:tabs id="detail_tab" iframe="false" tabPosition="top" fit="false">
- <t:tab href="tBusActivitiGreenController.do?tBusActivitiGreenDetailList&id=${entity.id}" icon="icon-search" title="指派任务" id="tBusUserActivitiGreenDetail"></t:tab>
- </t:tabs>
- </div>
- </td>
- </tr>
- </c:if>
- <tr>
- <td style="text-align:center;" colspan="2">
- <input type="submit" id ="btn_sub" value="" style="display: none;"/>
- <c:forEach items="${transitionList}" var="trans">
- <li style="list-style:none;"><button class="btn btn-default" style="width:80px; height:35px;border-radius:5px;background:#3275C6;border:0 none;margin-right:5px;color:white;" type="button" id="${trans.nextnode}"
- onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',800,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
- </c:forEach>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- <script src = "webpage/cn/com/lzt/leave/leave.js"></script>
- <script type="text/javascript">
- var flag = '${param.flag}';
- var update = '${update}';
- var popArauments = {};
- function callback(data){
- if(data.success){
- if(update=='true') {
- dealProcFlowNoOption(popArauments[0], popArauments[4], popArauments[6], popArauments[5], false);
- }else{
- popWriteOption(popArauments[0],popArauments[1],popArauments[2],popArauments[3],popArauments[4],popArauments[5],popArauments[6]);
- setTimeout(function(){
- var loading = $(top.document).find('#infoTable-loading');
- loading.hide();
- loading.prev().show();//ajax请求后 会把弹窗隐藏,手动显示
- },100);}
- }
- else{
- layer.alert(data.msg);
- }
- }
- function beforeSubmit(frm) {
- if(update!='true'){
- var checkbox = frm.find('input:checkbox:checked');
- if(checkbox.length==0){
- layer.alert('请指派任务');
- return false;
- }
- }
- return true;
- }
- function callbackTable(msg){//不能删,审批后关闭页面调用
- window.parent.callbackTable(msg);
- }
- function popWriteOption1(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId){
- if(update=='true'||(flag=='10' && buttonTitle!='驳回')) {
- popArauments = arguments;
- $("#btn_sub").click();
- // popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- // popWriteOption(popArauments[0],popArauments[1],popArauments[2],popArauments[3],popArauments[4],popArauments[5],popArauments[6]);
- }else{
- popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- }
- }
- </script>
|