资源简介
这是一个基于C#的学生管理系统,可以作为C#的课程设计。
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Library.Dao;
using System.Data.SqlClient;
using Library.Class;
namespace Student_Course_System
{
public partial class Form1 : Form
{
Connection conn = new Connection();
string sql = ““;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender EventArgs e)
{
List list = new List();
list.Add(new Items(0 “管理员登录“));
list.Add(new Items(1 “学生登录“));
comboBox1.DataSource = list;
comboBox1.DisplayMember = “Text“;
comboBox1.ValueMember = “Value“;
}
private void button1_Click(object sender EventArgs e)
{
string username = textBox1.Text;
string password = textBox2.Text;
if (username != ““ && password != ““)
{
if (Convert.ToInt32(comboBox1.SelectedValue) == 0)
{
sql = “select COUNT(*) from Admin where loginName=‘“ +username+ “‘ and password=‘“ +password+ “‘;“;
if (conn.getRow(sql) > 0)
{
Form2 f2 = new Form2(username);
this.Hide();
f2.ShowDialog();
}
else
{
MessageBox.Show(“管理员不存在或密码错误“);
}
}
else if (Convert.ToInt32(comboBox1.SelectedValue) == 1)
{
sql = “select COUNT(*) from Student where stuID=‘“ +username+ “‘ and password=‘“ +password+ “‘;“;
if (conn.getRow(sql) > 0)
{
Form7 f7 = new Form7(username);
this.Hide();
f7.ShowDialog();
}
else
{
MessageBox.Show(“学号未注册或密码错误“);
}
}
}
else
{
MessageBox.Show(“用户名或者密码不能为空“);
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 47104 2016-05-28 17:10 学生成绩管理系统\Student_Course_System\Student_Course_System\bin\Debug\Student_Course_System.exe
文件 105984 2016-05-28 17:10 学生成绩管理系统\Student_Course_System\Student_Course_System\bin\Debug\Student_Course_System.pdb
文件 11600 2016-05-28 17:06 学生成绩管理系统\Student_Course_System\Student_Course_System\bin\Debug\Student_Course_System.vshost.exe
文件 490 2012-06-06 02:06 学生成绩管理系统\Student_Course_System\Student_Course_System\bin\Debug\Student_Course_System.vshost.exe.manifest
文件 594 2016-05-27 14:59 学生成绩管理系统\Student_Course_System\Student_Course_System\Class\Items.cs
文件 1804 2016-05-28 17:10 学生成绩管理系统\Student_Course_System\Student_Course_System\Dao\Connection.cs
文件 2492 2016-05-28 15:49 学生成绩管理系统\Student_Course_System\Student_Course_System\Form1.cs
文件 4878 2016-05-27 15:06 学生成绩管理系统\Student_Course_System\Student_Course_System\Form1.Designer.cs
文件 5817 2016-05-27 15:06 学生成绩管理系统\Student_Course_System\Student_Course_System\Form1.resx
文件 10658 2016-05-28 16:16 学生成绩管理系统\Student_Course_System\Student_Course_System\Form2.cs
文件 17481 2016-05-28 11:52 学生成绩管理系统\Student_Course_System\Student_Course_System\Form2.Designer.cs
文件 5817 2016-05-28 16:16 学生成绩管理系统\Student_Course_System\Student_Course_System\Form2.resx
文件 2434 2016-05-28 15:26 学生成绩管理系统\Student_Course_System\Student_Course_System\Form3.cs
文件 8117 2016-05-27 18:05 学生成绩管理系统\Student_Course_System\Student_Course_System\Form3.Designer.cs
文件 6020 2016-05-27 18:05 学生成绩管理系统\Student_Course_System\Student_Course_System\Form3.resx
文件 3338 2016-05-28 15:35 学生成绩管理系统\Student_Course_System\Student_Course_System\Form4.cs
文件 8913 2016-05-27 18:39 学生成绩管理系统\Student_Course_System\Student_Course_System\Form4.Designer.cs
文件 5817 2016-05-27 18:39 学生成绩管理系统\Student_Course_System\Student_Course_System\Form4.resx
文件 3547 2016-05-28 16:30 学生成绩管理系统\Student_Course_System\Student_Course_System\Form5.cs
文件 7782 2016-05-28 15:07 学生成绩管理系统\Student_Course_System\Student_Course_System\Form5.Designer.cs
文件 5817 2016-05-28 15:07 学生成绩管理系统\Student_Course_System\Student_Course_System\Form5.resx
文件 2799 2016-05-28 15:26 学生成绩管理系统\Student_Course_System\Student_Course_System\Form6.cs
文件 4777 2016-05-28 11:52 学生成绩管理系统\Student_Course_System\Student_Course_System\Form6.Designer.cs
文件 5817 2016-05-28 11:52 学生成绩管理系统\Student_Course_System\Student_Course_System\Form6.resx
文件 4469 2016-05-28 16:59 学生成绩管理系统\Student_Course_System\Student_Course_System\Form7.cs
文件 15727 2016-05-28 16:55 学生成绩管理系统\Student_Course_System\Student_Course_System\Form7.Designer.cs
文件 5817 2016-05-28 16:55 学生成绩管理系统\Student_Course_System\Student_Course_System\Form7.resx
文件 2741 2016-05-28 16:39 学生成绩管理系统\Student_Course_System\Student_Course_System\Form8.cs
文件 8902 2016-05-28 16:35 学生成绩管理系统\Student_Course_System\Student_Course_System\Form8.Designer.cs
文件 5817 2016-05-28 16:35 学生成绩管理系统\Student_Course_System\Student_Course_System\Form8.resx
............此处省略44个文件信息
相关资源
- C# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
评论
共有 条评论