| | |
| | | } |
| | | |
| | | HashMap<String, Object> mapData = data.get(k - 2).get(l - 2); |
| | | mapData.put("bgColor", "merge"); |
| | | Object devp = map.get("nodeType"); |
| | | mapData.put("nodeType", "merge"); |
| | | mapData.put("mergeType", devp); |
| | | mapData.put("value", map.get("value")); |
| | | } |
| | | } |
| | |
| | | if (cell == null) { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("bgColor", "none"); |
| | | map.put("nodeType", "none"); |
| | | map.put("cellWidth", ""); |
| | | map.put("cellHeight", ""); |
| | | map.put("value", ""); |
| | |
| | | |
| | | String bgColor = getCellBackgroundColor(cell); |
| | | map.put("bgColor", bgColor); |
| | | if(bgColor.equals("RGB(0,176,80)")) { |
| | | //货架 |
| | | map.put("nodeType", "shelf"); |
| | | } else if (bgColor.equals("RGB(255,192,0)")) { |
| | | //堆垛机 |
| | | map.put("nodeType", "crn"); |
| | | } else if (bgColor.equals("RGB(255,255,0)")) { |
| | | //双工位堆垛机 |
| | | map.put("nodeType", "dualCrn"); |
| | | } else if (bgColor.equals("RGB(0,112,192)")) { |
| | | //输送线 |
| | | map.put("nodeType", "devp"); |
| | | } else if (bgColor.equals("RGB(0,176,240)")) { |
| | | //RGV |
| | | map.put("nodeType", "rgv"); |
| | | }else { |
| | | //空白区域 |
| | | map.put("nodeType", "none"); |
| | | } |
| | | |
| | | int columnIndex = cell.getColumnIndex(); |
| | | int columnWidth = sheet.getColumnWidth(columnIndex);//获取列宽 |