grgw_old_java/heatsupply2/WebContent/webpage/modules/oa/leaveView.jsp

116 lines
3.9 KiB
Plaintext
Raw Normal View History

2025-07-01 14:56:45 +08:00
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
<title>请假申请</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
var validateForm;
function doSubmit(){//回调函数在编辑和保存动作时供openDialog调用提交表单。
if(validateForm.form()){
$("#inputForm").submit();
return true;
}
return false;
}
$(document).ready(function() {
$("#name").focus();
validateForm = $("#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);
}
}
});
laydate({
elem: '#startTime', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event则按照默认的click
});
laydate({
elem: '#endTime', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event则按照默认的click
});
});
</script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
<div class="ibox">
<div class="ibox-title">
<h5>当前步骤--[${leave.act.taskName}] </h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="###">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="###">选项1</a>
</li>
<li><a href="###">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content">
<form:form id="inputForm" modelAttribute="leave" action="${ctx}/oa/leave/saveAudit" method="post" class="form-horizontal">
<fieldset>
<legend>${leave.act.taskName}</legend>
<div class="control-group">
<label class="control-label">请假类型:</label>
<div class="controls">
<form:select path="leaveType" cssClass="form-control input-sm" >
<form:options items="${fns:getDictList('oa_leave_type')}" itemLabel="label" itemValue="value" htmlEscape="false" />
</form:select>
</div>
</div>
<div class="control-group">
<label class="control-label">开始时间:</label>
<div class="controls">
<input id="startTime" name="startTime" type="text" readonly="readonly" maxlength="20" class="laydate-icon form-control layer-date required"
value="<fmt:formatDate value="${leave.startTime}" pattern="yyyy-MM-dd"/>"/>
</div>
</div>
<div class="control-group">
<label class="control-label">结束时间:</label>
<div class="controls">
<input id="endTime" name="endTime" type="text" readonly="readonly" maxlength="20" class="laydate-icon form-control layer-date required"
value="<fmt:formatDate value="${leave.endTime}" pattern="yyyy-MM-dd"/>"/>
</div>
</div>
<div class="control-group">
<label class="control-label">请假原因:</label>
<div class="controls">
<form:textarea path="reason" class="form-control required" rows="5" maxlength="20"/>
</div>
</div>
<div class="form-actions">
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
<act:flowChart procInsId="${leave.act.procInsId}"/>
<act:histoicFlow procInsId="${leave.act.procInsId}"/>
</fieldset>
</form:form>
</div>
</div>
</div>
</body>
</html>