收藏 分销(赏)

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

上传人:a199****6536 文档编号:4040272 上传时间:2024-07-26 格式:DOC 页数:18 大小:72.54KB 下载积分:8 金币
下载 相关 举报
个人简历录入系统设计报告.doc_第1页
第1页 / 共18页
个人简历录入系统设计报告.doc_第2页
第2页 / 共18页


点击查看更多>>
资源描述
兰州商学院陇桥学院 工学系课程设计报告 设 计 题 目:个人简历录入系统 系 别:工学系 专 业 (方 向):电子商务 年 级、 班:2011级电子商务班 学 生 姓 名:黄改霞 学 生 学 号:20110671109 指 导 教 师:杨光 2013年 12 月 22 日 目录 一、系统开发的背景 2 二、系统分析与设计 2 (一)系统功能要求 2 (二)系统模块结构设计 2 三、系统的设计与实现 4 (一)个人基本信息浏览: 4 (二)专业 4 (三)学历浏览 5 (四)性别 6 (五)姓名 7 (六)命令按钮 8 (七)存储文本框 9 四、系统测试 10 (一)测试main(String args[])函数 10 (二)专业 10 (三)学位 11 (四)功能实现 12 五、总结 12 六、附件(代码、部分图表) 13 个人简历录入系统 一、系统开发的背景 为了方便用户的输入和阅读,更多的运用自己所学的知识,也就是学有所用,熟悉java的一些基本函数和接口,做一些基本的信息存储,方便于保存和观看,同时也是一个检查所学知识的运用和检测,因此就用java编写个人简历录入。. 二、系统分析与设计 (一)系统功能要求 编写一个个人简历录入程序,通过文本框录入姓名,通过单选按钮选择性别,通过组合框选择专业(计算机,电子,工商等)和文化程度(大专,本科,硕士,博士等),设置“提交"与“取消”两个按键,当用鼠标点击“提交”按键时,在文本框中显示所填写以及选择的信息。当点击“取消”按键退出系统。 1、 个人基本信息(包括姓名、性别、专业、文化程度、等); 2、 命令按钮:提交和取消; 3、系统的功能详细设计。 (二)系统模块结构设计 通过对系统功能的分析,个人简历录入综合测评系统功能如图X所示。 姓名 性别 专业 学历 命令按钮 个人简历录入系统 存储文本框 图1 个人简历录入系统功能图 通过上图的功能分析,把整个系统划分为6个模块: 1、 个人姓名输入文本框,该模块主要实现:姓名的输入、输出,借住函数JTextField getJTextField()来实现; 2、 性别模块,该模块主要实现,个人性别的选择工具:男、女,借助函数JTextField getJTextField()来实现; 3、 专业模块,该模块主要实现专业在下拉框里的选择,借助函数JComboBox getJComboBox()来实现; 4、 学历模块,该模块的主要功能是在下拉框里选择学历,借助函数JComboBox getJComboBox1()来实现; 5、 命令按钮,该模块的主要功能是实现信息的存储和取消,借助函数JButton getJButton()来实现; 6、 存储文本框,该模块的功能主要是显示个人录入的信息,借助函数JTextArea getJTextArea()来实现。 三、系统的设计与实现 (一)个人基本信息浏览: 分析:首先输出表头,然输出个人简历的基本信息.流程图如图X所示。 该模块的具体代码如下所示. String strzy=jComboBox.getSelectedItem()。toString(); String strwh=jComboBox1.getSelectedItem().toString(); jTextArea。setText("姓名:”+strname+”\r\n”+”性别:”+strsex+"\r\n"+"专业:”+strzy+"\r\n"+”文化:"+strwh); (二)专业 主要包含计算机、电子、工商等,首先得输出下拉框,然后选择所需的专业 流程图如下: 专业 工商 计算机 电子 图2:JComboBox getJComboBox()流程图 该模块的主要代码如下: private JComboBox getJComboBox() { if (jComboBox == null) { String[] strcb={"计算机",”电子”,"工商”}; jComboBox = new JComboBox(strcb); jComboBox。setBounds(new Rectangle(62, 108, 93, 18)); } return jComboBox; } (三)学历浏览 学历 主要包含大专、本科、硕士、博士等,在下拉框里能选出自己所修学位。 流程图如下: 本科 硕士 博士 大专 图3:JComboBox getJComboBox1() 流程图 (四)性别 性别需要是设置选择按钮:男、女,并且只能选一个. 流程图如下: 性别 女 男 图4:JTextField 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) { 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, 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 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)); } return jTextArea; } public static void main(String args[]){ new MyLuRu(); } } 四、系统测试 (一)测试main(String args[])函数 测试该函数使用的测试方法,测试的具体步骤,测试用例的选取,测试的结果。 图一 (二)专业 主要实现专业的选择 图三 (三)学位 主要是实现了学位的选择 图三 (四)功能实现 输出所有功能 图四 五、总结 系统完成了姓名的输入文本框、性别的选择、专业的选择、学位的选择、提交与取消、输出文本框等功能。 系统有的代码有些过于复杂不足。 我的收获,更加熟悉了java的环境和系统设计的实现,更多的是各函数的设置和接口的实现. 主要有:先实现单个模块,因为单个模块的调试比较方便、容易找出错误的地方,单个模块调试运行。然后在进行模块的混合,进行一一混合变混合变调试,这样可以减少调试的难度,不至于很难找出出错的地方。 主函数和各个分函数的连接和函数名的定义,不要重复定义、都是private类型的,注意里面的的各变量的定义不要重复,方便于调试。 多看一些关于课本上的接口的处理,有助于自己在处理各模块之间的调整,平时多看看一些关于java的代码,有条件的可以试着调试,这样,自己做设计是就会顺利很多. 六、附件(代码、部分图表) import java.awt.BorderLayout; import javax.swing。*; 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 JTextField 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 mybg=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() { 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)); jLabel3。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(”姓名:”); jContentPane = 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(), 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 jTextField * * @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 getJRadioButton() { 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 == null) { 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={”计算机”,”电子”,”工商”}; jComboBox = 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.setBounds(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.awt.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+”\r\n”+”性别:"+strsex+"\r\n”+”专业:”+strzy+"\r\n"+”文化:"+strwh); } }); 16
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

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

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

关于我们      便捷服务       自信AI       AI导航        抽奖活动

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

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

gongan.png浙公网安备33021202000488号   

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

关注我们 :微信公众号    抖音    微博    LOFTER 

客服