| | |
| | | JComboBoxItem[] cabinList = cabinService.getList(); |
| | | JComboBoxItem[] deptList = sysTeamGroupClassService.getDeptList(); |
| | | String[] typeList = new String[]{ |
| | | "改装", "加装", "换装", "改进性修理" |
| | | "改装", "加装", "换装", "改进性修理","" |
| | | }; |
| | | |
| | | JLabel JLabel0 = new JLabel("工程"); |
| | |
| | | |
| | | columnDto = new ArrayList<>(); |
| | | //columnDto.add(new ColumnDto("ID", "id", -1, null,false)); |
| | | columnDto.add(new ColumnDto("序号", "", (width - 10) / 10, "autoCreate", false, null, null)); |
| | | columnDto.add(new ColumnDto("工程", "ProjectName", (width - 10) / 10, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("部门", "deptId", (width - 10) / 10, "dict", false, null, deptList)); |
| | | columnDto.add(new ColumnDto("专业", "teamgroupId", (width - 10) / 10, "dict", false, null, teamList)); |
| | | columnDto.add(new ColumnDto("舱室", "cabinId", (width - 10) / 10, "dict", false, null, cabinList)); |
| | | columnDto.add(new ColumnDto("类别", "type", (width - 10) / 10, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("一级网络图节点名称", "level1NodeName", (width - 10) / 10, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("二级网络图节点名称", "level2NodeName", (width - 10) / 10, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("三级网络图名称", "name", (width - 10) / 10, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("操作", "", (width - 10) / 10, "", true, buttonList, null)); |
| | | columnDto.add(new ColumnDto("序号", "", 176, "autoCreate", false, null, null)); |
| | | //columnDto.add(new ColumnDto("工程", "ProjectName", 150, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("部门", "deptId", 176, "dict", false, null, deptList)); |
| | | columnDto.add(new ColumnDto("专业", "teamgroupId", 176, "dict", false, null, teamList)); |
| | | columnDto.add(new ColumnDto("舱室", "cabinId", 176, "dict", false, null, cabinList)); |
| | | columnDto.add(new ColumnDto("类别", "type", 176, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("一级网络图节点名称", "level1NodeName", 176, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("二级网络图节点名称", "level2NodeName", 185, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("三级网络图名称", "name", 176, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("操作", "", 190, "", true, buttonList, null)); |
| | | |
| | | table = CommonTable.createCommonTable(list, columnDto); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | |
| | | comboBox.addItemListener(new ItemListener() { |
| | |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(list, table, jFrame); |
| | | } |
| | |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | |
| | | tableModelListener(list, table, jFrame); |
| | |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(list, table, jFrame); |
| | | } |
| | |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(list, table, jFrame); |
| | | } |
| | |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(list, table, jFrame); |
| | | } |
| | |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(list, table, jFrame); |
| | | } |
| | |
| | | JComboBoxItem[] cabinList = cabinService.getList(); |
| | | JComboBoxItem[] teamList = sysTeamGroupClassService.getTeamList(null); |
| | | String[] typeList = new String[]{ |
| | | "改装", "加装", "换装", "改进性修理" |
| | | "改装", "加装", "换装", "改进性修理","" |
| | | }; |
| | | |
| | | JLabel JLabel1 = new JLabel("工程"); |
| | |
| | | list = level3Service.getList(level1Data.getShipId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null); |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | table.setAutoCreateRowSorter(true); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(list, table, jFrame); |
| | | frame1.dispose(); |