private void addOrderHeader(final HSSFSheet sheet, final Locale locale) {
   HSSFRow header = sheet.createRow(0);
   HSSFCell cell0 = header.createCell(0);
   cell0.setCellValue(
       translationService.translate(
           "qualityControls.qualityControl.report.product.number", locale));
   xlsHelper.setCellStyle(sheet, cell0);
   HSSFCell cell1 = header.createCell(1);
   cell1.setCellValue(
       translationService.translate(
           "qualityControls.qualityControlForUnitDetails.window.mainTab.qualityControlForUnit.number.label",
           locale));
   xlsHelper.setCellStyle(sheet, cell1);
   HSSFCell cell2 = header.createCell(2);
   cell2.setCellValue(
       translationService.translate(
           "qualityControls.qualityControlForUnitDetails.window.mainTab.qualityControlForUnit.controlledQuantity.label",
           locale));
   xlsHelper.setCellStyle(sheet, cell2);
   HSSFCell cell3 = header.createCell(3);
   cell3.setCellValue(
       translationService.translate(
           "qualityControls.qualityControlForUnitDetails.window.mainTab.qualityControlForUnit.rejectedQuantity.label",
           locale));
   xlsHelper.setCellStyle(sheet, cell3);
   HSSFCell cell4 = header.createCell(4);
   cell4.setCellValue(
       translationService.translate(
           "qualityControls.qualityControlForUnitDetails.window.mainTab.qualityControlForUnit.acceptedDefectsQuantity.label",
           locale));
   xlsHelper.setCellStyle(sheet, cell4);
 }
예제 #2
0
 @Override
 protected void addHeader(final HSSFSheet sheet, final Locale locale, final Entity entity) {
   HSSFRow header = sheet.createRow(0);
   HSSFCell cell0 = header.createCell(0);
   cell0.setCellValue(
       translationService.translate(
           "materialFlow.materialFlow.report.columnHeader.number", locale));
   xlsHelper.setCellStyle(sheet, cell0);
   HSSFCell cell1 = header.createCell(1);
   cell1.setCellValue(
       translationService.translate("materialFlow.materialFlow.report.columnHeader.name", locale));
   xlsHelper.setCellStyle(sheet, cell1);
   HSSFCell cell2 = header.createCell(2);
   cell2.setCellValue(
       translationService.translate(
           "materialFlow.materialFlow.report.columnHeader.quantity", locale));
   xlsHelper.setCellStyle(sheet, cell2);
   HSSFCell cell3 = header.createCell(3);
   cell3.setCellValue(
       translationService.translate("materialFlow.materialFlow.report.columnHeader.unit", locale));
   xlsHelper.setCellStyle(sheet, cell3);
 }