Revision | 0156df39397da57134780b1f6d1f4e20579792ae (tree) |
---|---|
Zeit | 2014-10-09 01:31:42 |
Autor | noboru saitoh <msnobosan@gmal...> |
Commiter | noboru saitoh |
foreachでの配列オブジェクトに直書き文字列を利用できるよう対応
@@ -1037,7 +1037,7 @@ public class TLParser { | ||
1037 | 1037 | ExcelUtil.getMoveFormula( |
1038 | 1038 | sheet, |
1039 | 1039 | fromCell.getCellFormula().replace( |
1040 | - (cpCount == 0 ? object : list + "[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), list + "[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]"), | |
1040 | + (cpCount == 0 ? object : "(" + list + ")[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), "(" + list + ")[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]"), | |
1041 | 1041 | toCell.getRowIndex() - fromCell.getRowIndex(), |
1042 | 1042 | toCell.getColumnIndex() - fromCell.getColumnIndex() |
1043 | 1043 | ) |
@@ -1050,7 +1050,7 @@ public class TLParser { | ||
1050 | 1050 | break; |
1051 | 1051 | case Cell.CELL_TYPE_STRING: |
1052 | 1052 | toCell.setCellType(Cell.CELL_TYPE_STRING); |
1053 | - toCell.setCellValue(fromCell.getStringCellValue().replace((cpCount == 0 ? object : list + "[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), list + "[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]")); | |
1053 | + toCell.setCellValue(fromCell.getStringCellValue().replace((cpCount == 0 ? object : "(" + list + ")[" + (mapKeys == null ? (startIdx - 1) : "'" + mapKeys[startIdx - 1] + "'") + "]"), "(" + list + ")[" + (mapKeys == null ? (i - 1) : "'" + mapKeys[i - 1] + "'") + "]")); | |
1054 | 1054 | log.debug("to cell string: {}", toCell.getStringCellValue()); |
1055 | 1055 | break; |
1056 | 1056 | } |