1.来函信息展示,新增,修改,审核,取消审核,删除,条件查询
2.翻译配置文件中添加来函页面的中英翻译
This commit is contained in:
@@ -29,62 +29,65 @@
|
||||
|
||||
<div class="portlet-body form">
|
||||
<!-- BEGIN FORM-->
|
||||
<form action="#" class="form-horizontal">
|
||||
<form:form action="${ctx}/cfg/request/saveOrUpdate" class="form-horizontal" id="inputForm" method="post" >
|
||||
<sys:message content="${message}"/>
|
||||
<input type="hidden" name="id" value="${requestInfo.id}"/>
|
||||
<div class="form-body">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">函号:</label>
|
||||
<label class="col-md-3 control-label"><spring:message code="request_number"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control">
|
||||
<input type="text" class="form-control" name="requestNumber" value="${requestInfo.requestNumber}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">来函单位:</label>
|
||||
<label class="col-md-3 control-label"><spring:message code="request_organization"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control">
|
||||
<input type="text" class="form-control" name="requestOrg" value="${requestInfo.requestOrg}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">来函时间:</label>
|
||||
<label class="col-md-3 control-label"><spring:message code="request_time"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control">
|
||||
<input id="requestTime" name="requestTime" type="text" readonly="readonly" maxlength="20" class="form-control input-medium Wdate"
|
||||
value="<fmt:formatDate value="${requestInfo.requestTime}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">标题:</label>
|
||||
<label class="col-md-3 control-label"><spring:message code="title"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control">
|
||||
<input type="text" class="form-control" name="requestTitle" value="${requestInfo.requestTitle}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- <div class="form-group">
|
||||
<label class="col-md-3 control-label">专项:</label>
|
||||
<div class="col-md-4">
|
||||
<div class="input-icon right">
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
</div> -->
|
||||
<!-- <div class="form-group">
|
||||
<label class="col-md-3 control-label">描述:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="form-group last">
|
||||
<label class="col-md-3 control-label">内容:</label>
|
||||
<label class="col-md-3 control-label"><th><spring:message code="content"></spring:message>:</label>
|
||||
<div class="col-md-4">
|
||||
<input type="text" class="form-control">
|
||||
<input type="text" class="form-control" name="requestContent" value="${requestInfo.requestContent}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div class="row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button type="submit" class="btn btn-circle green">提交</button>
|
||||
<button type="button" class="btn btn-circle grey-salsa btn-outline">Cancel</button>
|
||||
<button type="submit" class="btn btn-circle green"><spring:message code="submit"></spring:message></button>
|
||||
<button type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)"><spring:message code="cancel"></spring:message></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form:form>
|
||||
<!-- END FORM-->
|
||||
</div>
|
||||
|
||||
@@ -92,5 +95,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
.input-medium {
|
||||
width: 200px !important;
|
||||
}
|
||||
.Wdate {
|
||||
border: #999 2px solid;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,15 @@
|
||||
<title>来函信息</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="page-content">
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<button type="button" class="btn btn-default"> 刷新 </button>
|
||||
<button type="button" class="btn btn-default" onclick="location='${ctx}/cfg/request/list'"><spring:message code="refresh"></spring:message></button>
|
||||
|
||||
<button type="button" class="btn btn-primary"
|
||||
onClick="javascript:window.location='${ctx}/cfg/request/form'"> 新增来函 </button>
|
||||
onClick="javascript:window.location='${ctx}/cfg/request/form'"><spring:message code="add_request"></spring:message></button>
|
||||
</div>
|
||||
|
||||
<h3 class="page-title">
|
||||
@@ -24,7 +25,7 @@
|
||||
<div class="portlet box blue">
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
<i class="fa fa-cogs"></i>来函函号
|
||||
<i class="fa fa-cogs"></i><spring:message code="request_number"></spring:message>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<a href="javascript:;" class="collapse" data-original-title=""
|
||||
@@ -40,128 +41,141 @@
|
||||
|
||||
<div class="row" >
|
||||
|
||||
|
||||
<form:form id="searchForm" modelAttribute="requestInfo" action="${ctx}/cfg/request/list" method="post" class="breadcrumb form-search">
|
||||
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
||||
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
||||
<div class="col-md-12">
|
||||
|
||||
状态:<select class="select2">
|
||||
<option>未审核</option>
|
||||
<option>审核通过</option>
|
||||
<spring:message code="state"></spring:message>:<select class="select2" name="isAudit">
|
||||
<option value="0"><spring:message code="created"></spring:message></option>
|
||||
<option value="1"><spring:message code="approved"></spring:message></option>
|
||||
</select>
|
||||
|
||||
<select>
|
||||
<option>标题</option>
|
||||
<option>来函函号</option>
|
||||
<option>任务</option>
|
||||
</select> <input> <select>
|
||||
<option>来函时间</option>
|
||||
<option>操作时间</option>
|
||||
</select> <input>
|
||||
<select id="seltype">
|
||||
<option value="requestTitle"><spring:message code="title"></spring:message></option>
|
||||
<option value="requestNumber"><spring:message code="request_number"></spring:message></option>
|
||||
<option value="requestContent"><spring:message code="task"></spring:message></option>
|
||||
</select> <input id="intype">
|
||||
|
||||
<select id="timeType" name="timeType">
|
||||
<option value="requestTime"><spring:message code="request_time"></spring:message></option>
|
||||
<option value="createTime"><spring:message code="operate_time"></spring:message></option>
|
||||
</select>
|
||||
|
||||
<spring:message code="begin_date"></spring:message>:<input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
|
||||
value="<fmt:formatDate value="${requestInfo.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
||||
<spring:message code="end_date"></spring:message>:<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
|
||||
value="<fmt:formatDate value="${requestInfo.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
||||
|
||||
<button type="button" class="btn btn-default btn-sm">
|
||||
<i class="fa fa-edit"></i> 搜索
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="return page()">
|
||||
<i class="fa fa-edit"></i> <spring:message code="search"></spring:message>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</form:form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<sys:message content="${message}"/>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>来函函号</th>
|
||||
<th>来函单位</th>
|
||||
<th>来函时间</th>
|
||||
<th>状态</th>
|
||||
<th>任务</th>
|
||||
<th>操作员</th>
|
||||
<th>操作时间</th>
|
||||
<th>标题</th>
|
||||
<th>内容</th>
|
||||
<th>备注</th>
|
||||
<th><spring:message code="seq"></spring:message></th>
|
||||
<th><spring:message code="request_number"></spring:message></th>
|
||||
<th><spring:message code="request_organization"></spring:message></th>
|
||||
<th><spring:message code="request_time"></spring:message></th>
|
||||
<th><spring:message code="state"></spring:message></th>
|
||||
<th><spring:message code="operator"></spring:message></th>
|
||||
<th><spring:message code="operate_time"></spring:message></th>
|
||||
<th><spring:message code="title"></spring:message></th>
|
||||
<th><spring:message code="content"></spring:message></th>
|
||||
<th><spring:message code="operation"></spring:message></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${page.list}" var="requestInfo">
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>20181720函号</td>
|
||||
<td>来函单位 </d>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td><span class="label label-sm label-success"> 通过
|
||||
</span></td>
|
||||
<td>七五专项</td>
|
||||
<td>Admin</td>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td>标题</td>
|
||||
<td>test</td>
|
||||
<td>test</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>20181720函号</td>
|
||||
<td>来函单位 </d>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td><span class="label label-sm label-success"> 通过
|
||||
</span></td>
|
||||
<td>七五专项</td>
|
||||
<td>Admin</td>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td>标题</td>
|
||||
<td>test</td>
|
||||
<td>test</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>20181720函号</td>
|
||||
<td>来函单位 </d>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td><span class="label label-sm label-success"> 通过
|
||||
</span></td>
|
||||
<td>七五专项</td>
|
||||
<td>Admin</td>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td>标题</td>
|
||||
<td>test</td>
|
||||
<td>test</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>20181720函号</td>
|
||||
<td>来函单位 </d>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td><span class="label label-sm label-success"> 通过
|
||||
</span></td>
|
||||
<td>七五专项</td>
|
||||
<td>Admin</td>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td>标题</td>
|
||||
<td>test</td>
|
||||
<td>test</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>20181720函号</td>
|
||||
<td>来函单位 </d>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td><span class="label label-sm label-success"> 通过
|
||||
</span></td>
|
||||
<td>七五专项</td>
|
||||
<td>Admin</td>
|
||||
<td>2018-01-06 21:57:03</td>
|
||||
<td>标题</td>
|
||||
<td>test</td>
|
||||
<td>test</td>
|
||||
|
||||
<td>${requestInfo.id }</td>
|
||||
<td>${requestInfo.requestNumber }</td>
|
||||
<td>${requestInfo.requestOrg }</td>
|
||||
<td><fmt:formatDate value="${requestInfo.requestTime }" pattern="yyyy-MM-dd"/></td>
|
||||
<td>
|
||||
<c:choose>
|
||||
<c:when test="${requestInfo.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
||||
<c:when test="${requestInfo.isAudit eq '1'}"><span class="label label-success"><spring:message code="approved"></spring:message></span></c:when>
|
||||
<c:when test="${requestInfo.isAudit eq '2'}"><span class="label label-warning"><spring:message code="unapproved"></spring:message></span></c:when>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>${requestInfo.creatorName }</td>
|
||||
<td>
|
||||
<!-- 编辑时间为空则显示创建时间 -->
|
||||
<c:choose>
|
||||
<c:when test="${empty requestInfo.editTime}">
|
||||
<fmt:formatDate value="${requestInfo.createTime }" pattern="yyyy-MM-dd"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<fmt:formatDate value="${requestInfo.editTime }" pattern="yyyy-MM-dd"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td>${requestInfo.requestTitle }</td>
|
||||
<td>${requestInfo.requestContent }</td>
|
||||
<td>
|
||||
<div class="btn-group btn-xs">
|
||||
<a class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" href="#"><spring:message code="operation"></spring:message><span class="caret"></span></a>
|
||||
<ul class="dropdown-menu btn-xs">
|
||||
<!-- 审核未通过可修改 -->
|
||||
<c:choose>
|
||||
<c:when test="${requestInfo.isAudit eq '1'}">
|
||||
<li><a href="${ctx}/cfg/request/requestCancelExamine?id=${requestInfo.id}" onclick="return confirm('sure?', this.href)"><spring:message code="cancel"></spring:message></a></li>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<li><a href="${ctx}/cfg/request/requestExamine?id=${requestInfo.id}" onclick="return confirm('sure?', this.href)"><spring:message code="approved"></spring:message></a></li>
|
||||
<li><a href="${ctx}/cfg/request/form?requestNumber=${requestInfo.requestNumber}" onclick="javascript:return confirm('sure?', this.href)"><spring:message code="update_request"></spring:message></a></li>
|
||||
<li><a href="${ctx}/cfg/request/delete?id=${requestInfo.id}" onclick="return confirm('sure?', this.href)"><spring:message code="delete"></spring:message></a></li>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="pager">${page}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
});
|
||||
//查询
|
||||
function page(n,s){
|
||||
$("#intype").attr("name",$("#seltype").val());
|
||||
|
||||
$("#pageNo").val(n);
|
||||
$("#pageSize").val(s);
|
||||
$("#searchForm").attr("action","${ctx}/cfg/request/list");
|
||||
$("#searchForm").submit();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.input-medium {
|
||||
width: 200px !important;
|
||||
}
|
||||
.Wdate {
|
||||
border: #999 2px solid;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user