| | |
| | | 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); |
| | | |