学生成绩管理系统设计说明书.docx

上传人:b****3 文档编号:24792208 上传时间:2023-06-01 格式:DOCX 页数:102 大小:43.17KB
下载 相关 举报
学生成绩管理系统设计说明书.docx_第1页
第1页 / 共102页
学生成绩管理系统设计说明书.docx_第2页
第2页 / 共102页
学生成绩管理系统设计说明书.docx_第3页
第3页 / 共102页
学生成绩管理系统设计说明书.docx_第4页
第4页 / 共102页
学生成绩管理系统设计说明书.docx_第5页
第5页 / 共102页
点击查看更多>>
下载资源
资源描述

学生成绩管理系统设计说明书.docx

《学生成绩管理系统设计说明书.docx》由会员分享,可在线阅读,更多相关《学生成绩管理系统设计说明书.docx(102页珍藏版)》请在冰豆网上搜索。

学生成绩管理系统设计说明书.docx

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

设计说明

一.本程序的设计思路与体系简述:

(1)设计思路:

Ⅰ.设计程序预期功能;Ⅱ.确定程序语言与运行环境;Ⅲ.设计程序的整体结构;Ⅳ.用模块化的理念对各个小的功能进行编写并进行初期调试;Ⅴ.将各个小的模块集合成整体,形成真正的功能全面的程序;Ⅵ.对程序进行总的调试修改;Ⅶ.后期完善,修复bug等,以及对新功能的引入,外包处理,最终完成整个程序的设计。

(2)本程序的体系:

二.相关代码

(1)初始化窗口代码:

#pragmaonce

#include"StuMan.h"

namespaceStudentManagement{

usingnamespaceSystem;

usingnamespaceSystem:

:

ComponentModel;

usingnamespaceSystem:

:

Collections;

usingnamespaceSystem:

:

Windows:

:

Forms;

usingnamespaceSystem:

:

Data;

usingnamespaceSystem:

:

Drawing;

///

///Form1摘要

///

///警告:

如果更改此类的名称,则需要更改

///与此类所依赖的所有.resx文件关联的托管资源编译器工具的

///“资源文件名”属性。

否则,

///设计器将不能与此窗体的关联

///本地化资源正确交互。

///

publicrefclassForm1:

publicSystem:

:

Windows:

:

Forms:

:

Form

{

public:

Form1(void)

{

InitializeComponent();

//

//TODO:

在此处添加构造函数代码

//

}

protected:

///

///清理所有正在使用的资源。

///

~Form1()

{

if(components)

{

deletecomponents;

}

}

private:

System:

:

Windows:

:

Forms:

:

Button^button1;

protected:

private:

System:

:

Windows:

:

Forms:

:

ListView^listView1;

private:

System:

:

Windows:

:

Forms:

:

Label^label1;

private:

///

///必需的设计器变量。

///

System:

:

ComponentModel:

:

Container^components;

#pragmaregionWindowsFormDesignergeneratedcode

///

///设计器支持所需的方法-不要

///使用代码编辑器修改此方法的内容。

///

voidInitializeComponent(void)

{

System:

:

ComponentModel:

:

ComponentResourceManager^resources=(gcnewSystem:

:

ComponentModel:

:

ComponentResourceManager(Form1:

:

typeid));

this->button1=(gcnewSystem:

:

Windows:

:

Forms:

:

Button());

this->listView1=(gcnewSystem:

:

Windows:

:

Forms:

:

ListView());

this->label1=(gcnewSystem:

:

Windows:

:

Forms:

:

Label());

this->SuspendLayout();

//

//button1

//

this->button1->Location=System:

:

Drawing:

:

Point(24,115);

this->button1->Name=L"button1";

this->button1->Size=System:

:

Drawing:

:

Size(75,23);

this->button1->TabIndex=0;

this->button1->Text=L"学生管理";

this->button1->UseVisualStyleBackColor=true;

this->button1->Click+=gcnewSystem:

:

EventHandler(this,&Form1:

:

button1_Click);

//

//listView1

//

this->listView1->BackgroundImage=(cli:

:

safe_cast

:

Drawing:

:

Image^>(resources->GetObject(L"listView1.BackgroundImage")));

this->listView1->Location=System:

:

Drawing:

:

Point(131,22);

this->listView1->Name=L"listView1";

this->listView1->Size=System:

:

Drawing:

:

Size(140,135);

this->listView1->TabIndex=3;

this->listView1->UseCompatibleStateImageBehavior=false;

//

//label1

//

this->label1->AutoSize=true;

this->label1->Font=(gcnewSystem:

:

Drawing:

:

Font(L"MicrosoftSansSerif",12,System:

:

Drawing:

:

FontStyle:

:

Regular,System:

:

Drawing:

:

GraphicsUnit:

:

Point,

static_cast

:

Byte>(134)));

this->label1->Location=System:

:

Drawing:

:

Point(156,176);

this->label1->Name=L"label1";

this->label1->Size=System:

:

Drawing:

:

Size(105,120);

this->label1->TabIndex=4;

this->label1->Text=L"Copyrightby\r\n西北工业大学\r\n机电学院\r\n高岭\r\n\r\n\r\n";

//

//Form1

//

this->AutoScaleDimensions=System:

:

Drawing:

:

SizeF(6,12);

this->AutoScaleMode=System:

:

Windows:

:

Forms:

:

AutoScaleMode:

:

Font;

this->ClientSize=System:

:

Drawing:

:

Size(292,266);

this->Controls->Add(this->label1);

this->Controls->Add(this->listView1);

this->Controls->Add(this->button1);

this->Icon=(cli:

:

safe_cast

:

Drawing:

:

Icon^>(resources->GetObject(L"$this.Icon")));

this->MaximizeBox=false;

this->Name=L"Form1";

this->StartPosition=System:

:

Windows:

:

Forms:

:

FormStartPosition:

:

CenterScreen;

this->Text=L"学生管理系统";

this->Load+=gcnewSystem:

:

EventHandler(this,&Form1:

:

Form1_Load);

this->ResumeLayout(false);

this->PerformLayout();

}

#pragmaendregion

private:

System:

:

VoidForm1_Load(System:

:

Object^sender,System:

:

EventArgs^e){

}

private:

System:

:

Voidbutton1_Click(System:

:

Object^sender,System:

:

EventArgs^e){

StuMan^stuMan=gcnewStuMan;

stuMan->ShowDialog();

this->Close();

}

};

}

