| | |
| | | passWord.setText(data.getPassword()); |
| | | } |
| | | |
| | | JLabel JLabel3 = new JLabel("所属T队"); |
| | | /* JLabel JLabel3 = new JLabel("所属T队"); |
| | | JComboBox<JComboBoxItem> comboBox = new JComboBox<>(boatList); |
| | | if(StringUtils.isNotBlank(data.getBoatfleet())){ |
| | | comboBox.setSelectedItem(BoxIteUtils.GetSelectItemById(boatList, data.getBoatFleetId())); |
| | | } |
| | | |
| | | */ |
| | | JLabel JLabel4 = new JLabel("所属部门"); |
| | | JComboBox<JComboBoxItem> comboBox1 = new JComboBox<>(deptList); |
| | | if(StringUtils.isNotBlank(data.getDept())){ |
| | |
| | | frame1.add(JLabel2, new GBC(0, 2, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(passWord, new GBC(1, 2, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | frame1.add(JLabel3, new GBC(0, 3, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | /*frame1.add(JLabel3, new GBC(0, 3, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(comboBox, new GBC(1, 3, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | */ |
| | | frame1.add(JLabel4, new GBC(0, 3, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(comboBox1, new GBC(1, 3, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | frame1.add(JLabel4, new GBC(0, 4, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(comboBox1, new GBC(1, 4, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | frame1.add(JLabel5, new GBC(0, 4, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(comboBox2, new GBC(1, 4, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | frame1.add(JLabel5, new GBC(0, 5, 1, 1).setAnchor(GBC.SOUTHEAST).setInsets(5)); |
| | | frame1.add(comboBox2, new GBC(1, 5, 1, 1).setAnchor(GBC.SOUTHWEST).setInsets(5)); |
| | | |
| | | frame1.add(saveButton, new GBC(0, 6, 1, 1).setWeight(0, 0)); |
| | | frame1.add(saveButton, new GBC(0, 5, 1, 1).setWeight(0, 0)); |
| | | |
| | | saveButton.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | JComboBoxItem boat = (JComboBoxItem) comboBox.getSelectedItem(); |
| | | JComboBoxItem dept = (JComboBoxItem) comboBox1.getSelectedItem(); |
| | | JComboBoxItem team = (JComboBoxItem) comboBox2.getSelectedItem(); |
| | | |
| | | data.setDept(String.valueOf(dept.getId())); |
| | | data.setTeamgroup(String.valueOf(team.getId())); |
| | | data.setBoatfleet(String.valueOf(boat.getId())); |
| | | //data.setBoatfleet(String.valueOf(boat.getId())); |
| | | data.setUsername(userName.getText()); |
| | | data.setNickName(nickName.getText()); |
| | | data.setPassword(passWord.getText()); |