在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#数据库操作 → c#学生信息管理系统

c#学生信息管理系统

C#数据库操作

下载此实例
  • 开发语言:C#
  • 实例大小:1.33M
  • 下载次数:62
  • 浏览次数:577
  • 发布时间:2021-09-02
  • 实例类别:C#数据库操作
  • 发 布 人:jiangfeng82
  • 文件格式:.rar
  • 所需积分:1

实例介绍

【实例简介】研究生信息管理系统

【实例截图】

from clipboard


from clipboard


from clipboard


from clipboard


from clipboard


from clipboard



【核心代码】

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace MasterMIS
{
/// <summary>
/// Main 的摘要说明。
/// </summary>
public class Main : System.Windows.Forms.Form
{
private System.Windows.Forms.MainMenu mainMenu1;
public System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
public System.Windows.Forms.MenuItem menuItem4;
public System.Windows.Forms.MenuItem menuItem5;
public System.Windows.Forms.MenuItem menuItem6;
public System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.Windows.Forms.MenuItem menuItem10;
private System.Windows.Forms.MenuItem menuItem11;
private System.Windows.Forms.MenuItem menuItem13;
private System.Windows.Forms.MenuItem menuItem14;
private System.Windows.Forms.MenuItem menuItem15;
private System.Windows.Forms.MenuItem menuItem16;
private System.Windows.Forms.MenuItem menuItem17;
private System.Windows.Forms.MenuItem menuItem18;
private System.Windows.Forms.MenuItem menuItem19;
private System.Windows.Forms.MenuItem menuItem20;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton toolBarButton1;
private System.Windows.Forms.ToolBarButton toolBarButton2;
private System.Windows.Forms.ToolBarButton toolBarButton3;
private System.Windows.Forms.ToolBarButton toolBarButton4;
private System.Windows.Forms.ToolBarButton toolBarButton5;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
public System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.StatusBarPanel statusBarPanel3;
private System.Windows.Forms.StatusBarPanel statusBarPanel4;
private System.Windows.Forms.StatusBarPanel statusBarPanel5;
private System.ComponentModel.IContainer components;

public Main()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();

//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}

/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Main));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.menuItem16 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem17 = new System.Windows.Forms.MenuItem();
this.menuItem18 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.menuItem19 = new System.Windows.Forms.MenuItem();
this.menuItem20 = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel4 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel5 = new System.Windows.Forms.StatusBarPanel();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel5)).BeginInit();
this.SuspendLayout();
// 
// mainMenu1
// 
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem1,
 this.menuItem4,
 this.menuItem5,
 this.menuItem6,
 this.menuItem7,
 this.menuItem8,
 this.menuItem9});
// 
// menuItem1
// 
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem2,
 this.menuItem3});
this.menuItem1.Text = "系统管理";
// 
// menuItem2
// 
this.menuItem2.Index = 0;
this.menuItem2.Text = "添加用户";
this.menuItem2.Click = new System.EventHandler(this.menuItem2_Click);
// 
// menuItem3
// 
this.menuItem3.Index = 1;
this.menuItem3.Text = "新建角色";
this.menuItem3.Click = new System.EventHandler(this.menuItem3_Click);
// 
// menuItem4
// 
this.menuItem4.Index = 1;
this.menuItem4.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem10,
 this.menuItem11});
this.menuItem4.Text = "专业管理";
// 
// menuItem10
// 
this.menuItem10.Index = 0;
this.menuItem10.Text = "添加专业";
this.menuItem10.Click = new System.EventHandler(this.menuItem10_Click);
// 
// menuItem11
// 
this.menuItem11.Index = 1;
this.menuItem11.Text = "浏览专业";
this.menuItem11.Click = new System.EventHandler(this.menuItem11_Click);
// 
// menuItem5
// 
this.menuItem5.Index = 2;
this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem13,
 this.menuItem14});
this.menuItem5.Text = "课程管理";
// 
// menuItem13
// 
this.menuItem13.Index = 0;
this.menuItem13.Text = "添加课程";
this.menuItem13.Click = new System.EventHandler(this.menuItem13_Click);
// 
// menuItem14
// 
this.menuItem14.Index = 1;
this.menuItem14.Text = "浏览课程";
this.menuItem14.Click = new System.EventHandler(this.menuItem14_Click);
// 
// menuItem6
// 
this.menuItem6.Index = 3;
this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem15,
 this.menuItem16});
