first commit
This commit is contained in:
137
WebRoot/jsp/report/rptDayLogAudit.jsp
Normal file
137
WebRoot/jsp/report/rptDayLogAudit.jsp
Normal file
@ -0,0 +1,137 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
|
||||
<style type="text/css">
|
||||
.select2-container .select2-selection--single {
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
}
|
||||
|
||||
.select2-selection__arrow {
|
||||
margin-top: 3px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function dosave(status) {
|
||||
var jsonStr = '${rptDayLog}';
|
||||
var jsonObject= jQuery.parseJSON(jsonStr);
|
||||
|
||||
delete jsonObject.user.sql;
|
||||
delete jsonObject.user.where;
|
||||
delete jsonObject.user.roles;
|
||||
|
||||
if(jsonObject.checkuser!=null){
|
||||
delete jsonObject.checkuser.sql;
|
||||
delete jsonObject.checkuser.where;
|
||||
delete jsonObject.checkuser.roles;
|
||||
}
|
||||
jsonObject.rptdt=$("#rptdt").val();
|
||||
jsonObject.id=$("#id").val();
|
||||
jsonObject.memo=$("#memo").val();
|
||||
jsonObject.others=$("#others").val();
|
||||
jsonObject.reviewComments=$("#reviewComments").val();
|
||||
jsonObject.status=status;
|
||||
for(var i in jsonObject.mPointList){//mPointHistoryList
|
||||
jsonObject.mPointHistoryList[i].parmvalue=$("#id"+i).val();
|
||||
}
|
||||
var jsonstr =JSON.stringify(jsonObject);
|
||||
$.post(ext.contextPath + "/report/RptDayLog/dosave.do",{json:jsonstr}, function(data) {
|
||||
if (data.code == 1){
|
||||
$("#table").bootstrapTable('refresh');
|
||||
closeModal("subModal");
|
||||
}else if(data.code == 0){
|
||||
showAlert('d','保存失败');
|
||||
}else{
|
||||
showAlert('d',data.msg);
|
||||
}
|
||||
},'json');
|
||||
closeModal('subModal');
|
||||
}
|
||||
|
||||
</script>
|
||||
<div class="modal fade" id="subModal">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">审核</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- 新增界面formid强制为subForm -->
|
||||
<form class="form-horizontal" id="subForm">
|
||||
<!-- 界面提醒div强制id为alertDiv -->
|
||||
<div id="alertDiv"></div>
|
||||
|
||||
<!-- <input type="hidden" id="bizId" name="bizId" value="${patrolContents.bizId}">
|
||||
<input type="hidden" id="unitId" name="unitId" value="${patrolContents.unitId}">
|
||||
<input type="hidden" id="pid" name="pid" value="${patrolContents.pid}">
|
||||
<input type="hidden" id="patrolContentsType" name="patrolContentsType" value="${patrolContents.patrolContentsType}"> -->
|
||||
|
||||
<input type="hidden" id="id" name="id" value="${rptDayLog.id}">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">填报时间</label>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" readonly class="form-control" id="rptdt" name ="rptdt" value="${rptDayLog.rptdt}" readOnly>
|
||||
</div>
|
||||
<i class="fa fa-question-circle" aria-hidden="true" title="按Tab键切换光标"></i>
|
||||
</div>
|
||||
<c:forEach items="${rptDayLog.mPointList}" var="item" varStatus="i">
|
||||
|
||||
<c:if test="${(i.index % 2) == 0}"><!-- 单数 -->
|
||||
<div class="form-group">
|
||||
</c:if>
|
||||
<label class="col-sm-3 control-label">${item.parmname}</label>
|
||||
<div class="col-sm-3">
|
||||
<c:set var="numTail" value="${item.NumTail}" />
|
||||
<c:set var="drop" value="." />
|
||||
<c:if test="${fn:containsIgnoreCase(numTail, drop)}">
|
||||
<c:set var="dropNum" value="${fn:indexOf(numTail, drop)}" />
|
||||
<c:set var="numTail" value="${fn:substring(numTail, dropNum+1, fn:length(numTail))}" />
|
||||
<c:set var="numTail" value="${fn:length(numTail)}" />
|
||||
</c:if>
|
||||
<fmt:formatNumber type="number" var="parmvalue" value="${item.parmvalue}" groupingUsed="false" maxFractionDigits="${numTail}"/>
|
||||
<input type="number" readonly class="form-control" id="id${i.index}" name ="name${i.index}" value="${parmvalue}">
|
||||
</div>
|
||||
<c:if test="${(i.index % 2) == 1}"><!-- 双数 -->
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${(i.index % 2) == 0&&i.last}"><!-- 单数最后一个 -->
|
||||
</div>
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">其他参数</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" rows="3" id="others" name="others" placeholder="" readOnly>${rptDayLog.others}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" rows="3" id="memo" name="memo" placeholder="" readOnly>${rptDayLog.memo}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">审批意见</label>
|
||||
<div class="col-sm-9">
|
||||
<c:set var="reviewComments" value="通过" />
|
||||
<c:if test="${rptDayLog.reviewComments!=null && rptDayLog.reviewComments!=''}">
|
||||
<c:set var="reviewComments" value="${rptDayLog.reviewComments}" />
|
||||
</c:if>
|
||||
<textarea class="form-control" rows="3" id="reviewComments" name ="reviewComments" placeholder="">${reviewComments}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary" onclick="dosave('已审核')" id="btn_save">通过</button>
|
||||
<button type="button" class="btn btn-warning" onclick="dosave('已退回')" id="btn_back">退回</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user