资源简介
C#学生综合信息管理系统,包含完整的源代码,数据库

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
//下载自:源码爱好者 http://www.codefans.net
namespace Loginframe
{
public partial class AddQuestion : Form
{
public AddQuestion()
{
InitializeComponent();
}
private void AddQuestion_Load(object sender EventArgs e)
{
string sql = “select SubjectName from Subject“;
try
{
SqlCommand command = new SqlCommand(sql DbHelper.connection);
DbHelper.connection.Open();
SqlDataReader dataReader = command.ExecuteReader();
while (dataReader.Read())
{
cboSubject.Items.Add(dataReader[“SubjectName“].ToString());
}
dataReader.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally {
DbHelper.connection.Close();
}
}
private void btnAdd_Click(object sender EventArgs e)
{
string question = txtQuestion.Text.Trim();
string optionA = txtAnserA.Text.Trim();
string optionB = txtAnserB.Text.Trim();
string optionC = txtAnserC.Text.Trim();
string optionD = txtAnserD.Text.Trim();
string subject = cboSubject.Text;
int subjectId = 0;
string answer = ““;
int difficulty = 0;
if (!ValidateInput())
{
MessageBox.Show(“信息填写不完整!“);
}
else {
string sql = string.Format(“select SubjectId from Subject where SubjectName=‘{0}‘“subject);
try
{
SqlCommand command = new SqlCommand();
command.CommandText = sql;
command.Connection = DbHelper.connection;
DbHelper.connection.Open();
//得到科目编号
subjectId = (int)command.ExecuteScalar();
//SqlDataReader dataReader = command.ExecuteReader();
//if(dataReader.Read()){
// subjectId = (int)dataReader[0];
//}
//dataReader.close();
//确定答案
if (rdoA.Checked) {
answer = “A“;
}else if (rdoB.Checked) {
answer = “B“;
}else if (rdoC.Checked) {
answer = “C“;
}else{
answer = “D“;
}
//确定难
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5441 2009-05-08 00:58 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 17603 2008-06-12 19:52 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 5814 2008-06-12 19:52 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 5756 2008-06-13 13:11 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 19839 2009-05-08 00:59 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 17946 2008-06-13 13:11 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 1458 2009-05-08 00:59 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 14200 2009-05-08 00:58 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 26105 2008-06-17 12:29 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 4702 2009-05-08 00:59 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 27143 2008-06-30 16:50 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 6009 2008-06-30 16:50 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 5924 2008-06-30 16:07 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 8769 2008-06-26 17:54 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 6007 2008-06-26 17:54 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 396 2008-06-14 10:50 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 540 2008-06-17 10:40 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 627 2008-06-10 13:59 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 2641 2009-05-08 00:58 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 6008 2008-06-10 13:59 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 4418 2009-05-08 00:58 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 5500 2009-05-08 00:58 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 76557 2008-06-17 11:41 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 12009 2008-06-19 10:49 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 168 2008-06-23 16:53 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 263 2009-05-08 00:59 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 61873 2009-05-08 00:59 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 3 2008-06-14 10:50 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 22475 2008-06-14 10:50 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
文件 3 2008-06-14 10:50 C#学生综合信息管理系统完整版源码\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
............此处省略346个文件信息
相关资源
- C# IP地址输入控件
- C#在一个窗口刷新更改另一个窗口控件
- 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 操作摄像头录像附
评论
共有 条评论