收藏 分销(赏)

个人简历录入系统设计报告.doc

上传人:a199****6536 文档编号:4040272 上传时间:2024-07-26 格式:DOC 页数:18 大小:72.54KB
下载 相关 举报
个人简历录入系统设计报告.doc_第1页
第1页 / 共18页
个人简历录入系统设计报告.doc_第2页
第2页 / 共18页
个人简历录入系统设计报告.doc_第3页
第3页 / 共18页
个人简历录入系统设计报告.doc_第4页
第4页 / 共18页
个人简历录入系统设计报告.doc_第5页
第5页 / 共18页
点击查看更多>>
资源描述

1、 兰州商学院陇桥学院 工学系课程设计报告设 计 题 目:个人简历录入系统 系 别:工学系 专 业 (方 向):电子商务 年 级、 班:2011级电子商务班 学 生 姓 名:黄改霞 学 生 学 号:20110671109 指 导 教 师:杨光 2013年 12 月 22 日 目录一、系统开发的背景2二、系统分析与设计2(一)系统功能要求2(二)系统模块结构设计2三、系统的设计与实现4(一)个人基本信息浏览:4(二)专业4(三)学历浏览5(四)性别6(五)姓名7(六)命令按钮8(七)存储文本框9四、系统测试10(一)测试main(String args)函数10(二)专业10(三)学位11(四)功

2、能实现12五、总结12六、附件(代码、部分图表)13 个人简历录入系统一、系统开发的背景为了方便用户的输入和阅读,更多的运用自己所学的知识,也就是学有所用,熟悉java的一些基本函数和接口,做一些基本的信息存储,方便于保存和观看,同时也是一个检查所学知识的运用和检测,因此就用java编写个人简历录入。. 二、系统分析与设计 (一)系统功能要求 编写一个个人简历录入程序,通过文本框录入姓名,通过单选按钮选择性别,通过组合框选择专业(计算机,电子,工商等)和文化程度(大专,本科,硕士,博士等),设置“提交与“取消”两个按键,当用鼠标点击“提交”按键时,在文本框中显示所填写以及选择的信息。当点击“取

3、消”按键退出系统。 1、 个人基本信息(包括姓名、性别、专业、文化程度、等);2、 命令按钮:提交和取消;3、系统的功能详细设计。(二)系统模块结构设计通过对系统功能的分析,个人简历录入综合测评系统功能如图X所示。姓名性别专业学历命令按钮个人简历录入系统存储文本框图1 个人简历录入系统功能图通过上图的功能分析,把整个系统划分为6个模块:1、 个人姓名输入文本框,该模块主要实现:姓名的输入、输出,借住函数JTextField getJTextField()来实现;2、 性别模块,该模块主要实现,个人性别的选择工具:男、女,借助函数JTextField getJTextField()来实现;3、

4、专业模块,该模块主要实现专业在下拉框里的选择,借助函数JComboBox getJComboBox()来实现;4、 学历模块,该模块的主要功能是在下拉框里选择学历,借助函数JComboBox getJComboBox1()来实现;5、 命令按钮,该模块的主要功能是实现信息的存储和取消,借助函数JButton getJButton()来实现;6、 存储文本框,该模块的功能主要是显示个人录入的信息,借助函数JTextArea getJTextArea()来实现。三、系统的设计与实现(一)个人基本信息浏览:分析:首先输出表头,然输出个人简历的基本信息.流程图如图X所示。该模块的具体代码如下所示.St

5、ring strzy=jComboBox.getSelectedItem()。toString();String strwh=jComboBox1.getSelectedItem().toString();jTextArea。setText(姓名:”+strname+”rn”+”性别:”+strsex+rn+专业:”+strzy+rn+”文化:+strwh);(二)专业 主要包含计算机、电子、工商等,首先得输出下拉框,然后选择所需的专业流程图如下: 专业工商计算机电子图2:JComboBox getJComboBox()流程图该模块的主要代码如下:private JComboBox getJC

