Sfoglia il codice sorgente

省局系统,航线航班统计,导出功能未实现,所属地区选择具体值时,应只显示查询按钮,该功能也有问题

git-svn-id: https://192.168.57.71/svn/jsgkj@1575 931142cf-59ea-a443-aa0e-51397b428577
ld_xuhx 8 anni fa
parent
commit
4efdc38cd8

+ 20 - 5
gkjsjy/trunk/WebContent/WEB-INF/pages/gkyxtjyfx/hxhbtj/hxhbtjpro.jsp

@@ -126,11 +126,26 @@
 		//所在地区不选时才显示导出按钮
 		function checkDq(v){
 			if(v){
-				$("#id_export").css("display","none");
+				$("#id_export").css("display","none");		
+				$("#id_sum").css("display","none");
+				$("#id_save").css("display","none");
 			}else{
 				$("#id_export").css("display","");
+				$("#id_sum").css("display","");
+				$("#id_save").css("display","");
 			}
 		}
+		//导出按钮
+		function exportExcelAll(){
+		    rqdate=$("#rq").val();
+			$.alert({
+       		    title: '提示',
+			    content: '导出数据中,请耐心等待!',
+			    confirm: function(){
+			    	location.href=$.app+"/hxhbtjpro/exportExcelAll?rq="+rqdate;
+				}
+			});
+		}
 	</script>
 	
 </head>
@@ -172,16 +187,16 @@
 								   		<i class="glyphicon glyphicon-search"></i>查询
 							   		</a>
 							   		<c:if test="${dq == null}">
-							   			<a class="btn btn-default btn-sm" href="#" onclick="tjMain()">
+							   			<a class="btn btn-default btn-sm" href="#" onclick="tjMain()" id="id_sum">
 								   			<i class="glyphicon glyphicon-list-alt"></i>统计
 							   			</a>
-							   			<a class="btn btn-default btn-sm" href="#" onclick="saveMain()">
+							   			<a class="btn btn-default btn-sm" href="#" onclick="saveMain()" id="id_save">
 								   			<i class="glyphicon glyphicon-floppy-disk"></i>保存
 							   			</a>
-							   		</c:if>
-							   		<a class="btn btn-default btn-sm" href="javascript:void(0)" onclick="toExport()" id="id_export">
+							   			<a class="btn btn-default btn-sm" href="javascript:void(0)" onclick="exportExcelAll()" id="id_export">
 							   			<i class="glyphicon glyphicon-list-alt"></i>导出
 						   			</a>
+							   		</c:if>
 	                        </td>
 	                    </tr>
                     </table>

+ 104 - 42
gkjsjy/trunk/src/com/xt/jygl/gkyxtjyfx/hxhbtj/ctl/HxhbtjProCtl.java

@@ -1,5 +1,6 @@
 package com.xt.jygl.gkyxtjyfx.hxhbtj.ctl;
 
+import java.io.IOException;
 import java.text.DecimalFormat;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
@@ -10,6 +11,7 @@ import javax.persistence.criteria.CriteriaBuilder;
 import javax.persistence.criteria.CriteriaQuery;
 import javax.persistence.criteria.Predicate;
 import javax.persistence.criteria.Root;
