汽车销售管理系统课程设计报告.docx

上传人:b****8 文档编号:10087666 上传时间:2023-02-08 格式:DOCX 页数:46 大小:100.82KB
下载 相关 举报
汽车销售管理系统课程设计报告.docx_第1页
第1页 / 共46页
汽车销售管理系统课程设计报告.docx_第2页
第2页 / 共46页
汽车销售管理系统课程设计报告.docx_第3页
第3页 / 共46页
汽车销售管理系统课程设计报告.docx_第4页
第4页 / 共46页
汽车销售管理系统课程设计报告.docx_第5页
第5页 / 共46页
点击查看更多>>
下载资源
资源描述

汽车销售管理系统课程设计报告.docx

《汽车销售管理系统课程设计报告.docx》由会员分享,可在线阅读,更多相关《汽车销售管理系统课程设计报告.docx(46页珍藏版)》请在冰豆网上搜索。

汽车销售管理系统课程设计报告.docx

汽车销售管理系统课程设计报告

**学院计算机科学系

JAVA课程设计报告

题目:

汽车销售管理系统

系另1」:

计算机系

专业班级:

计算机科学与技术

姓名:

;李***

学号:

081914***

指导老师:

*******

时间:

20**/**/**20**/**/**

20**611

需求分析

1.1设计需求分析:

在信息技术飞速发展的今天,各行各业使用计算机在辅助协调和管理自身工作的需求越来越高。

人们都希望通过计算机技术来实现对各种事务的自动化管理。

目前,企业办公自动化正朝着多功能,复合化和系统化的方向发展,汽车销售管理系统是企业办公自动化的一种体现.销售管理也是企业主要的事务管理之一,是提高企业竞争力的重要环节。

企业销售管理作为ERP的一部分,在企业管理中占重要地位,其计算机化在发达国家中也已经达到了相当高的水平。

目前,我国企业销售管理方面的软件系统也为数不少,但这些系

统的实用性并不强,它们普遍存在以下缺陷:

(1)针对国内众多中小企业迫切需要信息化管理,但处在初步需求阶段,无法承受诸如大

型ERP、财务销售仓储一体信息化管理的中级阶段。

自主开发的软件往往平台较低且功能单一,商用软件又过于注重通用性,无法充分考虑每一个具体单位、具体部门的实际需求。

(2)销售数据标准化程度较差,难以保证数据的唯一性和权威性。

(3)忽略了对销售数据的分析,使得销售经理需查询帐单,才能了解销售情况,在一定程度

上的影响了对市场的判断和预测。

(4)没有注重对客户的管理,严重影响了企业对客户需求的了解,难以把握市场动态。

1.2系统概要情况:

汽车销售管理系统主要是对商品从购入到入库到销售出库中各个环节所发生的事件进行记录,以及对商品仓库的日常事务进行处理。

能随时查询仓库的库存和已售商品。

可根据进货统计、销售统计,来决定采购计划和暂停采购的商品清单,提高资金利用率。

能随时进行员工的业绩查询、厂商查询等,提高企业的科学管理水平。

(1)管理员登陆:

输出正确的账号密码,进行登陆

(2)基本信息:

厂家查询产品.员工.客户.供应商和库存信息

(3)进货入库:

厂家查询入库车辆信息和库存车辆信息

(4)全售管理:

查询经销商的进货退货情况

(5)零售管理:

查询零售商的进货退货情况

6)文件:

进行的管理员密码修改.用户管理。

退出

概要设计

2.1开发工具

本系统开发使用的软件是JDK1.5,访问的数据库是SQLServer2000数据库,在开发过

程中,体会到使用JDK1.5工具来开发的软件,能够快速完成,是繁杂的开发过程待以改善。

JAVA是一种开发性能非常优秀的面向对象的数据库应用开发工具,它除了能够设计传统的高性能、基于客户/服务器(Client/Server)体系结构的应用系统外,也能够用于开发基于

