**学院计算机科学系JA V A课程设计报告题目:汽车销售管理系统系别:计算机系专业班级:计算机科学与技术姓名:李***学号: 081914***指导老师: *******时间: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;/*** <p>Title: </p>** <p>Description: </p>** <p>Copyright: Copyright (c) 2008</p>** <p>Company: </p>** @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(newTiankehu_jButton1_actionAdapter(this));jButton2.setBounds(new Rectangle(219, 223, 81, 23));jButton2.setText("取消");jButton2.addActionListener(newTiankehu_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,"资料填写完整在保存!","温馨提示",RMATION_MESSAGE);}else{DataLianjie dlj=new DataLianjie();dlj.Lianjie();int a=dlj.charu(sql);if(a>0){JOptionPane.showMessageDialog(this,"数据以保存!","温馨提示",RMATION_MESSAGE);jTextField2.setText("");jTextField3.setText("");jTextField4.setText("");jTextField5.setText("");}else{JOptionPane.showMessageDialog(this,"数据保存错误!","温馨提示",RMATION_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;/*** <p>Title: </p>** <p>Description: </p>** <p>Copyright: Copyright (c) 2008</p>** <p>Company: </p>** @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(newZhuFrame_jMenuItem1_actionAdapter(this));jMenuItem2.setText("退出系统");jMenuItem2.addActionListener(newZhuFrame_jMenuItem2_actionAdapter(this));jMenuItem3.setText("关于");jMenuItem3.addActionListener(newZhuFrame_jMenuItem3_actionAdapter(this));jLabel1.setBackground(Color.blue);jLabel1.setBorder(BorderFactory.createEtchedBorder());jLabel1.setText("");jLabel1.setBounds(new Rectangle(11, 1, 989, 120));jLabel1.addAncestorListener(newZhuFrame_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(newZhuFrame_jButton2_actionAdapter(this));jButton3.setBounds(new Rectangle(311, 23, 76, 77));jButton3.setIcon(quankuan);jButton3.setHorizontalTextPosition(SwingConstants.CENTER);jButton3.addActionListener(newZhuFrame_jButton3_actionAdapter(this));jButton4.setBounds(new Rectangle(682, 23, 76, 77));jButton4.setIcon(suoding);jButton4.setHorizontalTextPosition(SwingConstants.CENTER);jButton4.addActionListener(newZhuFrame_jButton4_actionAdapter(this));jButton4.setVerticalTextPosition(AbstractButton.CENTER);jButton5.setBounds(new Rectangle(556, 23, 76, 77));jButton5.setIcon(kucun);jButton5.setHorizontalTextPosition(SwingConstants.CENTER);jButton5.addActionListener(newZhuFrame_jButton5_actionAdapter(this));jButton6.setBounds(new Rectangle(433, 23, 76, 77));jButton6.setIcon(qiankuan);jButton6.setHorizontalTextPosition(SwingConstants.CENTER);jButton6.addActionListener(newZhuFrame_jButton6_actionAdapter(this));jButton7.setBounds(new Rectangle(21, 187, 118, 35));jButton7.setIcon(jiben);jButton7.setText("基本信息");jButton7.addActionListener(newZhuFrame_jButton7_actionAdapter(this));jButton8.setBounds(new Rectangle(21, 266, 118, 35));jButton8.setIcon(jin);jButton8.setText("进货入库");jButton8.addActionListener(newZhuFrame_jButton8_actionAdapter(this));jButton9.setBounds(new Rectangle(21, 343, 118, 35));jButton9.setIcon(xiao);jButton9.setText("销售管理");jButton9.addActionListener(newZhuFrame_jButton9_actionAdapter(this));jButton10.setBounds(new Rectangle(21, 425, 118, 35));jButton10.setIcon(ling);jButton10.setText("零售管理");jButton10.addActionListener(newZhuFrame_jButton10_actionAdapter(this));jMenuBar1.setBackground(Color.cyan);jMenuBar1.setForeground(Color.blue);jButton11.setBounds(new Rectangle(123, 135, 121, 34));jButton11.setText("客户信息");jButton11.addActionListener(newZhuFrame_jButton11_actionAdapter(this));jButton12.setBounds(new Rectangle(495, 256, 121, 34));jButton12.setText("产品信息");jButton12.addActionListener(newZhuFrame_jButton12_actionAdapter(this));jButton13.setBounds(new Rectangle(314, 196, 121, 34));jButton13.setText("库存信息");jButton13.addActionListener(newZhuFrame_jButton13_actionAdapter(this));jButton16.setBounds(new Rectangle(125, 254, 121, 34));jButton16.setText("供货商信息");jButton16.addActionListener(newZhuFrame_jButton16_actionAdapter(this));jButton18.setBounds(new Rectangle(495, 135, 121, 34));jButton18.setText("员工信息");jButton18.addActionListener(newZhuFrame_jButton18_actionAdapter(this));jButton1.setHorizontalTextPosition(SwingConstants.CENTER);jButton1.setBounds(new Rectangle(63, 23, 76, 77));jButton1.setActionCommand("jButton1");jButton1.setIcon(kehu);jButton1.addActionListener(newZhuFrame_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(newZhuFrame_jButton14_actionAdapter(this));jButton15.setBounds(new Rectangle(125, 256, 121, 34)); jButton15.setText("退库单 ");jButton15.addActionListener(newZhuFrame_jButton15_actionAdapter(this));jButton17.setBounds(new Rectangle(495, 135, 121, 34));jButton17.setText("库存信息");jButton17.addActionListener(newZhuFrame_jButton17_actionAdapter(this));jButton20.setBounds(new Rectangle(123, 135, 121, 34)); jButton20.setText("入库单");jButton20.addActionListener(newZhuFrame_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(newZhuFrame_jButton19_actionAdapter(this));jButton21.setBounds(new Rectangle(123, 135, 121, 34));jButton21.setText("全款销售单");jButton21.addActionListener(newZhuFrame_jButton21_actionAdapter(this));jButton22.setBounds(new Rectangle(495, 135, 121, 34)); jButton22.setText("退库单 ");jButton22.addActionListener(newZhuFrame_jButton22_actionAdapter(this));jButton23.setBounds(new Rectangle(495, 256, 121, 34));jButton23.setText("库存查询");jButton23.addActionListener(newZhuFrame_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(newZhuFrame_jButton24_actionAdapter(this));jButton25.setBounds(new Rectangle(123, 135, 121, 34));jButton25.setText("全款零售");jButton25.addActionListener(newZhuFrame_jButton25_actionAdapter(this));jButton26.setBounds(new Rectangle(495, 135, 121, 34)); jButton26.setText("退库单 ");jButton26.addActionListener(newZhuFrame_jButton26_actionAdapter(this));jButton27.setBounds(new Rectangle(495, 256, 121, 34));jButton27.setText("库存查询");jButton27.addActionListener(newZhuFrame_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(newZhuFrame_jLabel9_ancestorAdapter(this));jLabel10.setText("日期:");jLabel10.setBounds(new Rectangle(843, 4, 41, 15));jLabel11.setBounds(new Rectangle(890, 4, 87, 14));jLabel11.addAncestorListener(newZhuFrame_jLabel11_ancestorAdapter(this));jMenuItem4.setText("修改密码");jMenuItem4.addActionListener(newZhuFrame_jMenuItem4_actionAdapter(this));jButton28.setBounds(new Rectangle(311, 135, 121, 34));jButton28.setText("全款销售列表");jButton28.addActionListener(newZhuFrame_jButton28_actionAdapter(this));jButton29.setBounds(new Rectangle(311, 254, 121, 34));jButton29.setText("欠款销售列表");jButton29.addActionListener(newZhuFrame_jButton29_actionAdapter(this));jButton30.setBounds(new Rectangle(311, 254, 121, 34));jButton30.setText("欠款零售列表");jButton30.addActionListener(newZhuFrame_jButton30_actionAdapter(this));jButton31.setBounds(new Rectangle(311, 135, 121, 34));jButton31.setText("全款零售列表");jButton31.addActionListener(newZhuFrame_jButton31_actionAdapter(this));jLabel2.setBackground(Color.blue);jLabel2.setBorder(BorderFactory.createEtchedBorder());jLabel2.setIcon(image2);jLabel2.setBounds(new Rectangle(8, 121, 158, 519));jMenuBar1.add(jMenu1);jMenuBar1.add(jMenu2);jMenu1.add(jMenuItem4);jMenu1.add(jMenuItem1);jMenu1.add(jMenuItem2);jMenu2.add(jMenuItem3);this.getContentPane().add(jButton7);this.getContentPane().add(jButton8);this.getContentPane().add(jButton10);this.getContentPane().add(jButton1);this.getContentPane().add(jPanel2);this.getContentPane().add(jPanel4);jPanel4.add(jButton25);jPanel4.add(jButton26);jPanel4.add(jButton24);jPanel4.add(jButton27);jPanel4.add(jButton30);jPanel4.add(jButton31);jPanel4.add(jLabel7);this.getContentPane().add(jPanel3);this.getContentPane().add(jPanel5);jPanel5.add(jLabel8);jPanel5.add(jLabel9);jPanel5.add(jLabel10);jPanel5.add(jLabel11);this.getContentPane().add(jLabel4);this.getContentPane().add(jButton4);this.getContentPane().add(jButton2);this.getContentPane().add(jButton3);this.getContentPane().add(jButton6);this.getContentPane().add(jButton5);this.getContentPane().add(jPanel1);jPanel3.add(jButton22);jPanel3.add(jButton21);jPanel3.add(jButton23);jPanel3.add(jButton19);jPanel3.add(jButton28);jPanel3.add(jButton29);jPanel3.add(jLabel6);jPanel2.add(jButton14);jPanel2.add(jButton20);jPanel2.add(jButton15);jPanel2.add(jButton17);jPanel2.add(jLabel5);jPanel1.add(jButton11);jPanel1.add(jButton16);jPanel1.add(jButton13);jPanel1.add(jButton18);jPanel1.add(jButton12);jPanel1.add(jLabel3);this.getContentPane().add(jLabel1);this.getContentPane().add(jButton9);this.getContentPane().add(jLabel2); jPanel1.setVisible(true);jPanel2.setVisible(false);jPanel3.setVisible(false);jPanel4.setVisible(false);}JMenuBar jMenuBar1 = new JMenuBar();JMenu jMenu1 = new JMenu();JMenu jMenu2 = new JMenu();JMenuItem jMenuItem1 = new JMenuItem();JMenuItem jMenuItem2 = new JMenuItem();JMenuItem jMenuItem3 = new JMenuItem();ImageIcon image1 = new ImageIcon("0009.jpg");ImageIcon image2 = new ImageIcon("11.jpg");ImageIcon image3 = new ImageIcon("001.jpg");ImageIcon kucun = new ImageIcon("kucunchaxun.jpg");ImageIcon kehu = new ImageIcon("kehuguanli.jpg");ImageIcon quankuan = new ImageIcon("quankuanxiaoshou.jpg"); ImageIcon qiankuan = new ImageIcon("qiankuanxiaoshou.jpg"); ImageIcon suoding = new ImageIcon("xitongsuoding.jpg");ImageIcon ruku = new ImageIcon("rukudian.jpg");ImageIcon jiben = new ImageIcon("jiben.jpg");ImageIcon jin = new ImageIcon("jin.jpg");ImageIcon xiao = new ImageIcon("xiao.jpg");ImageIcon ling = new ImageIcon("ling.jpg");JLabel jLabel1 = new JLabel(image1);JLabel jLabel4 = new JLabel();JButton jButton2 = new JButton();JButton jButton3 = new JButton();JButton jButton4 = new JButton();JButton jButton5 = new JButton();JButton jButton6 = new JButton();JButton jButton7 = new JButton();JButton jButton8 = new JButton();JButton jButton9 = new JButton();JButton jButton10 = new JButton();JButton jButton11 = new JButton();JButton jButton12 = new JButton();JButton jButton13 = new JButton();JButton jButton16 = new JButton();JButton jButton18 = new JButton();TitledBorder titledBorder1 = new TitledBorder("");JButton jButton1 = new JButton();JPanel jPanel1 = new JPanel();JLabel jLabel3 = new JLabel();JPanel jPanel2 = new JPanel();JButton jButton14 = new JButton();JButton jButton15 = new JButton();JButton jButton17 = new JButton();JButton jButton20 = new JButton();JLabel jLabel5 = new JLabel();JPanel jPanel3 = new JPanel();JButton jButton19 = new JButton();JButton jButton21 = new JButton();JButton jButton22 = new JButton();JButton jButton23 = new JButton();JLabel jLabel6 = new JLabel();JPanel jPanel4 = new JPanel();JButton jButton24 = new JButton();JButton jButton25 = new JButton();JButton jButton26 = new JButton();JButton jButton27 = new JButton();JLabel jLabel7 = new JLabel();JPanel jPanel5 = new JPanel();JLabel jLabel8 = new JLabel();JLabel jLabel9 = new JLabel();JLabel jLabel10 = new JLabel();JLabel jLabel11 = new JLabel();JMenuItem jMenuItem4 = new JMenuItem();JButton jButton28 = new JButton();JButton jButton29 = new JButton();JButton jButton30 = new JButton();JButton jButton31 = new JButton();JLabel jLabel2 = new JLabel();public void jMenuItem2_actionPerformed(ActionEvent e) {int a = JOptionPane.showConfirmDialog(this, "您真的要退出吗?", "退出提示",JOptionPane.YES_NO_OPTION);if(a==0){System.exit(0);}}public void jMenuItem3_actionPerformed(ActionEvent e) {Guanyu gy = new Guanyu(this, "关于", true);gy.setSize(420, 320);Dimension gs = gy.getPreferredSize();Dimension fs = getSize();Point loc = getLocation();gy.setLocation((fs.width - gs.width) / 4 + loc.x,(fs.width - gs.height) / 4 + loc.y);gy.setModal(true);gy.setVisible(true);}//public void jButton18_actionPerformed(ActionEvent e) {YgxxFrame yg = new YgxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = yg.getSize();yg.setLocation(182, 187);yg.setVisible(true);}public void jLabel1_ancestorAdded(AncestorEvent event) {}public void jButton2_actionPerformed(ActionEvent e) {Zengjiakucun zjkc = new Zengjiakucun(this, "入库单", true);zjkc.setSize(405, 350);Dimension ysize = zjkc.getPreferredSize();Dimension fsize = getSize();zjkc.setLocation(450, 220);zjkc.setModal(true);zjkc.setVisible(true);}//实现按钮切换面板public void jButton8_actionPerformed(ActionEvent e) {jPanel1.setVisible(false);jPanel2.setVisible(true);jPanel3.setVisible(false);jPanel4.setVisible(false);}//实现按钮切换面板public void jButton7_actionPerformed(ActionEvent e) {jPanel1.setVisible(true);jPanel2.setVisible(false);jPanel3.setVisible(false);jPanel4.setVisible(false);}//实现按钮切换面板public void jButton9_actionPerformed(ActionEvent e) {jPanel1.setVisible(false);jPanel2.setVisible(false);jPanel3.setVisible(true);jPanel4.setVisible(false);}//实现按钮切换面板public void jButton10_actionPerformed(ActionEvent e) {jPanel1.setVisible(false);jPanel2.setVisible(false);jPanel3.setVisible(false);jPanel4.setVisible(true);}public void jButton16_actionPerformed(ActionEvent e) {GhsFrame ghs = new GhsFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = ghs.getSize();ghs.setLocation(182, 187);ghs.setVisible(true);}public void jButton13_actionPerformed(ActionEvent e) {KcxxFrame kc = new KcxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = kc.getSize();kc.setLocation(182, 187);kc.setVisible(true);}public void jButton12_actionPerformed(ActionEvent e) {CpxxFrame cp = new CpxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = cp.getSize();cp.setLocation(182, 187);cp.setVisible(true);}public void jButton11_actionPerformed(ActionEvent e) {KhxxFrame ku = new KhxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = ku.getSize();ku.setLocation(182, 187);ku.setVisible(true);}public void jButton14_actionPerformed(ActionEvent e) {CpxxFrame cp = new CpxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = cp.getSize();cp.setLocation(182, 187);cp.setVisible(true);}public void jButton17_actionPerformed(ActionEvent e) {KcxxFrame kc = new KcxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = kc.getSize();kc.setLocation(182, 187);kc.setVisible(true);}public void jButton23_actionPerformed(ActionEvent e) {KcxxFrame kc = new KcxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = kc.getSize();kc.setLocation(182, 187);}public void jButton27_actionPerformed(ActionEvent e) {KcxxFrame kc = new KcxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = kc.getSize();kc.setLocation(182, 187);kc.setVisible(true);}public void jButton1_actionPerformed(ActionEvent e) {//调用客户信息窗口KhxxFrame ku = new KhxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = ku.getSize();ku.setLocation(182, 187);ku.setVisible(true);}public void jButton3_actionPerformed(ActionEvent e) {//调用全款出库单Quankuanxiaoshou gy = new Quankuanxiaoshou(this, "全款出库单", true);gy.setSize(585, 350);Dimension gs = gy.getPreferredSize();Dimension fs = getSize();Point loc = getLocation();gy.setLocation((fs.width - gs.width) / 4 + loc.x,(fs.width - gs.height) / 4 + loc.y);gy.setModal(true);gy.setVisible(true);}public void jButton6_actionPerformed(ActionEvent e) {//调用欠款销售出库单Qiankuanxiaoshou gy = new Qiankuanxiaoshou(this, "欠款出库单", true);Dimension gs = gy.getPreferredSize();Dimension fs = getSize();Point loc = getLocation();gy.setLocation((fs.width - gs.width) / 4 + loc.x,(fs.width - gs.height) / 4 + loc.y);gy.setModal(true);gy.setVisible(true);}public void jButton5_actionPerformed(ActionEvent e) {//调用库存查询窗口KcxxFrame kc = new KcxxFrame();Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();Dimension frameSize = kc.getSize();kc.setLocation(182, 187);kc.setVisible(true);}public void jButton4_actionPerformed(ActionEvent e) {//调用登陆窗口锁定系统Suoding sd = new Suoding(this, "[用户登陆]", true);sd.setSize(400, 300);Dimension gs = sd.getPreferredSize();Dimension fs = getSize();Point loc = getLocation();sd.setLocation((fs.width - gs.width) / 4 + loc.x,(fs.width - gs.height) / 4 + loc.y);sd.setModal(true);sd.setVisible(true);}public void jLabel9_ancestorAdded(AncestorEvent event) {jLabel9.setText(); //显示当前操作员姓名}public void jLabel11_ancestorAdded(AncestorEvent event) {/**获取本地系统时间*/Calendar cal = Calendar.getInstance();int nian = cal.get(Calendar.YEAR);int yue1 = cal.get(Calendar.MONTH);int ri = cal.get(Calendar.DATE);int yue = yue1 + 1;jLabel11.setText("" + nian + "-" + yue + "-" + ri + "");}public void jButton20_actionPerformed(ActionEvent e) {Zengjiakucun zjkc = new Zengjiakucun(this, "入库单", true);zjkc.setSize(405, 350);Dimension ysize = zjkc.getPreferredSize();Dimension fsize = getSize();zjkc.setLocation(450, 220);zjkc.setModal(true);zjkc.setVisible(true);}public void jButton15_actionPerformed(ActionEvent e) {Zengjiakucun zjkc = new Zengjiakucun(this, "退库单", true);zjkc.setSize(405, 350);Dimension ysize = zjkc.getPreferredSize();Dimension fsize = getSize();zjkc.setLocation(450, 220);zjkc.setModal(true);zjkc.setVisible(true);}public void jButton22_actionPerformed(ActionEvent e) {Zengjiakucun zjkc = new Zengjiakucun(this, "退库单", true);zjkc.setSize(405, 350);Dimension ysize = zjkc.getPreferredSize();Dimension fsize = getSize();zjkc.setLocation(450, 220);zjkc.setModal(true);zjkc.setVisible(true);。