一个非常完整的学校管理系统,使用C# ACCESS开发, 附加安装程序,支持所有基本的学校管理功能 包含所有源代码,可进行二次开发... 超级管理员 用户名及密码:admin 普通管理员 用户名及密码:test
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using 学校管理系统.customerClass;namespace 学校管理系统{ public partial class Main : Form { public string LoginAdmin = ""; //当前登录的管理员 public string LoginLevel = ""; //当前登录的管理员的级别 public bool IsCommonAdmin=false; // 是否为普通管理员 public Main() { InitializeComponent(); } private void ExitToolsStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); } private void printToolStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); } private void mdiSchool_FormClosed(object sender, FormClosedEventArgs e) { Application.Exit(); } private void timer1_Tick(object sender, EventArgs e) { txtDateTime.Text = " " DateTime.Now.ToString(); } private void Main_Load(object sender, EventArgs e) { ProgramDevelope.Text = " 技术支持: 智者网络 www.zzwlkj.cn"; txtCurrentAdmin.ForeColor = Color.Red; txtCurrentAdmin.Font = new Font(FontFamily.GenericSerif, 12f, FontStyle.Bold); txtCurrentLevel.ForeColor = Color.Red; txtCurrentLevel.Font = new Font(FontFamily.GenericSerif, 9f, FontStyle.Bold); txtCurrentAdmin.Text = LoginAdmin; txtCurrentLevel.Text = LoginLevel; if (LoginLevel == "普通管理员") { IsCommonAdmin = true; } } private void ShowNewForm(object sender, EventArgs e) { //添加管理员 AddAdmin ma = new AddAdmin(); ma.ShowDialog(this); } private void OpenFile(object sender, EventArgs e) { //管理管理员 AdminInfo ma = new AdminInfo(); ma.ShowDialog(this); } private void saveToolStripMenuItem_Click(object sender, EventArgs e) { //注销 Login ll = new Login(); ll.Show(); this.Visible = false; } private void 管理教师MToolStripMenuItem_Click(object sender, EventArgs e) { //管理教师 TeacherInfo ma = new TeacherInfo(); ma.ShowDialog(this); } private void ManaWork_Click(object sender, EventArgs e) { //管理职位 WorkInfo wi = new WorkInfo(); wi.ShowDialog(this); } private void 管理班级CToolStripMenuItem_Click(object sender, EventArgs e) { //班级信息 ClassInfo ci = new ClassInfo(); ci.ShowDialog(this); } private void 管理学生MToolStripMenuItem_Click(object sender, EventArgs e) { //学生信息 StudentInfo si = new StudentInfo(); si.ShowDialog(this); } private void 学生欠费管理QToolStripMenuItem_Click(object sender, EventArgs e) { //学生欠费管理 MoneyInfo mi = new MoneyInfo(); mi.ShowDialog(this); } private void 学生纪律管理JToolStripMenuItem_Click(object sender, EventArgs e) { //学生纪律管理 LeaveInfo li = new LeaveInfo(); li.ShowDialog(this); } private void HelpMenu_Click(object sender, EventArgs e) { //关于我们 MessageBox.Show("艺晋电脑培训学校-管理系统\n\n技术支持: 智者网络\n咨询QQ:460954689\nEmail:luojiemxcz@yahoo.cn\n联系电话:13415320547\n官方网址:http://www.zzwlkj.cn/", "关于我们", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); } private void 添加成绩AToolStripMenuItem_Click(object sender, EventArgs e) { //课程类型 CourseTypeInfo ct = new CourseTypeInfo(); ct.ShowDialog(this); } private void 管理成绩MToolStripMenuItem_Click(object sender, EventArgs e) { //课程信息 CourseInfo cou = new CourseInfo(); cou.ShowDialog(this); } }}
评论