| | |
| | | import com.example.server.progressTrack.service.*; |
| | | import com.example.server.teamGroup.service.SysTeamGroupClassService; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import com.example.server.utils.DownLoadTmpFile; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | JLabel label1 = new JLabel("一级网络图节点"); |
| | | JComboBox<JComboBoxItem> comboBox1 = new JComboBox<>(); |
| | | comboBox1.setModel(new DefaultComboBoxModel<>(level2List)); |
| | | comboBox1.setSelectedIndex(-1); |
| | | |
| | | JLabel label2 = new JLabel("二级网络图节点"); |
| | | JComboBox<JComboBoxItem> comboBox2 = new JComboBox<>(level2NodeList); |
| | | comboBox2.setSelectedIndex(-1); |
| | | comboBox2.setRenderer(new DefaultListCellRenderer() { |
| | | @Override |
| | | public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { |
| | |
| | | return; |
| | | } |
| | | |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "用户失效请退出并重新登录", "提示", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | JComboBoxItem[] teamList = sysTeamGroupClassService.getTeamList(null); |
| | | JComboBoxItem[] cabinList = cabinService.getList(); |
| | | String[] typeList = new String[]{ |
| | | "","改装", "加装", "换装", "修理","改进性修理" |
| | | "","改换装","修理","改进性修理","不复装设备" |
| | | }; |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getList(level1Id[0], deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], 0, null); |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getList(level1Id[0], deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], 0,0, null); |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | trackRecordManageService.tableModelListener(subTable, jFrame, list); |
| | | System.out.println("导入成功时间" + new Date()); |
| | |
| | | return flag; |
| | | } |
| | | |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | flag = false; |
| | | JOptionPane.showMessageDialog(null, "用户失效请退出并重新登录", "提示", JOptionPane.WARNING_MESSAGE); |
| | |
| | | |
| | | model.setDataVector(data, columnIdentifiers); |
| | | table.setModel(model); |
| | | table.getColumnModel().getColumn(0).setPreferredWidth(650); |
| | | table.getColumnModel().getColumn(1).setPreferredWidth(80); |
| | | table.getColumnModel().getColumn(0).setPreferredWidth(550); |
| | | table.getColumnModel().getColumn(1).setPreferredWidth(150); |
| | | |
| | | table.getColumnModel().getColumn(0).setCellRenderer(new TableViewRenderer()); |
| | | table.getColumnModel().getColumn(1).setCellRenderer(new TableCellRendererButton()); |