Internet的应用系统。

Java语言是一种纯面向对象的程序设计高级语言,Java平台则是一个完整的软件开发

体系平台。

它具有简单性、面向对象性、分布式、解释性、健壮性、安全性、结构中立性、可移植性、高效性、多线程、动态性等特点,使用Java语言开发的软件项目现在随处可见。

JAVA支持应用系统同时应用系统同时访问多种数据库,这既包括诸如Oracle、SQL

Server2000、Mysql之类的大型数据库,也包括VB之类的支持ODBC接口的小型数据库。

直接使用这个数据库是个质优价廉的选择。

学生选课管理系统采用面向对象的、可视化的数据库应用系统技术完成了对学生选课

的管理,采用了JDK开发环境,并使用本地SQLServer2000数据库。

该系统可以满足管理员日常工作的需要,实现无纸化办公,提供了相同数据源多库表的查询,为学生和的管理提供了方便、快捷的操作方式。

2.2功能设计

2.2.1厂家可以查询车辆信息出货进货等信息,其基本功能模

块如下

汽车销售管理系统

A、基本信息管理包含车辆•员工•客户•供应商和库存

B、进货管理模块包含入库••退库。

库存。

产品信息

C、销售理模块包全款销售。

欠款销售

D、零售理模块包含全款零售。

欠款零售

E、文件块包含密码修改•用户管理和退出

222、数据E-R图:

员工:

姓名性别部门年龄地址

客户:

产品地区联系方式

供应商:

车型价格联系方式

车型:

供应价格

仓库:

数量车型价格供应商

223程序流程

系统的执行从用户的登录开始,依据登录成功后根据用户的选择来进行后续的处理,直到用户退出系统或关闭程序为止,其间应对用户的选择做出判断及异常处理

3数据库逻辑设计如下(SQL):

3.1登录界面:

这个界面主要要实现的就是登陆汽车销售系统,首要填写正确的用户名合密码:

代码如下

package汽车销售管理系统;

importjava.awt.*;

importjavax.swing.*;

importjava.awt.BorderLayout;

importjava.awt.Rectangle;

importjava.awt.event.ActionEvent;

importjava.awt.event.ActionListener;

/**

*

Title:

*

*

Description:

*

*

Copyright:

Copyright(c)2008

*

*

Company:

*

*@authornotattributable

*@version1.0

*/

