91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.39MB
    文件類(lèi)型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-08-26
  • 語(yǔ)言: C#
  • 標(biāo)簽: C#??

資源簡(jiǎn)介

上傳的資源是由本人開(kāi)發(fā)的基于C#的用戶(hù)自定義問(wèn)卷調(diào)查系統(tǒng),上傳了C#的部分,數(shù)據(jù)庫(kù)是使用的SQL SERVER,如果需要運(yùn)行請(qǐng)自行參考之前的博文(5月9日已更新最新的數(shù)據(jù)庫(kù)設(shè)計(jì)),建立數(shù)據(jù)庫(kù)(power designer)。難度不大,本代碼僅供學(xué)習(xí)交流使用,如有參考或轉(zhuǎn)載請(qǐng)注明來(lái)源

資源截圖

代碼片段和文件信息

using?System;
using?System.Data;
using?System.Data.SqlClient;
using?System.Text.Regularexpressions;
using?System.Windows.Forms;

namespace?用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端
{
????public?class?DbHelper
????{
????????private?static?String?connstr?=?“Data?Source=.;Initial?Catalog=questionnaire;Integrated?Security=True“;

????????#region?建立數(shù)據(jù)庫(kù)鏈接
????????public?static?SqlConnection?createConnection()??????????//建立數(shù)據(jù)庫(kù)連接
????????{
????????????SqlConnection?conn?=?new?SqlConnection(connstr);
????????????conn.Open();
????????????return?conn;
????????}
????????#endregion

????????#region?學(xué)生登錄
????????public?int?CheckStudent(string?username?string?password?string?usertype)???????//校驗(yàn)學(xué)生登錄
????????{
????????????if?(isExists(username))
????????????{
????????????????return?-1;
????????????}
????????????string?strCommandText?=?“select?StudentPSW?from?“?+?usertype?+?“?where?StudentID=‘“?+?username?+?“‘“;
????????????SqlCommand?cmd?=?new?SqlCommand(strCommandText?DbHelper.createConnection());
????????????int?check?=?-1;
????????????string?psd?=?““;


????????????//SqlDataReader?dr?=?cmd.ExecuteReader();
????????????try
????????????{
????????????????if?(cmd.ExecuteScalar()?==?null)
????????????????{
???????????????????
????????????????????return?-1;
????????????????}
????????????????
????????????????//if?(obj.ToString()?==?““)
????????????????//{
????????????????????
????????????????//}
????????????????else
????????????????{
????????????????????psd?=?cmd.ExecuteScalar().ToString();
????????????????}
????????????????
????????????????if?(psd?==?password)
????????????????{
????????????????????check?=?1;
????????????????}

????????????}
????????????catch?(Exception?ex)
????????????{

????????????????throw?ex;
????????????}
????????????finally
????????????{
????????????????cmd.Connection.Close();
????????????}
????????????return?check;

????????}


????????#endregion

????????#region?教師登錄

????????public?int?CheckTeacher(string?username?string?password?string?usertype)???????//校驗(yàn)教師登錄
????????{
????????????if?(isExists(username))
????????????{
????????????????return?-1;
????????????}
????????????string?strCommandText?=?“select?TeacherPSW?from?“?+?usertype?+?“?where?TeacherID=‘“?+?username?+?“‘“;
????????????SqlCommand?cmd?=?new?SqlCommand(strCommandText?DbHelper.createConnection());
????????????int?check?=?-1;
????????????string?psd?=?““;
????????????//SqlDataReader?dr?=?cmd.ExecuteReader();
????????????try
????????????{
????????????????if?(cmd.ExecuteScalar()==null)
????????????????{
????????????????????return?-1;
????????????????}
????????????????psd?=?cmd.ExecuteScalar().ToString();
????????????????if?(psd?==?password)
????????????????{
????????????????????check?=?2;
????????????????}
????????????}
????????????catch?(Exception?ex)
????????????{

????????????????throw?ex;
????????????}
????????????finally
????????????{
????????????????cmd.Connection.Close();
????????????}
??

?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\
?????目錄???????????0??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\
?????目錄???????????0??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\
?????目錄???????????0??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\
?????文件??????122368??2019-06-06?15:07??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\.suo
?????目錄???????????0??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\Server\
?????目錄???????????0??2019-05-17?10:58??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\Server\sqlite3\
?????文件???????????0??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\Server\sqlite3\db.lock
?????文件??????634880??2019-05-24?16:45??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\Server\sqlite3\storage.ide
?????文件???????32768??2019-06-06?14:20??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\Server\sqlite3\storage.ide-shm
?????文件?????4128272??2019-05-24?18:32??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\.vs\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\v15\Server\sqlite3\storage.ide-wal
?????目錄???????????0??2019-05-24?16:54??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\
?????文件????????1233??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端.sln
?????文件?????????189??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\App.config
?????目錄???????????0??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\
?????目錄???????????0??2019-05-04?18:21??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Debug\
?????文件???????49152??2019-05-24?16:54??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Debug\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端.exe
?????文件?????????189??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Debug\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端.exe.config
?????文件??????130560??2019-05-24?16:54??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Debug\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端.pdb
?????目錄???????????0??2019-05-15?10:55??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Release\
?????文件???????44032??2019-05-17?11:01??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Release\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端.exe
?????文件?????????189??2019-05-04?18:15??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Release\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端.exe.config
?????文件??????116224??2019-05-17?11:01??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\bin\Release\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端.pdb
?????文件???????21327??2019-05-24?16:54??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\DbHelper.cs
?????文件????????2406??2019-05-19?20:23??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\frmLogin.cs
?????文件????????6173??2019-05-05?12:24??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\frmLogin.Designer.cs
?????文件????????5817??2019-05-05?12:24??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\frmLogin.resx
?????文件???????18019??2019-05-19?20:23??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\frmStudentAnswerWJ.cs
?????文件????????5335??2019-05-14?15:29??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\frmStudentAnswerWJ.Designer.cs
?????文件????????5817??2019-05-14?15:29??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\frmStudentAnswerWJ.resx
?????文件????????1116??2019-05-19?20:23??用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\用戶(hù)自定義問(wèn)卷系統(tǒng)學(xué)生與教師端\frmStudentChange.cs
............此處省略168個(gè)文件信息

評(píng)論

共有 條評(píng)論