| | |
| | | import com.example.client.utils.GBC; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.user.service.UserService; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | } catch (IOException ep) { |
| | | ep.printStackTrace(); |
| | | } |
| | | user.setBoatfleet(finalTeam); |
| | | CacheUtils.put("user", "user", user); |
| | | CacheUtils.put("site", "site", finalSite); |
| | | CacheUtils.put("teamGroup", "teamGroup", finalTeamGroup); |
| | | user.setBoatFleet(finalTeam); |
| | | UserAndSiteUtils.put("user", "user", user); |
| | | UserAndSiteUtils.put("site", "site", finalSite); |
| | | main.Start(role, user.getId()); |
| | | frame.dispose(); |
| | | } else { |
| | |
| | | import com.example.server.DataSync.service.DataSyncService; |
| | | 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 org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | properties.setProperty("site", comboBox.getSelectedItem().toString()); |
| | | properties.setProperty("team", teamName.getText() + "TD"); |
| | | properties.setProperty("teamGroup", String.valueOf(selectedIds)); |
| | | CacheUtils.remove("site", "site"); |
| | | CacheUtils.put("site", "site", comboBox.getSelectedItem().toString()); |
| | | UserAndSiteUtils.remove("site", "site"); |
| | | UserAndSiteUtils.put("site", "site", comboBox.getSelectedItem().toString()); |
| | | properties.store(outputStream, "rxkj"); |
| | | outputStream.close(); |
| | | } catch (FileNotFoundException ex) { |
| | |
| | | import com.example.server.progressTrack.dao.ExportRecordDao; |
| | | import com.example.server.progressTrack.model.ExportRecord; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | btnExport.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | import com.example.server.progressTrack.model.ExportRecord; |
| | | import com.example.server.progressTrack.model.ImportRecord; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | private JTable table; |
| | | |
| | | public JPanel createTable(Integer width, Integer height, JFrame jFrame) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return null; |
| | |
| | | south.setPreferredSize(new Dimension((width - 10) / 2, (height-50)/3*2)); |
| | | |
| | | |
| | | String site = (String) CacheUtils.get("site", "site"); |
| | | String site = (String) UserAndSiteUtils.get("site", "site"); |
| | | JLabel label = new JLabel(site + "æºå¨"); |
| | | top.add(label); |
| | | |
| | |
| | | import com.example.server.progressTrack.service.DjJdgzNetworkLevel3Service; |
| | | 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 org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | if (trackTable.isEditing()) { |
| | | trackTable.getCellEditor().stopCellEditing(); |
| | | } |
| | | SysUser user = (SysUser) CacheUtils.get("user", "user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user", "user"); |
| | | if (user == null) { |
| | | JOptionPane.showMessageDialog(null, "å½åç¨æ·å·²å¤±æè¯·éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | top.add(query, new GBC(6, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | List<ColumnDto> columnDto = new ArrayList<>(); |
| | | list = level3Service.getList(null, deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], null); |
| | | list = level3Service.getList(shipList.get(0).getId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null, null); |
| | | if (list == null || list.size() == 0) { |
| | | JOptionPane.showMessageDialog(null, "è¿æªå½å
¥ä¸çº§ç½ç»å¾æ°æ®", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return null; |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null, null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null,null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null, null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null,null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null, null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | query.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | list = level3Service.getList(null, null, null, null, null, sb.getText()); |
| | | list = level3Service.getList(null, null, null, null, null,null, sb.getText()); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | import com.example.server.progressTrack.service.DjJdgzTrackRecordService; |
| | | import com.example.server.sysOss.model.SysOss; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jdesktop.swingx.JXDatePicker; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | saveButton.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | import com.example.server.progressTrack.model.DjJdgzNetworkLevel3; |
| | | import com.example.server.progressTrack.service.*; |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | 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 ; |
| | |
| | | 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); |
| | |
| | | import com.example.server.progressTrack.model.DjJdgzNetworkLevel2List; |
| | | import com.example.server.progressTrack.service.DjJdgzNetworkLevel2ListService; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import com.mxgraph.view.mxGraph; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | 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.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | 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; |
| | |
| | | String[] typeList = new String[]{ |
| | | "","æ¹è£
", "å è£
", "æ¢è£
", "ä¿®ç","æ¹è¿æ§ä¿®ç" |
| | | }; |
| | | List<DjJdgzNetworkLevel3> list = level3Service.getList(null, deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null); |
| | | List<DjJdgzNetworkLevel3> list = level3Service.getList(null, deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],0,null); |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | level3ManageService.tableModelListener(list, subTable, jFrame); |
| | | 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); |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | import com.example.server.progressTrack.service.DjJdgzNetworkLevel1ListService; |
| | | import com.example.server.progressTrack.service.NetWorkDiagramService; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import com.mxgraph.swing.mxGraphComponent; |
| | | import com.mxgraph.view.mxGraph; |
| | | import org.apache.poi.ss.usermodel.HorizontalAlignment; |
| | |
| | | btnSave.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | import com.example.server.progressTrack.model.DjJdgzNetworkLevel2List; |
| | | import com.example.server.progressTrack.service.*; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import com.mxgraph.swing.mxGraphComponent; |
| | | import com.mxgraph.view.mxGraph; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | btnSave.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | import com.example.server.progressTrack.service.NetWorkDiagramService; |
| | | 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.mxgraph.swing.mxGraphComponent; |
| | | import com.mxgraph.view.mxGraph; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | btnSave.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | String[] typeList = new String[]{ |
| | | "","æ¹è£
", "å è£
", "æ¢è£
", "ä¿®ç","æ¹è¿æ§ä¿®ç" |
| | | }; |
| | | JComboBoxItem[] isealCabin = { |
| | | new JComboBoxItem(0L, "å¦"), |
| | | new JComboBoxItem(1L, "æ¯"), |
| | | }; |
| | | |
| | | JLabel JLabel0 = new JLabel("å·¥ç¨"); |
| | | JComboBox comboBox = new JComboBox(); |
| | |
| | | JComboBox<String> comboBox4 = new JComboBox<>(typeList); |
| | | comboBox4.setPreferredSize(new Dimension(185, 28)); |
| | | |
| | | JLabel JLabel5 = new JLabel("æ¯å¦å½±åå°è±"); |
| | | JComboBox<JComboBoxItem> comboBox5 = new JComboBox<>(isealCabin); |
| | | comboBox5.setPreferredSize(new Dimension(185, 28)); |
| | | |
| | | JTextField sb = new JTextField(16); |
| | | JButton query = new JButton("æ¥è¯¢"); |
| | | |
| | |
| | | topJpanel.add(JLabel4, new GBC(8, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox4, new GBC(9, 0, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | topJpanel.add(sb, new GBC(0, 1, 2, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(query, new GBC(2, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(btnInsert, new GBC(3, 1, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(btnImport, new GBC(4, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel5, new GBC(0, 1, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox5, new GBC(1, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(sb, new GBC(2, 1, 2, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(query, new GBC(4, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(btnInsert, new GBC(5, 1, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(btnImport, new GBC(6, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | list = level3Service.getList(shipList.get(0).getId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], null); |
| | | list = level3Service.getList(shipList.get(0).getId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], Math.toIntExact(isealCabin[0].getId()), null); |
| | | List<TableButton> buttonList = new ArrayList<>(); |
| | | buttonList.add(new TableButton("edit", "ç¼è¾")); |
| | | buttonList.add(new TableButton("del", "å é¤")); |
| | |
| | | |
| | | columnDto = new ArrayList<>(); |
| | | //columnDto.add(new ColumnDto("ID", "id", -1, null,false)); |
| | | columnDto.add(new ColumnDto("åºå·", "", 176, "autoCreate", false, null, null)); |
| | | columnDto.add(new ColumnDto("åºå·", "", 100, "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("è±å®¤", "cabinId", 100, "dict", false, null, cabinList)); |
| | | columnDto.add(new ColumnDto("ç±»å«", "type", 120, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("ä¸çº§ç½ç»å¾èç¹åç§°", "level1NodeName", 185, 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("æ¯å¦å½±åå°è±", "isealCabin", 176, "dict", false, null, isealCabin)); |
| | | columnDto.add(new ColumnDto("æä½", "", 190, "", true, buttonList, null)); |
| | | |
| | | table = CommonTable.createCommonTable(list, columnDto); |
| | |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem cabin = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | JComboBoxItem isCabin = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(isCabin.getId()),null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox1.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem cabin = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | JComboBoxItem isCabin = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(isCabin.getId()),null); |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | |
| | |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox1.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem cabin = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | JComboBoxItem isCabin = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(isCabin.getId()),null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox1.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem cabin = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | JComboBoxItem isCabin = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(isCabin.getId()),null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox1.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem cabin = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | JComboBoxItem isCabin = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(isCabin.getId()),null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | } |
| | | }); |
| | | |
| | | comboBox5.addItemListener(new ItemListener() { |
| | | public void itemStateChanged(final ItemEvent event) { |
| | | String content = comboBox.getSelectedItem().toString(); |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox1.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem cabin = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | JComboBoxItem isCabin = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(isCabin.getId()),null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(list, table, jFrame); |
| | | } |
| | | }); |
| | | |
| | | |
| | | query.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | list = level3Service.getList(null, null, null, null, null, sb.getText()); |
| | | list = level3Service.getList(null, null, null, null, null,null, sb.getText()); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | |
| | | private void insert(JFrame jFrame) { |
| | | JFrame frame1 = new JFrame("æ°å¢ä¸çº§ç½ç»å¾"); |
| | | frame1.setSize(470, 430); |
| | | frame1.setSize(500, 460); |
| | | frame1.setResizable(true); |
| | | frame1.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); |
| | | frame1.setLocationRelativeTo(null); |
| | |
| | | JComboBoxItem[] teamList = sysTeamGroupClassService.getTeamList(null); |
| | | String[] typeList = new String[]{ |
| | | "","æ¹è£
", "å è£
", "æ¢è£
", "ä¿®ç","æ¹è¿æ§ä¿®ç" |
| | | }; |
| | | JComboBoxItem[] isealCabin = { |
| | | new JComboBoxItem(0L, "å¦"), |
| | | new JComboBoxItem(1L, "æ¯"), |
| | | }; |
| | | |
| | | JLabel JLabel1 = new JLabel("å·¥ç¨"); |
| | |
| | | JLabel JLabel7 = new JLabel("ç±»å«"); |
| | | JComboBox<String> comboBox6 = new JComboBox<>(typeList); |
| | | |
| | | JLabel JLabel78 = new JLabel("æ¯å¦å½±åå°è±"); |
| | | JComboBox<JComboBoxItem> comboBox7 = new JComboBox<>(isealCabin); |
| | | comboBox7.setPreferredSize(new Dimension(185, 28)); |
| | | |
| | | JLabel JLabel8 = new JLabel("ä¸çº§ç½ç»å¾åç§°"); |
| | | JTextField level3Name = new JTextField(16); |
| | |
| | | |
| | | frame1.add(JLabel7, new GBC(0, 6, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(comboBox6, new GBC(1, 6, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | frame1.add(JLabel78, new GBC(0, 7, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(comboBox7, new GBC(1, 7, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | frame1.add(JLabel8, new GBC(0, 7, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(level3Name, new GBC(1, 7, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | frame1.add(JLabel8, new GBC(0, 8, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(level3Name, new GBC(1, 8, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | frame1.add(btnSave, new GBC(0, 8, 2, 1).setWeight(1, 0)); |
| | | frame1.add(btnSave, new GBC(0, 9, 2, 1).setWeight(1, 0)); |
| | | |
| | | btnSave.addActionListener((e) -> { |
| | | JComboBoxItem level1 = (JComboBoxItem) comboBox0.getSelectedItem(); |
| | |
| | | JComboBoxItem level2Node = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox3.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox4.getSelectedItem(); |
| | | JComboBoxItem isealCabinItem = (JComboBoxItem) comboBox7.getSelectedItem(); |
| | | Set<JComboBoxItem> selectedItems = comboBox5.getSelectedItems(); |
| | | StringBuilder selectedIds = new StringBuilder(); |
| | | for (JComboBoxItem item : selectedItems) { |
| | |
| | | data.setLevel2NetworkId(level2.getId()); |
| | | data.setLevel2NodeId(level2Node.getId()); |
| | | data.setName(name); |
| | | data.setIsealCabin(Math.toIntExact(isealCabinItem.getId())); |
| | | data.setDeptId(dept.getId()); |
| | | data.setTeamgroupId(team.getId()); |
| | | data.setTeamgroupName(team.getName()); |
| | | data.setCabinId(String.valueOf(selectedIds)); |
| | | data.setType(comboBox6.getSelectedItem().toString()); |
| | | level3Service.insert(data); |
| | | list = level3Service.getList(level1Data.getShipId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], null); |
| | | list = level3Service.getList(level1Data.getShipId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], Math.toIntExact(isealCabin[0].getId()), null); |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | |
| | |
| | | tableModelListener(list, table, jFrame); |
| | | frame1.dispose(); |
| | | jFrame.setEnabled(true);//å°ä¸»çé¢åè®¾ç½®ä¸ºå¯æä½ç |
| | | JOptionPane.showMessageDialog(null, "ä¿åæå", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | // å建åè¡¨æ ¼ |
| | | List<ColumnDto> columnDto = new ArrayList<>(); |
| | | List<DjJdgzNetworkLevel3> list = level3Service.getList(null, null, null, null, null,null); |
| | | List<DjJdgzNetworkLevel3> list = level3Service.getList(null, null, null, null, null,null,null); |
| | | //columnDto.add(new ColumnDto("ID", "id", -1, null,false)); |
| | | |
| | | |
| | |
| | | import com.example.client.Main; |
| | | import com.example.server.menu.model.Menu; |
| | | import com.example.server.menu.service.SysMenuService; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | node.setMenuName("é»è®¤æ ¹èç¹"); |
| | | DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(node); |
| | | |
| | | String site = (String) CacheUtils.get("site", "site"); |
| | | String site = (String) UserAndSiteUtils.get("site", "site"); |
| | | List<Menu> list = menuService.getList(site); |
| | | |
| | | createSubNode(rootNode, list); |
| | |
| | | import com.example.server.progressTrack.service.DjJdgzNetworkLevel1Service; |
| | | import com.example.server.progressTrack.service.DjJdgzShipService; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.jdesktop.swingx.JXDatePicker; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | btnSave.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | import com.example.server.progressTrack.service.DjJdgzNetworkLevel3Service; |
| | | 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 org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | nowFrame.setEnabled(false); |
| | | SysUser user = (SysUser) CacheUtils.get("user", "user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user", "user"); |
| | | if (user == null) { |
| | | nowFrame.setEnabled(true); |
| | | JOptionPane.showMessageDialog(null, "å½åç¨æ·å·²å¤±æè¯·éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | |
| | | frame1.add(btnSave, new GBC(0, 2, 2, 1).setWeight(1, 0)); |
| | | |
| | | btnSave.addActionListener((e) -> { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | jLeft.add(top, BorderLayout.NORTH); |
| | | |
| | | List<ColumnDto> columnDto = new ArrayList<>(); |
| | | list = level3Service.getList(null, deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null); |
| | | list = level3Service.getList(shipList.get(0).getId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0],null,null); |
| | | |
| | | if (list == null || list.size() == 0) { |
| | | JOptionPane.showMessageDialog(null, "è¿æªå½å
¥ä¸çº§ç½ç»å¾æ°æ®", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | |
| | | Long shipId = shipMap.get(content); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null); |
| | | list = level3Service.getList(shipId, dept.getId(), team.getId(), cabin.getId(), type,null,null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | query.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | list = level3Service.getList(null, null, null, null, null,sb.getText()); |
| | | list = level3Service.getList(null, null, null, null, null,null,sb.getText()); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, subTable); |
| | | subTable.setRowHeight(25); |
| | |
| | | import com.example.server.teamGroup.service.SysTeamGroupClassService; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.user.service.UserService; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | JLabel JLabel0 = new JLabel("ç±»å"); |
| | | JComboBox<String> comboBox1 = new JComboBox<>(typeList); |
| | | comboBox1.setPreferredSize(new Dimension(185,28)); |
| | | comboBox1.setPreferredSize(new Dimension(185, 28)); |
| | | if (StringUtils.isNotBlank(data.getType())) { |
| | | comboBox1.setSelectedItem(data.getType()); |
| | | } |
| | |
| | | |
| | | JLabel JLabel4 = new JLabel("æå±é¨é¨"); |
| | | JComboBox<JComboBoxItem> comboBox2 = new JComboBox<>(deptList); |
| | | comboBox2.setPreferredSize(new Dimension(185,28)); |
| | | comboBox2.setPreferredSize(new Dimension(185, 28)); |
| | | if (data.getPid() != null) { |
| | | if (data.getPid()!=0){ |
| | | if (data.getPid() != 0) { |
| | | comboBox2.setSelectedItem(BoxIteUtils.GetSelectItemById(deptList, data.getPid())); |
| | | }else { |
| | | } else { |
| | | comboBox2.setEditable(false); |
| | | } |
| | | } |
| | |
| | | saveButton.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | if (user==null){ |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user", "user"); |
| | | if (user == null) { |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | | } |
| | |
| | | data.setSort(sortMax + 100); |
| | | } else { |
| | | data.setPid(dept.getId()); |
| | | sortMax = sysTeamGroupClassService.getSortMax(dept.getId()); |
| | | sortMax = sysTeamGroupClassService.getSortMax(dept.getId()) == null ? 0 : sysTeamGroupClassService.getSortMax(dept.getId()); |
| | | data.setSort(sortMax + 1); |
| | | } |
| | | |
| | |
| | | |
| | | sysTeamGroupClassService.save(data); |
| | | |
| | | List<SysTeamGroupClass> list = sysTeamGroupClassService.getListByTree();; |
| | | List<SysTeamGroupClass> list = sysTeamGroupClassService.getListByTree(); |
| | | ; |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | teamGroupManageService.tableModelListener(table, jFrame, list); |
| | | frame1.dispose(); |
| | |
| | | import com.example.server.progressTrack.service.*; |
| | | import com.example.server.sysOss.model.SysOss; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jdesktop.swingx.JXDatePicker; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | saveButton.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user", "user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user", "user"); |
| | | if (user == null) { |
| | | JOptionPane.showMessageDialog(null, "å½åç¨æ·å·²å¤±æè¯·éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | data.setRemark(remark.getText()); |
| | | Long id = djJdgzTrackRecordService.save(data); |
| | | uploadFile.save(id); |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getList(level1Id, level3.getDeptId(), null, null, level3.getType(), 0, null); |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getList(level1Id, level3.getDeptId(), null, null, level3.getType(), 0,0, null); |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | trackRecordManageService.tableModelListener(table, jFrame, list); |
| | | frame1.dispose(); |
| | |
| | | import com.example.server.progressTrack.service.DjJdgzTrackRecordService; |
| | | 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 org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | String[] typeList = new String[]{ |
| | | "","æ¹è£
", "å è£
", "æ¢è£
", "ä¿®ç","æ¹è¿æ§ä¿®ç" |
| | | }; |
| | | JComboBoxItem[] isealCabin = { |
| | | new JComboBoxItem(0L, "å¦"), |
| | | new JComboBoxItem(1L, "æ¯"), |
| | | }; |
| | | |
| | | JLabel JLabel0 = new JLabel("å·¥ç¨"); |
| | | JComboBox<JComboBoxItem> comboBox = new JComboBox<>(projectList); |
| | | comboBox.setPreferredSize(new Dimension(150, 28)); |
| | | comboBox.setPreferredSize(new Dimension(200, 28)); |
| | | |
| | | JLabel JLabel1 = new JLabel("é¨é¨"); |
| | | JComboBox<JComboBoxItem> comboBox1 = new JComboBox<>(deptList); |
| | | comboBox1.setPreferredSize(new Dimension(150, 28)); |
| | | comboBox1.setPreferredSize(new Dimension(140, 28)); |
| | | |
| | | JComboBoxItem[] teamList1 = sysTeamGroupClassService.getTeamList(deptList[0].getId()); |
| | | |
| | | JLabel JLabel2 = new JLabel("ä¸ä¸"); |
| | | JComboBox<JComboBoxItem> comboBox2 = new JComboBox<>(teamList1); |
| | | comboBox2.setPreferredSize(new Dimension(150, 28)); |
| | | comboBox2.setPreferredSize(new Dimension(140, 28)); |
| | | |
| | | JLabel JLabel3 = new JLabel("è±å®¤"); |
| | | JComboBox<JComboBoxItem> comboBox3 = new JComboBox<>(cabinList); |
| | | comboBox3.setPreferredSize(new Dimension(150, 28)); |
| | | comboBox3.setPreferredSize(new Dimension(140, 28)); |
| | | |
| | | JLabel JLabel4 = new JLabel("ç±»å«"); |
| | | JComboBox<String> comboBox4 = new JComboBox<>(typeList); |
| | | comboBox4.setPreferredSize(new Dimension(150, 28)); |
| | | comboBox4.setPreferredSize(new Dimension(140, 28)); |
| | | |
| | | JLabel JLabel5 = new JLabel("ç¶æ"); |
| | | JComboBox<JComboBoxItem> comboBox5 = new JComboBox<>(statusList); |
| | | comboBox5.setPreferredSize(new Dimension(150, 28)); |
| | | comboBox5.setPreferredSize(new Dimension(140, 28)); |
| | | |
| | | JLabel JLabel78 = new JLabel("æ¯å¦å½±åå°è±"); |
| | | JComboBox<JComboBoxItem> comboBox7 = new JComboBox<>(isealCabin); |
| | | comboBox7.setPreferredSize(new Dimension(140, 28)); |
| | | |
| | | JTextField sb = new JTextField(16); |
| | | sb.setPreferredSize(new Dimension(150, 28)); |
| | | sb.setPreferredSize(new Dimension(140, 28)); |
| | | JButton query = new JButton("æ¥è¯¢"); |
| | | |
| | | JButton btnTj = new JButton("ç»è®¡æ¥è¡¨"); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | JComboBoxItem status = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | |
| | | list = djJdgzTrackRecordService.getList(project.getId(), dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(status.getId()), null); |
| | | 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()), null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | JComboBoxItem status = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | |
| | | list = djJdgzTrackRecordService.getList(project.getId(), dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(status.getId()), null); |
| | | 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()), null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | JComboBoxItem status = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | |
| | | list = djJdgzTrackRecordService.getList(project.getId(), dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(status.getId()), null); |
| | | 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()), null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | JComboBoxItem status = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | |
| | | list = djJdgzTrackRecordService.getList(project.getId(), dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(status.getId()), null); |
| | | 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()), null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | String type = comboBox4.getSelectedItem().toString(); |
| | | JComboBoxItem status = (JComboBoxItem) comboBox5.getSelectedItem(); |
| | | |
| | | list = djJdgzTrackRecordService.getList(project.getId(), dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(status.getId()), null); |
| | | 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()), null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | 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()), null); |
| | | list = djJdgzTrackRecordService.getList(project.getId(), dept.getId(), team.getId(), cabin.getId(), type, Math.toIntExact(status.getId()),Math.toIntExact(isealCabinItem.getId()), null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | | |
| | | table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| | | tableModelListener(table, jFrame, list); |
| | | } |
| | | }); |
| | | comboBox7.addItemListener(new ItemListener() { |
| | | public void itemStateChanged(final ItemEvent event) { |
| | | JComboBoxItem project = (JComboBoxItem) comboBox.getSelectedItem(); |
| | | 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()), null); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | JComboBoxItem project = (JComboBoxItem) comboBox.getSelectedItem(); |
| | | list = djJdgzTrackRecordService.getList(project.getId(), null, null, null, null, 0, sb.getText()); |
| | | list = djJdgzTrackRecordService.getList(project.getId(), null, null, null, null, 0, 0,sb.getText()); |
| | | |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | table.setRowHeight(25); |
| | |
| | | } |
| | | }); |
| | | |
| | | list = djJdgzTrackRecordService.getList(projectList[0].getId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], Math.toIntExact(statusList[0].getId()), null); |
| | | list = djJdgzTrackRecordService.getList(projectList[0].getId(), deptList[0].getId(), teamList[0].getId(), cabinList[0].getId(), typeList[0], Math.toIntExact(statusList[0].getId()), Math.toIntExact(isealCabin[0].getId()),null); |
| | | if (list == null || list.size() == 0) { |
| | | JOptionPane.showMessageDialog(null, "è¿æªå½å
¥ä¸çº§ç½ç»å¾æ°æ®", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return null; |
| | |
| | | columnDto.add(new ColumnDto("ä¸çº§èç¹", "level1NodeName", 120, null, false, null, null)); |
| | | 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("å½åèç¹", "level3NodeName", 150, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("计å宿æ¶é´", "requiredCompletionTime", 180, null, false, null, null)); |
| | | columnDto.add(new ColumnDto("è·è¸ªè®°å½", "", 100, "", true, buttonList, null)); |
| | |
| | | String[] items = itemList.toArray(new String[0]); |
| | | columnModel = table.getColumnModel(); |
| | | MultiSelectComboBox2 mulcomboBox = new MultiSelectComboBox2(items, columnDto, columnModel); |
| | | |
| | | /* final Integer[] lastIndex = {-1}; |
| | | mulcomboBox.addItemListener(new ItemListener() { |
| | | @Override |
| | |
| | | });*/ |
| | | |
| | | topJpanel.add(JLabel0, new GBC(0, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox, new GBC(1, 0, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel1, new GBC(2, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox1, new GBC(3, 0, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel2, new GBC(4, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox2, new GBC(5, 0, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel3, new GBC(6, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox3, new GBC(7, 0, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel4, new GBC(8, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox4, new GBC(9, 0, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel5, new GBC(10, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox5, new GBC(11, 0, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | topJpanel.add(btnTj, new GBC(1, 1, 1, 1).setInsets(5)); |
| | | topJpanel.add(btnJc, new GBC(2, 1, 2, 1).setInsets(5)); |
| | | topJpanel.add(btnImport, new GBC(4, 1, 2, 1).setInsets(5)); |
| | | topJpanel.add(btnExport, new GBC(6, 1, 2, 1).setInsets(5)); |
| | | topJpanel.add(mulcomboBox, new GBC(8, 1, 2, 1).setInsets(5)); |
| | | topJpanel.add(sb, new GBC(10, 1, 2, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(query, new GBC(12, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(comboBox, new GBC(1, 0, 3, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel1, new GBC(4, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox1, new GBC(5, 0, 2, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel2, new GBC(7, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox2, new GBC(8, 0, 2, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel3, new GBC(10, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox3, new GBC(11, 0, 2, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel4, new GBC(13, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox4, new GBC(14, 0, 2, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel5, new GBC(16, 0, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox5, new GBC(17, 0, 2, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | topJpanel.add(JLabel78, new GBC(19, 0, 3, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(comboBox7, new GBC(22, 0, 2, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | |
| | | topJpanel.add(btnTj, new GBC(1, 1, 3, 1).setInsets(5)); |
| | | topJpanel.add(btnJc, new GBC(4, 1, 3, 1).setInsets(5)); |
| | | topJpanel.add(btnImport, new GBC(7, 1, 3, 1).setInsets(5)); |
| | | topJpanel.add(btnExport, new GBC(10, 1, 3, 1).setInsets(5)); |
| | | topJpanel.add(mulcomboBox, new GBC(13, 1, 3, 1).setInsets(5)); |
| | | topJpanel.add(sb, new GBC(16, 1, 3, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | topJpanel.add(query, new GBC(19, 1, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | table.addMouseListener(new MouseAdapter() { |
| | | @Override |
| | | public void mouseClicked(MouseEvent e) { |
| | |
| | | int row = table.rowAtPoint(e.getPoint()); |
| | | int col = table.columnAtPoint(e.getPoint()); |
| | | DjJdgzTrackRecord djJdgzTrackRecord = list.get(row); |
| | | String site = (String) CacheUtils.get("site", "site"); |
| | | String site = (String) UserAndSiteUtils.get("site", "site"); |
| | | |
| | | if (djJdgzTrackRecord.getCurrentStatus() == 1 && site.equals("å·¥ä½ç»")) { |
| | | table.setRowSelectionInterval(row, row); |
| | | popupMenu.show(e.getComponent(), e.getX(), e.getY()); |
| | | menuItem1.addActionListener(ex -> { |
| | | djJdgzTrackRecordService.retract(djJdgzTrackRecord.getId()); |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getList(djJdgzTrackRecord.getLevel1NetworkId(), null, null, null, null, 0, null); |
| | | List<DjJdgzTrackRecord> list = djJdgzTrackRecordService.getList(djJdgzTrackRecord.getLevel1NetworkId(), null, null, null, null, 0,0, null); |
| | | CommonTable.refreshTable(list, columnDto, table); |
| | | tableModelListener(table, jFrame, list); |
| | | }); |
| | |
| | | import com.example.server.teamGroup.service.SysTeamGroupClassService; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.user.service.UserService; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.jdesktop.swingx.JXDatePicker; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | JLabel JLabel0 = new JLabel("ç¨æ·å"); |
| | | JTextField userName = new JTextField(16); |
| | | if (StringUtils.isNotBlank(data.getUsername())) { |
| | | userName.setText(data.getUsername()); |
| | | if (StringUtils.isNotBlank(data.getUserName())) { |
| | | userName.setText(data.getUserName()); |
| | | } |
| | | |
| | | JLabel JLabel1 = new JLabel("æµç§°"); |
| | |
| | | saveButton.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | if (user==null){ |
| | | JOptionPane.showMessageDialog(null, "ç¨æ·å¤±æè¯·éåºå¹¶éæ°ç»å½", "æç¤º", JOptionPane.WARNING_MESSAGE); |
| | | return; |
| | |
| | | data.setDept(String.valueOf(dept.getId())); |
| | | data.setTeamgroup(String.valueOf(team.getId())); |
| | | //data.setBoatfleet(String.valueOf(boat.getId())); |
| | | data.setUsername(userName.getText()); |
| | | data.setUserName(userName.getText()); |
| | | data.setNickName(nickName.getText()); |
| | | data.setPassword(passWord.getText()); |
| | | userService.save(data); |
| | |
| | | columnDto = new ArrayList<>(); |
| | | //columnDto.add(new ColumnDto("ID", "id", -1, null,false)); |
| | | columnDto.add(new ColumnDto("åºå·", "", (width - 10) / 7, "autoCreate", false, null,null)); |
| | | columnDto.add(new ColumnDto("ç¨æ·å", "username", (width - 10) / 7, null, false, null,null)); |
| | | columnDto.add(new ColumnDto("ç¨æ·å", "userName", (width - 10) / 7, null, false, null,null)); |
| | | columnDto.add(new ColumnDto("æµç§°", "nickName", (width - 10) / 7, null, false, null,null)); |
| | | columnDto.add(new ColumnDto("å¯ç ", "password", (width - 10) / 7, null, false, null,null)); |
| | | //columnDto.add(new ColumnDto("æå±Té", "boatFleetId", (width - 10) / 8, "dict", true, null,boatList)); |
| | |
| | | super(items); |
| | | this.defaultText = "èªå®ä¹è¡¨å¤´"; // 设置é»è®¤ææ¬ |
| | | setEditable(true); |
| | | |
| | | // èªå®ä¹æ¸²æå¨ |
| | | setRenderer(new DefaultListCellRenderer() { |
| | | @Override |
| | |
| | | import com.example.server.progressTrack.dao.ImportRecordDao; |
| | | import com.example.server.progressTrack.model.ExportRecord; |
| | | import com.example.server.progressTrack.model.ImportRecord; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | String configPath = configPath2; |
| | | String directoryPath = localPath + "life-protection"; |
| | | |
| | | String mySite = (String) CacheUtils.get("site", "site"); |
| | | String mySite = (String) UserAndSiteUtils.get("site", "site"); |
| | | |
| | | // å¼¹åºæä»¶éæ©æ¡ï¼è®©ç¨æ·éæ©ä¿åZIPæä»¶çè·¯å¾ |
| | | String outputZipPath = showSaveFileDialog(mySite + "åæ¥æ°æ®å
.zip"); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | String mySite = (String) CacheUtils.get("site", "site"); |
| | | String mySite = (String) UserAndSiteUtils.get("site", "site"); |
| | | String otherSite = properties.get("site").toString(); |
| | | if ("å·¥ä½ç»".equals(mySite)) { |
| | | syncTable("dj_jdgz_network_level1"); |
| | | syncTable("dj_jdgz_network_level1_list"); |
| | | syncTable("dj_jdgz_network_level2"); |
| | | syncTable("dj_jdgz_network_level2_list"); |
| | | syncTable("dj_jdgz_handover"); |
| | | syncTable("dj_jdgz_network_level3"); |
| | | syncTable("dj_jdgz_network_level3_list"); |
| | |
| | | syncTable("dj_jdgz_track_record"); |
| | | syncTable("dj_sys_oss"); |
| | | syncTable("dj_jdgz_dismant_track"); |
| | | syncTable("dj_sys_teamgroup_class"); |
| | | syncTable("sys_user"); |
| | | /* syncTable("dj_sys_teamgroup_class"); |
| | | syncTable("sys_user");*/ |
| | | syncTable("dj_jdgz_ship"); |
| | | } |
| | | } else if ("åå®¶".equals(mySite)) { |
| | |
| | | syncTable("dj_jdgz_network_level3_list"); |
| | | syncTable("dj_jdgz_track_record"); |
| | | syncTable("dj_sys_oss"); |
| | | syncTable("dj_jdgz_ship"); |
| | | syncTable("dj_jdgz_dismant_track"); |
| | | } |
| | | ImportRecord data =new ImportRecord(); |
| | |
| | | import com.example.client.entity.TenantEntity; |
| | | import com.example.server.progressTrack.model.TeamEntity; |
| | | import com.example.server.user.model.SysUser; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.apache.ibatis.reflection.MetaObject; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | @Override |
| | | public void insertFill(MetaObject metaObject) { |
| | | Object object = metaObject.getOriginalObject(); |
| | | SysUser user = (SysUser) CacheUtils.get("user","user"); |
| | | SysUser user = (SysUser) UserAndSiteUtils.get("user","user"); |
| | | LocalDateTime currentDateTime = LocalDateTime.now(); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | // å°å½åæ¥ææ ¼å¼å为å符串 |
| | |
| | | |
| | | if (object instanceof TeamEntity) { |
| | | TeamEntity entity = (TeamEntity) object; |
| | | entity.setCreateTeam(user.getBoatfleet());// å建è
|
| | | entity.setUpdateTeam(user.getBoatfleet());// å建è
|
| | | entity.setCreateTeam(user.getBoatFleet());// å建è
|
| | | entity.setUpdateTeam(user.getBoatFleet());// å建è
|
| | | } |
| | | |
| | | if (object instanceof PlatformLogEntity) { |
| | |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | // å°å½åæ¥ææ ¼å¼å为å符串 |
| | | String date = currentDateTime.format(formatter); |
| | | SysUser user =(SysUser) CacheUtils.get("user","user"); |
| | | SysUser user =(SysUser) UserAndSiteUtils.get("user","user"); |
| | | Object object = metaObject.getOriginalObject(); |
| | | if (object instanceof PlatformEntity) { |
| | | PlatformEntity entity = (PlatformEntity) object; |
| | |
| | | |
| | | if (object instanceof TeamEntity) { |
| | | TeamEntity entity = (TeamEntity) object; |
| | | entity.setUpdateTeam(user.getBoatfleet());// å建è
|
| | | entity.setUpdateTeam(user.getBoatFleet());// å建è
|
| | | } |
| | | } |
| | | |
| | |
| | | @Mapper |
| | | public interface DjJdgzNetworkLevel3Dao extends BaseDao<DjJdgzNetworkLevel3> { |
| | | |
| | | List<DjJdgzNetworkLevel3> getList(Long shipId, Long deptId, Long teamId, Long cabinId, String type,String name); |
| | | List<DjJdgzNetworkLevel3> getList(Long shipId, Long deptId, Long teamId, Long cabinId, String type,Integer isealCabin,String name); |
| | | List<NetworkNodeStatusDto> getNodeStatusData(Long id); |
| | | |
| | | void deleteLevel3(Long id); |
| | |
| | | @Mapper |
| | | public interface DjJdgzTrackRecordDao extends BaseDao<DjJdgzTrackRecord> { |
| | | |
| | | List<DjJdgzTrackRecord> getList(Long level1NetworkId, Long deptId, Long teamId, Long cabinId, String type, Integer status, String name); |
| | | List<DjJdgzTrackRecord> getList(Long level1NetworkId, Long deptId, Long teamId, Long cabinId, String type, Integer status,Integer isealCabin, String name); |
| | | |
| | | List<DjJdgzTrackRecord> getHistory(Long level3NodeId); |
| | | |
| | |
| | | @ApiModelProperty(value = "ç½ç»å¾åç§°ï¼è®¾å¤åç§°ï¼") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å½±åå°è±") |
| | | private Integer isealCabin; |
| | | |
| | | @ApiModelProperty(value = "çç»ä¸ä¸ID") |
| | | private Long teamgroupId; |
| | | |
| | |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "") |
| | | private Integer isealCabin; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "") |
| | | private Integer trackNum; |
| | | |
| | | @TableField(exist = false) |
| | |
| | | sheetName = sheet.getSheetName(); //è·åå½åsheetåç§° |
| | | sum = sum + num; |
| | | |
| | | List<DjJdgzNetworkLevel3> list = djJdgzNetworkLevel3Service.getList(null, null, null, null, null,null); |
| | | List<DjJdgzNetworkLevel3> list = djJdgzNetworkLevel3Service.getList(null, null, null, null, null,null,null); |
| | | JComboBoxItem[] list1 = cabinService.getList(); |
| | | |
| | | |
| | |
| | | String[] fillColorArr = {"#e5e5e5", "#3498DB", "#F1C40F", "#E74C3C", "#2ECC71", "#006400"}; |
| | | String[] fontColorArr = {"#e5e5e5", "#3498DB", "#F1C40F", "#E74C3C", "#2ECC71", "#006400"}; |
| | | |
| | | public List<DjJdgzNetworkLevel3> getList(Long shipId, Long deptId, Long teamId, Long cabinId, String type, String name) { |
| | | List<DjJdgzNetworkLevel3> list = baseDao.getList(shipId, deptId, teamId, cabinId, type, name); |
| | | public List<DjJdgzNetworkLevel3> getList(Long shipId, Long deptId, Long teamId, Long cabinId, String type,Integer isealCabin, String name) { |
| | | List<DjJdgzNetworkLevel3> list = baseDao.getList(shipId, deptId, teamId, cabinId, type,isealCabin, name); |
| | | return list; |
| | | } |
| | | |
| | |
| | | Row row = sheet.getRow(j); |
| | | |
| | | String name = ImportUtil.getCellValue(row, 0, pattern); |
| | | String deptStr = ImportUtil.getCellValue(row, 1, pattern); |
| | | String teamGroupStr = ImportUtil.getCellValue(row, 2, pattern); |
| | | String cabinStr = ImportUtil.getCellValue(row, 3, pattern); |
| | | String typeStr = ImportUtil.getCellValue(row, 4, pattern); |
| | | String time1 = ImportUtil.getCellValue(row, 5, pattern); |
| | | String time2 = ImportUtil.getCellValue(row, 6, pattern); |
| | | String time3 = ImportUtil.getCellValue(row, 7, pattern); |
| | | String time4 = ImportUtil.getCellValue(row, 8, pattern); |
| | | String time5 = ImportUtil.getCellValue(row, 9, pattern); |
| | | String repairUnit = ImportUtil.getCellValue(row, 10, pattern); |
| | | String repairUnitDirector = ImportUtil.getCellValue(row, 11, pattern); |
| | | String repairUnitContact = ImportUtil.getCellValue(row, 12, pattern); |
| | | String generalRepairUnit = ImportUtil.getCellValue(row, 13, pattern); |
| | | String generalRepairUnitDirector = ImportUtil.getCellValue(row, 14, pattern); |
| | | String generalRepairUnitContact = ImportUtil.getCellValue(row, 15, pattern); |
| | | String isealCabinStr = ImportUtil.getCellValue(row, 1, pattern); |
| | | String deptStr = ImportUtil.getCellValue(row, 2, pattern); |
| | | String teamGroupStr = ImportUtil.getCellValue(row, 3, pattern); |
| | | String cabinStr = ImportUtil.getCellValue(row, 4, pattern); |
| | | String typeStr = ImportUtil.getCellValue(row, 5, pattern); |
| | | String time1 = ImportUtil.getCellValue(row, 6, pattern); |
| | | String time2 = ImportUtil.getCellValue(row, 7, pattern); |
| | | String time3 = ImportUtil.getCellValue(row, 8, pattern); |
| | | String time4 = ImportUtil.getCellValue(row, 9, pattern); |
| | | String time5 = ImportUtil.getCellValue(row, 10, pattern); |
| | | String repairUnit = ImportUtil.getCellValue(row, 11, pattern); |
| | | String repairUnitDirector = ImportUtil.getCellValue(row, 12, pattern); |
| | | String repairUnitContact = ImportUtil.getCellValue(row, 13, pattern); |
| | | String generalRepairUnit = ImportUtil.getCellValue(row, 14, pattern); |
| | | String generalRepairUnitDirector = ImportUtil.getCellValue(row, 15, pattern); |
| | | String generalRepairUnitContact = ImportUtil.getCellValue(row, 16, pattern); |
| | | |
| | | Integer isealCabin = 0; |
| | | if (isealCabinStr.equals("æ¯")){ |
| | | isealCabin = 1; |
| | | } |
| | | |
| | | Long id = UUIDUtil.generateId(); |
| | | if (StringUtils.isEmpty(name)) { |
| | |
| | | data.setLevel1NetworkId(level1NetworkId); |
| | | data.setLevel2NetworkId(level2NetworkId); |
| | | data.setLevel2NodeId(level2NodeId); |
| | | data.setIsealCabin(isealCabin); |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(deptStr)) { |
| | |
| | | Long oldId = 0L; |
| | | TableNodeDto data = null; |
| | | for (TableNodeDto node : list) { |
| | | if (oldId.equals(node.getNetworkId())){ |
| | | if (oldId.equals(node.getNetworkId())) { |
| | | |
| | | }else{ |
| | | } else { |
| | | data = new TableNodeDto(); |
| | | data.setName(node.getName()); |
| | | data.setNetworkId(node.getNetworkId()); |
| | |
| | | private SysTeamGroupClassService sysTeamGroupClassService; |
| | | |
| | | |
| | | public List<DjJdgzTrackRecord> getList(Long level1NetworkId, Long deptId, Long teamId, Long cabinId, String type, Integer status, String name) { |
| | | public List<DjJdgzTrackRecord> getList(Long level1NetworkId, Long deptId, Long teamId, Long cabinId, String type, Integer status,Integer isealCabin, String name) { |
| | | Long userId = null; |
| | | /* Map adminRole = sysUserService.adminRole(); |
| | | Object isTyRole = adminRole.get("isTyRole"); |
| | |
| | | if (isTyRole.equals(true) || isYwzRole.equals(true)) { |
| | | userId = UserContext.getUser().getId(); |
| | | }*/ |
| | | List<DjJdgzTrackRecord> list = baseDao.getList(level1NetworkId, deptId, teamId, cabinId, type, status, name); |
| | | List<DjJdgzTrackRecord> list = baseDao.getList(level1NetworkId, deptId, teamId, cabinId, type, status, isealCabin,name); |
| | | /*if (list != null && list.size() > 0) { |
| | | sysOssService.setListOsses(list, "ProjectProgressFileUpload"); |
| | | }*/ |
| | |
| | | } |
| | | |
| | | if (StringUtils.isNotBlank(trackedPerson)) { |
| | | data.setTrackPerson(trackPersonStr); |
| | | data.setTrackedPerson(trackedPerson); |
| | | } |
| | | |
| | | if (StringUtils.isNotBlank(trackedPersonContact)) { |
| | | data.setTrackPersonContact(trackPersonContact); |
| | | data.setTrackedPersonContact(trackedPersonContact); |
| | | } |
| | | |
| | | if (StringUtils.isNotBlank(trackedPersonUnit)) { |
| | | data.setTrackPersonUnit(trackPersonUnit); |
| | | data.setTrackedPersonUnit(trackedPersonUnit); |
| | | } |
| | | if (StringUtils.isNotBlank(generalRepairUnit)) { |
| | | data.setGeneralRepairUnit(generalRepairUnit); |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·å", required = true) |
| | | private String username; |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "æµç§°", required = true) |
| | | private String nickName; |
| | |
| | | private String teamgroup; |
| | | |
| | | @ApiModelProperty(value = "Té") |
| | | private String boatfleet; |
| | | private String boatFleet; |
| | | |
| | | @TableField(exist = false) |
| | | private Boolean exist; |
New file |
| | |
| | | package com.example.server.utils; |
| | | |
| | | import com.example.server.user.model.SysUser; |
| | | |
| | | public class UserAndSiteUtils { |
| | | private static SysUser sysUser; |
| | | private static String site; |
| | | public static void put(String a,String b,Object value){ |
| | | if (a.equals("site")){ |
| | | site = value.toString(); |
| | | }else{ |
| | | sysUser = (SysUser)value; |
| | | } |
| | | } |
| | | public static Object get(String a,String b){ |
| | | Object value = new Object(); |
| | | if (a.equals("site")){ |
| | | value = site; |
| | | }else{ |
| | | value = sysUser; |
| | | } |
| | | return value; |
| | | } |
| | | public static void remove(String a,String b){ |
| | | if (a.equals("site")){ |
| | | site = null; |
| | | }else{ |
| | | sysUser = null; |
| | | } |
| | | } |
| | | } |
| | |
| | | <if test="cabinId!=null"> |
| | | and a.cabin_id = ${cabinId} |
| | | </if> |
| | | <if test="isealCabin!=null"> |
| | | and a.iseal_cabin = ${isealCabin} |
| | | </if> |
| | | <if test="type!=null and type!=''"> |
| | | and a.type = #{type} |
| | | </if> |
| | |
| | | c.teamgroup_name, |
| | | c.dept_id, |
| | | c.cabin_id, |
| | | c.iseal_cabin, |
| | | c.type, |
| | | c.`NAME` as level3NetworkName, |
| | | a.PROCESS_NAME AS level3NodeName, |
| | |
| | | <if test="deptId!=null"> |
| | | and c.dept_id = ${deptId} |
| | | </if> |
| | | <if test="isealCabin!=null"> |
| | | and c.iseal_cabin = ${isealCabin} |
| | | </if> |
| | | <if test="teamId!=null"> |
| | | and c.TEAMGROUP_ID = ${teamId} |
| | | </if> |