6、omboBox() if (jComboBox = null) String strcb=计算机,”电子”,工商”;jComboBox = new JComboBox(strcb);jComboBox。setBounds(new Rectangle(62, 108, 93, 18);return jComboBox;(三)学历浏览 学历 主要包含大专、本科、硕士、博士等,在下拉框里能选出自己所修学位。流程图如下: 本科硕士博士大专 图3:JComboBox getJComboBox1() 流程图(四)性别 性别需要是设置选择按钮:男、女,并且只能选一个. 流程图如下: 性别 女男 图4:JTe

7、xtField getJTextField() 流程图该模块的主要代码如下: private JRadioButton getJRadioButton() if (jRadioButton = null) jRadioButton = new JRadioButton();jRadioButton。setBounds(new Rectangle(61, 62, 38, 26);jRadioButton。setText(”男);return jRadioButton;private JRadioButton getJRadioButton1() if (jRadioButton1 = null)

8、 jRadioButton1 = new JRadioButton();jRadioButton1。setBounds(new Rectangle(117, 62, 38, 26);jRadioButton1.setText(女);return jRadioButton1;(五)姓名 主要是实现输入姓名的文本框. 该模块的主要代码如下: private JTextField getJTextField() if (jTextField = null) jTextField = new JTextField();jTextField.setBounds(new Rectangle(61, 24,

9、 180, 18);return jTextField;(六)命令按钮 命令按钮主要是实现提交和取消功能,并且只能选一个:该模块的流程图如下: 命令按钮提交取消 图5:JButton getJButton() 流程图 该模块的主要代码: private JButton getJButton1() if (jButton1 = null) jButton1 = new JButton();jButton1.setBounds(new Rectangle(158, 181, 60, 28);jButton1.setText(”取消”);jButton1。addActionListener(new

10、java。awt。event.ActionListener() public void actionPerformed(java。awt.event.ActionEvent e) System。exit(0););return jButton1; (七)存储文本框 该模块主要实现对所输入和选择信息的存储。 该模块的代码如下: private JTextArea getJTextArea() if (jTextArea = null) jTextArea = new JTextArea();jTextArea。setBounds(new Rectangle(16, 225, 229, 130);

11、return jTextArea;public static void main(String args)new MyLuRu();四、系统测试 (一)测试main(String args)函数测试该函数使用的测试方法,测试的具体步骤,测试用例的选取,测试的结果。图一 (二)专业 主要实现专业的选择 图三 (三)学位 主要是实现了学位的选择 图三 (四)功能实现 输出所有功能 图四 五、总结系统完成了姓名的输入文本框、性别的选择、专业的选择、学位的选择、提交与取消、输出文本框等功能。系统有的代码有些过于复杂不足。我的收获,更加熟悉了java的环境和系统设计的实现,更多的是各函数的设置和接口的实

12、现.主要有:先实现单个模块,因为单个模块的调试比较方便、容易找出错误的地方,单个模块调试运行。然后在进行模块的混合,进行一一混合变混合变调试,这样可以减少调试的难度,不至于很难找出出错的地方。主函数和各个分函数的连接和函数名的定义,不要重复定义、都是private类型的,注意里面的的各变量的定义不要重复,方便于调试。 多看一些关于课本上的接口的处理,有助于自己在处理各模块之间的调整,平时多看看一些关于java的代码,有条件的可以试着调试,这样,自己做设计是就会顺利很多.六、附件(代码、部分图表) import java.awt.BorderLayout;import javax.swing。;

13、import java.awt。Dimension;import java。awt.Rectangle;public class MyLuRu extends JFrame private static final long serialVersionUID = 1L;private JPanel jContentPane = null;private JLabel jLabel = null;private JLabel jLabel1 = null;private JLabel jLabel2 = null;private JLabel jLabel3 = null;private JTe

14、xtField jTextField = null;private JRadioButton jRadioButton = null;private JRadioButton jRadioButton1 = null;private JComboBox jComboBox = null;private JComboBox jComboBox1 = null;private JButton jButton = null;private JButton jButton1 = null;private JTextArea jTextArea = null;private ButtonGroup my

15、bg=new ButtonGroup();/* This is the default constructor/public MyLuRu() super();initialize();/ This method initializes this* return void*/private void initialize() this.setSize(268, 407);this.setContentPane(getJContentPane());this。setTitle(”录入);this.addWindowListener(new java。awt。event。WindowAdapter

16、() public void windowClosing(java.awt。event。WindowEvent e) System.exit(0););this。setVisible(true);/* This method initializes jContentPane* return javax.swing。JPanel/private JPanel getJContentPane() if (jContentPane = null) jLabel3 = new JLabel();jLabel3.setBounds(new Rectangle(16, 150, 65, 18);jLabe

17、l3。setText(”文化程度:”);jLabel2 = new JLabel();jLabel2。setBounds(new Rectangle(16, 108, 39, 18);jLabel2。setText(”专业:);jLabel1 = new JLabel();jLabel1。setBounds(new Rectangle(16, 66, 39, 18);jLabel1.setText(”性别:);jLabel = new JLabel();jLabel.setBounds(new Rectangle(16, 24, 39, 18));jLabel。setText(”姓名:”);j

18、ContentPane = new JPanel();jContentPane。setLayout(null);jContentPane。add(jLabel, null);jContentPane。add(jLabel1, null);jContentPane。add(jLabel2, null);jContentPane.add(jLabel3, null);jContentPane.add(getJTextField(), null);jContentPane。add(getJRadioButton(), null);jContentPane。add(getJRadioButton1()

19、, null);mybg。add(jRadioButton);mybg。add(jRadioButton1);jContentPane.add(getJComboBox(), null);jContentPane.add(getJComboBox1(), null);jContentPane。add(getJButton(), null);jContentPane.add(getJButton1(), null);jContentPane。add(getJTextArea(), null);return jContentPane;/* This method initializes jText

20、Field return javax.swing。JTextField/private JTextField getJTextField() if (jTextField = null) jTextField = new JTextField();jTextField.setBounds(new Rectangle(61, 24, 180, 18));return jTextField;/* This method initializes jRadioButton* return javax。swing。JRadioButton/private JRadioButton getJRadioBu

21、tton() if (jRadioButton = null) jRadioButton = new JRadioButton();jRadioButton。setBounds(new Rectangle(61, 62, 38, 26);jRadioButton.setText(男);return jRadioButton;/* This method initializes jRadioButton1* return javax。swing。JRadioButton/private JRadioButton getJRadioButton1() if (jRadioButton1 = nul

22、l) jRadioButton1 = new JRadioButton();jRadioButton1。setBounds(new Rectangle(117, 62, 38, 26);jRadioButton1.setText(女”);return jRadioButton1;/* This method initializes jComboBox* return javax.swing.JComboBox*/private JComboBox getJComboBox() if (jComboBox = null) String strcb=”计算机”,”电子”,”工商”;jComboBo

23、x = new JComboBox(strcb);jComboBox。setBounds(new Rectangle(62, 108, 93, 18));return jComboBox;/ This method initializes jComboBox1* return javax。swing。JComboBox*/private JComboBox getJComboBox1() if (jComboBox1 = null) String strcb2=”大专”,本科”,”硕士,博士”;jComboBox1 = new JComboBox(strcb2);jComboBox1.setB

24、ounds(new Rectangle(92, 150, 125, 18));return jComboBox1;/* This method initializes jButton* return javax。swing.JButton*/private JButton getJButton() if (jButton = null) jButton = new JButton();jButton.setBounds(new Rectangle(66, 181, 60, 28);jButton.setText(提交”);jButton。addActionListener(new java.a

25、wt.event.ActionListener() public void actionPerformed(java.awt.event.ActionEvent e) String strname=jTextField。getText();String strsex=男”;if(jRadioButton1。isSelected()strsex=”女”;String strzy=jComboBox.getSelectedItem().toString();String strwh=jComboBox1。getSelectedItem().toString();jTextArea.setText(”姓名:”+strname+”rn”+”性别:+strsex+rn”+”专业:”+strzy+rn+”文化:+strwh););16

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 应用文书 > 办公模板

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服