|
@@ -0,0 +1,210 @@
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>造价项目一览表</title>
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
+ <style>
|
|
|
+ .op-btn.op-btn-invalid{
|
|
|
+ background:#f0ad4e ;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <%@include file="/webpage/include/treetable.jsp" %>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var validateForm;
|
|
|
+ $(document).ready(function() {
|
|
|
+ validateForm = $("#inputForm").validate({
|
|
|
+ submitHandler: function(form){
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
+ form.submit();
|
|
|
+ },
|
|
|
+ rules:{
|
|
|
+ number:{
|
|
|
+ required:true
|
|
|
+ },
|
|
|
+ businessType:{
|
|
|
+ required:true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ messages:{
|
|
|
+ },
|
|
|
+ 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);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ //搜索框收放
|
|
|
+ $('#moresee').click(function(){
|
|
|
+ if($('#moresees').is(':visible'))
|
|
|
+ {
|
|
|
+ $('#moresees').slideUp(0,resizeListWindow2);
|
|
|
+ $('#moresee i').removeClass("glyphicon glyphicon-menu-up").addClass("glyphicon glyphicon-menu-down");
|
|
|
+ }else{
|
|
|
+ $('#moresees').slideDown(0,resizeListWindow2);
|
|
|
+ $('#moresee i').removeClass("glyphicon glyphicon-menu-down").addClass("glyphicon glyphicon-menu-up");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+ <style>
|
|
|
+ body{
|
|
|
+ background-color:transparent;
|
|
|
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26FFFFFF, endColorstr=#26FFFFFF);
|
|
|
+ color:#ffffff;
|
|
|
+ background-color:rgba(255,255,255,0);
|
|
|
+ height:100%;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<div class="wrapper wrapper-content">
|
|
|
+ <sys:message content="${message}"/>
|
|
|
+ <div class="layui-row">
|
|
|
+ <div class="full-width fl">
|
|
|
+ <div class="layui-row contentShadow shadowLR" id="queryDiv">
|
|
|
+ <form:form id="searchForm" modelAttribute="ruralProjectRecordReportInfo" action="${ctx}/projectCostRecordReport/projectCostRecordReport/list" method="post" class="form-inline">
|
|
|
+ <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
+ <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
+ <table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
|
|
|
+ <div class="commonQuery lw7">
|
|
|
+ <div class="layui-item query athird">
|
|
|
+ <label class="layui-form-label">年份:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <form:select path="year" class="form-control simple-select">
|
|
|
+ <form:option value="" label=""/>
|
|
|
+ <c:forEach items="${yearList}" var="year">
|
|
|
+ <option value="${year}" <c:if test="${yearValue==year}">selected</c:if> >${year}</option>
|
|
|
+ </c:forEach>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item query athird">
|
|
|
+ <label class="layui-form-label">月份:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <form:select path="month" class="form-control simple-select">
|
|
|
+ <form:option value="" label=""/>
|
|
|
+ <c:forEach items="${monthList}" var="month">
|
|
|
+ <option value="${month}" <c:if test="${monthValue==month}">selected</c:if> >${month}</option>
|
|
|
+ </c:forEach>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item athird">
|
|
|
+ <div class="input-group">
|
|
|
+ <a href="#" id="moresee"><i class="glyphicon glyphicon-menu-down"></i></a>
|
|
|
+ <button id="searchReset" class="fixed-btn searchReset fr" onclick="resetSearch()">重置</button>
|
|
|
+ <button id="searchQuery" class="fixed-btn searchQuery fr" onclick="search()">查询</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style=" clear:both;"></div>
|
|
|
+ </div>
|
|
|
+ <div id="moresees" class="lw7" style="clear:both;display:none;height: 70px;">
|
|
|
+ <div class="layui-item query athird">
|
|
|
+ <label class="layui-form-label">项目名称:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <form:input path="projectName" htmlEscape="false" maxlength="255" class=" form-control layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item query athird">
|
|
|
+ <label class="layui-form-label">项目负责人:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <form:input path="principalUser" htmlEscape="false" maxlength="255" class=" form-control layui-input"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item query athird">
|
|
|
+ <label class="layui-form-label">部门:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <form:select path="officeId" class="form-control simple-select">
|
|
|
+ <form:option value="" label=""/>
|
|
|
+ <c:forEach items="${officeList}" var="office">
|
|
|
+ <option value="${office.id}" <c:if test="${officeValue==office.id}">selected</c:if> >${office.name}</option>
|
|
|
+ </c:forEach>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form:form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="full-width fl">
|
|
|
+ <div class="contentShadow layui-form contentDetails">
|
|
|
+ <div class="nav-btns">
|
|
|
+ <table:exportExcel url="${ctx}/projectCostRecordReport/projectCostRecordReport/export"></table:exportExcel><!-- 导出按钮 -->
|
|
|
+ <button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>
|
|
|
+
|
|
|
+ <div style="clear: both;"></div>
|
|
|
+ </div>
|
|
|
+ <table class="oa-table layui-table" id="contentTable1"></table>
|
|
|
+
|
|
|
+ <!-- 分页代码 -->
|
|
|
+ <table:page page="${page}"></table:page>
|
|
|
+ <div style="clear: both;"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div id="changewidth"></div>
|
|
|
+</div>
|
|
|
+<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
|
+<script>
|
|
|
+ layui.use('table', function(){
|
|
|
+ layui.table.render({
|
|
|
+ limit:${ page.pageSize }
|
|
|
+ ,elem: '#contentTable1'
|
|
|
+ ,page: false
|
|
|
+ ,cols: [[
|
|
|
+ // {checkbox: true, fixed: true},
|
|
|
+ {field:'index',align:'center', title: '序号',width:40}
|
|
|
+ ,{field:'year',align:'center', sort:true,title: '年份'}
|
|
|
+ ,{field:'month',align:'center', sort:true,title: '月份'}
|
|
|
+ ,{field:'projectName',align:'center', title: '项目名称',minWidth:200,templet:function(d){
|
|
|
+ return "<a class=\"attention-info\" title=\""+d.projectName+"\" href=\"javascript:void(0);\" onclick=\"openDialogView('查看项目信息', '${ctx}/ruralProject/ruralProjectRecords/view?id=" + d.id + "','95%', '95%')\">" + d.projectName + "</a>";
|
|
|
+ }}
|
|
|
+ ,{field:'reportNum',align:'center',minWidth:150, title: '报告号'}
|
|
|
+ ,{field:'principalUser',align:'center', title: '项目负责人'}
|
|
|
+ ,{field:'officeName',align:'center', title: '所属部门'}
|
|
|
+ ,{field:'recordStatus',align:'center', title: '归档状态'}
|
|
|
+ ,{field:'reportedStatus',align:'center', title: '上报状态'}
|
|
|
+
|
|
|
+
|
|
|
+ ]]
|
|
|
+ ,data: [
|
|
|
+ <c:if test="${ not empty page.list}">
|
|
|
+ <c:forEach items="${page.list}" var="workContractInfo" varStatus="index">
|
|
|
+ <c:if test="${index.index != 0}">,</c:if>
|
|
|
+ {
|
|
|
+ "index":"${index.index+1}"
|
|
|
+ ,"id":"${workContractInfo.id}"
|
|
|
+ ,"year":"${workContractInfo.year}"
|
|
|
+ ,"month":"${workContractInfo.month}"
|
|
|
+ ,"projectName":"${workContractInfo.projectName}"
|
|
|
+ ,"reportNum":"${workContractInfo.reportNum}"
|
|
|
+ ,"principalUser":"${workContractInfo.principalUser}"
|
|
|
+ ,"officeName":"${workContractInfo.officeName}"
|
|
|
+ ,"recordStatus":"${workContractInfo.recordStatus}"
|
|
|
+ ,"reportedStatus":"${workContractInfo.reportedStatus}"
|
|
|
+ }
|
|
|
+ </c:forEach>
|
|
|
+ </c:if>
|
|
|
+ ]
|
|
|
+ // ,even: true
|
|
|
+ // ,height: 315
|
|
|
+ });
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ resizeListTable();
|
|
|
+</script>
|
|
|
+<script>
|
|
|
+ resizeListWindow2();
|
|
|
+ $(window).resize(function(){
|
|
|
+ resizeListWindow2();
|
|
|
+ });
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|