| | |
| | | |
| | | JComboBoxItem[] teamList = sysTeamGroupClassService.getTeamList(null); |
| | | String[] typeList = new String[]{ |
| | | "","改装", "加装", "换装", "修理","改进性修理" |
| | | "","改换装","修理","改进性修理","不复装设备" |
| | | }; |
| | | JComboBoxItem[] isealCabin = { |
| | | new JComboBoxItem(10000L, ""), |
| | |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | JComboBoxItem project = (JComboBoxItem) comboBox.getSelectedItem(); |
| | | list = djJdgzTrackRecordService.getList(project.getId(), null, null, null, null, 0, 0,sb.getText()); |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox1.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem cabin = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | JComboBoxItem status = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | JComboBoxItem isealCabinItem = (JComboBoxItem) comboBox7.getSelectedItem(); |
| | | |
| | | list = djJdgzTrackRecordService.getList(project.getId(), dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(status.getId()),Math.toIntExact(isealCabinItem.getId()),sb.getText()); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | columnDto.add(new ColumnDto("二级节点", "level2NodeName", 120, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("设备名称", "level3NetworkName", 120, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("是否影响封舱", "isealCabin", 180, "dict", false, null, isealCabin)); |
| | | columnDto.add(new ColumnDto("是否联调", "islt", 180, "dict", false, null, isealCabin)); |
| | | columnDto.add(new ColumnDto("当前节点", "level3NodeName", 150, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("计划完成时间", "requiredCompletionTime", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("跟踪记录", "", 100, "", true, buttonList, null)); |
| | |
| | | |
| | | // 检查是否点击了有效单元格 |
| | | if (row >= 0 && column >= 0) { |
| | | if (column == 13) { // 列索引从0开始 |
| | | if (column == 15) { // 列索引从0开始 |
| | | // 获取该单元格的值 |
| | | Object cellValue = table.getValueAt(row, column); |
| | | Integer value = Integer.parseInt(cellValue.toString()); |
| | |
| | | public void history(JFrame jFrame, Long level3NodeId) { |
| | | jFrame.setEnabled(false); |
| | | JFrame frame1 = new JFrame("历史跟踪记录"); |
| | | frame1.setSize(1500, 800); |
| | | frame1.setSize(2000, 800); |
| | | frame1.setResizable(true); |
| | | frame1.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); |
| | | frame1.setLocationRelativeTo(null); |
| | |
| | | new JComboBoxItem(1L, "有"), |
| | | }; |
| | | |
| | | columnDto.add(new ColumnDto("序号", "", 50, "autoCreate", false, null, null)); |
| | | columnDto.add(new ColumnDto("跟踪方式", "trackMethod", 80, "dict", false, null, trackList)); |
| | | columnDto.add(new ColumnDto("跟踪地点", "trackLocation", 160, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("助修人及其联系方式", "trackPerson", 160, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("厂方及其联系方式", "trackedPerson", 160, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("总承修单位", "generalRepair", 160, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("分承修单位", "repair", 160, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("节点进展", "currentStatus", 100, "dict", false, null, statusList)); |
| | | columnDto.add(new ColumnDto("有无脱期风险", "hasDelayRisk", 50, "dict", false, null, hasDelayRiskList)); |
| | | columnDto.add(new ColumnDto("预计完成时间", "estimatedCompletionTime", 120, "selectDate", false, null, null)); |
| | | columnDto.add(new ColumnDto("存在问题", "problem", 120, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("后续计划", "followupPlan", 120, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("备注", "remark", 120, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("序号", "", 80, "autoCreate", false, null, null)); |
| | | columnDto.add(new ColumnDto("跟踪方式", "trackMethod", 120, "dict", false, null, trackList)); |
| | | columnDto.add(new ColumnDto("跟踪地点", "trackLocation", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("助修人", "trackPerson", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("厂方", "trackedPerson", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("总承修单位", "generalRepair", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("分承修单位", "repair", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("节点进展", "currentStatus", 120, "dict", false, null, statusList)); |
| | | columnDto.add(new ColumnDto("脱期风险", "hasDelayRisk", 120, "dict", false, null, hasDelayRiskList)); |
| | | columnDto.add(new ColumnDto("预计完成时间", "estimatedCompletionTime", 200, "selectDate", false, null, null)); |
| | | columnDto.add(new ColumnDto("存在问题", "problem", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("后续计划", "followupPlan", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("备注", "remark", 180, null, false, null, null)); |
| | | |
| | | JTable subTable = CommonTable.createCommonTable(list, columnDto); |
| | | subTable.setRowHeight(25); |