Commit 70f93de0 authored by Sun's avatar Sun
Browse files

no commit message

parent d3957b01
<?xml version="1.0" encoding="utf-8"?>
<template>
<name>viewList</name>
<filePath>src/main/webapp/WEB-INF/views/${lastPackageName}/${moduleName}/${subModuleName}</filePath>
<fileName>${className}Total.jsp</fileName>
<content><![CDATA[
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>${functionNameSimple}管理</title>
<%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<%@ include file="/WEB-INF/views/include/headJs.jsp" %>
<%@ include file="/WEB-INF/views/include/echarts.jsp" %>
<script src="/staticViews/${lastPackageName}/${moduleName}/${subModuleName}/${className}Total.js" type="text/javascript"></script>
<link href="/staticViews/${lastPackageName}/${moduleName}/${subModuleName}/${className}Total.css" rel="stylesheet" />
</head>
<body>
<!-- 内容-->
<div class="wrapper">
<!-- 内容盒子-->
<div class="box box-main">
<!-- 内容盒子头部 -->
<div class="box-header">
<div class="box-title"><i class="fa fa-edit"></i>${functionNameSimple}管理</div>
<div class="box-tools pull-right">
<a id="btnSearchView" href="#" title="筛选" class="btn btn-default btn-sm"><i
class="fa fa-filter"></i>筛选</a>
<!-- 工具功能 -->
<%@ include file="/WEB-INF/views/include/btnGroup.jsp" %>
</div>
</div>
</div>
<!-- 内容盒子身体 -->
<div class="box-body">
<!-- 查询条件 -->
<form:form id="searchForm" modelAttribute="${className}" action="${r"${ctx}"}/${urlPrefix}/total" method="post" class="form-inline">
<div class="form-group">
<input id="run" type="checkbox" value="true" name="run" checked/>自动刷新
<form:select path="totalType" class="form-control m-b">
<form:option value="" label=""/>
<form:options items="${"$"}{fns:getDictList('total_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
</div>
<#list table.columnList as c>
<#if c.isQuery?? && c.isQuery == "1">
<div class="form-group">
<span>${c.comments}:</span>
<#if c.showType == "input" || c.showType == "textarea">
<form:input path="${c.javaFieldId}" htmlEscape="false"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class=" form-control input-sm"/>
<#elseif c.showType == "select">
<form:select path="${c.javaFieldId}" class="form-control m-b">
<form:option value="" label=""/>
<form:options items="${"$"}{fns:getDictList('${c.dictType}')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
<#elseif c.showType == "checkbox">
<form:checkboxes class="i-checks" path="${c.javaFieldId}" items="${"$"}{fns:getDictList('${c.dictType}')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
<#elseif c.showType == "radiobox">
<form:radiobuttons class="i-checks" path="${c.javaFieldId}" items="${"$"}{fns:getDictList('${c.dictType}')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
<#elseif c.showType == "dateselect" && c.queryType == "between">
<input id="begin${c.simpleJavaField?cap_first}" name="begin${c.simpleJavaField?cap_first}" type="text" maxlength="20" class="laydate-icon form-control layer-date input-sm"
value="<fmt:formatDate value="${"$"}{${className}.begin${c.simpleJavaField?cap_first}}" pattern="yyyy-MM-dd HH:mm:ss"/>"/> -
<input id="end${c.simpleJavaField?cap_first}" name="end${c.simpleJavaField?cap_first}" type="text" maxlength="20" class="laydate-icon form-control layer-date input-sm"
value="<fmt:formatDate value="${"$"}{${className}.end${c.simpleJavaField?cap_first}}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
<#elseif c.showType == "dateselect">
<input id="${c.javaFieldId}" name="${c.javaFieldId}" type="text" maxlength="20" class="laydate-icon form-control layer-date input-sm"
value="<fmt:formatDate value="${"$"}{${className}.${c.javaFieldId}}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
<#elseif c.showType == "userselect">
<sys:treeselect id="${c.simpleJavaField}" name="${c.javaFieldId}" value="${"$"}{${className}.${c.javaFieldId}}" labelName="${c.javaFieldName}" labelValue="${"$"}{${className}.${c.javaFieldName}}"
title="用户" url="/sys/office/treeData?type=3" cssClass="form-control input-sm" allowClear="true" notAllowSelectParent="true"/>
<#elseif c.showType == "officeselect">
<sys:treeselect id="${c.simpleJavaField}" name="${c.javaFieldId}" value="${"$"}{${className}.${c.javaFieldId}}" labelName="${c.javaFieldName}" labelValue="${"$"}{${className}.${c.javaFieldName}}"
title="部门" url="/sys/office/treeData?type=2" cssClass="form-control input-sm" allowClear="true" notAllowSelectParent="true"/>
<#elseif c.showType == "areaselect">
<sys:treeselect id="${c.simpleJavaField}" name="${c.javaFieldId}" value="${"$"}{${className}.${c.javaFieldId}}" labelName="${c.javaFieldName}" labelValue="${"$"}{${className}.${c.javaFieldName}}"
title="区域" url="/sys/area/treeData" cssClass="form-control input-sm" allowClear="true" notAllowSelectParent="true"/>
</#if>
</div>
</#if>
</#list>
<div class="form-group">
<button id="btnSearch" class="btn btn-primary"><i class="fa fa-search"></i> 查询</button>
<button id="btnReset" class="btn btn-default"><i class="fa fa-refresh"></i> 重置</button>
</div>
</form:form>
<div class="row" style="margin-top: 10px;">
<div class="col-sm-12 echartsEval">
<div id="pie" class="main000"></div>
<echarts:pie
id="pie"
title="${functionNameSimple}数量饼图"
subtitle="${functionNameSimple}数量饼图"
orientData="${"$"}{orientData}"/>
<#list table.columnList as c>
<#if c.jdbcType?? && (c.jdbcType == "int(11)" || c.jdbcType == "decimal(10,3)") && table.tableType!="2" && c.name?index_of("_id") == -1 && c.name?index_of("_type") == -1>
<!--div id="pieSum${c.javaField?cap_first}" class="main000"></div-->
<!--xxx-echarts:pie
id="pieSum${c.javaField?cap_first}"
title="${functionNameSimple}${c.comments}饼图"
subtitle="${functionNameSimple}${c.comments}饼图"
orientData="${"$"}{orientDataSum${c.javaField?cap_first}}"/-->
</#if>
</#list>
<div id="line_normal" class="main000"></div>
<echarts:line
id="line_normal"
title="${functionNameSimple}曲线"
subtitle="${functionNameSimple}曲线"
xAxisData="${"$"}{xAxisData}"
yAxisData="${"$"}{yAxisData}"
xAxisName="时间"
yAxisName="数量" />
</div>
</div>
<!-- 表格 -->
<table class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
<thead>
<tr>
<th>时间段</th>
<th>数量</th>
<#list table.columnList as c>
<#if c.jdbcType?? && (c.jdbcType == "int(11)" || c.jdbcType == "decimal(10,3)") && table.tableType!="2" && c.name?index_of("_id") == -1 && c.name?index_of("_type") == -1>
<th>${c.comments}</th>
</#if>
</#list>
</tr>
</thead>
<tbody>
<c:forEach items="${r"${list}"}" var="${className}">
<tr>
<td>${"$"}{${className}.totalDate}</td>
<td style="text-align: right;" class="totalCount">${"$"}{${className}.totalCount}</td>
<#list table.columnList as c>
<#if c.jdbcType?? && (c.jdbcType == "int(11)" || c.jdbcType == "decimal(10,3)") && table.tableType!="2" && c.name?index_of("_id") == -1 && c.name?index_of("_type") == -1>
<td style="text-align: right;" class="sum${c.javaField?cap_first}">${"$"}{${className}.sum${c.javaField?cap_first}}</td>
</#if>
</#list>
</tr>
</c:forEach>
</tbody>
<tfoot>
<tr id="totalRow">
<td>合计:</td>
<#assign x=2 />
<td id="totalCount" style="text-align: right;"><script>sumColumn("totalCount");</script></td>
<#list table.columnList as c>
<#if c.jdbcType?? && (c.jdbcType == "int(11)" || c.jdbcType == "decimal(10,3)") && table.tableType!="2" && c.name?index_of("_id") == -1 && c.name?index_of("_type") == -1>
<#assign x=x+1 />
<td id="sum${c.javaField?cap_first}" style="text-align: right;"><script>sumColumn("sum${c.javaField?cap_first}");</script></td>
</#if>
</#list>
</tr>
</tfoot>
</table>
</div>
</div>
<!-- 信息-->
<div id="messageBox">${r"${message}"}</div>
<script src="/staticViews/viewBase.js"></script>
</body>
</head>
]]>
</content>
</template>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment