資源簡(jiǎn)介
C#學(xué)生綜合信息管理系統(tǒng),包含完整的源代碼,數(shù)據(jù)庫(kù)

代碼片段和文件信息
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;
//下載自:源碼愛(ài)好者?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(“信息填寫(xiě)不完整!“);
????????????}
????????????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();
????????????????????
????????????????????//得到科目編號(hào)
????????????????????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“;
????????????????????}
????????????????????//確定難
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件???????5441??2009-05-08?00:58??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????17603??2008-06-12?19:52??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????5814??2008-06-12?19:52??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????5756??2008-06-13?13:11??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????19839??2009-05-08?00:59??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????17946??2008-06-13?13:11??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????1458??2009-05-08?00:59??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????14200??2009-05-08?00:58??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????26105??2008-06-17?12:29??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????4702??2009-05-08?00:59??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????27143??2008-06-30?16:50??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????6009??2008-06-30?16:50??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????5924??2008-06-30?16:07??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????8769??2008-06-26?17:54??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????6007??2008-06-26?17:54??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件????????396??2008-06-14?10:50??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件????????540??2008-06-17?10:40??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件????????627??2008-06-10?13:59??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????2641??2009-05-08?00:58??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????6008??2008-06-10?13:59??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????4418??2009-05-08?00:58??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件???????5500??2009-05-08?00:58??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????76557??2008-06-17?11:41??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????12009??2008-06-19?10:49??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件????????168??2008-06-23?16:53??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件????????263??2009-05-08?00:59??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????61873??2009-05-08?00:59??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????????3??2008-06-14?10:50??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????22475??2008-06-14?10:50??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
?????文件??????????3??2008-06-14?10:50??C#學(xué)生綜合信息管理系統(tǒng)完整版源碼\xueshengxinxiguanlixito\MySchool\Backup\Loginfr
............此處省略346個(gè)文件信息
評(píng)論
共有 條評(píng)論