(2)主界面代码

#pragmaonce

#include"Find.h"

#include"Add.h"

#include"AddClass.h"

#include"Del.h"

#include"Upda.h"

#include"UpdaScore.h"

#include"UpdaClass.h"

usingnamespaceSystem;

usingnamespaceSystem:

:

ComponentModel;

usingnamespaceSystem:

:

Collections;

usingnamespaceSystem:

:

Windows:

:

Forms;

usingnamespaceSystem:

:

Data;

usingnamespaceSystem:

:

Drawing;

usingnamespaceSystem:

:

Data:

:

OleDb;

namespaceStudentManagement{

///

///StuMan摘要

///

///警告:

如果更改此类的名称,则需要更改

///与此类所依赖的所有.resx文件关联的托管资源编译器工具的

///“资源文件名”属性。

否则,

///设计器将不能与此窗体的关联

///本地化资源正确交互。

///

publicrefclassStuMan:

publicSystem:

:

Windows:

:

Forms:

:

Form

{

public:

StuMan(void)

{

InitializeComponent();

//

//TODO:

在此处添加构造函数代码

//

}

intmid;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^ClassManagement;

public:

public:

public:

public:

OleDbConnection^objConnection;

//ShowView函数显示数据学生信息

public:

voidShowView()

{

objConnection=gcnewOleDbConnection(L"Provider=;DataSource=Stuman.mdb");

System:

:

Data:

:

OleDb:

:

OleDbDataAdapter^objAdapter=gcnewOleDbDataAdapter("select*fromPersonView",objConnection);

System:

:

Data:

:

DataSet^objDataset=gcnewDataSet();

objAdapter->Fill(objDataset,"PersonView");

dgv->DataSource=objDataset->Tables["PersonView"];

}

//ShowScoreView函数显示成绩信息

public:

voidShowScoreView()

{

objConnection=gcnewOleDbConnection(L"Provider=;DataSource=Stuman.mdb");

System:

:

Data:

:

OleDb:

:

OleDbDataAdapter^objAdapter=gcnewOleDbDataAdapter("select*fromPersonScoreView",objConnection);

System:

:

Data:

:

DataSet^objDataset=gcnewDataSet();

objAdapter->Fill(objDataset,"PersonScoreView");

dgv->DataSource=objDataset->Tables["PersonScoreView"];

}

//ShowClassView函数显示课程信息

public:

voidShowClassView()

{

objConnection=gcnewOleDbConnection(L"Provider=;DataSource=Stuman.mdb");

System:

:

Data:

:

OleDb:

:

OleDbDataAdapter^objAdapter=gcnewOleDbDataAdapter("select*fromPersonClassView",objConnection);

System:

:

Data:

:

DataSet^objDataset=gcnewDataSet();

objAdapter->Fill(objDataset,"PersonClassView");

dgv->DataSource=objDataset->Tables["PersonClassView"];

}

protected:

///

///清理所有正在使用的资源。

///

~StuMan()

{

if(components)

{

deletecomponents;

}

}

private:

System:

:

Windows:

:

Forms:

:

MenuStrip^menuStrip1;

protected:

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^文件ToolStripMenuItem;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^StudentManagement;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^ScoreManagement;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^编辑EToolStripMenuItem;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^添加AToolStripMenuItem;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^查找DToolStripMenuItem;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^Delect;

private:

System:

:

Windows:

:

Forms:

:

SplitContainer^splitContainer1;

private:

System:

:

Windows:

:

Forms:

:

DataGridView^dgv;

private:

System:

:

Windows:

:

Forms:

:

ToolStripMenuItem^Upd;

public:

String^xh,^xm,^xb,^bj,^dh,^ID,^Mt,^Ph,^Eg,^Et,^Ml,^Cp,^Kch,^Kc,^Xs,^Xf,^IDT;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxNum;

public:

public:

private:

System:

:

Windows:

:

Forms:

:

Label^label1;

private:

System:

:

Windows:

:

Forms:

:

GroupBox^groupBox1;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxXfj;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxCp;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxMl;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxEt;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxEg;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxPh;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxMt;

private:

System:

:

Windows:

:

Forms:

:

Label^label9;

private:

System:

:

Windows:

:

Forms:

:

Label^label8;

private:

System:

:

Windows:

:

Forms:

:

Label^label7;

private:

System:

:

Windows:

:

Forms:

:

Label^label6;

private:

System:

:

Windows:

:

Forms:

:

Label^label5;

private:

System:

:

Windows:

:

Forms:

:

Label^label4;

private:

System:

:

Windows:

:

Forms:

:

Label^label3;

private:

System:

:

Windows:

:

Forms:

:

TextBox^textBoxName;

private:

System:

:

Windows:

:

Forms:

:

Label^label2;

protected:

private:

System:

:

ComponentModel:

:

IContainer^components;

protected:

private:

///

///必需的设计器变量。

///

#pragmaregionWindowsFormDesignergeneratedcode

///

///设计器支持所需的方法-不要

///使用代码编辑器修改此方法的内容。

///

voidInitializeComponent(void)

{

System:

:

ComponentModel:

:

ComponentResourceManager^resources=(gcnewSystem:

:

ComponentModel:

:

ComponentResourceManager(StuMan:

:

typeid));

this->menuStrip1=(gcnewSystem:

:

Windows:

:

Forms:

:

MenuStrip());

this->文件ToolStripMenuItem=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->StudentManagement=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->ScoreManagement=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->ClassManagement=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->编辑EToolStripMenuItem=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->添加AToolStripMenuItem=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->查找DToolStripMenuItem=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->Delect=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->Upd=(gcnewSystem:

:

Windows:

:

Forms:

:

ToolStripMenuItem());

this->splitContainer1=(gcnewSystem:

:

Windows:

:

Forms:

:

SplitContainer());

this->groupBox1=(gcnewSystem:

:

Windows:

:

Forms:

:

GroupBox());

this->textBoxXfj=(gcnewSystem:

:

Windows:

:

Forms:

:

TextBox());

this->textBo

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

当前位置:首页 > 人文社科 > 法律资料

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1