| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page import="com.runzhixing.tool.Util" %>
- <%@ page import="com.runzhixing.bean.CityPlace" %>
- <%@ page import="com.runzhixing.bean.CountryPlace" %>
- <%@ page import="com.runzhixing.bean.Station" %>
- <%@ page import="com.runzhixing.bean.AuthorityRegionPlace" %>
- <%@ page import="com.runzhixing.bean.User" %>
- <%@ page import="com.runzhixing.constant.Constant" %>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- User user = (User)session.getAttribute(Constant.userMark);
- List<AuthorityRegionPlace> arplist = user.getPrivilegePlaces1();
- List<CityPlace> cplist = new ArrayList<CityPlace>();
- List<CountryPlace> cyplist = new ArrayList<CountryPlace>();
- List<Station> slist = new ArrayList<Station>();
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
-
- <title>互联网+监管 特种设备基础信息</title>
-
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta http-equiv="X-UA-Compatible" content="IE=10"/>
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/themes/icon.css">
- <link rel="stylesheet" type="text/css" href="css/easyui/demo/demo.css">
- <script type="text/javascript" src="css/easyui/jquery.min.js"></script>
- <script type="text/javascript" src="css/easyui/jquery.easyui.min.js" charset="utf-8"></script>
- <script type="text/javascript" src="css/easyui/locale/easyui-lang-zh_CN.js"></script>
- <link rel="stylesheet" type="text/css" href="css/common/hzbstyle.css">
- <style type="text/css">
- a:HOVER{
- color: red;
- text-decoration: none;
- }
- a{
- color: #f08300;
- text-decoration: none;
- }
- </style>
- <script type="text/javascript">
- $(document).ready(function(){
- fLoadTable();
- selectCountry();
- });
- function changeSize(){
- fLoadData(1,10);
- }
-
- function fLoadData(page,rows){
- var province=document.getElementById("province").value;
- var city = document.getElementById("city").value;
- var country = document.getElementById("country").value;
- var startTime = $('#startTime').datetimebox('getValue');
- var endTime = $('#endTime').datetimebox('getValue');
- var params = "province="+province+"&city="+city+"&country="+country+"&startTime="+startTime+"&endTime="+endTime;
- location.href="servlet/exportServlet1.do?"+params;
- $.messager.show({
- title: '提示',
- msg: '正在按检索条件,查询并导出数据到浏览器,请等待!'
- });
-
- }
-
- function selectCountry(){
- var id=document.getElementById("city").value;
- var select = document.getElementById("country");
- for(var i=select.options.length-1;i>=0;i--) {
- select.options.remove(i);
- }
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/hiddenCity?cityId="+id,
- success:function (data){
- var obj=eval("(" + data + ")");
- $.each(obj.rows, function(i,item){
- select.options.add(new Option(item.name, item.id));
- });
-
-
- }
- });
- }
- function selectCountry1(){
- selectCountry();
- }
- function fLoadTable(){
- $('#tt').datagrid({
- fit: true,//自动大小
- title: '',
- width: '100%',
- height: 580,
- toolbar: '#toolbar',
- fitColumns: true,
- singleSelect:false,
- loadMsg:'正在加载, 请稍等 …',
- nowrap : true,//设置为true,当数据长度超出列宽时将会自动截取
- striped : true,//设置为true将交替显示行背景
- collapsible : false,//显示可折叠按钮
- singleSelect:true,//为true时只能选择单行
- fitColumns:true,//允许表格自动缩放,以适应父容器
- rownumbers:true,
- pagination:true,//分页控件
- columns:[[
- {field:'carNo',align:'left',title:'车牌号',width:'180px'},
- {field:'tagNo',align:'left',title:'标签编号',width:'180px'},
- {field:'blackLevelName',align:'left',title:'黑名单级别',width:'180px'},
- {field:'createTime1',align:'left',title:'创建时间',width:'180px'},
- {field:'createTypeName',align:'left',title:'创建类型',width:'180px'},
- {field:'state',align:'left',title:'状态',width:'180px',formatter:function(value,row,index){
- if(value==0){
- return "有效";
- }else{
- return "无效";
- }
- }},
- {field:'downArea',align:'left',title:'下载地区',width:'180px'},
- {field:'downTypeName',align:'left',title:'下载类型',width:'180px'}
-
- ]]
- });
- }
- </script>
- </head>
-
- <body>
- <table id="tt" cellspacing="0" cellpadding="0" >
- </table>
- <div id="toolbar">
- <form id="spmentdataform" action="ajax/spdataList" method="post">
- <table>
- <tr>
- <td>
- <span class="hzbspan">省:</span
- </td>
- <td>
- <select name="province" id="province" style="width: 200px;height: 34px;min-width: 100px;" class="hzbspan select">
- <%for(AuthorityRegionPlace arp:arplist){
- cplist = arp.getCityPlace();
- %>
- <option value="<%=arp.getId() %>">
- <%=arp.getName() %>
- </option>
- <%} %>
- </select>
- </td>
- <td>
- <span class="hzbspan">市:</span
- </td>
- <td>
- <select name="city" id="city" style="width: 200px;height: 34px;min-width: 100px;" class="hzbspan select" onchange="selectCountry1()">
-
- <%
-
- for(CityPlace cp:cplist){
- cyplist = cp.getSubPlaceList();
- %>
-
- <option value="<%=cp.getId() %>">
- <%=cp.getName() %>
- </option>
-
-
- <%} %>
- </select>
- </td>
- <td>
- <span class="hzbspan">县:</span
- </td>
- <td>
- <select name="country" id = "country" style="width: 200px;height: 34px;min-width: 100px;" class="hzbspan select" >
- </select>
- </td>
- </tr>
- <tr>
- <td>
- <span class="hzbspan">开始时间:</span
- </td>
- <td>
- <input name="startTime" id="startTime" class="easyui-datebox" style="width:200px;height:34px;padding:10px;" data-options="prompt:'开始时间',editable:true,required:true">
- </td>
- <td>
- <span class="hzbspan">结束时间:</span
- </td>
- <td>
- <input name="endTime" id="endTime" class="easyui-datebox" style="width:200px;height:34px;padding:10px;" data-options="prompt:'结束时间',editable:true,required:true">
- </td>
- <td colspan="2">
- <a id="btninfosearch" onclick="changeSize();" class="easyui-linkbutton" icon="icon-search" href="javascript:void(0)" ><span class="hzbspan" style="color: #f08300;font-size: 16px;">导出</span></a>
- </td>
- </tr>
- </table>
- </form>
- </div>
- </body>
- </html>
|