this.menuItem6.Text = "研究生管理";
// 
// menuItem15
// 
this.menuItem15.Index = 0;
this.menuItem15.Text = "添加信息";
this.menuItem15.Click = new System.EventHandler(this.menuItem15_Click);
// 
// menuItem16
// 
this.menuItem16.Index = 1;
this.menuItem16.Text = "浏览信息";
this.menuItem16.Click = new System.EventHandler(this.menuItem16_Click);
// 
// menuItem7
// 
this.menuItem7.Index = 4;
this.menuItem7.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem17,
 this.menuItem18});
this.menuItem7.Text = "成绩管理";
// 
// menuItem17
// 
this.menuItem17.Index = 0;
this.menuItem17.Text = "添加成绩";
this.menuItem17.Click = new System.EventHandler(this.menuItem17_Click);
// 
// menuItem18
// 
this.menuItem18.Index = 1;
this.menuItem18.Text = "浏览成绩";
this.menuItem18.Click = new System.EventHandler(this.menuItem18_Click);
// 
// menuItem8
// 
this.menuItem8.Index = 5;
this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
 this.menuItem19,
 this.menuItem20});
this.menuItem8.Text = "用户管理";
// 
// menuItem19
// 
this.menuItem19.Index = 0;
this.menuItem19.Text = "更改密码";
this.menuItem19.Click = new System.EventHandler(this.menuItem19_Click);
// 
// menuItem20
// 
this.menuItem20.Index = 1;
this.menuItem20.Text = "重新登录";
this.menuItem20.Click = new System.EventHandler(this.menuItem20_Click);
// 
// menuItem9
// 
this.menuItem9.Index = 6;
this.menuItem9.Text = "帮助";
// 
// toolBar1
// 
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton1,
this.toolBarButton2,
this.toolBarButton3,
this.toolBarButton4,
this.toolBarButton5});
this.toolBar1.ButtonSize = new System.Drawing.Size(70, 40);
this.toolBar1.DropDownArrows = true;
this.toolBar1.ImageList = this.imageList1;
this.toolBar1.Location = new System.Drawing.Point(0, 0);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(632, 46);
this.toolBar1.TabIndex = 1;
this.toolBar1.ButtonClick = new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
// 
// toolBarButton1
// 
this.toolBarButton1.ImageIndex = 0;
this.toolBarButton1.Text = "专业浏览";
this.toolBarButton1.ToolTipText = "专业";
// 
// toolBarButton2
// 
this.toolBarButton2.ImageIndex = 1;
this.toolBarButton2.Text = "课程浏览";
// 
// toolBarButton3
// 
this.toolBarButton3.ImageIndex = 2;
this.toolBarButton3.Text = "研究生浏览";
// 
// toolBarButton4
// 
this.toolBarButton4.ImageIndex = 3;
this.toolBarButton4.Text = "成绩浏览";
// 
// toolBarButton5
// 
this.toolBarButton5.ImageIndex = 4;
this.toolBarButton5.Text = "修改密码";
// 
// imageList1
// 
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
// 
// statusBar1
// 
this.statusBar1.Location = new System.Drawing.Point(0, 387);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
 this.statusBarPanel1,
 this.statusBarPanel2,
 this.statusBarPanel3,
 this.statusBarPanel4,
 this.statusBarPanel5});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(632, 22);
this.statusBar1.TabIndex = 3;
this.statusBar1.Text = "statusBar1";
// 
// statusBarPanel1
// 
this.statusBarPanel1.Text = "当前登录用户";
this.statusBarPanel1.Width = 80;
// 
// statusBarPanel2
// 
this.statusBarPanel2.Width = 60;
// 
// statusBarPanel3
// 
this.statusBarPanel3.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
this.statusBarPanel3.Width = 200;
// 
// statusBarPanel4
// 
this.statusBarPanel4.Width = 80;
// 
// statusBarPanel5
// 
this.statusBarPanel5.Width = 120;
// 
// Main
// 
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.Color.Lavender;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(632, 409);
this.Controls.Add(this.statusBar1);
this.Controls.Add(this.toolBar1);
this.IsMdiContainer = true;
this.Menu = this.mainMenu1;
this.Name = "Main";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "主界面";
this.Load = new System.EventHandler(this.Main_Load);
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel5)).EndInit();
this.ResumeLayout(false);

}
#endregion

