77范文网 - 专业文章范例文档资料分享平台

学生成绩管理系统设计说明书(4)

来源:网络收集 时间:2019-04-15 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

重庆三峡学院

this.Close(); }

//插入成绩信息,取消按钮消息相应函数

private void button5_Click(object sender, EventArgs e) {

textBox16.Text = \ textBox17.Text = \ textBox18.Text = \ } } }

1.2信息删除模块

namespace StudentManagerSys {

public partial class DeleteForm : Form {

public string delStudentNo = \ public string delClassNo = \ public string delCourseNo = \ public string delScoreid = \

public DeleteForm() {

InitializeComponent(); }

//显示所有相应表格的数据

public void ShowAllData(string type) {

DataSet set;

if (type == \学生\ {

Student stu = new Student(); set = stu.selectAll();

dataGridView1.DataSource = set;

dataGridView1.DataMember = \ }

else if (type == \班级\ {

Classinfo cla = new Classinfo(); set = cla.selectAll();

共 42 页 第 15 页

重庆三峡学院

dataGridView2.DataSource = set;

dataGridView2.DataMember = \ }

else if (type == \课程\ {

Course cou = new Course(); set = cou.selectAll();

dataGridView3.DataSource = set;

dataGridView3.DataMember = \ }

else if (type == \成绩\ {

Score sco = new Score(); set = sco.selectAll();

dataGridView4.DataSource = set;

dataGridView4.DataMember = \ } }

private void tabControl1_Selected(object sender, TabControlEventArgs e) {

if (e.TabPage == tabPage1) {

ShowAllData(\学生\ }

else if (e.TabPage == tabPage2) {

ShowAllData(\班级\ }

else if (e.TabPage == tabPage3) {

ShowAllData(\课程\ }

else if (e.TabPage == tabPage4) {

ShowAllData(\成绩\ } }

//删除学生信息

private void button1_delstu_Click(object sender, EventArgs e) {

if (MessageBox.Show(this, \要删除所选记录吗?\请确认\ MessageBoxButtons.YesNo,

共 42 页 第 16 页

重庆三峡学院

MessageBoxIcon.Question,

MessageBoxDefaultButton.Button1,

MessageBoxOptions.RightAlign) == DialogResult.No) return;

foreach (Control ctrl in this.Controls)//通过个一循环得到信息 {

string ctrlName = ctrl.Name.Trim();

if (ctrlName.StartsWith(\查询信息根据的主键 {

ctrl.Enabled = false; }

delStudentNo

dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString(); Student stu = new Student();

stu.delete(delStudentNo); } }

//删除成绩信息

private void button1_delsco_Click(object sender, EventArgs e) {

if (MessageBox.Show(this, \要删除所选记录吗?\请确认\ MessageBoxButtons.YesNo, MessageBoxIcon.Question,

MessageBoxDefaultButton.Button1,

MessageBoxOptions.RightAlign) == DialogResult.No) return;

if (delStudentNo != \ {

Score sco = new Score();

sco.delete(delStudentNo, delClassNo); }

}

//删除课程信息

private void button1_delCou_Click(object sender, EventArgs e) {

if (MessageBox.Show(this, \要删除所选记录吗?\请确认\ MessageBoxButtons.YesNo, MessageBoxIcon.Question,

共 42 页 第 17 页

=

重庆三峡学院

MessageBoxDefaultButton.Button1,

MessageBoxOptions.RightAlign) == DialogResult.No) return;

foreach (Control ctrl in this.Controls)//通过个一循环得到信息 {

string ctrlName = ctrl.Name.Trim();

if (ctrlName.StartsWith(\查询信息根据的主键 {

ctrl.Enabled = false; }

delCourseNo

dataGridView3.Rows[dataGridView3.CurrentRow.Index].Cells[0].Value.ToString(); Course cou = new Course();

cou.delete(delCourseNo); } }

//删除班级信息

private void button1_delcla_Click(object sender, EventArgs e) {

if (MessageBox.Show(this, \要删除所选记录吗?\请确认\ MessageBoxButtons.YesNo, MessageBoxIcon.Question,

MessageBoxDefaultButton.Button1,

MessageBoxOptions.RightAlign) == DialogResult.No) return;

foreach (Control ctrl in this.Controls)//通过个一循环得到信息 {

string ctrlName = ctrl.Name.Trim();

if (ctrlName.StartsWith(\查询信息根据的主键 {

ctrl.Enabled = false; }

delClassNo=

dataGridView2.Rows[dataGridView2.CurrentRow.Index].Cells[0].Value.ToString(); Classinfo cla = new Classinfo(); cla.delete(delClassNo); } }

private void DeleteForm_Load(object sender, EventArgs e) {

共 42 页 第 18 页

=

重庆三峡学院

ShowAllData(\学生\ }

private void dataGridView4_CellValidated(object sender, DataGridViewCellEventArgs e) {

delStudentNo = dataGridView4.Rows[e.RowIndex].Cells[0].Value.ToString(); delClassNo = dataGridView4.Rows[e.RowIndex].Cells[1].Value.ToString(); } } }

1.3信息修改模块

namespace StudentManagerSys {

public partial class ModifyForm : Form {

//修改学生信息用到的数据 public string modifyStudnetno; public string modifyStudnetname; public string modifySex; public string modifyAtive; public string modifyAddress; public string modifyBirth;

//修改班级信息用到的数据 public string modifyClassno; public string modifyDepart; public string modifySpecical; public string modifyStudyears; public string modifyEntertime;

//修改课程信息用到的数据 public string modifyCourseno; public string modifyCoursename; public string modifyCoursetype; public string modifyOpenterm; public string modifyCcoursehours; public string modifyCredit;

//修改成绩信息需要的数据 public string modifyScore;

public ModifyForm()

共 42 页第 19 页

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库学生成绩管理系统设计说明书(4)在线全文阅读。

学生成绩管理系统设计说明书(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/596749.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: