欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    学生信息管理系统 by .doc

    • 资源ID:35090542       资源大小:67KB        全文页数:10页
    • 资源格式: DOC        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    学生信息管理系统 by .doc

    学生信息管理系统开发过程中采用B/S结构,使用JSP编程、利用SQLServer2000建立数据库、采用HTML,JavaScript等编程技术。 该系统主要由学籍维护、成绩查询等功能模块组成,本文具体介绍了各功能模块所包含的小模块的功能,学籍维护模块主要是对学生的基本信息进行添加、查询、修改、删除;成绩查询模块主要是对必修课进行添加、删除、录入成绩,以及学生进行查询成绩等功能。学生信息管理系统主要是对学生的学籍,成绩的管理。学生信息管理首先就应该有学生,所以系统应该有对学生的添加和删除以及学生信息的修改;成绩管理就是学生能够在网上平台上快速查询自己的分数,这个功能的实现首先应该有添加、删除基础课程的功能,学生登入界面后能够查询功能。本系统功能主要包过三大块:学籍维护(管理员添加、删除学生基本信息;学生查看、修改个人附加信息);成绩查询(管理员添加、删除成绩课表,添加学生分数以及查询单人或单课分数情况;学生查看自己所学基础课成绩)。 管理员功能模块1.学生管理:该模块主要添加新学生基本信息;查看已有学生基本信息及可对其修改,删除多余或出错学生信息。2.成绩管理:可以添加学生所学的基本课程并修改;添加学生成绩;查看学生成绩(根据输入学号和课程号来查看不同的成绩情况);可以对学生成绩进行修改。总结: Java是一种面向对象编程技术,功能强大,是精心设计的语言,它具有简单性、面向对象性、平台性、安全性和健壮性等诸多特点,但由于涉及的内容较多,学习起来感觉困难得多。与传统的面向过程编程语言相比,面向对象的语言提出了很多新概念,Java中有一些抽象的很难理解的内容,如继承,多态,异常,多线程等。对于编程者来说,严谨,细致是必备的,不容得有丝毫的马虎。通过半个学期对Java的学习,使我掌握了Java的一些基础知识,并能够使用Java做一些简单的小程序。我最喜欢Java的地方就是它能够由用户自由的创建一个类或者继承某个类来创建新类,相当于对用户开放了一些源代码,还有Java应用的范围很广,这在我以后制作网页有很大的帮助。 去图书馆借了一本Java书,通过一个礼拜的学习,对Java程序有一个更深的理解,然后经过老师和学生中精英们的指导,最终我编出了这一个小程序,虽然功能不怎么强大,但也是经我之手弄出来的,心里别提多高兴了。package StudentInformation;import java.awt.event.*;import javax.swing.*;import StudentInformation.StudentInformation;public class login extends JFrame implements ActionListener private JTextField user_input; private JPasswordField pwd_input; private JButton button_ok,button_cancle; private JDialog dialog; private JLabel label_dialog; private StudentInformation main; public login() super("登陆"); this.setSize(150,250);/设定窗口大小 this.setResizable(false); this.setBackground(java.awt.Color.lightGray);/设定登陆界面背景色 this.setLocation(300,240); this.setDefaultCloseOperation(EXIT_ON_CLOSE); this.setLayout(new java.awt.FlowLayout(); this.add(new JLabel("用户名称"); user_input = new JTextField(10); this.add(user_input); user_input.addActionListener(this); this.add(new JLabel("密码"); pwd_input = new JPasswordField(10); this.add(pwd_input); pwd_input.addActionListener(this); button_ok=new JButton("确定"); this.add(button_ok); button_ok.addActionListener(this); button_cancle=new JButton("取消"); this.add(button_cancle); button_cancle.addActionListener(this); this.setVisible(true); dialog = new JDialog(this,"提示",true); dialog.setSize(240,80); label_dialog = new JLabel("",JLabel.CENTER); dialog.add(label_dialog); public void actionPerformed(ActionEvent e) if(e.getActionCommand()="确定") String text2 = pwd_input.getText();String text = text2;if(user_input.getText().equals("123")=true&&text.equals("123")=true) label_dialog.setText("登陆成功"); dialog.setLocation(this.getX()+100,this.getY()+100); dialog.setVisible(true); try main = new StudentInformation(); catch(Exception ee) elseJOptionPane.showMessageDialog(null, "您输入的账号或密码有误", "错误", JOptionPane.ERROR_MESSAGE); if(e.getActionCommand()="取消") System.exit(0); public static void main(String arg) new login();/第二个文件清单:package StudentInformation;import java.awt.*;import java.awt.event.*;import java.io.*;public class StudentInformation implements ActionListener Frame mainFrame; Frame inputFrame; Frame searchFrame; TextArea stuInfo; Label lb = new Label9; Label lb2 = new Label2; TextField tf = new TextField9; TextField tf2 = new TextField2; Button btn = new Button3; Button btn2 = new Button2; Panel p1, p2, p3, p4; IOOperation ioo; Student stu; Student student = new Student100; public StudentInformation() * 制定主框架 */ mainFrame = new Frame("学生信息管理"); /主体框架名称 mainFrame.addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) System.exit(0); MenuItem item1 = new MenuItem("录入学生信息"); MenuItem item2 = new MenuItem("查询学生信息"); MenuItem item3 = new MenuItem("修改学生信息"); MenuItem item4 = new MenuItem("退出"); MenuItem item5 = new MenuItem("关于"); item1.addActionListener(this); item2.addActionListener(this); item3.addActionListener(this); item4.addActionListener(this); item5.addActionListener(this); Menu menu1 = new Menu("主菜单"); menu1.add(item1); menu1.add(item2); menu1.add(item3); menu1.addSeparator(); menu1.add(item4); Menu menu2 = new Menu("帮助"); menu2.add(item5); MenuBar mb = new MenuBar(); mb.add(menu1); mb.add(menu2); mainFrame.setMenuBar(mb); stuInfo = new TextArea(); stuInfo.setFont(new Font("serif", Font.PLAIN, 18); mainFrame.add(stuInfo); mainFrame.setSize(400, 250); mainFrame.setLocation(200, 100); mainFrame.setVisible(true); *设置用于记录学生信息的输入文本框 inputFrame = new Frame(); inputFrame.addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) inputFrame.setVisible(false); p1 = new Panel(new GridLayout(9, 2); p2 = new Panel(); String lb姓名 = "学号:", "姓名:", "性别:", "出生地:", "所在班级:", "高数成绩:", "英语成绩:", "JAVA成绩:", "C语言成绩:" String btn姓名 = "保存", "删除", " 退出 " for(int i=0; i<9; i+) lbi = new Label(lb姓名i); tfi = new TextField(15); p1.add(lbi); p1.add(tfi); for(int i=0; i<3; i+) btni = new Button(btn姓名i); btni.addActionListener(this); p2.add(btni); btn2.setActionCommand("请输入"); inputFrame.add(p1, BorderLayout.CENTER); inputFrame.add(p2, BorderLayout.SOUTH); inputFrame.pack(); inputFrame.setLocationRelativeTo(mainFrame); * 创建用于搜索学生信息的搜索框 searchFrame = new Frame("查询学生信息"); searchFrame.addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) searchFrame.setVisible(false); p3 = new Panel(new GridLayout(2, 2); p4 = new Panel(); String lbname2 = "学号:", "姓名:" String btnname2 = "查询学生信息", " 退出 " for(int i=0; i<2; i+) lb2i = new Label(lbname2i); tf2i = new TextField(15); p3.add(lb2i); p3.add(tf2i); for(int i=0; i<2; i+) btn2i = new Button(btnname2i); btn2i.addActionListener(this); p4.add(btn2i); btn21.setActionCommand("查询学生信息"); searchFrame.add(p3, BorderLayout.CENTER); searchFrame.add(p4, BorderLayout.SOUTH); searchFrame.pack(); searchFrame.setLocationRelativeTo(mainFrame); *输入输出体 ioo = new IOOperation(); student = ioo.getAllStudent(); public void actionPerformed(ActionEvent e) * 主菜单动作 if (e.getSource() instanceof MenuItem) MenuItem mi = (MenuItem) e.getSource(); if (mi.getLabel().equals("录入学生信息") inputFrame.setTitle("录入学生信息"); for(int i=0; i<9; i+) tfi.setText(""); p2.remove(btn1); btn0.setActionCommand("请输入"); inputFrame.setVisible(true); else if (mi.getLabel().equals("查询学生信息") searchFrame.setVisible(true); else if (mi.getLabel().equals("修改学生信息") inputFrame.setTitle("修改学生信息"); if(stu != null) tf0.setText(stu.get学号(); tf1.setText(stu.get姓名(); tf2.setText(stu.get性别(); tf3.setText(stu.get出生地(); tf4.setText(stu.get所在班级(); tf5.setText(stu.get高数成绩() + ""); tf6.setText(stu.get英语成绩() + ""); tf7.setText(stu.getJAVA成绩() + ""); tf8.setText(stu.getC语言成绩() + ""); p2.remove(btn2); p2.add(btn1); p2.add(btn2); btn0.setActionCommand("修改学生信息"); inputFrame.setVisible(true); else if (mi.getLabel().equals("退出") System.exit(0); else if (mi.getLabel().equals("关于") final Dialog progInfo = new Dialog(mainFrame, "ProgInfo", true); progInfo.addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent e) progInfo.dispose(); progInfo.setLayout(new FlowLayout(); Label l = new Label("学生信息管理系统 by 杨建严"); progInfo.add(l); progInfo.setSize(200, 80); progInfo.setLocationRelativeTo(mainFrame); progInfo.setVisible(true); *按钮动作 else Button btn = (Button)e.getSource(); if(btn.getLabel().equals("保存") if(!tf0.getText().equals("") && !tf1.getText().equals("") && !tf2.getText().equals("") && !tf3.getText().equals("") && !tf4.getText().equals("") && !tf5.getText().equals("") && !tf6.getText().equals("") && !tf7.getText().equals("") && !tf8.getText().equals("") Student s = new Student(tf0.getText(), tf1.getText(), tf2.getText(), tf3.getText(), tf4.getText(), Integer.parseInt(tf5.getText(), Integer.parseInt(tf6.getText(), Integer.parseInt(tf7.getText(), Integer.parseInt(tf8.getText(); if(btn.getActionCommand().equals("请输入") for(int i=0; i<student.length; i+) if(studenti = null) studenti = s; break; ioo.write(student); else for(int i=0; i<student.length; i+) if(studenti.equals(stu) studenti = s; break; ioo.write(student); inputFrame.setVisible(false); stuInfo.setText(""); else if(btn.getLabel().equals("删除") int index = 200; if(stu != null) for(int i=0; i<student.length; i+) if(studenti!=null && studenti.equals(stu) index = i; if(i != student.length-1) studenti = studenti+1; else studenti = null; if(i=index && studenti+1=null) break; else if(i>index && i<student.length-1) studenti = studenti+1; if(i = student.length - 1) studenti = null; ioo.write(student); stu = null; inputFrame.setVisible(false); stuInfo.setText(""); for(int i=0; i<student.length; i+) if(studenti!=null) System.out.println(i + " " + studenti.get学号(); else if(btn.getLabel().equals("查询学生信息") stu = null; if(!tf20.getText().equals("") | !tf21.getText().equals("") String condition = "" if(!tf20.getText().equals("") condition = tf20.getText(); else condition = tf21.getText(); for(int i=0; i<student.length; i+) if (studenti != null) if (studenti.get学号().equals(condition) | studenti.get姓名().equals(condition) stu = studenti; break; if(stu != null) stuInfo.setText("学号: " + stu.get学号() + "n" + "姓名: " + stu.get姓名() + "n" + "性别: " + stu.get性别() + "n" + "出生地: " + stu.get出生地() + "n" + "班级: " + stu.get所在班级() + "n" + "高数成绩: " + stu.get高数成绩()+"n" + "英语成绩: " + stu.get英语成绩() + "n" + "JAVA成绩: " + stu.getJAVA成绩() + "n" + "C语言成绩: " + stu.getC语言成绩(); searchFrame.setVisible(false); else if(btn.getLabel().equals(" 退出 ") if(btn.getActionCommand().equals("请输入") inputFrame.setVisible(false); else searchFrame.setVisible(false); public static void main(String args) new StudentInformation(); * 用于存储学生信息的类 class Student implements Serializable private String 学号; private String 姓名; private String 性别; private String 出生地; private String 所在班级; private int 高数成绩; private int 英语成绩; private int JAVA成绩; private int C语言成绩; public Student(String 学号, String 姓名, String 性别, String 出生地, String 所在班级, int m高数成绩, int e英语成绩, int jJAVA成绩, int C语言成绩) super(); this.学号 = 学号; this.姓名 = 姓名; this.性别 = 性别; this.出生地 = 出生地; this.所在班级 = 所在班级; 高数成绩 = m高数成绩; 英语成绩 = e英语成绩; JAVA成绩 = jJAVA成绩; this.C语言成绩 = C语言成绩; public String get出生地() return 出生地; public int get高数成绩() return 高数成绩; public String get学号() return 学号; public int getJAVA成绩() return JAVA成绩; public int get英语成绩() return 英语成绩; public String get姓名() return 姓名; public String get性别() return 性别; public String get所在班级() return 所在班级; public int getC语言成绩() return C语言成绩; public boolean equals(Object obj) if(obj != null && (obj instanceof Student) if(this.get学号().equals(Student)obj).get学号() && this.get姓名().equals(Student)obj).get姓名() && this.get性别().equals(Student)obj).get性别() && this.get出生地().equals(Student)obj).get出生地() && this.get所在班级().equals(Student)obj).get所在班级() && this.get高数成绩() = (Student)obj).get高数成绩() && this.get英语成绩() = (Student)obj).get英语成绩() && this.getJAVA成绩() = (Student)obj).getJAVA成绩() && this.getC语言成绩() = (Student)obj).getC语言成绩() return true; return false; * 用于输入输出信息的类class IOOperation private = new File("D:stuinfo.txt"); public IOOperation() try if(!() catch (IOException e) e.printStackTrace(); * 写入文件 public void write(Student s) try fos = new (file); ObjectOutputStream objOut = new ObjectOutputStream(fos); objOut.writeObject(s); objOut.close(); fos.close(); catch(Exception e) e.printStackTrace(); * 读取所有学生信息 public Student getAllStudent() Student ss = new Student100; try if () > 0) fis = new (file); ObjectInputStream ois = new ObjectInputStream(fis); ss = (Student) ois.readObject(); ois.close(); fis.close(); catch(Exception e) e.printStackTrace(); return ss;图一:登陆成功图二:跳转至学生管理系统图三:录入学生信息图四:查询学生信息图五:修改学生信息

    注意事项

    本文(学生信息管理系统 by .doc)为本站会员(叶***)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开