testAuditForm.jsp
4.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>审批管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function() {
$("#name").focus();
$("#inputForm").validate({
submitHandler: function(form){
loading('正在提交,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/oa/testAudit/">审批列表</a></li>
<li class="active"><a href="${ctx}/oa/testAudit/form?id=${testAudit.id}"><shiro:hasPermission name="oa:testAudit:edit">审批${not empty testAudit.id?'修改':'申请'}流程</shiro:hasPermission><shiro:lacksPermission name="oa:testAudit:edit">查看</shiro:lacksPermission></a></li>
</ul>
<form:form id="inputForm" modelAttribute="testAudit" action="${ctx}/oa/testAudit/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="act.taskId"/>
<form:hidden path="act.taskName"/>
<form:hidden path="act.taskDefKey"/>
<form:hidden path="act.procInsId"/>
<form:hidden path="act.procDefId"/>
<form:hidden id="flag" path="act.flag"/>
<sys:message content="${message}"/>
<fieldset>
<legend>审批申请</legend>
<table class="table-form">
<tr>
<td class="tit">姓名</td><td>
<sys:treeselect id="user" name="user.id" value="${testAudit.user.id}" labelName="user.name" labelValue="${testAudit.user.name}"
title="用户" url="/sys/office/treeData?type=3" cssClass="required recipient" cssStyle="width:150px"
allowClear="true" notAllowSelectParent="true" smallBtn="false"/>
</td><td class="tit">部门</td><td>
<sys:treeselect id="office" name="office.id" value="${testAudit.office.id}" labelName="office.name" labelValue="${testAudit.office.name}"
title="用户" url="/sys/office/treeData?type=2" cssClass="required recipient" cssStyle="width:150px"
allowClear="true" notAllowSelectParent="true" smallBtn="false"/>
</td><td class="tit">岗位职级</td><td>
<form:input path="post" htmlEscape="false" maxlength="50"/>
</td>
</tr>
<tr>
<td class="tit">调整原因</td>
<td colspan="5">
<form:textarea path="content" class="required" rows="5" maxlength="200" cssStyle="width:500px"/>
</td>
</tr>
<tr>
<td class="tit" rowspan="3">调整原因</td>
<td class="tit">薪酬档级</td>
<td><form:input path="olda" htmlEscape="false" maxlength="50"/></td>
<td class="tit" rowspan="3">拟调整标准</td>
<td class="tit">薪酬档级</td>
<td><form:input path="newa" htmlEscape="false" maxlength="50"/></td>
</tr>
<tr>
<td class="tit">月工资额</td>
<td><form:input path="oldb" htmlEscape="false" maxlength="50"/></td>
<td class="tit">月工资额</td>
<td><form:input path="newb" htmlEscape="false" maxlength="50"/></td>
</tr>
<tr>
<td class="tit">年薪金额</td>
<td><form:input path="oldc" htmlEscape="false" maxlength="50"/></td>
<td class="tit">年薪金额</td>
<td><form:input path="newc" htmlEscape="false" maxlength="50"/></td>
</tr>
<tr>
<td class="tit">月增资</td>
<td colspan="2"><form:input path="addNum" htmlEscape="false" maxlength="50"/></td>
<td class="tit">执行时间</td>
<td colspan="2"><form:input path="exeDate" htmlEscape="false" maxlength="50"/></td>
</tr>
<tr>
<td class="tit">人力资源部意见</td>
<td colspan="5">
${testAudit.hrText}
</td>
</tr>
<tr>
<td class="tit">分管领导意见</td>
<td colspan="5">
${testAudit.leadText}
</td>
</tr>
<tr>
<td class="tit">集团主要领导意见</td>
<td colspan="5">
${testAudit.mainLeadText}
</td>
</tr>
</table>
</fieldset>
<div class="form-actions">
<shiro:hasPermission name="oa:testAudit:edit">
<input id="btnSubmit" class="btn btn-primary" type="submit" value="提交申请" onclick="$('#flag').val('yes')"/>
<c:if test="${not empty testAudit.id}">
<input id="btnSubmit2" class="btn btn-inverse" type="submit" value="销毁申请" onclick="$('#flag').val('no')"/>
</c:if>
</shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
<c:if test="${not empty testAudit.id}">
<act:histoicFlow procInsId="${testAudit.act.procInsId}" />
</c:if>
</form:form>
</body>
</html>