| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page import="java.util.List" %>
- <%@ page import="com.runzhixing.bean.Announcement" %>
- <%@ page import="com.runzhixing.tool.Util"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- List<Announcement> carlist = (List)session.getAttribute("andetailbyid");
- %>
- <!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"/>
- <script type="text/javascript" src="js/easyui/XiuCai.index.js"> </script>
- <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" charset="utf-8"></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">
- var i = 1;//第几页
- var sum;//总条数
- var totalpage;//总页数
- $(document).ready(function(){
- });
- function fLoadTable(){
- var st = $('#st').val();
- var et = $('#et').val();
- if(st!=null&&st!=""){
- $("#searchst").datebox("setValue", st);
-
- }
- if(et!=null&&et!=""){
- $("#searchet").datebox("setValue", et);
- }
- $('#tt').datagrid({
- fit: true,//自动大小
- title: '车辆气瓶数据详细',
- width: '100%',
- height: 580,
- toolbar: '#toolbar',
- fitColumns: true,
- singleSelect:false,
- loadMsg:'正在加载, 请稍等 …',
- nowrap : true,//设置为true,当数据长度超出列宽时将会自动截取
- striped : true,//设置为true将交替显示行背景
- collapsible : true,//显示可折叠按钮
- singleSelect:true,//为true时只能选择单行
- fitColumns:true,//允许表格自动缩放,以适应父容器
- rownumbers:true,
- frozenColumns:[[ //选择框
- {field:'ck',checkbox:true}
- ]],
- columns:[[
-
- {field:'cylindercarNo',title:'操作',width:'7%',formatter: function(value, row, index){
- return '<a href="jsp/rzx/dataQuery/CylinderFollow?cylinderguid='+value+'" target="_blank">'+"追踪气瓶"+'</a>';
- }},
- {field:'carNo',title:'所属车辆',width:'7%'},
- {field:'cylinderNo',title:'气瓶使用编号',width:'7%'},
- {field:'productNo',title:'生产厂家',width:'7%'},
- {field:'cylinderNo',title:'气瓶出厂编号',width:'7%'},
- {field:'cylinderTypeName',title:'气瓶类型',width:'7%'},
- {field:'productDate1',title:'生产年月',width:'7%'},
- {field:'productType',title:'型号',width:'7%'},
- {field:'cylinderState',title:'使用状态',width:'7%',formatter: function(value, row, index){
- if (value == "0") {
- return '<font style="color:green;font-weight: bold;">'+"在用"+'</font>';
- }
- else if(value == "1") {
- return '<font style="color:red;font-weight: bold;">'+"报废"+'</font>';
- }else if(value == "2") {
- return '<font style="color:red;font-weight: bold;">'+"超期未检"+'</font>';
- }else if(value == "3") {
- return '<font style="color:red;font-weight: bold;">'+"周转"+'</font>';
- }}},
- {field:'nextCheckDate',title:'下次检验日期',width:'7%',formatter:function(value,row,index){
- var unixTimestamp = new Date(value);
- return unixTimestamp.toLocaleString();
- }},
- {field:'checkDate',title:'最后检验日期',width:'7%',formatter:function(value,row,index){
- var unixTimestamp = new Date(value);
- return unixTimestamp.toLocaleString();
- }},
- {field:'startUseDate',title:'开始投用日期',width:'7%',formatter:function(value,row,index){
- var unixTimestamp = new Date(value);
- return unixTimestamp.toLocaleString();
- }},
- {field:'installDate1',title:'安装日期',width:'7%'},
- {field:'yearLimit',title:'使用年限',width:'7%'},
- {field:'timesAvailable',title:'可充装次数',width:'7%'},
- {field:'fillTimes',title:'已充装次数',width:'7%'},
- {field:'checkStation',title:'检验单位',width:'7%'},
- {field:'checkState',title:'检验状态',width:'7%',formatter: function(value, row, index){
- if (value == "0") {
- return '<font style="color:green;font-weight: bold;">'+"合格"+'</font>';
- }
- else if(value == "1") {
- return '<font style="color:red;font-weight: bold;">'+"不合格"+'</font>';
- }}},
- {field:'installStation',title:'安装单位',width:'7%'},
- {field:'installLicence',title:'安装许可',width:'7%'},
- {field:'monitorStation',title:'安装监检单位',width:'7%'},
- {field:'weight',title:'重量',width:'7%'},
- {field:'vol',title:'容积',width:'7%'},
- {field:'thickness',title:'壁厚',width:'7%'},
- {field:'press',title:'压力',width:'7%'},
- {field:'material',title:'材质',width:'7%'},
- {field:'installLoc',title:'安装位置',width:'7%'}
-
-
- ]]
- });
- }
- function fLoadData(page,rows){
- document.getElementById("pageNumber").innerText = i;
- document.getElementById("from").innerText = (page-1)*rows;
- document.getElementById("to").innerText = page*rows;
- $.messager.progress({
- title: '请等待',
- msg: '正在加载数据...',
- text: '查询中.......'
- });
- $.ajax({
- type:"POST",
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- url:"ajax/carsDataQueryagain?page="+page+"&psize="+rows,
- success:function (data){
- $.messager.progress('close');
- var vData = $.parseJSON(data);
- sum = vData.total;
- totalpage = Math.ceil(sum/rows);
- document.getElementById("total").innerText = sum;
- document.getElementById("totalpage").innerText = totalpage;
- $('#tt').datagrid('loadData', vData); //将数据绑定到datagrid
- $('#pp').pagination({
- total:sum,
- pageList: [2,10,50,100],
- beforePageText: '第',//页数文本框前显示的汉字
- afterPageText: '页 共 {pages} 页',
- displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
- onSelectPage:function(pageNumber, pageSize){
- fLoadData();
- }
-
-
- });
- }
- });
-
-
- }
-
-
-
- function changeSize(){
- fLoadData(1,10);
- }
- </script>
-
- </head>
-
- <body>
- <!-- 查询结果:数据表格 -->
- <table id="tt" cellspacing="0" cellpadding="0" >
- </table>
- <center>
- <div id="toolbar" style="padding-top: 10px;height: auto;" class="hzbspan">
- <table style="border-collapse:separate; border-spacing:10px;">
- <tr>
- <td class="hzbspan">
- ID号:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getId()%>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 标题:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getTitle() %>" readonly="readonly">
- </td>
-
- <td class="hzbspan">
- 发布人:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getPublisher() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 内容:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getContent() %>" readonly="readonly">
- </td>
- </tr>
- <tr>
- <td class="hzbspan">
- 发布时间:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getPublishTime1() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 发布站点:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getPublishStationNo() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 发布站点:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getPublishStation() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 录入人:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getRecordOperator() %>" readonly="readonly">
- </td>
- </tr>
- <tr>
- <td class="hzbspan">
- 录入人:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getRecordOperatorName() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 接收区域:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getAcceptDistrict() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 接收区域:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getAcceptDistrictName() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 站点类型:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getAcceptStationType() %>" readonly="readonly">
- </td>
- </tr>
- <tr>
- <td class="hzbspan">
- 接收类型:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getAcceptTypeName() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 信息状态:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getState() %>" readonly="readonly">
- </td>
- <td class="hzbspan">
- 信息状态:<input class="hzbspan" type="text" style="width: 200px;height: 26px;border: none;line-height:26px;" value="<%=carlist.get(0).getStateName() %>" readonly="readonly">
- </td>
-
- </tr>
- </table>
- </div>
- </center>
- <input id = "st" type="hidden" value="<%=session.getAttribute("st") %>"/>
- <input id = "et" type="hidden" value="<%=session.getAttribute("et") %>"/>
- </body>
- </html>
|