资源预览内容
第1页 / 共100页
第2页 / 共100页
第3页 / 共100页
第4页 / 共100页
第5页 / 共100页
第6页 / 共100页
第7页 / 共100页
第8页 / 共100页
第9页 / 共100页
第10页 / 共100页
亲,该文档总共100页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
工厂销售管理系统源程序清单课题名:工厂销售管理系统课题号:第15组小组组长:柳超小组成员:张玉进,高方,吴攀,李泉,何晶晶武汉科技大学电子技术学电子系058503班软件工程实践课题主控模块:org.chaolaoban.mainpackage org.chaolaoban.main;/* * author chaolaoban * * 创建标识:071213 * 修改标识:071214 */import java.awt.Color;import java.awt.Font;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JOptionPane;import javax.swing.JPasswordField;import javax.swing.JTextField;public class FsmsMs extends JFrame private static final long serialVersionUID = -4634690259142971856L;private JPasswordField PasswordField;private JTextField textField;/* * Launch the application * param args */public static void main(String args) try FsmsMs frame = new FsmsMs();frame.setVisible(true);frame.setSize(500, 375);frame.setResizable(false); catch (Exception e) e.printStackTrace();/* * Create the frame */public FsmsMs() super();getContentPane().setBackground(new Color(250, 235, 215);getContentPane().setLayout(null);setTitle(登陆工厂销售管理系统);setBounds(450, 200, 500, 375);setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);final JLabel label = new JLabel();label.setFont(new Font(, Font.BOLD, 16);label.setBounds(138, 91, 58, 52);getContentPane().add(label);label.setText(用 户名);final JLabel label_1 = new JLabel();label_1.setFont(new Font(, Font.BOLD, 16);label_1.setBounds(138, 174, 58, 24);label_1.setText(密 码);getContentPane().add(label_1);textField = new JTextField();textField.setBounds(225, 107, 147, 24);getContentPane().add(textField);PasswordField = new JPasswordField();PasswordField.setBounds(225, 176, 147, 24);getContentPane().add(PasswordField);final JButton button = new JButton();button.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) String uname = textField.getText();String psw = new String(PasswordField.getPassword();int ifexit = 0;/if(uname = chaolaoban)if(uname.equals(chaolaoban)&psw.equals(008814)FsmsMain Fs = new FsmsMain();Fs.setVisible(true);Fs.setSize(500,375);cancel();else ifexit = JOptionPane.showConfirmDialog(null,输入的用户名或密码不正确,请重新输入!);if(ifexit = JOptionPane.YES_OPTION)return;else dispose();private void cancel() dispose() ;/ TODO 自动生成方法存根);button.setText(确 定);button.setBounds(122, 245, 99, 23);getContentPane().add(button);final JButton button_1 = new JButton();button_1.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) int ifdel = 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);final JLabel label_2 = new JLabel();label_2.setFont(new Font(, Font.BOLD, 22);label_2.setText(工厂销售管理系统);label_2.setBounds(157, 35, 195, 31);getContentPane().add(label_2);package org.chaolaoban.main;/* * author 超老板 * 创建标识:071209 * 修改标识:071210 * 修改标识:071214 * 修改标识:071217 */import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.BoxLayout;import javax.swing.JFrame;import javax.swing.JMenu;import javax.swing.JMenuBar;import javax.swing.JMenuItem;import org.chaolaoban.contract.*;import org.chaolaoban.count.*;import org.chaolaoban.customer.*;import org.chaolaoban.product.*;import org.chaolaoban.search.*;/* * author chaolaoban * 工厂销售管理系统运行主界面 */public class FsmsMain extends JFrame implements ActionListenerprivate static final long serialVersionUID = 104369173311173400L;/* * Launch the application * param args */建立一个菜单栏 final JMenuBar menuBar = new JMenuBar(); /建立合同管理菜单栏 final JMenu menucontract = new JMenu(); final JMenuItem itemAddContract = new JMenuItem(); final JMenuItem itemEditContract = new JMenuItem(); final JMenuItem itemDelContract = new JMenuItem(); /建立打印子菜单栏 final JMenu print = new JMenu(); final JMenuItem itemContractPrint = new JMenuItem(); final JMenuItem itemNumberPrint = new JMenuItem();/建立成品库管理菜单栏 final JMenu menuproduct = new JMenu(); final JMenuItem itemInProduct = new JMenuItem(); final JMenuItem itemOutProduct = new JMenuItem(); final JMenuItem itemInConMoney = new JMenuItem(); final JMenuItem itemEditProIndex = new JMenuItem(); final JMenuItem
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号