AddUser addUser;
private void menuItem2_Click(object sender, System.EventArgs e)
{
addUser = new AddUser();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
addUser.MdiParent = this;
addUser.WindowState = FormWindowState.Maximized;
addUser.Show();
}

AddRoles addRoles;
private void menuItem3_Click(object sender, System.EventArgs e)
{
addRoles = new AddRoles();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
addRoles.MdiParent = this;
addRoles.WindowState = FormWindowState.Maximized;
addRoles.Show();
}

MajorAdd majorAdd;
private void menuItem10_Click(object sender, System.EventArgs e)
{
majorAdd = new MajorAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
majorAdd.MdiParent = this;
majorAdd.WindowState = FormWindowState.Maximized;
majorAdd.Show();
}

Major major;
private void menuItem11_Click(object sender, System.EventArgs e)
{
major = new Major();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
major.MdiParent = this;
major.WindowState = FormWindowState.Maximized;
major.Show();
}

CourseAdd courseAdd;
private void menuItem13_Click(object sender, System.EventArgs e)
{
courseAdd = new CourseAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
courseAdd.MdiParent = this;
courseAdd.WindowState = FormWindowState.Maximized;
courseAdd.Show();
}

Course course;
private void menuItem14_Click(object sender, System.EventArgs e)
{
course = new Course();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
course.MdiParent = this;
course.WindowState = FormWindowState.Maximized;
course.Show();
}

StudentAdd studentAdd;
private void menuItem15_Click(object sender, System.EventArgs e)
{
studentAdd = new StudentAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
studentAdd.MdiParent = this;
studentAdd.WindowState = FormWindowState.Maximized;
studentAdd.Show();
}

Student student;
private void menuItem16_Click(object sender, System.EventArgs e)
{
student = new Student();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
student.MdiParent = this;
student.WindowState = FormWindowState.Maximized;
student.Show();
}

ScoreAdd scoreAdd;
private void menuItem17_Click(object sender, System.EventArgs e)
{
scoreAdd = new ScoreAdd();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
scoreAdd.MdiParent = this;
scoreAdd.WindowState = FormWindowState.Maximized;
scoreAdd.Show();
}

Score score;
private void menuItem18_Click(object sender, System.EventArgs e)
{
score = new Score();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
score.MdiParent = this;
score.WindowState = FormWindowState.Maximized;
score.Show();
}

private void menuItem20_Click(object sender, System.EventArgs e)
{
((System.Windows.Forms.Form)this.Tag).Visible=true;
this.Close();
}

ModifyCode modifyCode;
private void menuItem19_Click(object sender, System.EventArgs e)
{
modifyCode = new ModifyCode();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
modifyCode.MdiParent = this;
modifyCode.Tag = this.statusBarPanel2.Text.Trim();
modifyCode.WindowState = FormWindowState.Maximized;
modifyCode.Show();
}

private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
switch(toolBar1.Buttons.IndexOf(e.Button))
{
case 0:
Form major = new Major();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
major.MdiParent = this;
major.WindowState = FormWindowState.Maximized;
major.Show();
break;
case 1:
Form course = new Course();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
course.MdiParent = this;
course.WindowState = FormWindowState.Maximized;
course.Show();
break;
case 2:
Form student = new Student();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
student.MdiParent = this;
student.WindowState = FormWindowState.Maximized;
student.Show();
break;
case 3:
Form score = new Score();
for(int x=0;x<this.MdiChildren.Length;x )
{
Form tempChild = (Form)this.MdiChildren[x];
tempChild.Close();
}
score.MdiParent = this;
score.WindowState = FormWindowState.Maximized;
score.Show();
break;
case 4:
Form modifyCode = new ModifyCode();
for(int x=0;x<MdiChildren.Length;x )
{
Form tempChild = (Form)MdiChildren[x];
tempChild.Close();
}
modifyCode.MdiParent = this;
modifyCode.Tag = this.statusBarPanel2.Text.Trim();
modifyCode.WindowState = FormWindowState.Maximized;
modifyCode.Show();
break;
}
}

private void Main_Load(object sender, System.EventArgs e)
{
this.statusBarPanel3.Text=DateTime.Now.ToString();
this.statusBarPanel4.Text="作者:ddl";
this.statusBarPanel5.Text="研究生管理信息系统";
}
}
}



实例下载地址

c#学生信息管理系统

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警