publicclassTiankehuextendsJDialog{

JPanelpanel1=newJPanel();

JLabeljLabel1=newJLabel();

JLabeljLabel2=newJLabel();

JLabeljLabel3=newJLabel();

JLabeljLabel4=newJLabel();

JLabeljLabel5=newJLabel();

JTextFieldjTextField2=newJTextField();

JTextFieldjTextField3=newJTextField();

JTextFieldjTextField4=newJTextField();

JTextFieldjTextField5=newJTextField();

JButtonjButton1=newJButton();

JButtonjButton2=newJButton();

JComboBoxjComboBox1=newJComboBox();publicTiankehu(Frameowner,Stringtitle,booleanmodal){super(owner,title,modal);

try{setDefaultCloseOperation(DISPOSE_ON_CLOSE);jbInit();

pack();

}catch(Exceptionexception){exception.printStackTrace();

}

}

publicTiankehu(){

this(newFrame(),"Tiankehu",false);

}

privatevoidjbInit()throwsException{panel1.setLayout(null);

jLabel1.setText("客户种类");jLabel1.setBounds(newRectangle(64,26,62,20));jLabel2.setText("客户名称");

jLabel2.setBounds(newRectangle(64,57,62,20));jLabel3.setText("联系方式");

jLabel3.setBounds(newRectangle(64,94,62,20));jLabel4.setText("地址");

jLabel4.setBounds(newRectangle(64,131,62,15));jLabel5.setText("所属地区");

jLabel5.setBounds(newRectangle(64,168,62,15));jTextField2.setBounds(newRectangle(143,57,97,20));jTextField3.setBounds(newRectangle(143,94,190,20));jTextField4.setBounds(newRectangle(143,131,190,20));jTextField5.setBounds(newRectangle(143,168,190,20));jButton1.setBounds(newRectangle(97,223,81,23));jButton1.setText("保存");

jButton1.addActionListener(new

Tiankehu_jButton1_actionAdapter(this));jButton2.setBounds(newRectangle(219,223,81,23));jButton2.setText("取消");

jButton2.addActionListener(new

Tiankehu_jButton2_actionAdapter(this));jComboBox1.setBounds(newRectangle(143,26,97,20));panel1.add(jTextField2);panel1.add(jTextField3);panel1.add(jTextField4);panel1.add(jTextField5);

panel1.add(jLabel1);panel1.add(jLabel2);

panel1.add(jLabel3);

panel1.add(jLabel4);

panel1.add(jLabel5);

panel1.add(jButton1);

panel1.add(jComboBox1);

panel1.add(jButton2);

jComboBox1.addItem("经销商");

jComboBox1.addItem("零售客户");

this.getContentPane().add(panel1,java.awt.BorderLayout.CENTER);

}

publicvoidjButton1_actionPerformed(ActionEvente){

Stringlei=(String)jComboBox1.getSelectedItem();

Stringnam=jTextField2.getText();

Stringfang=jTextField3.getText();

Stringdi=jTextField4.getText();

Stringqu=jTextField5.getText();

Stringsql="insert(kehuzlei,kehuname,kehulianxi,kehuaddress,suoshudiqu)('"+lei+"','"+nam+"','"+fang+"','"+di+"','"+qu+"')";

if(nam.equals("")||fang.equals("")||di.equals("")||qu.equals("JOptionPane.showMessageDialog(this,"

","温馨提示",JOptionPane.INFORMATION_MESSAGE);

}else{

DataLianjiedlj=newDataLianjie();

dlj.Lianjie();

inta=dlj.charu(sql);

if(a>0){JOptionPane.showMessageDialog(this,"馨提示",JOptionPane.INFORMATION_MESSAGE);jTextField2.setText("");jTextField3.setText("");jTextField4.setText("");jTextField5.setText("");

}else{JOptionPane.showMessageDialog(this,"温馨提示",JOptionPane.INFORMATION_MESSAGE);

}

}

}

khxxvalues

")){资料填写完整在保存!

数据以保存!

","温

数据保存错误!

publicvoidjButton2_actionPerformed(ActionEvente){

jTextField2.setText("");

jTextField3.setText("");

jTextField4.setText("");

jTextField5.setText("");

}

}

classTiankehu_jButton2_actionAdapterimplementsActionListener{privateTiankehuadaptee;

Tiankehu_jButton2_actionAdapter(Tiankehuadaptee){this.adaptee=adaptee;

}

publicvoidactionPerformed(ActionEvente){adaptee.jButton2_actionPerformed(e);

}

}

classTiankehu_jButton1_actionAdapterimplementsActionListener{privateTiankehuadaptee;

Tiankehu_jButton1_actionAdapter(Tiankehuadaptee){this.adaptee=adaptee;

}

publicvoidactionPerformed(ActionEvente){adaptee.jButton1_actionPerformed(e);

}

}

登陆画面:

3.2主界面:

JAVA代码:

package汽车销售管理系统importjava.awt.*;

importjava.awt.Window;

importjavax.swing.*;

importjava.awt.Rectangle;

importjava.awt.event.ActionEvent;

importjava.awt.event.ActionListener;importjavax.swing.BorderFactory;

importjavax.swing.ImageIcon;

importjavax.swing.DebugGraphics;

importjava.awt.Color;

import汽车销售管理系统.ZhuFrame;importjavax.swing.event.AncestorEvent;importjavax.swing.event.AncestorListener;importjavax.swing.border.TitledBorder;importjava.sql.ResultSet;

importjava.sql.*;

importjava.util.Calendar;

*

Title:

*

*

Description:

*

*

Copyright:

Copyright(c)2008

*

*

Company:

*

*@authornotattributable

*@version1.0

*/

publicclassZhuFrameextendsJFrame{

qicheFramemf;

publicZhuFrame(qicheFramemf){

this.mf=mf;

try{

jbInit();

}catch(Exceptionexception){exception.printStackTrace();

}

}

privatevoidjbInit()throwsException{getContentPane().setLayout(null);setSize(newDimension(1024,738));setTitle("汽车销售管理系统");this.getContentPane().setBackground(Color.gray);this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);this.setJMenuBar(jMenuBar1);

jMenu1.setText("文件");

jMenu2.setText("帮助");

jMenuItem1.setText("用户管理");jMenuItem1.addActionListener(new

ZhuFrame_jMenuItem1_actionAdapter(this));jMenuItem2.setText("退出系统");jMenuItem2.addActionListener(new

ZhuFrame_jMenuItem2_actionAdapter(this));jMenuItem3.setText("关于");

jMenuItem3.addActionListener(new

ZhuFrame_jMenuItem3_actionAdapter(this));jLabel1.setBackground(Color.blue);

jLabel1.setBorder(BorderFactory.createEtchedBorder());jLabel1.setText("");

jLabel1.setBounds(newRectangle(11,1,989,120));jLabel1.addAncestorListener(new

ZhuFrame_jLabel1_ancestorAdapter(this));jLabel4.setBackground(Color.blue);jLabel4.setForeground(SystemColor.inactiveCaption);jLabel4.setBorder(BorderFactory.createRaisedBevelBorder());jLabel4.setBounds(newRectangle(11,647,993,27));jButton2.setBounds(newRectangle(188,23,76,77));jButton2.setIcon(ruku);

jButton2.setHorizontalTextPosition(SwingConstants.CENTER);jButton2.addActionListener(new

ZhuFrame_jButton2_actionAdapter(this));jButton3.setBounds(newRectangle(311,23,76,77));jButton3.setIcon(quankuan);

jButton3.setHorizontalTextPosition(SwingConstants.CENTER);jButton3.addActionListener(new

ZhuFrame_jButton3_actionAdapter(this));jButton4.setBounds(newRectangle(682,23,76,77));

jButton4.setIcon(suoding);jButton4.setHorizontalTextPosition(SwingConstants.CENTER);jButton4.addActionListener(new

ZhuFrame_jButton4_actionAdapter(this));jButton4.setVerticalTextPosition(AbstractButton.CENTER);jButton5.setBounds(newRectangle(556,23,76,77));jButton5.setIcon(kucun);

jButton5.setHorizontalTextPosition(SwingConstants.CENTER);jButton5.addActionListener(new

ZhuFrame_jButton5_actionAdapter(this));jButton6.setBounds(newRectangle(433,23,76,77));jButton6.setIcon(qiankuan);

jButton6.setHorizontalTextPosition(SwingConstants.CENTER);jButton6.addActionListener(new

ZhuFrame_jButton6_actionAdapter(this));jButton7.setBounds(newRectangle(21,187,118,35));jButton7.setIcon(jiben);

jButton7.setText("基本信息");jButton7.addActionListener(new

ZhuFrame_jButton7_actionAdapter(this));jButton8.setBounds(newRectangle(21,266,118,35));jButton8.setIcon(jin);

jButton8.setText("进货入库");jButton8.addActionListener(new

ZhuFrame_jButton8_actionAdapter(this));jButton9.setBounds(newRectangle(21,343,118,35));jButton9.setIcon(xiao);

jButton9.setText("销售管理");jButton9.addActionListener(new

ZhuFrame_jButton9_actionAdapter(this));jButton

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 经管营销 > 销售营销

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1