// 显示所有 private void jRadioButton1ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jRadioButton1ActionPerformed // 查询所有车位 List<Space> spaceList = spaceDao.findAllSpace(); showJPanel(spaceList); } // GEN-LAST:event_jRadioButton1ActionPerformed
private MainJFrame(User user) { spaceDao = new SpaceDao(); // 初始化变量 initComponents(); setTitle("停车场管理系统主界面"); initUser(user); // 查询所有的车位 List<Space> allSpace = spaceDao.findAllSpace(); showJPanel(allSpace); }
// 显示维护 private void jRadioButton4ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jRadioButton4ActionPerformed // 根据状态查询车位 List<Space> spaceList = spaceDao.findSpaceByCondition(2); showJPanel(spaceList); } // GEN-LAST:event_jRadioButton4ActionPerformed