﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-MingLiang-文章分类-Java技术</title><link>http://www.blogjava.net/MingLiang/category/53588.html</link><description /><language>zh-cn</language><lastBuildDate>Sun, 26 May 2013 09:54:40 GMT</lastBuildDate><pubDate>Sun, 26 May 2013 09:54:40 GMT</pubDate><ttl>60</ttl><item><title>Excel导出(一)</title><link>http://www.blogjava.net/MingLiang/articles/399422.html</link><dc:creator>MingLiang</dc:creator><author>MingLiang</author><pubDate>Fri, 17 May 2013 08:56:00 GMT</pubDate><guid>http://www.blogjava.net/MingLiang/articles/399422.html</guid><wfw:comment>http://www.blogjava.net/MingLiang/comments/399422.html</wfw:comment><comments>http://www.blogjava.net/MingLiang/articles/399422.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/MingLiang/comments/commentRss/399422.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/MingLiang/services/trackbacks/399422.html</trackback:ping><description><![CDATA[<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">package com.copote.</span><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 25px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" size="+0"><span style="color: #800000">businessManage</span></font><span style="color: #800000">.afbjDataAnalysis.expExcelServlet;</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">import java.io.IOException;</span><br style="line-height: 20px" /><span style="color: #800000">import java.util.HashMap;</span><br style="line-height: 20px" /><span style="color: #800000">import java.util.List;</span><br style="line-height: 20px" /><span style="color: #800000">import javax.servlet.ServletException;</span><br style="line-height: 20px" /><span style="color: #800000">import javax.servlet.ServletOutputStream;</span><br style="line-height: 20px" /><span style="color: #800000">import javax.servlet.http.HttpServlet;</span><br style="line-height: 20px" /><span style="color: #800000">import javax.servlet.http.HttpServletRequest;</span><br style="line-height: 20px" /><span style="color: #800000">import javax.servlet.http.HttpServletResponse;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.usermodel.HSSFCell;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.usermodel.HSSFCellStyle;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.usermodel.HSSFFont;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.usermodel.HSSFRichTextString;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.usermodel.HSSFRow;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.usermodel.HSSFSheet;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.usermodel.HSSFWorkbook;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.util.HSSFColor;</span><br style="line-height: 20px" /><span style="color: #800000">import org.apache.poi2.hssf.util.Region;</span><br style="line-height: 20px" /><span style="color: #800000">import com.copote.businessManage.afbjDataAnalysis.bean.AfbjDynamicTableBean;</span><br style="line-height: 20px" /><span style="color: #800000">import com.copote.businessManage.afbjDataAnalysis.dao.AfbjDataAnalysis;</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">/**</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;*&nbsp; 统计分析-报警记录 Excel导出</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;* */</span><br style="line-height: 20px" /><span style="color: #800000">public class ExpExcel_Bjjl extends HttpServlet {</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;private HashMap&lt;String,String&gt; condition = new HashMap&lt;String,String&gt;();</span><br style="line-height: 20px" />&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;public ExpExcel_Bjjl() {//构造器</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;super();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;}</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;public void destroy() {//销毁</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;super.destroy();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;}</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;public void init() throws ServletException {//初始化</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;}</span><br style="line-height: 20px" />&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;public void doPost(HttpServletRequest request, HttpServletResponse response)</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;throws ServletException, IOException {//doPost</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;}</span><br style="line-height: 20px" />&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;public void doGet(HttpServletRequest request, HttpServletResponse response)</span></font><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2"><br style="line-height: 20px" /><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;&nbsp; throws ServletException, IOException {</span></font></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp; //设置返回类型为Excel</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;response.setContentType("application/vnd.ms-excel; charset=UTF-8");</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//设置返回文件名为 myDocument.xls</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;response.setHeader("Content-Disposition", "filename=myDocument"+System.currentTimeMillis()+".xls");</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;System.out.println("filename=mydocument"+System.currentTimeMillis()+".xls");</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;request.setCharacterEncoding("UTF-8");</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;response.setCharacterEncoding("UTF-8");</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//创建工作簿</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFWorkbook book = ExportExcelStatistics(response,request);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;try{</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;ServletOutputStream out = response.getOutputStream();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;book.write(out);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;out.flush();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;out.close();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;response.flushBuffer();</span><br style="line-height: 20px" />&nbsp;&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;}catch(Exception e){</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;e.printStackTrace();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;}</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;}</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;private HSSFWorkbook ExportExcelStatistics(HttpServletResponse response,</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;HttpServletRequest request) {</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;String dwdh = request.getParameter("dwdh").toString();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;String dwmc = request.getParameter("dwmc").toString();// 单位名称</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;String starttime = request.getParameter("starttime").toString();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;String endtime = request.getParameter("endtime").toString();</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;condition.put("dwdh", dwdh);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;condition.put("starttime", starttime);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;condition.put("endtime", endtime);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//创建工作簿</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFWorkbook book = new HSSFWorkbook();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//创建工作表</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFSheet sheet = book.createSheet("sheet1");</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//设置表格列的宽度</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 0, (short) 2058);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 1, (short) 4868);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 2, (short) 2868);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 3, (short) 4268);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 4, (short) 4268);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 5, (short) 4868);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 6, (short) 4868);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 7, (short) 4268);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 8, (short) 6268);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 9, (short) 4268);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.setColumnWidth((short) 10, (short) 4268);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//初始化title样式</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFCellStyle titleStyle = book.createCellStyle();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFFont font = book.createFont();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setFontHeightInPoints((short) 20);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;titleStyle.setFont(font);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;titleStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);//垂直对齐方式</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;titleStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);//水平对齐方式</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//初始化head样式</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFCellStyle headStyle_center = book.createCellStyle();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font = book.createFont();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setFontHeightInPoints((short) 12);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);&nbsp;&nbsp; //字体加粗</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;headStyle_center.setFont(font);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;headStyle_center.setAlignment(HSSFCellStyle.ALIGN_CENTER);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFCellStyle headStyle_left = book.createCellStyle();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font = book.createFont();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setFontHeightInPoints((short) 12);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);&nbsp;&nbsp; //字体加粗</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;headStyle_left.setFont(font);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;headStyle_left.setAlignment(HSSFCellStyle.ALIGN_LEFT);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFCellStyle headStyle_right = book.createCellStyle();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font = book.createFont();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setFontHeightInPoints((short) 12);&nbsp;</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);&nbsp;&nbsp; //字体加粗</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;headStyle_right.setFont(font);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;headStyle_right.setAlignment(HSSFCellStyle.ALIGN_RIGHT);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//初始化body样式</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFCellStyle bodyStyle_center = book.createCellStyle();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font = book.createFont();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setFontHeightInPoints((short) 12);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setAlignment(HSSFCellStyle.ALIGN_CENTER);//水平居中对齐</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);//垂直居中对齐</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setWrapText(true);//自动换行</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setBorderBottom(HSSFCellStyle.BORDER_THIN);&nbsp;&nbsp; //设置底线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setBottomBorderColor(HSSFColor.BLACK.index);</span><span class="Apple-converted-space">&nbsp;</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setBorderLeft(HSSFCellStyle.BORDER_THIN);&nbsp;&nbsp;&nbsp;&nbsp; //设置左边线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setLeftBorderColor(HSSFColor.BLACK.index);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setBorderRight(HSSFCellStyle.BORDER_THIN);&nbsp;&nbsp;&nbsp; //设置右边线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setRightBorderColor(HSSFColor.BLACK.index);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setBorderTop(HSSFCellStyle.BORDER_THIN);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //设置上面线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_center.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFCellStyle bodyStyle_left = book.createCellStyle();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font = book.createFont();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;font.setFontHeightInPoints((short) 12);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setFont(font);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setAlignment(HSSFCellStyle.ALIGN_LEFT); //水平居左对齐</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setBorderBottom(HSSFCellStyle.BORDER_THIN);//垂直方向对齐方式</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setWrapText(true);// 自动换行</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setBottomBorderColor(HSSFColor.BLACK.index);&nbsp;&nbsp; //设置底线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setBorderLeft(HSSFCellStyle.BORDER_THIN);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setLeftBorderColor(HSSFColor.BLACK.index);&nbsp;&nbsp;&nbsp;&nbsp; //设置左边线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setBorderRight(HSSFCellStyle.BORDER_THIN);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setRightBorderColor(HSSFColor.BLACK.index);&nbsp;&nbsp;&nbsp; //设置右边线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setBorderTop(HSSFCellStyle.BORDER_THIN);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setTopBorderColor(HSSFColor.BLACK.index);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //设置上面线和颜色</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;bodyStyle_left.setVerticalAlignment(HSSFCellStyle.VERTICAL_TOP);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//创建行对象</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFRow row = sheet.createRow(0);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;row.setHeight((short) 1000);//行高</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//设置表头</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;HSSFCell cell = row.createCell((short) 0);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;sheet.addMergedRegion(new Region(0,(short) 0,0,(short) 10));</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(titleStyle);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//表格名称</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("[" + dwmc + "]及直属下级单位各类报警总数 表"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;//设置表格的表头</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;row = sheet.createRow(1);</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 0);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("序号"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 1);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("单位名称"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 2);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("报警总数"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 3);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("紧急情况报警"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 4);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("情况异常报警"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 5);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("设备被破坏/故障"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 6);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("设备断线/断电"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 7);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("违规操作报警"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 8);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("设备异常及工作提醒"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 9);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("ATM环境异常"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell = row.createCell((short) 10);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellStyle(headStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString("系统检测报警"));</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;/**</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp; * 获取数据</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp; **/</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;AfbjDataAnalysis bj = new AfbjDataAnalysis();</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;List&lt;AfbjDynamicTableBean&gt; list = null;//获取数据</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;list = (List&lt;AfbjDynamicTableBean&gt;) bj.getExpBjjlList(condition,request.getSession());</span><br style="line-height: 20px" />&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;int rowindex = 2;</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;for(int i=0;i&lt;list.size();i++){</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;row = sheet.createRow(rowindex);</span><br style="line-height: 20px" />&nbsp;&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 0);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(i + 1);</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 1);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_left);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getDwmc()));</span><br style="line-height: 20px" />&nbsp;&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 2);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_0()));</span><br style="line-height: 20px" />&nbsp;&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 3);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_1()));</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 4);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_2()));</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 5);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_3()));</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 6);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_4()));</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 7);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_5()));</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 8);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_6()));</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 9);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_7()));</span></font></p>
<p style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; margin: 5px 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; width: auto; letter-spacing: normal; padding-right: 0px; font: 14px/22px Arial, 宋体B8B体, simsun, sans-serif; white-space: normal; orphans: 2; color: rgb(68,68,68); vertical-align: baseline; border-top: 0px; border-right: 0px; word-spacing: 0px; padding-top: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><font style="border-bottom: 0px; border-left: 0px; padding-bottom: 0px; line-height: 20px; background-color: transparent; margin: 0px; outline-style: none; outline-color: invert; padding-left: 0px; outline-width: 0px; padding-right: 0px; vertical-align: baseline; border-top: 0px; border-right: 0px; padding-top: 0px" color="#336633" size="2" face="Courier New"><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell = row.createCell((short) 10);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellStyle(bodyStyle_center);</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;cell.setCellValue(new HSSFRichTextString(list.get(i).getCondition_8()));</span><br style="line-height: 20px" />&nbsp;&nbsp;&nbsp;<br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;&nbsp;rowindex++;</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;}</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;&nbsp;return book;</span><br style="line-height: 20px" /><span style="color: #800000">&nbsp;}</span><br style="line-height: 20px" /><span style="color: #800000">}</span></font></p><br class="Apple-interchange-newline" /> <img src ="http://www.blogjava.net/MingLiang/aggbug/399422.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/MingLiang/" target="_blank">MingLiang</a> 2013-05-17 16:56 <a href="http://www.blogjava.net/MingLiang/articles/399422.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>