csharp学生成绩管理系统设计内容摘要:

t i = ()。 int j = ()。 if (i 0 || j 0) { if (i 0) { strClassId = [0].Cells[0].()。 } if (j 0) { strClassId = [[0].RowIndex].Cells[0].()。 } } string cmdStr = Delete from tblUser where User_Id=@a。 OleDbCommand cmd = new OleDbCommand(cmdStr, con)。 OleDbParameter s1 = (@a1, , 10)。 = strClassId。 ()。 BindingUser()。 } //修改 private void btn_Updata_Click(object sender, EventArgs e) { string strClassId =。 int i = ()。 int j = ()。 if (i 0 || j 0) { 13 无锡职业技术学院课程设计 说明书 if (i 0) { strClassId = [0].Cells[0].()。 } if (j 0) { strClassId = [[0].RowIndex].Cells[0].()。 } } string cmdStr = Update tblUser set User_Pwd=@a1 where User_Id=@a2。 OleDbCommand cmd = new OleDbCommand(cmdStr, con)。 OleDbParameter s1 = (@a1, , 10)。 OleDbParameter s2 = (@a1, , 10)。 =。 = strClassId。 ()。 BindingUser()。 } 3. 成绩主窗体 图 4 主 界面 成绩主窗体是学生成绩管理的主界面,我们将做好的所有功能界面都与主窗体进行绑定。 用户可以再窗体的 toolStrip控件上选着所要运用的功能,最后进入到所选的功能窗体便可以进行相应的操作。 可以根据主界面,从而进入到不同的页面,这是整个系统的“窗口”,可以实现不同的系统功能。 private void 补考成绩录入 ToolStripMenuItem_Click(object sender, EventArgs e) { 14 无锡职业技术学院课程设计 说明书 Frm_BKCJLR frm = new Frm_BKCJLR()。 = this。 ()。 } private void 补考成绩查询 ToolStripMenuItem_Click(object sender, EventArgs e) { Form_BKCJfyCX frm = new Form_BKCJfyCX()。 = this。 ()。 } 4. 补考成绩录入 图 5 补考成绩录入 界面 补考成绩录入 界面则是根据补考学生的需求而设计的。 步骤操作往往是先选择学年 ,学期,系部,课程,然后会出现相应的界面显示,即选择班级。 然后根据用户需要选择班级,在选择录入的方式中选择相应补考需要。 紧接着是按功能键录入成绩,最后对表格进行整体的保存。 录入的更多方式是对所需信息的补充,这对数据的及时更新做好了准备。 private void BindingDept() { string s = select distinct Dept_Name ,Dept_ID from tblDept。 = s。 = con。 = cmd。 (ds, XiBu)。 = [XiBu]。 = Dept_Name。 15 无锡职业技术学院课程设计 说明书 = Dept_Id。 } //显示学生信息 void Show_Student() { string strClassId =。 string strSql =。 int i = ()。 int j = ()。 if (i 0 || j 0) { if (i 0) { strClassId = [0].Cells[0].()。 } if (j 0) { strClassId = [[0].RowIndex].Cells[0].()。 } } strSql += SELECT Stu_No AS 学号 , Stu_Name AS 姓名 , ScoreBk_Year AS 学年 , ScoreBk_Term AS 学期 , Class_Name AS 班级名称 , Course_Name AS 课程 , ScoreBk_Score AS 分数 , ScoreBk_One AS 补考一 , ScoreBk_Two AS 补考二 , ScoreBk_Three AS 补考三。 strSql += FROM tblStudent, tblScoreBK, tblSex, tblCourse, tblClass。 strSql += WHERE ScoreBk_ClsId=Class_Id and ScoreBk_CourseId=Course_Id and stu_Sex=Sex_Id and ScoreBk_StuId=Stu_Id and ScoreBk_Year=39。 + () + 39。 and ScoreBk_Term=39。 + () + 39。 and ScoreBk_ClsId=39。 + strClassId + 39。 and ScoreBk_CourseId =39。 + () + 39。 daa = new OleDbDataAdapter(strSql, con)。 (ds, Student)。 mytable = [Student]。 = strSql。 = con。 = cmd。 if (Student_flag == false) 16 无锡职业技术学院课程设计 说明书 Student_flag = true。 else [Student].Clear()。 (ds, Student)。 = [Student]。 [7].Visible = false。 [8].Visible = false。 [9].Visible = false。 } private void dataGridView_student_CellContentClick(object sender, DataGridViewCellEventArgs e) { OleDbDataAdapter da = new OleDbDataAdapter()。 string str_update = update tblScoreBK,tblStudent,tblCourse set ScoreBk_One=39。 + [7].()。 st。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。