教务管理系统

发布时间:2011-06-27 13:40:51   来源:文档文库   
字号:

广西大学行健文理学院

课程设计

课题题目: 教务管理系统

部: 理工学部

业: 计算机科学与技术

0802

号:

名:

指导老师: 甘秋玲

成绩:

一、系统功能分析与设计

教务管理是大学的主要日常管理工作之一,涉及到校、系、师、生的诸多方面,随着教学体制的不断改革,尤其是学分制、选课制的展开和深入,教务日常管理工作日趋繁重、复杂。如何把教务工作信息化,模块化,便捷化是现代高校发展的重点,所以迫切需要研制开发一种综合教务管理软件

分析说明

教学管理系统根据用户的不同,可分为学生,教师,管理员。
1 学生登陆
学生可以添加个人信息,并对其做查询操作,可以对课程进行查询
2 教师管理
管理员可以实现对学生与教师信息的添加,删除,修改和查询操作;
3 课程管理
管理员可以实现对课程基本信息的添加,删除,修改和查询操作;可以根据学校具
体情况实现对课程的设置安排;
4 班级管理
管理员可以实现对班级的添加和查询操作;
5 成绩管理
根据用户类型,分为教师管理子模块和学生查询子模块;教师管理子模块,可以实现对成绩的添加删除,修改,查询操作;学生查询子模块,可以实现查询本人成绩的功能。

二、数据库设计



关系模型

教师管理(教师号、教师名、性别、年龄、电话、备注)

学生管理(学号、学生名、性别、年龄、班级、生日、专业、备注)

课程管理(课程号、课程名、学分、分数)

成绩管理(课程号、课程名、学号、学生姓名、成绩)

班级管理(班号、班级名称、班长、班主任)

数据字典

班级表

课程表:

成绩表:

学生表:

教师表:

三、负责模块描述:

学生信息添加界面:

学生信息修改界面:

学生信息查找界面:

学生信息显示

小结

我们小组开发的是教务管理系统,包含了学生、教师、班级、课程和成绩等五大部分,其中我负责的是学生模块。在学生管理这块我实现了对学生信息的添加修改查询等功能,并通过小组成员的努力连接到整个系统中。虽然功能并不齐全,不过已经可以实现基本的教学教务操作,对各项信息进行管理。我相信通过此次实验所积累的经验和能力,将使我在今后的学习和工作中把这类项目做得更好。

五、开发工具和参考文献

Microsoft Visual 2008 SQL 2005

六、 源程序清单

学生信息设置:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using System.Data.Sql;

using System.Data.SqlClient;

namespace set

{

public partial class 学生信息设置 : Form

{

public 学生信息设置()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

string string1 = @"Data Source=S68;Initial Catalog=student;Integrated Security=True";

SqlConnection mycon = new SqlConnection(string1);

mycon.Open();

SqlCommand mycom = new SqlCommand();

mycom.CommandText = "Insert into student(sno,sname,sage,ssex,sdept,birthday,jg,[memo]) Values('" +this.textBox1.Text.Trim()+ "','" +this.textBox3.Text.Trim()+ "','" +this.textBox4.Text.Trim()+ "','"+this.textBox2.Text.Trim()+ "','"+this.comboBox1.Text.Trim()+"','"+this.comboBox4.Text.Trim()+"','"+this.textBox7.Text.Trim()+"','"+richTextBox1.Text.Trim()+"')";

mycom.Connection = mycon;

int i = mycom.ExecuteNonQuery();

mycon.Close();

if (i == 1)

{

MessageBox.Show("添加成功", "系统提示");

}

else

MessageBox.Show("请全部填写,不能有空内容。", "系统提示");

}

private void 学生信息设置_Load(object sender, EventArgs e)

{

}

private void button2_Click(object sender, EventArgs e)

{

textBox1.Text = "";

textBox2.Text = "";

textBox3.Text = "";

textBox4.Text = "";

textBox7.Text = "";

richTextBox1.Text = "";

}

private void button3_Click(object sender, EventArgs e)

{

Application.Exit();

}

private void button4_Click(object sender, EventArgs e)

{

try

{

string string1 = @"Data Source=S68;Initial Catalog=student;Integrated Security=True";

SqlConnection mycon = new SqlConnection(string1);

mycon.Open();

SqlCommand mycom = new SqlCommand();

mycom.CommandText = "update student set sname='" + textBox8.Text.Trim()+ "',sage='" + this.textBox9.Text.Trim() + "',sdept='" + this.textBox10.Text.Trim() + "',birthday='"+comboBox2.Text.Trim()+"',ssex='"+comboBox3.Text.Trim()+"',jg='"+textBox11.Text.Trim()+"',[memo]='"+richTextBox2.Text.Trim()+"'where sno='" + this.textBox6.Text.Trim() + "'";

mycom.Connection = mycon;

int i = mycom.ExecuteNonQuery();

mycon.Close();

if (i == 1)

{

MessageBox.Show("修改成功", "系统提示");

}

else

MessageBox.Show("修改失败", "系统提示");

}

catch (Exception ex)

{

MessageBox.Show(ex.Message);

}

}

private void button5_Click(object sender, EventArgs e)

{

string string1 = @"Data Source=S68;Initial Catalog=student;Integrated Security=True";

SqlConnection mycon = new SqlConnection(string1);

mycon.Open();

SqlCommand mycom = new SqlCommand();

mycom.CommandText = "delete from student where sno='" + this.textBox6.Text.Trim() + "'";

mycom.Connection = mycon;

int i = mycom.ExecuteNonQuery();

mycon.Close();

if (i == 1)

MessageBox.Show("删除成功", "系统提示");

else

MessageBox.Show("删除失败", "系统提示");

}

private void button6_Click(object sender, EventArgs e)

{

textBox6.Text = "";

textBox8.Text = "";

textBox9.Text = "";

textBox10.Text = "";

textBox11.Text = "";

richTextBox2.Text = "";

}

private void button7_Click(object sender, EventArgs e)

{

Application.Exit();

}

}

}

学生信息查找:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using System.Data.Sql;

using System.Data.SqlClient;

namespace liangjie

{

public partial class 学生信息查找 : Form

{

public 学生信息查找()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

this.listView1.Items.Clear();

string string1 = @"Data Source=S68;Initial Catalog=student;Integrated Security=True";

SqlConnection mycon = new SqlConnection(string1);

mycon.Open();

string str = "select * from student where sno='" + this.textBox1.Text.Trim() + "'";

SqlDataAdapter da = new SqlDataAdapter(str, mycon);

DataSet ds = new DataSet();

da.Fill(ds, "student");

foreach (DataRow dr in ds.Tables["student"].Rows)

{

string[] sub = new string[]{

dr["sno"].ToString().Trim(),

dr["sname"].ToString().Trim(),

dr["sage"].ToString().Trim(),

dr["ssex"].ToString().Trim(),

dr["sdept"].ToString().Trim(),

dr["birthday"].ToString().Trim(),

dr["jg"].ToString().Trim(),

dr["memo"].ToString().Trim()

};

ListViewItem lvi = new ListViewItem(sub);

this.listView1.Items.Add(lvi);

}

mycon.Close();

}

private void button2_Click(object sender, EventArgs e)

{

this.listView1.Items.Clear();

string string1 = @"Data Source=S68;Initial Catalog=student;Integrated Security=True";

SqlConnection mycon = new SqlConnection(string1);

mycon.Open();

string str = "select * from student";

SqlDataAdapter da = new SqlDataAdapter(str, mycon);

DataSet ds = new DataSet();

da.Fill(ds, "student");

foreach (DataRow dr in ds.Tables["student"].Rows)

{

string[] sub = new string[]{

dr["sno"].ToString().Trim(),

dr["sname"].ToString().Trim(),

dr["sage"].ToString().Trim(),

dr["ssex"].ToString().Trim(),

dr["sdept"].ToString().Trim(),

dr["birthday"].ToString().Trim(),

dr["jg"].ToString().Trim(),

dr["memo"].ToString().Trim()

};

ListViewItem lvi = new ListViewItem(sub);

this.listView1.Items.Add(lvi);

}

mycon.Close();

}

}

}

学生信息显示:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using System.Data.Sql;

using System.Data.SqlClient;

namespace show

{

public partial class show Form

{

public 学生信息显示()

{

InitializeComponent();

}

private void show_Load(object sender, EventArgs e)

{

string string1 = @"Data Source=S68;Initial Catalog=student;Integrated Security=True";

SqlConnection mycon = new SqlConnection(string1);

mycon.Open();

string str = "select * from student";

SqlDataAdapter da = new SqlDataAdapter(str, mycon);

DataSet ds = new DataSet();

da.Fill(ds, "student");

foreach (DataRow dr in ds.Tables["student"].Rows)

{

string[] sub = new string[]{

dr["sno"].ToString().Trim(),

dr["sname"].ToString().Trim(),

dr["sage"].ToString().Trim(),

dr["ssex"].ToString().Trim(),

dr["sdept"].ToString().Trim(),

dr["birthday"].ToString().Trim(),

dr["jg"].ToString().Trim(),

dr["memo"].ToString().Trim()

};

ListViewItem lvi = new ListViewItem(sub);

this.listView1.Items.Add(lvi);

}

mycon.Close();

}

}

}

本文来源:https://www.2haoxitong.net/k/doc/c91e141a964bcf84b9d57b53.html

《教务管理系统.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式