1、学生成绩管理系统设计说明书设计说明一本程序的设计思路与体系简述:(1)设计思路:.设计程序预期功能;.确定程序语言与运行环境;.设计程序的整体结构;.用模块化的理念对各个小的功能进 行编写并进行初期调试;.将各个小的模块集合成整体,形成真正的功能全面的程序;.对程序进行总的调试修改;.后期完善,修复bug等,以及对新功能的引入,外包处理,最终完成整个程序的设计。(2)本程序的体系:二相关代码(1)初始化窗口代码:#pragma once#include StuMan.hnamespace StudentManagement using namespace System; using names
2、pace System:ComponentModel; using namespace System:Collections; using namespace System:Windows:Forms; using namespace System:Data; using namespace System:Drawing; / / Form1 摘要 / / 警告: 如果更改此类的名称,则需要更改 / 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的 / “资源文件名”属性。否则, / 设计器将不能与此窗体的关联 / 本地化资源正确交互。 / public ref class Fo
3、rm1 : public System:Windows:Forms:Form public: Form1(void) InitializeComponent(); / /TODO: 在此处添加构造函数代码 / protected: / / 清理所有正在使用的资源。 / Form1() if (components) delete components; private: System:Windows:Forms:Button button1; protected: private: System:Windows:Forms:ListView listView1; private: System
4、:Windows:Forms:Label label1; private: / / 必需的设计器变量。 / System:ComponentModel:Container components;#pragma region Windows Form Designer generated code / / 设计器支持所需的方法 - 不要 / 使用代码编辑器修改此方法的内容。 / void InitializeComponent(void) System:ComponentModel:ComponentResourceManager resources = (gcnew System:Compon
5、entModel:ComponentResourceManager(Form1:typeid); this-button1 = (gcnew System:Windows:Forms:Button(); this-listView1 = (gcnew System:Windows:Forms:ListView(); this-label1 = (gcnew System:Windows:Forms:Label(); this-SuspendLayout(); / / button1 / this-button1-Location = System:Drawing:Point(24, 115);
6、 this-button1-Name = Lbutton1; this-button1-Size = System:Drawing:Size(75, 23); this-button1-TabIndex = 0; this-button1-Text = L学生管理; this-button1-UseVisualStyleBackColor = true; this-button1-Click += gcnew System:EventHandler(this, &Form1:button1_Click); / / listView1 / this-listView1-BackgroundIma
7、ge = (cli:safe_cast(resources-GetObject(LlistView1.BackgroundImage); this-listView1-Location = System:Drawing:Point(131, 22); this-listView1-Name = LlistView1; this-listView1-Size = System:Drawing:Size(140, 135); this-listView1-TabIndex = 3; this-listView1-UseCompatibleStateImageBehavior = false; /
8、/ label1 / this-label1-AutoSize = true; this-label1-Font = (gcnew System:Drawing:Font(LMicrosoft Sans Serif, 12, System:Drawing:FontStyle:Regular, System:Drawing:GraphicsUnit:Point, static_cast(134); this-label1-Location = System:Drawing:Point(156, 176); this-label1-Name = Llabel1; this-label1-Size
9、= System:Drawing:Size(105, 120); this-label1-TabIndex = 4; this-label1-Text = LCopyright byrn西北工业大学rn 机电学院 rn 高岭rnrnrn; / / Form1 / this-AutoScaleDimensions = System:Drawing:SizeF(6, 12); this-AutoScaleMode = System:Windows:Forms:AutoScaleMode:Font; this-ClientSize = System:Drawing:Size(292, 266); t
10、his-Controls-Add(this-label1); this-Controls-Add(this-listView1); this-Controls-Add(this-button1); this-Icon = (cli:safe_cast(resources-GetObject(L$this.Icon); this-MaximizeBox = false; this-Name = LForm1; this-StartPosition = System:Windows:Forms:FormStartPosition:CenterScreen; this-Text = L学生管理系统;
11、 this-Load += gcnew System:EventHandler(this, &Form1:Form1_Load); this-ResumeLayout(false); this-PerformLayout(); #pragma endregion private: System:Void Form1_Load(System:Object sender, System:EventArgs e) private: System:Void button1_Click(System:Object sender, System:EventArgs e) StuManstuMan=gcne
12、w StuMan; stuMan-ShowDialog(); this-Close(); ;(2)主界面代码#pragma once#includeFind.h#includeAdd.h#include AddClass.h#include Del.h#include Upda.h#include UpdaScore.h#include UpdaClass.husing namespace System;using namespace System:ComponentModel;using namespace System:Collections;using namespace System:
13、Windows:Forms;using namespace System:Data;using namespace System:Drawing;using namespace System:Data:OleDb;namespace StudentManagement / / StuMan 摘要 / / 警告: 如果更改此类的名称,则需要更改 / 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的 / “资源文件名”属性。否则, / 设计器将不能与此窗体的关联 / 本地化资源正确交互。 / public ref class StuMan : public System:Window
14、s:Forms:Form public: StuMan(void) InitializeComponent(); / /TODO: 在此处添加构造函数代码 / int mid; private: System:Windows:Forms:ToolStripMenuItem ClassManagement; public: public: public: public: OleDbConnectionobjConnection; /ShowView函数显示数据学生信息 public: void ShowView() objConnection = gcnew OleDbConnection(LP
15、rovider=;Data Source=Stuman.mdb); System:Data:OleDb:OleDbDataAdapter objAdapter = gcnew OleDbDataAdapter(select * from PersonView , objConnection); System:Data:DataSet objDataset = gcnew DataSet(); objAdapter-Fill(objDataset, PersonView); dgv-DataSource = objDataset-TablesPersonView; /ShowScoreView函
16、数显示成绩信息 public: void ShowScoreView() objConnection = gcnew OleDbConnection(LProvider=;Data Source=Stuman.mdb); System:Data:OleDb:OleDbDataAdapter objAdapter = gcnew OleDbDataAdapter(select * from PersonScoreView , objConnection); System:Data:DataSet objDataset = gcnew DataSet(); objAdapter-Fill(objD
17、ataset, PersonScoreView); dgv-DataSource = objDataset-TablesPersonScoreView; /ShowClassView函数显示课程信息 public: void ShowClassView() objConnection = gcnew OleDbConnection(LProvider=;Data Source=Stuman.mdb); System:Data:OleDb:OleDbDataAdapter objAdapter = gcnew OleDbDataAdapter(select * from PersonClassV
18、iew , objConnection); System:Data:DataSet objDataset = gcnew DataSet(); objAdapter-Fill(objDataset, PersonClassView); dgv-DataSource = objDataset-TablesPersonClassView; protected: / / 清理所有正在使用的资源。 / StuMan() if (components) delete components; private: System:Windows:Forms:MenuStrip menuStrip1; prote
19、cted: 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
20、: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:W
21、indows:Forms:ToolStripMenuItem Upd; public: Stringxh,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:TextBo
22、x 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 tex
23、tBoxMt; 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:Form
24、s:Label label3; private: System:Windows:Forms:TextBox textBoxName; private: System:Windows:Forms:Label label2; protected: private: System:ComponentModel:IContainer components; protected: private: / / 必需的设计器变量。 / #pragma region Windows Form Designer generated code / / 设计器支持所需的方法 - 不要 / 使用代码编辑器修改此方法的内
25、容。 / void InitializeComponent(void) System:ComponentModel:ComponentResourceManager resources = (gcnew System:ComponentModel:ComponentResourceManager(StuMan:typeid); this-menuStrip1 = (gcnew System:Windows:Forms:MenuStrip(); this-文件ToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem();
26、this-StudentManagement = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-ScoreManagement = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-ClassManagement = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-编辑EToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-
27、添加AToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-查找DToolStripMenuItem = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-Delect = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-Upd = (gcnew System:Windows:Forms:ToolStripMenuItem(); this-splitContainer1 = (gcnew System:Windows:Forms:SplitContainer(); this-groupBox1 = (gcnew System:Windows:Forms:GroupBox(); this-textBoxXfj = (gcnew System:Windows:Forms:TextBox(); this-textBo
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2