汽车销售管理系统课程设计报告_第1页
汽车销售管理系统课程设计报告_第2页
汽车销售管理系统课程设计报告_第3页
汽车销售管理系统课程设计报告_第4页
汽车销售管理系统课程设计报告_第5页
已阅读5页,还剩39页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

*学院计算机科学系JAVA课程设计报告题 目:汽车销售管理系统系 别: 计 算 机 系 专业班级: 计算机科学与技术 姓 名: 李* 学 号: * 指导老师: * 时 间:20*/*/*20*/*/*20*.6.11需求分析1.1设计需求分析: 在信息技术飞速发展的今天,各行各业使用计算机在辅助协调和管理自身工作的需求越来越高。人们都希望通过计算机技术来实现对各种事务的自动化管理。目前,企业办公自动化正朝着多功能,复合化和系统化的方向发展,汽车销售管理系统是企业办公自动化的一种体现.销售管理也是企业主要的事务管理之一,是提高企业竞争力的重要环节。企业销售管理作为ERP的一部分,在企业管理中占重要地位,其计算机化在发达国家中也已经达到了相当高的水平。目前,我国企业销售管理方面的软件系统也为数不少,但这些系统的实用性并不强,它们普遍存在以下缺陷:(1)针对国内众多中小企业迫切需要信息化管理,但处在初步需求阶段,无法承受诸如大型ERP、财务销售仓储一体信息化管理的中级阶段。自主开发的软件往往平台较低且功能单一,商用软件又过于注重通用性,无法充分考虑每一个具体单位、具体部门的实际需求。(2)销售数据标准化程度较差,难以保证数据的唯一性和权威性。(3)忽略了对销售数据的分析,使得销售经理需查询帐单,才能了解销售情况,在一定程度上的影响了对市场的判断和预测。(4)没有注重对客户的管理,严重影响了企业对客户需求的了解,难以把握市场动态。1. 2系统概要情况: 汽车销售管理系统主要是对商品从购入到入库到销售出库中各个环节所发生的事件进行记录,以及对商品仓库的日常事务进行处理。能随时查询仓库的库存和已售商品。可根据进货统计、销售统计,来决定采购计划和暂停采购的商品清单,提高资金利用率。能随时进行员工的业绩查询、厂商查询等,提高企业的科学管理水平。(1) 管理员登陆:输出正确的账号密码,进行登陆 (2) 基本信息:厂家查询产品.员工.客户.供应商和库存信息(3) 进货入库:厂家查询入库车辆信息和库存车辆信息(4) 全售管理:查询经销商的进货 退货情况(5) 零售管理:查询零售商的进货 退货情况(6) 文件:进行的管理员密码修改.用户管理。退出概要设计2.1 开发工具本系统开发使用的软件是JDK1.5,访问的数据库是SQL Server2000数据库,在开发过程中,体会到使用JDK1.5工具来开发的软件,能够快速完成,是繁杂的开发过程待以改善。JAVA是一种开发性能非常优秀的面向对象的数据库应用开发工具,它除了能够设计传统的高性能、基于客户/服务器(Client/Server)体系结构的应用系统外,也能够用于开发基于Internet的应用系统。Java语言是一种纯面向对象的程序设计高级语言,Java平台则是一个完整的软件开发体系平台。它具有简单性、面向对象性、分布式、解释性、健壮性、安全性、结构中立性、可移植性、高效性、多线程、动态性等特点,使用Java语言开发的软件项目现在随处可见。JAVA支持应用系统同时应用系统同时访问多种数据库,这既包括诸如Oracle、SQL Server2000、Mysql之类的大型数据库,也包括VB之类的支持ODBC接口的小型数据库。直接使用这个数据库是个质优价廉的选择。学生选课管理系统采用面向对象的、可视化的数据库应用系统技术完成了对学生选课的管理,采用了JDK开发环境,并使用本地SQL Server2000数据库。该系统可以满足管理员日常工作的需要,实现无纸化办公,提供了相同数据源多库表的查询,为学生和的管理提供了方便、快捷的操作方式。2.2 功能设计 2.2.1 厂家可以查询车辆信息 出货 进货等信息,其基本功能模块如下A、基本信息管理包含车辆.员工.客户.供应商和库存B、进货管理模块包含入库.退库。库存。产品信息C、销售理模块包全款销售。欠款销售D、零售理模块包含全款零售。欠款零售E、文件块包含密码修改.用户管理和退出2.2.2、数据E-R图:员工:姓名 性别 部门 年龄 地址客户:产品 地区 联系方式供应商:车型 价格 联系方式车型:供应 价格仓库:数量 车型 价格 供应商2.2.3程序流程系统的执行从用户的登录开始,依据登录成功后根据用户的选择来进行后续的处理,直到用户退出系统或关闭程序为止,其间应对用户的选择做出判断及异常处理3数据库逻辑设计如下(SQL):3.1登录界面:这个界面主要要实现的就是登陆汽车销售系统,首要填写正确的用户名合密码:代码如下package 汽车销售管理系统;import java.awt.*;import javax.swing.*;import java.awt.BorderLayout;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;/* * Title: * * Description: * * Copyright: Copyright (c) 2008 * * Company: * * author not attributable * version 1.0 */public class Tiankehu extends JDialog JPanel panel1 = new JPanel(); JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JLabel jLabel3 = new JLabel(); JLabel jLabel4 = new JLabel(); JLabel jLabel5 = new JLabel(); JTextField jTextField2 = new JTextField(); JTextField jTextField3 = new JTextField(); JTextField jTextField4 = new JTextField(); JTextField jTextField5 = new JTextField(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JComboBox jComboBox1 = new JComboBox(); public Tiankehu(Frame owner, String title, boolean modal) super(owner, title, modal); try setDefaultCloseOperation(DISPOSE_ON_CLOSE); jbInit(); pack(); catch (Exception exception) exception.printStackTrace(); public Tiankehu() this(new Frame(), Tiankehu, false); private void jbInit() throws Exception panel1.setLayout(null); jLabel1.setText(客户种类); jLabel1.setBounds(new Rectangle(64, 26, 62, 20); jLabel2.setText(客户名称); jLabel2.setBounds(new Rectangle(64, 57, 62, 20); jLabel3.setText(联系方式); jLabel3.setBounds(new Rectangle(64, 94, 62, 20); jLabel4.setText(地址); jLabel4.setBounds(new Rectangle(64, 131, 62, 15); jLabel5.setText(所属地区); jLabel5.setBounds(new Rectangle(64, 168, 62, 15); jTextField2.setBounds(new Rectangle(143, 57, 97, 20); jTextField3.setBounds(new Rectangle(143, 94, 190, 20); jTextField4.setBounds(new Rectangle(143, 131, 190, 20); jTextField5.setBounds(new Rectangle(143, 168, 190, 20); jButton1.setBounds(new Rectangle(97, 223, 81, 23); jButton1.setText(保存); jButton1.addActionListener(new Tiankehu_jButton1_actionAdapter(this); jButton2.setBounds(new Rectangle(219, 223, 81, 23); jButton2.setText(取消); jButton2.addActionListener(new Tiankehu_jButton2_actionAdapter(this); jComboBox1.setBounds(new Rectangle(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); public void jButton1_actionPerformed(ActionEvent e) String lei=(String)jComboBox1.getSelectedItem(); String nam=jTextField2.getText(); String fang=jTextField3.getText(); String di=jTextField4.getText(); String qu=jTextField5.getText(); String sql=insert khxx (kehuzlei,kehuname,kehulianxi,kehuaddress,suoshudiqu) values (+lei+,+nam+,+fang+,+di+,+qu+); if(nam.equals()|fang.equals()|di.equals()|qu.equals() JOptionPane.showMessageDialog(this,资料填写完整在保存!,温馨提示,JOptionPane.INFORMATION_MESSAGE); else DataLianjie dlj=new DataLianjie(); dlj.Lianjie(); int a=dlj.charu(sql); if(a0) JOptionPane.showMessageDialog(this,数据以保存!,温馨提示,JOptionPane.INFORMATION_MESSAGE); jTextField2.setText(); jTextField3.setText(); jTextField4.setText(); jTextField5.setText(); else JOptionPane.showMessageDialog(this,数据保存错误!,温馨提示,JOptionPane.INFORMATION_MESSAGE); public void jButton2_actionPerformed(ActionEvent e) jTextField2.setText(); jTextField3.setText(); jTextField4.setText(); jTextField5.setText(); class Tiankehu_jButton2_actionAdapter implements ActionListener private Tiankehu adaptee; Tiankehu_jButton2_actionAdapter(Tiankehu adaptee) this.adaptee = adaptee; public void actionPerformed(ActionEvent e) adaptee.jButton2_actionPerformed(e); class Tiankehu_jButton1_actionAdapter implements ActionListener private Tiankehu adaptee; Tiankehu_jButton1_actionAdapter(Tiankehu adaptee) this.adaptee = adaptee; public void actionPerformed(ActionEvent e) adaptee.jButton1_actionPerformed(e); 登陆画面:3.2主界面:JAVA代码:package 汽车销售管理系统;import java.awt.*;import java.awt.Window;import javax.swing.*;import java.awt.Rectangle;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.BorderFactory;import javax.swing.ImageIcon;import javax.swing.DebugGraphics;import java.awt.Color;import 汽车销售管理系统.ZhuFrame;import javax.swing.event.AncestorEvent;import javax.swing.event.AncestorListener;import javax.swing.border.TitledBorder;import java.sql.ResultSet;import java.sql.*;import java.util.Calendar;/* * Title: * * Description: * * Copyright: Copyright (c) 2008 * * Company: * * author not attributable * version 1.0 */public class ZhuFrame extends JFrame qicheFrame mf; public ZhuFrame(qicheFrame mf) this.mf = mf; try jbInit(); catch (Exception exception) exception.printStackTrace(); private void jbInit() throws Exception getContentPane().setLayout(null); setSize(new Dimension(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(new Rectangle(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(new Rectangle(11, 647, 993, 27); jButton2.setBounds(new Rectangle(188, 23, 76, 77); jButton2.setIcon(ruku); jButton2.setHorizontalTextPosition(SwingConstants.CENTER); jButton2.addActionListener(new ZhuFrame_jButton2_actionAdapter(this); jButton3.setBounds(new Rectangle(311, 23, 76, 77); jButton3.setIcon(quankuan); jButton3.setHorizontalTextPosition(SwingConstants.CENTER); jButton3.addActionListener(new ZhuFrame_jButton3_actionAdapter(this); jButton4.setBounds(new Rectangle(682, 23, 76, 77); jButton4.setIcon(suoding); jButton4.setHorizontalTextPosition(SwingConstants.CENTER); jButton4.addActionListener(new ZhuFrame_jButton4_actionAdapter(this); jButton4.setVerticalTextPosition(AbstractButton.CENTER); jButton5.setBounds(new Rectangle(556, 23, 76, 77); jButton5.setIcon(kucun); jButton5.setHorizontalTextPosition(SwingConstants.CENTER); jButton5.addActionListener(new ZhuFrame_jButton5_actionAdapter(this); jButton6.setBounds(new Rectangle(433, 23, 76, 77); jButton6.setIcon(qiankuan); jButton6.setHorizontalTextPosition(SwingConstants.CENTER); jButton6.addActionListener(new ZhuFrame_jButton6_actionAdapter(this); jButton7.setBounds(new Rectangle(21, 187, 118, 35); jButton7.setIcon(jiben); jButton7.setText(基本信息); jButton7.addActionListener(new ZhuFrame_jButton7_actionAdapter(this); jButton8.setBounds(new Rectangle(21, 266, 118, 35); jButton8.setIcon(jin); jButton8.setText(进货入库); jButton8.addActionListener(new ZhuFrame_jButton8_actionAdapter(this); jButton9.setBounds(new Rectangle(21, 343, 118, 35); jButton9.setIcon(xiao); jButton9.setText(销售管理); jButton9.addActionListener(new ZhuFrame_jButton9_actionAdapter(this); jButton10.setBounds(new Rectangle(21, 425, 118, 35); jButton10.setIcon(ling); jButton10.setText(零售管理); jButton10.addActionListener(new ZhuFrame_jButton10_actionAdapter(this); jMenuBar1.setBackground(Color.cyan); jMenuBar1.setForeground(Color.blue); jButton11.setBounds(new Rectangle(123, 135, 121, 34); jButton11.setText(客户信息); jButton11.addActionListener(new ZhuFrame_jButton11_actionAdapter(this); jButton12.setBounds(new Rectangle(495, 256, 121, 34); jButton12.setText(产品信息); jButton12.addActionListener(new ZhuFrame_jButton12_actionAdapter(this); jButton13.setBounds(new Rectangle(314, 196, 121, 34); jButton13.setText(库存信息); jButton13.addActionListener(new ZhuFrame_jButton13_actionAdapter(this); jButton16.setBounds(new Rectangle(125, 254, 121, 34); jButton16.setText(供货商信息); jButton16.addActionListener(new ZhuFrame_jButton16_actionAdapter(this); jButton18.setBounds(new Rectangle(495, 135, 121, 34); jButton18.setText(员工信息); jButton18.addActionListener(new ZhuFrame_jButton18_actionAdapter(this); jButton1.setHorizontalTextPosition(SwingConstants.CENTER); jButton1.setBounds(new Rectangle(63, 23, 76, 77); jButton1.setActionCommand(jButton1); jButton1.setIcon(kehu); jButton1.addActionListener(new ZhuFrame_jButton1_actionAdapter(this); jPanel1.setBorder(BorderFactory.createEtchedBorder(); jPanel1.setBounds(new Rectangle(168, 120, 832, 513); jPanel1.setLayout(null); jLabel3.setIcon(image3); jLabel3.setBounds(new Rectangle( -11, 1, 840, 533); jPanel2.setBorder(BorderFactory.createEtchedBorder(); jPanel2.setBounds(new Rectangle(178, 132, 826, 509); jPanel2.setLayout(null); jButton14.setBounds(new Rectangle(495, 256, 121, 34); jButton14.setText(产品信息); jButton14.addActionListener(new ZhuFrame_jButton14_actionAdapter(this); jButton15.setBounds(new Rectangle(125, 256, 121, 34); jButton15.setText(退库单 ); jButton15.addActionListener(new ZhuFrame_jButton15_actionAdapter(this); jButton17.setBounds(new Rectangle(495, 135, 121, 34); jButton17.setText(库存信息); jButton17.addActionListener(new ZhuFrame_jButton17_actionAdapter(this); jButton20.setBounds(new Rectangle(123, 135, 121, 34); jButton20.setText(入库单); jButton20.addActionListener(new ZhuFrame_jButton20_actionAdapter(this); jLabel5.setIcon(image3); jLabel5.setBounds(new Rectangle( -14, 0, 840, 510); jPanel3.setVisible(false); jPanel3.setBackground(Color.lightGray); jPanel3.setBorder(BorderFactory.createEtchedBorder(); jPanel3.setBounds(new Rectangle(178, 132, 826, 509); jPanel3.setLayout(null); jButton19.setBounds(new Rectangle(125, 254, 121, 36); jButton19.setText(欠款销售单); jButton19.addActionListener(new ZhuFrame_jButton19_actionAdapter(this); jButton21.setBounds(new Rectangle(123, 135, 121, 34); jButton21.setText(全款销售单); jButton21.addActionListener(new ZhuFrame_jButton21_actionAdapter(this); jButton22.setBounds(new Rectangle(495, 135, 121, 34); jButton22.setText(退库单 ); jButton22.addActionListener(new ZhuFrame_jButton22_actionAdapter(this); jButton23.setBounds(new Rectangle(495, 256, 121, 34); jButton23.setText(库存查询); jButton23.addActionListener(new ZhuFrame_jButton23_actionAdapter(this); jLabel6.setIcon(image3); jLabel6.setBounds(new Rectangle( -14, 0, 840, 510); jPanel4.setVisible(false); jPanel4.setBorder(BorderFactory.createEtchedBorder(); jPanel4.setBounds(new Rectangle(178, 132, 826, 509); jPanel4.setLayout(null); jButton24.setBounds(new Rectangle(125, 254, 121, 34); jButton24.setText(欠款零售); jButton24.addActionListener(new ZhuFrame_jButton24_actionAdapter(this); jButton25.setBounds(new Rectangle(123, 135, 121, 34); jButton25.setText(全款零售); jButton25.addActionListener(new ZhuFrame_jButton25_actionAdapter(this); jButton26.setBounds(new Rectangle(495, 135, 121, 34); jButton26.setText(退库单 ); jButton26.addActionListener(new ZhuFrame_jButton26_actionAdapter(this); jButton27.setBounds(new Rectangle(495, 256, 121, 34); jButton27.setText(库存查询); jButton27.addActionListener(new ZhuFrame_jButton27_actionAdapter(this); jLabel7.setIcon(image3); jLabel7.setBounds(new Rectangle( -14, 0, 840, 510); jPanel5.setBackground(SystemColor.inactiveCaptionText); jPanel5.setBounds(new Rectangle(13, 649, 989, 24); jPanel5.setLayout(null); jLabel8.setText(操作员:); jLabel8.setBounds(new Rectangle(16, 4, 56, 16); jLabel9.setBounds(new Rectangle(77, 4, 104, 15); jLabel9.addAncestorListener(new ZhuFrame_jLabel9_ancestorAdapter(this); jLabel10.setText(日期:); jLabel10.setBounds(new Rectangle(843, 4, 41, 15); jLabel11.setBounds(new Rectangle(890, 4, 87, 14); jLabel11.addAncestorListener(new ZhuFrame_jLabel11_ancestorAdapter(this); jMenuItem4.setText(修改密码); jMenuItem4.addActionListener(new ZhuFrame_jMenuItem4_actionAdapter(this); jButton28.setBounds(new Rectangle(311, 135, 121, 34); jButton28.setText(全款销售列表); jButton28.addActionListener(new ZhuFrame_jButton28_actionAdapter(this); jButton29.setBounds(new Rectangle(311, 254, 121, 34); jButton29.setText(欠款销售列表); jButton29.addActionListener(new ZhuFrame_jButton29_actionAdapter(this); jButton30.setBounds(new Rectangle(311, 254, 121, 34); jButton30.setText(欠款零售列表); jButton30.addActionListener(new ZhuFrame_jButton30_actionAdapter(this); jButton31.setBounds(new Rectangle(311, 135, 121, 34); jButton31.setText(全款零售列表); jButton31.addActionListener(new ZhuFrame_jButton31_actionAdapter(this); jLabel2.setBackground(Color.blue); jLabel2.setBorder(BorderFac

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论