+import javax.servlet.ServletOutputStream;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
@@ -58,6 +60,64 @@ public class HxhbtjProCtl extends BaseWebCtl {
 	@Autowired
 	private QueryService query;
 
+	@RequestMapping(value = "/exportExcelAll")
+	public String exportExcelAll(HttpServletResponse response, Model model, final HttpServletRequest request, final String rq) throws JsonProcessingException {
+		String start = "";
+		if (StringUtils.isEmpty(rq)) {
+			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
+			start = sdf.format(new Date());
+		}
+		List<CodeEntity> clist = securityMgr.codeService().findByPid("82");
+		List<HxhbtjVo> volist = new ArrayList<HxhbtjVo>();
+
+		List<HxhbtjproEntity> list = hxhbtjproService.findByRq(rq != null ? rq : start);
+		if (list != null && list.size() > 0) {
+			for (HxhbtjproEntity entity : list) {
+				HxhbtjVo vo = new HxhbtjVo();
+				vo.setSzd(entity.getSzd().getText());
+				vo.setYyhxts(entity.getYyhxts().toString());
+				vo.setYyhxhbs(entity.getYyhxhbs().toString());
+				vo.setJyhxts(entity.getJyhxts().toString());
+				vo.setJyhxhbs(entity.getJyhxhbs().toString());
+				vo.setNzxts(entity.getNzxts().toString());
+				vo.setNzxhbs(entity.getNzxhbs().toString());
+				vo.setNmhxts(entity.getNmhxts().toString());
+				vo.setNmhxhbs(entity.getNmhxhbs().toString());
+				vo.setId(entity.getSzd().getId());
+				volist.add(vo);
+			}
+		} else {
+
+			if (clist != null && clist.size() > 0) {
+				for (CodeEntity code : clist) {
+					HxhbtjVo vo = new HxhbtjVo();
+					vo.setSzd(code.getText());
+					vo.setYyhxts("0.0");
+					vo.setYyhxhbs("0.0");
+					vo.setJyhxts("0.0");
+					vo.setJyhxhbs("0.0");
+					vo.setNzxts("0.0");
+					vo.setNzxhbs("0.0");
+					vo.setNmhxts("0.0");
+					vo.setNmhxhbs("0.0");
+					vo.setId(code.getId());
+					volist.add(vo);
+				}
+			}
+		}
+		
+		response.setContentType("application/binary;charset=iso-8859-1");
+		try {
+			ServletOutputStream outputStream = response.getOutputStream();
+			String fileName = new String(("航线航班统计").getBytes(), "iso-8859-1");
+			response.setHeader("Content-disposition", "attachment; filename=" + fileName + ".xlsx");// 组装附件名称和格式
+			hxhbtjService.exportExcelAll(volist, outputStream);
+		} catch (IOException e) {
+			e.printStackTrace();
+		}
+		return null;
+	}
+
 	@RequestMapping(value = "/main")
 	public String main(SimplePageRequest page, Model model, String flag, final HttpServletRequest request, final String rq, final String dq, final String menuid) throws JsonProcessingException {
 		String start = "";
@@ -495,8 +555,10 @@ public class HxhbtjProCtl extends BaseWebCtl {
 
 		return wr;
 	}
+
 	/**
 	 * 地区参数dq为空时才能导出
+	 * 
 	 * @param page
 	 * @param model
 	 * @param flag
@@ -508,23 +570,23 @@ public class HxhbtjProCtl extends BaseWebCtl {
 	 * @throws JsonProcessingException
 	 */
 	@RequestMapping(value = "/export")
-	public void export(SimplePageRequest page, Model model, String flag, final HttpServletRequest request,HttpServletResponse response, final String rq, final String dq, final String menuid) throws JsonProcessingException {
+	public void export(SimplePageRequest page, Model model, String flag, final HttpServletRequest request, HttpServletResponse response, final String rq, final String dq, final String menuid) throws JsonProcessingException {
 		String start = "";
 		if (StringUtils.isEmpty(rq)) {
 			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
 			start = sdf.format(new Date());
 		}
-		
+
 		List<HxhbtjVo> volist = new ArrayList<HxhbtjVo>();
-		//合计行
-		Double sumYyhxts=0d;
-		Double sumYyhxhbs=0d;
-		Double sumJyhxts=0d;
-		Double sumJyhxhbs=0d;
-		Double sumNzxts=0d;
-		Double sumNzxhbs=0d;
-		Double sumNmhxts=0d;
-		Double sumNmhxhbs=0d;
+		// 合计行
+		Double sumYyhxts = 0d;
+		Double sumYyhxhbs = 0d;
+		Double sumJyhxts = 0d;
+		Double sumJyhxhbs = 0d;
+		Double sumNzxts = 0d;
+		Double sumNzxhbs = 0d;
+		Double sumNmhxts = 0d;
+		Double sumNmhxhbs = 0d;
 		if (StringUtils.isEmpty(flag)) {
 			List<HxhbtjproEntity> list = hxhbtjproService.findByRq(rq != null ? rq : start);
 			if (list != null && list.size() > 0) {
@@ -532,21 +594,21 @@ public class HxhbtjProCtl extends BaseWebCtl {
 					HxhbtjVo vo = new HxhbtjVo();
 					vo.setSzd(entity.getSzd().getText());
 					vo.setYyhxts(entity.getYyhxts().toString());
-					sumYyhxts+=entity.getYyhxts();
+					sumYyhxts += entity.getYyhxts();
 					vo.setYyhxhbs(entity.getYyhxhbs().toString());
-					sumYyhxhbs+=entity.getYyhxhbs();
+					sumYyhxhbs += entity.getYyhxhbs();
 					vo.setJyhxts(entity.getJyhxts().toString());
-					sumJyhxts+=entity.getJyhxts();
+					sumJyhxts += entity.getJyhxts();
 					vo.setJyhxhbs(entity.getJyhxhbs().toString());
-					sumJyhxhbs+=entity.getJyhxhbs();
+					sumJyhxhbs += entity.getJyhxhbs();
 					vo.setNzxts(entity.getNzxts().toString());
-					sumNzxts+=entity.getNzxts();
+					sumNzxts += entity.getNzxts();
 					vo.setNzxhbs(entity.getNzxhbs().toString());
-					sumNzxhbs+=entity.getNzxhbs();
+					sumNzxhbs += entity.getNzxhbs();
 					vo.setNmhxts(entity.getNmhxts().toString());
-					sumNmhxts+=entity.getNmhxts();
+					sumNmhxts += entity.getNmhxts();
 					vo.setNmhxhbs(entity.getNmhxhbs().toString());
-					sumNmhxhbs+=entity.getNmhxhbs();
+					sumNmhxhbs += entity.getNmhxhbs();
 					vo.setId(entity.getSzd().getId());
 					volist.add(vo);
 				}
@@ -582,29 +644,29 @@ public class HxhbtjProCtl extends BaseWebCtl {
 					DecimalFormat df2 = (DecimalFormat) DecimalFormat.getInstance();
 					df2.applyPattern("0.0");
 					vo.setYyhxts(df2.format(e[1]));
-					sumYyhxts+=DigitUtils.toDouble(e[1]);
+					sumYyhxts += DigitUtils.toDouble(e[1]);
 					vo.setYyhxhbs(df2.format(e[2]));
-					sumYyhxhbs+=DigitUtils.toDouble(e[2]);
+					sumYyhxhbs += DigitUtils.toDouble(e[2]);
 					vo.setJyhxts(df2.format(e[3]));
-					sumJyhxts+=DigitUtils.toDouble(e[3]);
+					sumJyhxts += DigitUtils.toDouble(e[3]);
 					vo.setJyhxhbs(df2.format(e[4]));
-					sumJyhxhbs+=DigitUtils.toDouble(e[4]);
+					sumJyhxhbs += DigitUtils.toDouble(e[4]);
 					vo.setNzxts(df2.format(e[5]));
-					sumNzxts+=DigitUtils.toDouble(e[5]);
+					sumNzxts += DigitUtils.toDouble(e[5]);
 					vo.setNzxhbs(df2.format(e[6]));
-					sumNzxhbs+=DigitUtils.toDouble(e[6]);
+					sumNzxhbs += DigitUtils.toDouble(e[6]);
 					vo.setNmhxts(df2.format(e[7]));
-					sumNmhxts+=DigitUtils.toDouble(e[7]);
+					sumNmhxts += DigitUtils.toDouble(e[7]);
 					vo.setNmhxhbs(df2.format(e[8]));
-					sumNmhxhbs+=DigitUtils.toDouble(e[8]);
+					sumNmhxhbs += DigitUtils.toDouble(e[8]);
 					vo.setId(e[9].toString());
 					volist.add(vo);
 					/*
-					 * for (int j = 1; j < e.length-1; j++) { BigDecimal s =
-					 * new BigDecimal(0.0000); if (sum[j] != null) { s =
+					 * for (int j = 1; j < e.length-1; j++) { BigDecimal s = new
+					 * BigDecimal(0.0000); if (sum[j] != null) { s =
 					 * (BigDecimal) sum[j]; } BigDecimal ss = new
-					 * BigDecimal(0.0); ss = (BigDecimal) e[j]; s =
-					 * s.add(ss); sum[j] = s; }
+					 * BigDecimal(0.0); ss = (BigDecimal) e[j]; s = s.add(ss);
+					 * sum[j] = s; }
 					 */
 
 				}
@@ -612,29 +674,29 @@ public class HxhbtjProCtl extends BaseWebCtl {
 
 		}
 
-		//合计行
-		if(volist.size()>0){
+		// 合计行
+		if (volist.size() > 0) {
 			HxhbtjVo vo = new HxhbtjVo();
 			vo.setSzd("合计");
-			
+
 			vo.setYyhxts(sumYyhxts.toString());
 			vo.setYyhxhbs(sumYyhxhbs.toString());
 			vo.setJyhxts(sumJyhxts.toString());
 			vo.setJyhxhbs(sumJyhxhbs.toString());
-			
+
 			vo.setNzxts(sumNzxts.toString());
 			vo.setNzxhbs(sumNzxhbs.toString());
 			vo.setNmhxts(sumNmhxts.toString());
 			vo.setNmhxhbs(sumNmhxhbs.toString());
-			//add
+			// add
 			volist.add(vo);
 		}
-		
-		try{
-			//导出
-			String exportName= "全省港口集装箱航线航班月度统计_" +rq;
-			ExcelTool.exportExcel(request, response, volist, 1,exportName);
-		}catch(Exception e){
+
+		try {
+			// 导出
+			String exportName = "全省港口集装箱航线航班月度统计_" + rq;
+			ExcelTool.exportExcel(request, response, volist, 1, exportName);
+		} catch (Exception e) {
 			e.printStackTrace();
 		}
 	}

+ 6 - 1
gkjsjy/trunk/src/com/xt/jygl/gkyxtjyfx/hxhbtj/service/HxhbtjService.java

@@ -2,7 +2,11 @@ package com.xt.jygl.gkyxtjyfx.hxhbtj.service;
 
 import java.util.List;
 
+import javax.servlet.ServletOutputStream;
+
+import com.xt.jygl.gkjcxx.mt.vo.MtVo;
 import com.xt.jygl.gkyxtjyfx.hxhbtj.entity.HxhbtjEntity;
+import com.xt.jygl.gkyxtjyfx.hxhbtj.vo.HxhbtjVo;
 
 public interface HxhbtjService{
 
@@ -23,5 +27,6 @@ public interface HxhbtjService{
 	public <S extends HxhbtjEntity> S save(S entity);
 	
 	List<Object> findAllSzd(String rq);
-
+	
+	public void exportExcelAll(List<HxhbtjVo> voList, ServletOutputStream outputStream);
 }

+ 209 - 3
gkjsjy/trunk/src/com/xt/jygl/gkyxtjyfx/hxhbtj/service/impl/HxhbtjServiceImpl.java

@@ -1,16 +1,29 @@
 package com.xt.jygl.gkyxtjyfx.hxhbtj.service.impl;
 
+import java.io.IOException;
+import java.text.DecimalFormat;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import javax.servlet.ServletOutputStream;
+
+import org.apache.poi.ss.util.CellRangeAddress;
+import org.apache.poi.xssf.usermodel.XSSFCell;
+import org.apache.poi.xssf.usermodel.XSSFCellStyle;
+import org.apache.poi.xssf.usermodel.XSSFRow;
+import org.apache.poi.xssf.usermodel.XSSFSheet;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import com.xt.jygl.common.ExportUtil;
 import com.xt.jygl.common.service.JyglBaseService;
+import com.xt.jygl.gkjcxx.mt.vo.MtVo;
 import com.xt.jygl.gkyxtjyfx.hxhbtj.dao.HxhbtjDao;
 import com.xt.jygl.gkyxtjyfx.hxhbtj.entity.HxhbtjEntity;
 import com.xt.jygl.gkyxtjyfx.hxhbtj.service.HxhbtjService;
+import com.xt.jygl.gkyxtjyfx.hxhbtj.vo.HxhbtjVo;
 import com.xtframe.sec.common.SecRepository;
 
 @Service
@@ -59,10 +72,203 @@ public class HxhbtjServiceImpl extends JyglBaseService<HxhbtjEntity, String> imp
 		sb.append(" from ");
 		sb.append(" (select t.dq dq,nvl(sum(t.yyhxts), 0) a1,nvl(sum(t.yyhxhbs), 0) a2,nvl(sum(t.jyhxts), 0) a3,nvl(sum(t.jyhxhbs), 0) a4,");
 		sb.append(" nvl(sum(t.nzxts), 0) a5,nvl(sum(t.nzxhbs), 0) a6, nvl(sum(t.nmhxts), 0) a7,nvl(sum(t.nmhxhbs), 0) a8 ");
-        sb.append(" from GK_OPERATION_JSJY_HXHBTJ t where t.rq = :rq group by t.dq) a") ;
-        sb.append(" right join gk_operation_jsjy_code d  on a.dq = d.id where d.pid = 82 order by d.sortno asc");
-        params.put("rq", rq);
+		sb.append(" from GK_OPERATION_JSJY_HXHBTJ t where t.rq = :rq group by t.dq) a");
+		sb.append(" right join gk_operation_jsjy_code d  on a.dq = d.id where d.pid = 82 order by d.sortno asc");
+		params.put("rq", rq);
 		return (List<Object>) dao.nativeQuery(sb.toString(), params);
 	}
 
+	@Override
+	public void exportExcelAll(List<HxhbtjVo> voList, ServletOutputStream outputStream) {
+		// 创建一个workbook 对应一个excel应用文件
+		XSSFWorkbook workBook = new XSSFWorkbook();
+		setSheet(voList, outputStream, workBook);
+		try {
+			workBook.write(outputStream);
+			outputStream.flush();
+			outputStream.close();
+		} catch (IOException e) {
+			e.printStackTrace();
+		} finally {
+			try {
+				outputStream.close();
+			} catch (IOException e) {
+				e.printStackTrace();
+			}
+		}
+	}
+	
+	/**
+	 * 用户实现excel的实现
+	 * */
+	public void setSheet(List<HxhbtjVo> voList, ServletOutputStream outputStream, XSSFWorkbook workBook) {
+		//設置titile
+		String[] titles = {"航线","航班"};
+		
+		// 在workbook中添加一个sheet,对应Excel文件中的sheet
+		XSSFSheet mtSheet = workBook.createSheet("航线航班统计");
+		ExportUtil exportUtil = new ExportUtil(workBook, mtSheet);
+		XSSFCellStyle headStyle = exportUtil.getHeadStyle();
+		XSSFCellStyle bodyStyle = exportUtil.getBodyStyle();
+		// 构建表头
+		XSSFRow headRow = mtSheet.createRow(0);
+		
+		//第一行
+		XSSFCell cell = null;
+		cell=headRow.createCell(0);
+		cell.setCellValue("地区");
+		cell.setCellStyle(headStyle);
+		
+		cell=headRow.createCell(1);
+		cell.setCellValue("远洋航线");
+		cell.setCellStyle(headStyle);
+		cell=headRow.createCell(2);
+		cell.setCellValue("");
+		cell.setCellStyle(headStyle);
+		
+		cell=headRow.createCell(3);
+		cell.setCellValue("近洋航线");
+		cell.setCellStyle(headStyle);
+		cell=headRow.createCell(4);
+		cell.setCellValue("");
+		cell.setCellStyle(headStyle);
+		
+		cell=headRow.createCell(5);
+		cell.setCellValue("外贸内支线");
+		cell.setCellStyle(headStyle);
+		cell=headRow.createCell(6);
+		cell.setCellValue("");
+		cell.setCellStyle(headStyle);
+		
+		cell=headRow.createCell(7);
+		cell.setCellValue("内贸航线");
+		cell.setCellStyle(headStyle);
+		cell=headRow.createCell(8);
+		cell.setCellValue("");
+		cell.setCellStyle(headStyle);
+		// 构建表头
+		XSSFRow headRow2 = mtSheet.createRow(1);
+		cell=headRow2.createCell(0);
+		cell.setCellValue("");
+		cell.setCellStyle(headStyle);
+		for(int i=1;i<8;i=i+2){
+			cell=headRow2.createCell(i);
+			cell.setCellValue(titles[0]);
+			cell.setCellStyle(headStyle);
+			
+			cell=headRow2.createCell(i+1);
+			cell.setCellValue(titles[1]);
+			cell.setCellStyle(headStyle);
+		}
+		mtSheet.addMergedRegion(new CellRangeAddress(0, 1, 0, 0));
+		mtSheet.addMergedRegion(new CellRangeAddress(0, 0, 1, 2));
+		mtSheet.addMergedRegion(new CellRangeAddress(0, 0, 3, 4));
+		mtSheet.addMergedRegion(new CellRangeAddress(0, 0, 5, 6));
+		mtSheet.addMergedRegion(new CellRangeAddress(0, 0, 7, 8));
+		
+		//创建8个对象用来接收各航线中的数据
+		double yyhx,yyhb,jyhx,jyhb,wmnhx,wmnhb,nmhx,nmhb;
+		yyhb=0.0;
+		yyhx=0.0;
+		jyhx=0.0;
+		jyhb=0.0;
+		wmnhx=0.0;
+		wmnhb=0.0;
+		nmhx=0.0;
+		nmhb=0.0;
+		// 构建表体数据
+		DecimalFormat df = new DecimalFormat("######0.0");   
+		if (voList != null && voList.size() > 0) {
+			for (int j = 0; j < voList.size(); j++) {
+				XSSFRow bodyRow = mtSheet.createRow(j + 2);
+				HxhbtjVo hb=voList.get(j);
+				
+				cell = bodyRow.createCell(0);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(hb.getSzd());
+				
+				cell = bodyRow.createCell(1);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getYyhxts())));
+				yyhx=yyhx+Double.parseDouble(hb.getYyhxts());
+				
+				cell = bodyRow.createCell(2);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getYyhxhbs())));
+				yyhb=yyhb+Double.parseDouble(hb.getYyhxhbs());
+				
+				cell = bodyRow.createCell(3);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getJyhxts())));
+				jyhx=jyhx+Double.parseDouble(hb.getJyhxts());
+				
+				cell = bodyRow.createCell(4);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getJyhxhbs())));
+				jyhb=jyhb+Double.parseDouble(hb.getJyhxhbs());
+				
+				cell = bodyRow.createCell(5);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getNzxts())));
+				wmnhx=wmnhx+Double.parseDouble(hb.getNzxts());
+				
+				cell = bodyRow.createCell(6);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getNzxhbs())));
+				wmnhb=wmnhb+Double.parseDouble(hb.getNzxhbs());
+				
+				cell = bodyRow.createCell(7);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getNmhxts())));
+				nmhx=nmhx+Double.parseDouble(hb.getNmhxts());
+				
+				cell = bodyRow.createCell(8);
+				cell.setCellStyle(bodyStyle);
+				cell.setCellValue(df.format(Double.parseDouble(hb.getNmhxhbs())));
+				nmhb=nmhb+Double.parseDouble(hb.getNmhxhbs());
+			}
+		}
+		
+		//生成合计行
+		if (voList != null && voList.size() > 0) {
+			XSSFRow bodyRow = mtSheet.createRow(voList.size() + 2);
+			cell = bodyRow.createCell(0);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue("合计");
+			
+			cell = bodyRow.createCell(1);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(yyhx);
+
+			
+			cell = bodyRow.createCell(2);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(yyhb);
+
+			cell = bodyRow.createCell(3);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(jyhx);
+			
+			cell = bodyRow.createCell(4);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(jyhb);
+			
+			cell = bodyRow.createCell(5);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(wmnhx);
+
+			
+			cell = bodyRow.createCell(6);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(wmnhb);
+			
+			cell = bodyRow.createCell(7);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(nmhx);
+			
+			cell = bodyRow.createCell(8);
+			cell.setCellStyle(bodyStyle);
+			cell.setCellValue(nmhb);
+		}
+	}
 }