`
阅读更多

今天我看了一会jxl导出excel,总结一下,但是觉得不是太好。但是,还是不错!

 

 

<%@ page contentType="application/vnd.ms-excel;charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 11">
<link rel=File-List href="exportApplyPosInfoList.files/filelist.xml">
<link rel=Edit-Time-Data href="exportApplyPosInfoList.files/editdata.mso">
<link rel=OLE-Object-Data href="exportApplyPosInfoList.files/oledata.mso">
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Created>1996-12-17T01:32:42Z</o:Created>
  <o:LastSaved>2008-07-04T07:25:17Z</o:LastSaved>
  <o:Version>11.5606</o:Version>
 </o:DocumentProperties>
 <o:OfficeDocumentSettings>
  <o:RemovePersonalInformation/>
 </o:OfficeDocumentSettings>
</xml><![endif]-->
<style>
<!--table
 {mso-displayed-decimal-separator:"\.";
 mso-displayed-thousand-separator:"\,";}
@page
 {margin:1.0in .75in 1.0in .75in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;}
tr
 {mso-height-source:auto;
 mso-ruby-visibility:none;}
col
 {mso-width-source:auto;
 mso-ruby-visibility:none;}
br
 {mso-data-placement:same-cell;}
.style0
 {mso-number-format:General;
 text-align:general;
 vertical-align:bottom;
 white-space:nowrap;
 mso-rotate:0;
 mso-background-source:auto;
 mso-pattern:auto;
 color:windowtext;
 font-size:12.0pt;
 font-weight:400;
 font-style:normal;
 text-decoration:none;
 font-family:宋体;
 mso-generic-font-family:auto;
 mso-font-charset:134;
 border:none;
 mso-protection:locked visible;
 mso-style-name:常规;
 mso-style-id:0;}
td
 {mso-style-parent:style0;
 padding-top:1px;
 padding-right:1px;
 padding-left:1px;
 mso-ignore:padding;
 color:windowtext;
 font-size:12.0pt;
 font-weight:400;
 font-style:normal;
 text-decoration:none;
 font-family:宋体;
 mso-generic-font-family:auto;
 mso-font-charset:134;
 mso-number-format:General;
 text-align:general;
 vertical-align:bottom;
 border:none;
 mso-background-source:auto;
 mso-pattern:auto;
 mso-protection:locked visible;
 white-space:nowrap;
 mso-rotate:0;}
.xl24
 {mso-style-parent:style0;
 border:.5pt solid windowtext;}
ruby
 {ruby-align:left;}
rt
 {color:windowtext;
 font-size:9.0pt;
 font-weight:400;
 font-style:normal;
 text-decoration:none;
 font-family:宋体;
 mso-generic-font-family:auto;
 mso-font-charset:134;
 mso-char-type:none;
 display:none;}
-->
</style>
<!--[if gte mso 9]><xml>
 <x:ExcelWorkbook>
  <x:ExcelWorksheets>
   <x:ExcelWorksheet>
    <x:Name>Sheet1</x:Name>
    <x:WorksheetOptions>
     <x:DefaultRowHeight>285</x:DefaultRowHeight>
     <x:CodeName>Sheet1</x:CodeName>
     <x:Selected/>
     <x:Panes>
      <x:Pane>
       <x:Number>3</x:Number>
       <x:ActiveRow>6</x:ActiveRow>
       <x:ActiveCol>9</x:ActiveCol>
      </x:Pane>
     </x:Panes>
     <x:ProtectContents>False</x:ProtectContents>
     <x:ProtectObjects>False</x:ProtectObjects>
     <x:ProtectScenarios>False</x:ProtectScenarios>
    </x:WorksheetOptions>
   </x:ExcelWorksheet>
   <x:ExcelWorksheet>
    <x:Name>Sheet2</x:Name>
    <x:WorksheetOptions>
     <x:DefaultRowHeight>285</x:DefaultRowHeight>
     <x:CodeName>Sheet2</x:CodeName>
     <x:ProtectContents>False</x:ProtectContents>
     <x:ProtectObjects>False</x:ProtectObjects>
     <x:ProtectScenarios>False</x:ProtectScenarios>
    </x:WorksheetOptions>
   </x:ExcelWorksheet>
   <x:ExcelWorksheet>
    <x:Name>Sheet3</x:Name>
    <x:WorksheetOptions>
     <x:DefaultRowHeight>285</x:DefaultRowHeight>
     <x:CodeName>Sheet3</x:CodeName>
     <x:ProtectContents>False</x:ProtectContents>
     <x:ProtectObjects>False</x:ProtectObjects>
     <x:ProtectScenarios>False</x:ProtectScenarios>
    </x:WorksheetOptions>
   </x:ExcelWorksheet>
  </x:ExcelWorksheets>
  <x:WindowHeight>4530</x:WindowHeight>
  <x:WindowWidth>8505</x:WindowWidth>
  <x:WindowTopX>480</x:WindowTopX>
  <x:WindowTopY>120</x:WindowTopY>
  <x:AcceptLabelsInFormulas/>
  <x:ProtectStructure>False</x:ProtectStructure>
  <x:ProtectWindows>False</x:ProtectWindows>
 </x:ExcelWorkbook>
</xml><![endif]-->
</head>

<body link=blue vlink=purple>

<table x:str border=0 cellpadding=0 cellspacing=0 width=864 style='border-collapse:
 collapse;table-layout:fixed;width:648pt'>
 <col width=72 span=12 style='width:54pt'>
 <tr height=19 style='height:14.25pt'>
  <td height=19 class=xl24 width=72 style='height:14.25pt;width:54pt'>意向单号</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>加急</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>申请类型</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>商户名称</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>商户地址</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>联系人</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>申请日期<span
  style='display:none'>/时</span></td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>受理营业<span
  style='display:none'>部</span></td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>受理时间</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>受理结果</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>销单结果</td>
  <td class=xl24 width=72 style='border-left:none;width:54pt'>任务状态</td>
 </tr>
 <s:iterator value="result" status="stat">
 <tr height=19 style='height:14.25pt'>
  <td height=19 class=xl24 style='height:14.25pt;border-top:none'> <s:property value="apiNo" /></td>
  <td class=xl24 style='border-top:none;border-left:none'><s:date name='timeLimit' format='yyyy-MM-dd'/> </td>
  <td class=xl24 style='border-top:none;border-left:none'>
  <s:set name="applyTypeStr" value="applyType"/>
  <s:if test="${applyTypeStr=='1'}">新装</s:if>
  <s:elseif test="${applyTypeStr=='2'}">增终</s:elseif>
  <s:elseif test="${applyTypeStr=='3'}">增签外卡</s:elseif>
  <s:elseif test="${applyTypeStr=='1,2' || applyTypeStr=='2,1'}">新装,增终</s:elseif>
  <s:elseif test="${applyTypeStr=='2,3' || applyTypeStr=='3,2'}">增终,增签外卡</s:elseif>
  <s:elseif test="${applyTypeStr=='1,3' || applyTypeStr=='3,1'}">新装,增签外卡</s:elseif>
  <s:else >新装,增终,增签外卡</s:else>
  </td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:property value="branchName"/></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:property value="branchAddrModify"/></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:property value="linkMan" /></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:date name='createTime' format='yyyy-MM-dd HH:mm'/></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:property value="saleDept.coName" /></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:date name='applyPosHandles.{?1==1}[0].createTime' format='yyyy-MM-dd HH:mm'/></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:property value="selectOptions.selectMap['aphStatus'][applyPosHandles.{?1==1}[0].aphStatus]"/></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:property value="selectOptions.selectMap['apdStatus'][applyPosDestorys.{?1==1}[0].apdStatus]"/></td>
  <td class=xl24 style='border-top:none;border-left:none'> <s:property value="selectOptions.selectMap['applyStatus'][applyStatus]"/></td>
 </tr>
  </s:iterator>
 <![if supportMisalignedColumns]>
 <tr height=0 style='display:none'>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
  <td width=72 style='width:54pt'></td>
 </tr>
 <![endif]>
</table>

</body>

</html>

  • jxl.jar (621.9 KB)
  • 下载次数: 10
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics