| | |
| | | private String tmpPath; |
| | | |
| | | public void FileUpload(List<ColumnDto> columnDto, JTable subTable, JFrame jFrame) { |
| | | frame = new JFrame("导入"); |
| | | frame = new JFrame("导入三级网络图"); |
| | | frame.setSize(900, 600); |
| | | frame.setResizable(true); |
| | | frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); |
| | |
| | | JLabel label0 = new JLabel("工程"); |
| | | JComboBox<JComboBoxItem> comboBox0 = new JComboBox<>(projectList); |
| | | |
| | | JLabel label1 = new JLabel("二级网络图"); |
| | | JLabel label1 = new JLabel("一级网络图节点"); |
| | | JComboBox<JComboBoxItem> comboBox1 = new JComboBox<>(); |
| | | comboBox1.setModel(new DefaultComboBoxModel<>(level2List)); |
| | | |
| | |
| | | @Override |
| | | public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { |
| | | super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); |
| | | setText(truncateText(value.toString(), 15)); // 截断文本 |
| | | if(value!=null){ |
| | | setText(truncateText(value.toString(), 15)); // 截断文本 |
| | | }else{ |
| | | setText(""); |
| | | } |
| | | return this; |
| | | } |
| | | |
| | |
| | | JComboBoxItem[] teamList = sysTeamGroupClassService.getTeamList(null); |
| | | JComboBoxItem[] cabinList = cabinService.getList(); |
| | | String[] typeList = new String[]{ |
| | | "改装", "加装", "换装", "改进性修理" |
| | | }; |
| | | "改装", "加装", "换装", "改进性修理","" |
| | | }; |
| | | List<DjJdgzNetworkLevel3> list = level3Service.getList(null, deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null); |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | level3ManageService.tableModelListener(list, subTable, jFrame); |