您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > 工厂销售管理系统源程序清单
工厂销售管理系统源程序清单课题名:工厂销售管理系统课题号:第15组小组组长:柳超小组成员:张玉进,高方,吴攀,李泉,何晶晶武汉科技大学电子技术学电子系058503班软件工程实践课题-2-主控模块:org.chaolaoban.mainpackageorg.chaolaoban.main;/***@authorchaolaoban**创建标识:071213*修改标识:071214*/importjava.awt.Color;importjava.awt.Font;importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importjavax.swing.JButton;importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.JOptionPane;importjavax.swing.JPasswordField;importjavax.swing.JTextField;publicclassFsmsMsextendsJFrame{privatestaticfinallongserialVersionUID=-4634690259142971856L;privateJPasswordFieldPasswordField;privateJTextFieldtextField;/***Launchtheapplication*@paramargs*/publicstaticvoidmain(Stringargs[]){try{FsmsMsframe=newFsmsMs();frame.setVisible(true);frame.setSize(500,375);frame.setResizable(false);}catch(Exceptione){e.printStackTrace();}}/***Createtheframe*/publicFsmsMs(){super();getContentPane().setBackground(newColor(250,235,215));-3-getContentPane().setLayout(null);setTitle(登陆工厂销售管理系统);setBounds(450,200,500,375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);finalJLabellabel=newJLabel();label.setFont(newFont(,Font.BOLD,16));label.setBounds(138,91,58,52);getContentPane().add(label);label.setText(用户名);finalJLabellabel_1=newJLabel();label_1.setFont(newFont(,Font.BOLD,16));label_1.setBounds(138,174,58,24);label_1.setText(密码);getContentPane().add(label_1);textField=newJTextField();textField.setBounds(225,107,147,24);getContentPane().add(textField);PasswordField=newJPasswordField();PasswordField.setBounds(225,176,147,24);getContentPane().add(PasswordField);finalJButtonbutton=newJButton();button.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEvente){Stringuname=textField.getText();Stringpsw=newString(PasswordField.getPassword());intifexit=0;//if(uname=chaolaoban)if(uname.equals(chaolaoban)&psw.equals(008814)){FsmsMainFs=newFsmsMain();Fs.setVisible(true);Fs.setSize(500,375);cancel();}elseifexit=JOptionPane.showConfirmDialog(null,输入的用户名或密码不正确,请重新输入!);if(ifexit==JOptionPane.YES_OPTION){-4-return;}else{dispose();}}privatevoidcancel(){dispose();//TODO自动生成方法存根}});button.setText(确定);button.setBounds(122,245,99,23);getContentPane().add(button);finalJButtonbutton_1=newJButton();button_1.addActionListener(newActionListener(){publicvoidactionPerformed(ActionEvente){intifdel=JOptionPane.showConfirmDialog(null,真的要退出吗?);if(ifdel==JOptionPane.YES_OPTION){dispose();}else{return;}}});button_1.setText(退出);button_1.setBounds(313,245,99,23);getContentPane().add(button_1);finalJLabellabel_2=newJLabel();label_2.setFont(newFont(,Font.BOLD,22));label_2.setText(工厂销售管理系统);label_2.setBounds(157,35,195,31);getContentPane().add(label_2);}}packageorg.chaolaoban.main;/***@author超老板*创建标识:071209*修改标识:071210-5-*修改标识:071214*修改标识:071217*/importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener;importjavax.swing.BoxLayout;importjavax.swing.JFrame;importjavax.swing.JMenu;importjavax.swing.JMenuBar;importjavax.swing.JMenuItem;importorg.chaolaoban.contract.*;importorg.chaolaoban.count.*;importorg.chaolaoban.customer.*;importorg.chaolaoban.product.*;importorg.chaolaoban.search.*;/***@authorchaolaoban*工厂销售管理系统运行主界面*/publicclassFsmsMainextendsJFrameimplementsActionListener{privatestaticfinallongserialVersionUID=104369173311173400L;/***Launchtheapplication*@paramargs*///建立一个菜单栏finalJMenuBarmenuBar=newJMenuBar();//建立合同管理菜单栏finalJMenumenucontract=newJMenu();finalJMenuItemitemAddContract=newJMenuItem();finalJMenuItemitemEditContract=newJMenuItem();finalJMenuItemitemDelContract=newJMenuItem();//建立打印子菜单栏finalJMenuprint=newJMenu();finalJMenuItemitemContractPrint=newJMenuItem();finalJMenuItemitemNumberPrint=newJMenuItem();//建立成品库管理菜单栏finalJMenumenuproduct=newJMenu();finalJMenuItemitemInProduct=newJMenuItem();finalJMenuItemitemOutProduct=newJMenuItem();finalJMenuItemitemInConMoney=newJMenuItem();finalJMenuItemitemEditProIndex=newJMenuItem();finalJMenuItemitemQuitProduct=newJMenuItem();-6-finalJMenuItemitemEditProduct=newJMenuItem();finalJMenuItemitemSearchProIndex=newJMenuItem();//建立随机查询菜单栏finalJMenumenusearch=newJMenu();finalJMenuItemitemContractSearch=newJMenuItem();finalJMenuItemitemCustomerSearch=newJMenuItem();finalJMenuItemitemPaySearch=newJMenuItem();finalJMenuItemitemProductSearch=newJMenuItem();finalJMenuItemitemContExecuteSearch=newJMenuItem();finalJMenuItemitemDeliverySearch=newJMenuItem();//建立打印及统计报表菜单栏finalJMenumenucount=newJMenu();finalJMenuItemitemYearCount=newJMenuItem();finalJMenuItemitemProductCount=newJMenuItem();//建立客户管理菜单栏finalJMenumenucustomer=newJMenu();finalJMenuItemitemCustomerSearch_1=newJMenuItem();finalJMenuItemitemCustomerPrint=newJMenuItem();finalJMenuItemitemOweSearch=newJMenuItem();finalJMenuItemitemLevelSearch=newJMenuItem();/*publicstaticvoidmain(Stringargs[]){try{FsmsMainframe=newFsmsMain();frame.setVisible(true);frame.setResizable(false);frame.setSize(500,375);}catch(Exceptione){e.printStackTrace();}}*//***Createtheframe*/publicFsmsMain(){super();//enableEvents(AWTEvent.WINDOW_EVENT_MASK);setTitle(工厂销售管理系
本文标题:工厂销售管理系统源程序清单
链接地址:https://www.777doc.com/doc-1626566 .html