资源简介
这是一个基于NetBeans集成开发环境下的4S店管理系统,用到的技术有mysql,NetBeans。希望能供大家参考!
![](http://www.nz998.com/pic/46075.jpg)
代码片段和文件信息
/*
* To change this template choose Tools | Templates
* and open the template in the editor.
*/
/*
* AfterServiceJframe.java
*
* Created on 2011-6-1 11:22:38
*/
package com.vo;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
/**
*
* @author Administrator
*/
public class AfterServiceJframe extends javax.swing.Jframe {
/** Creates new form AfterServiceJframe */
private Connection conn;
private Statement stmt;
private ResultSet rs;
public AfterServiceJframe() {
initComponents();
String[] col = {“客户姓名“ “汽车名称“ “汽车类型“ “维修时间“};
DefaultTableModel de = new DefaultTableModel(col 0);
conn = (Connection) DBUtil.getConnection();
String sql = “select customerNamecarNamecarTypemaintenanceTime from after_service“;
rs = DBUtil.getResultSet(sql conn);
try {
while (rs.next()) {
String customerName = rs.getString(“customerName“);
String carName = rs.getString(“carName“);
String carType = rs.getString(“carType“);
String maintenanceTime = rs.getString(“maintenanceTime“);
String[] str = {customerName carName carType maintenanceTime};
de.addRow(str);
}
} catch (SQLException ex) {
Logger.getLogger(CarInfoJframe.class.getName()).log(Level.SEVERE null ex);
} finally {
try {
if (rs != null) {
rs.close();
}
if (stmt != null) {
stmt.close();
}
if (conn != null) {
conn.close();
}
} catch (SQLException ex) {
Logger.getLogger(CarInfoJframe.class.getName()).log(Level.SEVERE null ex);
}
}
jTable1.setModel(de);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings(“unchecked“)
// //GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jTextField3 = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jTextField4 = new javax.swing.JTextField();
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3752 2011-05-25 08:16 CarManagementSystem\build.xm
文件 85 2011-05-25 08:16 CarManagementSystem\manifest.mf
文件 146908 2011-05-31 17:26 CarManagementSystem\dist\CarManagementSystem.jar
文件 1458 2011-05-31 17:26 CarManagementSystem\dist\README.TXT
文件 785998 2011-05-31 17:26 CarManagementSystem\dist\lib\mysql-connector-java-5.1.15-bin.jar
文件 91 2011-05-31 17:26 CarManagementSystem\build\built-jar.properties
文件 0 2011-05-31 17:38 CarManagementSystem\build\classes\.netbeans_automatic_build
文件 824 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 824 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 12875 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 824 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 10265 2011-06-01 16:35 CarManagementSystem\build\classes\com\vo\CarStatisticJfr
文件 824 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 582 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 824 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 764 2011-06-01 14:24 CarManagementSystem\build\classes\com\vo\AfterServiceJfr
文件 796 2011-06-01 16:35 CarManagementSystem\build\classes\com\vo\CarStatisticJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 9674 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 743 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 536 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 824 2011-06-01 13:33 CarManagementSystem\build\classes\com\vo\CustomerFeedbackJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
文件 740 2011-06-01 16:40 CarManagementSystem\build\classes\com\vo\MainJfr
............此处省略119个文件信息
相关资源
- PHP MySQL 技术 毕业设计 物流管理系统
- php mysql 在线作业管理系统
- pb 酒店管理系统(代码、sql数据库)
- 图书管理系统 PHP MYSQL实现
- [PHP MySQL]图书馆管理系统前后台全部代
- 人事管理系统数据库文件SQL2000
- C 开发的SQL数据库实现的公司员工信
- 企业人事管理系统【SQLServer数据库+课
- 基于PHP+MYSQL的学生成绩管理系统
- Spring+Struts2+Hibernate人力资源管理系统
- 设备管理系统(SQL体验版)
- Winfrom通用权限管理系统数据库脚本
- 电子图书管理系统
- 旅游管理系统数据库
- 房屋出租管理系统源码
- 数据库宾馆管理系统Mysql
- Qt实现的一个简单的学生学籍管理系统
- netbeans个人通讯录
- 餐饮娱乐管理系统
- 毕业设计-企业工资管理系统struts+jd
- mysql图书管理系统
- E创政府网站管理系统ACCESS·部队版V
- Struts、Hibernate、Spring框架SSH框架整合
- ACCESS人事管理系统152792
- 本科毕业设计开题报告(红旗酒店管
- 课程设计人事管理系统
- 图片管理系统桃源相册管理
- 餐厅管理信息系统课程设计
- 餐饮管理系统(源代码+报告)
- 酒店管理系统(sql+yuanma)
评论
共有 条评论