|
@@ -744,28 +744,35 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
builder.getFont().setSize(15);
|
|
builder.getFont().setSize(15);
|
|
// 插入表头
|
|
// 插入表头
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(60);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(40);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
buildTextContentTitle(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_6, 12, true,
|
|
buildTextContentTitle(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_6, 12, true,
|
|
"NO.", null);
|
|
"NO.", null);
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(200);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(170);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
buildTextContentTitle(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_6, 12, true,
|
|
buildTextContentTitle(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_6, 12, true,
|
|
"检查项目", null);
|
|
"检查项目", null);
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(60);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(120);
|
|
|
|
+ builder.getRowFormat().setHeight(20);
|
|
|
|
+ builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
|
|
+ builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
|
|
+ buildTextContentTitle(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_6, 12, true,
|
|
|
|
+ "测试地点", null);
|
|
|
|
+ builder.insertCell();
|
|
|
|
+ builder.getCellFormat().setWidth(40);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
buildTextContentTitle(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_6, 12, true,
|
|
buildTextContentTitle(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_6, 12, true,
|
|
"结果", null);
|
|
"结果", null);
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(150);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(100);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeight(20);
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.EXACTLY);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
@@ -775,13 +782,15 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
for (ZhcxCommissionCheckDetailDo detailWordVO:res.getDetailList()){
|
|
for (ZhcxCommissionCheckDetailDo detailWordVO:res.getDetailList()){
|
|
// 插入表格的第一行
|
|
// 插入表格的第一行
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(60);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(40);
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
|
|
+ // 取的应该是新的章节号 detailWordVO.getChapterno
|
|
buildTextContent(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_7, 11, false,
|
|
buildTextContent(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_7, 11, false,
|
|
- detailWordVO.getChapterno(), null);
|
|
|
|
|
|
+ detailWordVO.getChapternopuls(), null);
|
|
|
|
+
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(200);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(170);
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
String chtestcontent = "";
|
|
String chtestcontent = "";
|
|
@@ -794,8 +803,23 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
}
|
|
}
|
|
buildTextContent(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_7, 11, false,
|
|
buildTextContent(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_7, 11, false,
|
|
chtestcontent+entestcontent, null);
|
|
chtestcontent+entestcontent, null);
|
|
|
|
+
|
|
|
|
+ builder.insertCell();
|
|
|
|
+ builder.getCellFormat().setWidth(120);
|
|
|
|
+ builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
|
|
+ builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
|
|
+ String testaddress = "CX BASE长兴基地";
|
|
|
|
+ if (StringUtils.isNotBlank(detailWordVO.getTestaddress())){
|
|
|
|
+ // 10-> CX BASE长兴基地 20-> USER SITE码头现场
|
|
|
|
+ if(detailWordVO.getTestaddress().equals("20")){
|
|
|
|
+ testaddress = "USER SITE码头现场";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ buildTextContent(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_7, 11, false,
|
|
|
|
+ testaddress, null);
|
|
|
|
+
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(60);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(40);
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
String testresult = "";
|
|
String testresult = "";
|
|
@@ -805,7 +829,7 @@ public class ZhcxCommissionCheckServiceImpl extends ServiceImpl<ZhcxCommissionCh
|
|
buildTextContent(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_7, 11, false,
|
|
buildTextContent(builder, DEFAULT_FONT_NAME, StyleIdentifier.HEADING_7, 11, false,
|
|
testresult, null);
|
|
testresult, null);
|
|
builder.insertCell();
|
|
builder.insertCell();
|
|
- builder.getCellFormat().setWidth(150);
|
|
|
|
|
|
+ builder.getCellFormat().setWidth(100);
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getRowFormat().setHeightRule(HeightRule.AUTO);//设置HeightRule
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
builder.getCellFormat().setOrientation(TextOrientation.HORIZONTAL);
|
|
String testnotes = "";
|
|
String testnotes = "";
|