Edit D:\rfid\libsystem\page\export\exportlist.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String jsondata = request.getParameter("jsondata"); %> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>??????</title> <%@ include file="../global/linkcss.jsp" %> <link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/page/export/css/exportlist.css?version=<%=MyJspUtils.getVersion() %>"> </head> <body id="body" > <!-- header --> <div class="header"> <!-- ???????? --> <div class="header-title"> ?????? </div> <div class="header-nva"> <ul class="navbar-nav navbar-nav-menu"> <li><a href="javascript:void(0)" onclick="onPrintPerview()"><i class="fa fa-print"></i> ??????</a></li> <li><a href="javascript:void(0)" onclick="onExportExcelFlie()"><i class="fa fa-file-excel-o"></i> ??????</a></li> <li class="bar-chart" style="display: none;"><a href="javascript:void(0)" onclick="onTable()"><i class="fa fa-table"></i> ??????</a></li> <li class="bar-chart" style="display: none;"><a href="javascript:void(0)" onclick="onBarChart()"><i class="fa fa-bar-chart"></i> ??????</a></li> <li><a href="javascript:void(0)" onclick="onCloseWin()"><i class="fa fa-close"></i> ??????</a></li> </ul> </div> <!-- ??????????????--> <div class="header-operator"> <ul class="navbar-nav"> </ul> </div> </div> <div class="lold-div"> <div style="color: #555;left: 46%;top:40%;position: absolute;">??????????????....</div> <div class="lold-div container "> <div class="lold-div circle"></div> <div class="lold-div circle"></div> <div class="lold-div circle"></div> </div> </div> <div style="border: 1px solid #efefef;"> <div class="labelDisplayArea"> <div >?????????</div> </div> <div class="countDisplayArea"> <div id="echartBox" style="width: 100%;height:800px;"></div> </div> </div> </body> <%@ include file="../global/linkjs.jsp" %> <script type="text/javascript"> var jsonData = '<%=jsondata%>'; var vType = "export"; </script> <script type="text/javascript" src="${pageContext.request.contextPath}/third-party/jqprint/jquery-1.4.4.min.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/third-party/jqprint/jquery.jqprint-0.3.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/page/public/js/expstapublic.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/tableExport.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/jquery.base64.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/echarts.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/macarons.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/page/statistics/js/mychart.js?version=<%=MyJspUtils.getVersion() %>"></script> <script type="text/javascript"> var paramjson = null; var getPostData; function onExportExcelFlie(){ /* var url = base_path+'lib/export/download.do'; openPostWindowDownLoad(url,jsonData); */ $('.table-grid').tableExport({ type:'excel', escape:'false', fileName: 'sum' }); } function onExportExcelFlie(){ var url = base_path+'lib/export/download.do'; openPostWindowDownLoad(url,jsonData); } function onBarChart(){ $(".countDisplayArea").show(); $(".labelDisplayArea").hide(); } function onTable(){ $(".countDisplayArea").hide(); $(".labelDisplayArea").show(); } function setLabelDisplayArea(designData,returnData){ getPostData = returnData; var designDataRow = designData.rows[0]; paramjson = JSON.parse(designDataRow.paramjson); var vDesignGrid = paramjson.grid; var vDesignPropertyGrid = paramjson.propertygrid; var vExportname,vPageFontSize,vPageAlignType,vShowName,vShowOperator,vShowTime; if(paramjson.propertygrid){ for(var i = 0;i < vDesignPropertyGrid.length;i++){ if(vDesignPropertyGrid[i].code == "exportname"){ vExportname = vDesignPropertyGrid[i].value; } //?????? if(vDesignPropertyGrid[i].code == "pageFontSize"){//?????? vPageFontSize = parseInt(vDesignPropertyGrid[i].value); } //?????? if(vDesignPropertyGrid[i].code == "pageAlignType"){//?????? vPageAlignType = vDesignPropertyGrid[i].value; } if(vDesignPropertyGrid[i].code == "showname"){ vShowName = vDesignPropertyGrid[i].value; } if(vDesignPropertyGrid[i].code == "showoperator"){ vShowOperator = vDesignPropertyGrid[i].value; } if(vDesignPropertyGrid[i].code == "showtime"){ vShowTime = vDesignPropertyGrid[i].value; } } }else{ vExportname = paramjson.title //?????? if(paramjson.pageFontSize){//?????? vPageFontSize = parseInt(paramjson.pageFontSize); } //?????? if(paramjson.pageAlignType){//?????? vPageAlignType = paramjson.pageAlignType; } if(paramjson.showname){ vShowName = paramjson.showname; } if(paramjson.showoperator){ vShowOperator = paramjson.showoperator; } if(paramjson.showtime){ vShowTime = paramjson.showtime; } } var dfHtml = ""; if(vShowOperator == "1"){ dfHtml += "<li><a><i class=\"fa fa-user-o\"></i> " + jsonData.account + "</a></li>"; } if(vShowName == "1"){ $(".header-title").html(vExportname); } if(vShowTime == "1"){ dfHtml += "<li><a><i class=\"fa fa-calendar-times-o\"> </i>" + fmtStringToDate(getCurDateYMD()) + "</a></li>"; } $(".header-operator .navbar-nav").html(dfHtml); //????????????????? var vTotal = returnData.total; var returnDataRows = returnData.rows; var vExportList = "<table class='table-black'>"; if(vTotal > 500) vExportList += "<caption style=\"background-color:#f7f7f7;color: #000;font-family: ???; margin-left: 20px;text-align: left;font-size: 12px; height: 30px; line-height: 30px;\">??????????"+vTotal+"]???,??????500?¤???,???????????????????</caption>"; vExportList += "<thead><tr><th>???</th>"; for(var i = 0; i < vDesignGrid.length ;i++){ vExportList += "<th>" + vDesignGrid[i].name + "</th>"; } vExportList += "</tr></thead><tbody>"; var nCountTotal = returnDataRows.length; for(var i = 0; i < nCountTotal;i++){ var row = returnDataRows[i]; vExportList += getExportListData(row,vDesignGrid,i,nCountTotal); } vExportList += "</tbody></table>"; $(".labelDisplayArea").html(vExportList); if(jsonData.keycode.indexOf("E_READERLOANTOP")>-1){ buildExpMyChart(designData,returnData,vExportname,"name"); }else if(jsonData.keycode.indexOf("E_BIBLOANTOP")>-1){ buildExpMyChart(designData,returnData,vExportname,"title"); } } var totalFlag = false; function getExportListData(row,vDesignGrid,index,nCountTotal){ var html = "<tr>"; if(totalFlag && (nCountTotal-1) == index){ html += "<td style='width:40px'>???</td>"; }else html += "<td style='width:40px'>" + (index + 1) + "</td>"; if(row){ for(var i = 0; i < vDesignGrid.length ;i++){ var style = ""; if(vDesignGrid[i].width) style = "style='width:"+ vDesignGrid[i].width +"px'"; if(row[vDesignGrid[i].code]!=undefined) html += "<td "+style+">" + row[vDesignGrid[i].code] + "</td>"; else html += "<td "+style+"></td>"; if(vDesignGrid[i].total == "1"){ totalFlag = true; } } } html += "</tr>"; return html; } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de