试验管理修改
This commit is contained in:
parent
9d9faec192
commit
c2289cb65e
4
pom.xml
4
pom.xml
|
|
@ -134,7 +134,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.poi</groupId>
|
<groupId>org.apache.poi</groupId>
|
||||||
<artifactId>poi</artifactId>
|
<artifactId>poi</artifactId>
|
||||||
<version>3.11</version>
|
<version>3.17</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!--mq-->
|
<!--mq-->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
@ -146,7 +146,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.poi</groupId>
|
<groupId>org.apache.poi</groupId>
|
||||||
<artifactId>poi-ooxml</artifactId>
|
<artifactId>poi-ooxml</artifactId>
|
||||||
<version>3.11</version>
|
<version>3.17</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.xml.bind</groupId>
|
<groupId>javax.xml.bind</groupId>
|
||||||
|
|
|
||||||
|
|
@ -459,9 +459,15 @@ public class DownLoadController {
|
||||||
}
|
}
|
||||||
for (int i = 0; i < cellIndexArr.length; i++) {
|
for (int i = 0; i < cellIndexArr.length; i++) {
|
||||||
if (i % 2 == 0) {
|
if (i % 2 == 0) {
|
||||||
sheet.addMergedRegion(new CellRangeAddress(4, 4, cellIndexArr[i], cellIndexArr[i]));
|
if(cellIndexArr[i] != cellIndexArr[i]){
|
||||||
|
sheet.addMergedRegion(new CellRangeAddress(4, 4, cellIndexArr[i], cellIndexArr[i]));
|
||||||
|
}
|
||||||
|
// sheet.addMergedRegion(new CellRangeAddress(4, 4, cellIndexArr[i], cellIndexArr[i]));
|
||||||
} else {
|
} else {
|
||||||
sheet.addMergedRegion(new CellRangeAddress(4, 4, cellIndexArr[i - 1] + 1, cellIndexArr[i]));
|
if(cellIndexArr[i - 1] + 1 !=cellIndexArr[i]){
|
||||||
|
sheet.addMergedRegion(new CellRangeAddress(4, 4, cellIndexArr[i - 1] + 1, cellIndexArr[i]));
|
||||||
|
}
|
||||||
|
// sheet.addMergedRegion(new CellRangeAddress(4, 4, cellIndexArr[i - 1] + 1, cellIndexArr[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sheet.addMergedRegion(new CellRangeAddress(3, 4, 0, 0));
|
sheet.addMergedRegion(new CellRangeAddress(3, 4, 0, 0));
|
||||||
|
|
@ -540,7 +546,10 @@ public class DownLoadController {
|
||||||
ConfigItemsVo itemsVo = configItemsVos.get(i);
|
ConfigItemsVo itemsVo = configItemsVos.get(i);
|
||||||
itemsIndex += itemsVo.getExperNum();
|
itemsIndex += itemsVo.getExperNum();
|
||||||
r6 = setCellValueAndStyle(r6, csItemsIndex, itemsVo.getExperTypeName(), commonStyle);
|
r6 = setCellValueAndStyle(r6, csItemsIndex, itemsVo.getExperTypeName(), commonStyle);
|
||||||
sheet.addMergedRegion(new CellRangeAddress(6, 6, csItemsIndex, itemsIndex));
|
if(csItemsIndex != itemsIndex){
|
||||||
|
sheet.addMergedRegion(new CellRangeAddress(6, 6, csItemsIndex, itemsIndex));
|
||||||
|
}
|
||||||
|
// sheet.addMergedRegion(new CellRangeAddress(6, 6, csItemsIndex, itemsIndex));
|
||||||
for (int j = csItemsIndex + 1; j < csItemsIndex + itemsVo.getExperNum(); j++) {
|
for (int j = csItemsIndex + 1; j < csItemsIndex + itemsVo.getExperNum(); j++) {
|
||||||
r6 = setCellValueAndStyle(r6, j, "", commonStyle);
|
r6 = setCellValueAndStyle(r6, j, "", commonStyle);
|
||||||
}
|
}
|
||||||
|
|
@ -568,9 +577,9 @@ public class DownLoadController {
|
||||||
r7 = setCellValueAndStyle(r7, 4, "生产日期", commonStyle);
|
r7 = setCellValueAndStyle(r7, 4, "生产日期", commonStyle);
|
||||||
r7 = setCellValueAndStyle(r7, 5, "型号", commonStyle);
|
r7 = setCellValueAndStyle(r7, 5, "型号", commonStyle);
|
||||||
r7 = setCellValueAndStyle(r7, 6, "", commonStyle);
|
r7 = setCellValueAndStyle(r7, 6, "", commonStyle);
|
||||||
sheet.addMergedRegion(new CellRangeAddress(7, 7, 3, 3));
|
// sheet.addMergedRegion(new CellRangeAddress(7, 7, 3, 3));
|
||||||
sheet.addMergedRegion(new CellRangeAddress(7, 7, 4, 4));
|
// sheet.addMergedRegion(new CellRangeAddress(7, 7, 4, 4));
|
||||||
sheet.addMergedRegion(new CellRangeAddress(7, 7, 5, 5));
|
// sheet.addMergedRegion(new CellRangeAddress(7, 7, 5, 5));
|
||||||
// 设置编号、客户自编号、样品信息等位置
|
// 设置编号、客户自编号、样品信息等位置
|
||||||
sheet.addMergedRegion(new CellRangeAddress(6, 7, 0, 1));
|
sheet.addMergedRegion(new CellRangeAddress(6, 7, 0, 1));
|
||||||
sheet.addMergedRegion(new CellRangeAddress(6, 7, 2, 2));
|
sheet.addMergedRegion(new CellRangeAddress(6, 7, 2, 2));
|
||||||
|
|
@ -584,7 +593,10 @@ public class DownLoadController {
|
||||||
for (int j = 0; j < itemList.size(); j++) {
|
for (int j = 0; j < itemList.size(); j++) {
|
||||||
ConfigItemVo itemVo = itemList.get(j);
|
ConfigItemVo itemVo = itemList.get(j);
|
||||||
r7 = setCellValueAndStyle(r7, csItemIndex, itemVo.getItemName(), commonStyle);
|
r7 = setCellValueAndStyle(r7, csItemIndex, itemVo.getItemName(), commonStyle);
|
||||||
sheet.addMergedRegion(new CellRangeAddress(7, 7, csItemIndex, csItemIndex));
|
if(csItemIndex!=csItemIndex){
|
||||||
|
sheet.addMergedRegion(new CellRangeAddress(7, 7, csItemIndex, csItemIndex));
|
||||||
|
}
|
||||||
|
// sheet.addMergedRegion(new CellRangeAddress(7, 7, csItemIndex, csItemIndex));
|
||||||
csItemIndex++;
|
csItemIndex++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue