学生成绩管理系统报告书.docx

上传人:b****1 文档编号:15073071 上传时间:2023-06-30 格式:DOCX 页数:23 大小:550.10KB
下载 相关 举报
学生成绩管理系统报告书.docx_第1页
第1页 / 共23页
学生成绩管理系统报告书.docx_第2页
第2页 / 共23页
学生成绩管理系统报告书.docx_第3页
第3页 / 共23页
学生成绩管理系统报告书.docx_第4页
第4页 / 共23页
学生成绩管理系统报告书.docx_第5页
第5页 / 共23页
学生成绩管理系统报告书.docx_第6页
第6页 / 共23页
学生成绩管理系统报告书.docx_第7页
第7页 / 共23页
学生成绩管理系统报告书.docx_第8页
第8页 / 共23页
学生成绩管理系统报告书.docx_第9页
第9页 / 共23页
学生成绩管理系统报告书.docx_第10页
第10页 / 共23页
学生成绩管理系统报告书.docx_第11页
第11页 / 共23页
学生成绩管理系统报告书.docx_第12页
第12页 / 共23页
学生成绩管理系统报告书.docx_第13页
第13页 / 共23页
学生成绩管理系统报告书.docx_第14页
第14页 / 共23页
学生成绩管理系统报告书.docx_第15页
第15页 / 共23页
学生成绩管理系统报告书.docx_第16页
第16页 / 共23页
学生成绩管理系统报告书.docx_第17页
第17页 / 共23页
学生成绩管理系统报告书.docx_第18页
第18页 / 共23页
学生成绩管理系统报告书.docx_第19页
第19页 / 共23页
学生成绩管理系统报告书.docx_第20页
第20页 / 共23页
亲,该文档总共23页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

学生成绩管理系统报告书.docx

《学生成绩管理系统报告书.docx》由会员分享,可在线阅读,更多相关《学生成绩管理系统报告书.docx(23页珍藏版)》请在冰点文库上搜索。

学生成绩管理系统报告书.docx

学生成绩管理系统报告书

Abstract:

SubjectAchievementManagementInformationSystemisveryusefulinaschool,ifthereisaSubjectAchievementManagementInformationSystemwhichhasa

lotoffunctionswillalwaysreducetheworkloadoftheteachers,becauseaschoolhasalotofstudents.Eachtime,aftertheexamination,theteachersneedtostatisticsandanalysetheresultsofstudents'achievements,anddoaseriesofadditions,deletionandmodifyoperations,afterthatbothteachesandstudentsareverydifficulttoinquireabouttheachievement,butifwriteaprogramofitbycomputer,itwillbedifferent.Aslongastheteachersortheadministratorsloginonthesystem,theycandosomeaddition,deletingandmodifyingtotheachievementofthestudents.Andwhenthestudentsloginonthesystem,theycaninquireabouttheirachievementeasierandtheyalsocaninquireaboutgeneraltestsituationoftheclass.Inthisdesignofthecourse,lhavethisrareopportunitytoworkwithmyclassmatestryingtodothesubjectAchievementManagementInformationSystem,usingwhatwehavelearnedinc#,.NET,SQLknowledge.Idotheoperationsoftheadditionanddeletion.

Keyword:

Usefulreducetheworkloadstatisticsanalyseadddelete

Modifyinquirec#.NETSQL

 

Contents(目录)

1Topicoverview…………………………………………………………………1

2Analyticalsystem………………………………………………………………1

2.1Designthemodifyoperation………………………………………………………1

3Designsystem………………………………………………………………...2

3.1Describecalculation………………………………………………………………2

3.2Detailedflowchart………………………………………………………………3

4Writetheprocedure………………………………………………………….4

4.1theoperationofadd…………………………………………………………………4

4.2theoperationofdelete……………………………………………………………11

5Circulateandtest……………………………………………………………..13

5.1circulateandtesttheadditionoperation……………………………………13

5.2circulateandtestthedeletionoperation……………………………………15

6Conclusion…………...………………………………………………………16

7Compliments…………………………………………………………………...17

8Reference…………………………………………………………………….18

 

1Topicoverview

IntheSubjectAchievementManagementInformationSystem,itneedstoextractrelevantinformationfromalargenumberofday-to-dayteachingactivities,toreflecttheteachingsituation.Ifusingthetraditionalmanualway,itmayeasytolossthedata,hasstatisticalerror,labor-intensiveandslow.Ifweusecomputers,itwillbehigh-speed,quickcompletionofthework.WhenwelinktheInternet,thedatacantransmissioninInternet,sowecansharetheresourcesinInternet,avoidworkrepeatedlyandstandardthemanagement,

therebyraisetheefficiencyandlevelofthemanagement.

SubjectAchievementManagementInformationSystemtakesthecomputerastool,throughmanagingtheinformationwhichbeneededbyeducationmanagement,taptingoutofthemanagerfromthedealingwiththetrivialdetailsofdatainordertomakethemmoreenergytoengageinimplementingthemanagementpolicies,carryingouttheteachingprogramandsupervisingandinspectingthequalityofteaching,therebyimprovingthequalityandmakeiteasiertostudentstoquerytheirachievementonline.

TobuildtheSubjectAchievementManagementInformationSystem,usethecomputertomanagethestudents'achievement,thenimprovetheeffectivenessoftheschoolandthelevelofthemodernize.Tohelpthemajorityofteacherstoimprovethequalityofworkingandtoachievestudentperformanceofasystematicworkflow,standardizationandautomation.

2Analyticalsystem

2.1Designthemodifyoperation

Theoperationsofadditionanddeletionareaccordingtothetheteachers'loadinginterface.Onlytheteacherscanaddanddeletetheachievementsofthestudents,thestudentsonlyquerytheachievement,printstatementandhelpandsoon.

Thediagramshowthefunction:

 

图2.1

Theteachersarerequestedtoaddanddeletetheachievementofthestudents.Inthismold,weusetheADO.NETtoaddanddeletethedatainthedatabase.Inordertoimprovetheefficiencyofthecirculate.WeusetheDAOtomanagetheoperationsunify,itisconvenienceandlogicalarrangement.

3Designsystem

3.1Describecalculation

LoadtherelevantdataofthestudentsintotheDataSet.UsethetoolofDataGridViewtoshowtheresultoftheachievementswhichareusedbytheadditionanddeletionoperations.

privatevoidForm2_Load(objectsender,EventArgse)

{

this.dataGridView1.DataSource=studentDao.queryAll();

}

publicDataTablequeryAll()

{

SqlCommandcom=newSqlCommand("select*fromStudentClassMark",con);

SqlDataAdaptersda=newSqlDataAdapter();

sda.SelectCommand=com;

DataSetds=newDataSet();

Sda.Fill(ds);

DataTabledt=ds.Tables[0];

returndt;

}

 

 

 

3.2Detailedflowchart

 

 

 

图3.2

 

4Writetheprocedure

4.1theoperationofadd

Inthismold,wefirstusethefunctionofSqlConnectiontolinkthedatabase.ThenweusetheDataAdaptertofilltheinformationofthestudentsintotheDataSet,thenupdatethedatabasetoshowthedataafteraddingthenewdata.

//fillthestudents'achievement,clicktheokbutton

privatevoidbtnOK_Click(objectsender,EventArgse)

{

if(this.txtID.Enabled!

=false)

{

StudentClassMarkscm=newStudentClassMark();

scm.StuID=Convert.ToInt32(this.txtID.Text.ToString().Trim());

scm.Chinese=Convert.ToInt32(this.txtChinese.Text.ToString().Trim());

scm.Math=Convert.ToInt32(this.txtMath.Text.ToString().Trim());

scm.English=Convert.ToInt32(this.txtEnglish.Text.ToString().Trim());

scm.Chemistry=Convert.ToInt32(this.txtChemistry.Text.ToString().Trim());

scm.Physics=Convert.ToInt32(this.txtphysics.Text.ToString().Trim());

this.IsPass=studentDAO.IsExistStudent(scm.StuID)&&

!

studentDAO.IsNotExistStudentClassMark(scm.StuID);

if(this.IsPass)

{

studentDAO.insert(scm);

}

else

{

MessageBox.Show("没有此学生或此学生成绩记录已存在","消息",

MessageBoxButtons.OK,MessageBoxIcon.Information);

}

}

else

{

StudentClassMarkscm2=newStudentClassMark();

scm2.StuID=scm.StuID;

scm2.Chinese=Convert.ToInt32(this.txtChinese.Text.ToString().Trim());

scm2.Math=Convert.ToInt32(this.txtMath.Text.ToString().Trim());

scm2.English=Convert.ToInt32(this.txtEnglish.Text.ToString().Trim());

scm2.Chemistry=Convert.ToInt32(this.txtChemistry.Text.ToString().Trim());

scm2.Physics=Convert.ToInt32(this.txtphysics.Text.ToString().Trim());

studentDAO.update(scm2);

}

}

}

 

publicpartialclassStudentForm:

Form

{

privateStudentClassMarkscm=null;

privateboolIsPass=false;

publicboolgetIsPass()

{

returnthis.IsPass;

}

IStudentDAOstudentDAO=StudentInfo.get();

publicStudentForm(StudentClassMarkscm)

:

this()

{

this.scm=scm;

this.txtID.Text=studentDAO.queryName(scm.StuID);

this.txtChinese.Text=scm.Chinese.ToString();

this.txtMath.Text=scm.Math.ToString();

this.txtEnglish.Text=scm.English.ToString();

this.txtChemistry.Text=scm.Chemistry.ToString();

this.txtphysics.Text=scm.Physics.ToString();

}

publicStudentForm()

{

InitializeComponent();

}

privatevoidbutton2_Click(objectsender,EventArgse)

{

this.Close();

}

privatevoidbtnOK_Click(objectsender,EventArgse)

{

if(this.txtID.Enabled!

=false)

{

StudentClassMarkscm=newStudentClassMark();

scm.StuID=Convert.ToInt32(this.txtID.Text.ToString().Trim());

scm.Chinese=Convert.ToInt32(this.txtChinese.Text.ToString().Trim());

scm.Math=Convert.ToInt32(this.txtMath.Text.ToString().Trim());

scm.English=Convert.ToInt32(this.txtEnglish.Text.ToString().Trim());

scm.Chemistry=Convert.ToInt32(this.txtChemistry.Text.ToString().Trim());

scm.Physics=Convert.ToInt32(this.txtphysics.Text.ToString().Trim());

this.IsPass=studentDAO.IsExistStudent(scm.StuID)&&

!

studentDAO.IsNotExistStudentClassMark(scm.StuID);

if(this.IsPass)

{

studentDAO.insert(scm);

}

else

{

MessageBox.Show("没有此学生或此学生成绩记录已存在","消息",MessageBoxButtons.OK,MessageBoxIcon.Information);

}

}

else

{

StudentClassMarkscm2=newStudentClassMark();

scm2.StuID=scm.StuID;

scm2.Chinese=Convert.ToInt32(this.txtChinese.Text.ToString().Trim());

scm2.Math=Convert.ToInt32(this.txtMath.Text.ToString().Trim());

scm2.English=Convert.ToInt32(this.txtEnglish.Text.ToString().Trim());

scm2.Chemistry=Convert.ToInt32(this.txtChemistry.Text.ToString().Trim());

scm2.Physics=Convert.ToInt32(this.txtphysics.Text.ToString().Trim());

studentDAO.update(scm2);

}

}

}

//judgethestudentisornotexist

publicboolIsExistStudent(intStuID)

{

SqlCommandcom=newSqlCommand("select*fromStudentwhereStuID=@StuID");

com.Connection=con;

if(con.State==ConnectionState.Closed)

{

con.Open();

}

SqlParameterp1=newSqlParameter("@StuID",SqlDbType.Int);

p1.Value=StuID;

com.Parameters.Add(p1);

SqlDataReaderreader=com.ExecuteReader();

boolb=reader.Read();

reader.Close();

con.Close();

returnb;

}

//judgetheachievementofstudentisornotexist

publicboolIsNotExistStudentClassMark(intStuID)

{

SqlCommandcom=newSqlCommand("select*fromStudentClassMarkwhereStuID=@StuID");

com.Connection=con;

if(con.State==ConnectionState.Closed)

{

con.Open();

}

SqlParameterp1=newSqlParameter("@StuID",SqlDbType.Int);

p1.Value=StuID;

com.Parameters.Add(p1);

SqlDataReaderreader=com.ExecuteReader();

boolb=reader.Read();

reader.Close();

con.Close();

returnb;

}

//clicktheokbutton

privatevoidbtnInsert_Click(objectsender,EventArgse)

{

StudentFormform=newStudentForm();

form.label1.Text="学生学号";

if(form.ShowDialog()==DialogResult.OK)

{

boolb=form.getIsPass();

if(b)

{

MessageBox.Show("添加成功

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 法律文书

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2