-
大小: 3.27MB文件類型: .zip金幣: 2下載: 0 次發布日期: 2023-10-23
- 語言: C#
- 標簽:
資源簡介
C#aps.net開發的網頁版學生管理系統,用到了三層架構和存儲過程,代碼注釋很詳細,很適合初學者學習使用

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?DAL;
using?System.Data;
using?System.Data.SqlClient;
namespace?BLL
{
????public?class?StudentJiyuView
????{
????????//創建一個數據庫操作類
????????DatabaseHelper?db?=?new?DatabaseHelper();
????????/****************************************************************/
????????/*???????????????????????利用SQL語句實現的代碼?????????????????*/
????????/****************************************************************/
/*???????
????????public?SqlDataReader?getReaderJiyu(string?username)
????????{
????????????string?str?=?“select?pingjia?from?users?where?name=‘“?+username?+?“‘“;?????????
????????????SqlDataReader?sr?=?db.SelectSqlReturnDataReader(str?CommandType.Text?null);
????????????return?sr;
????????}
*/
????????/****************************************************************/
????????/*???????????????????????利用存儲結構實現的代碼?????????????????*/
????????/****************************************************************/
????????///?
????????///?根據username查看成績
????????///?
????????///?
????????///?
????????????public?SqlDataReader?getReaderJiyu(string?username)
?????????????{
?????????????????string?condition?=?“name=‘“?+?username?+?“‘“;
?????????????????SqlParameter[]?pars?=?new?SqlParameter[]
?????????????????{
?????????????????????new?SqlParameter(“@tableName““users“)
?????????????????????new?SqlParameter(“@columns““*“)
?????????????????????new?SqlParameter(“@condition“condition)
?????????????????};
?????????????????return?db.SelectSqlReturnDataReader(“Sp_getDataByCondition“?CommandType.StoredProcedure?pars);
?????????????}
???????????
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-05-06?23:52??學生成績管理系統\
?????目錄???????????0??2015-05-07?17:51??學生成績管理系統\BLL\
?????文件????????2923??2015-05-07?18:01??學生成績管理系統\BLL\BLL.csproj
?????目錄???????????0??2015-05-06?23:52??學生成績管理系統\BLL\Properties\
?????文件????????1356??2015-05-06?23:52??學生成績管理系統\BLL\Properties\AssemblyInfo.cs
?????文件????????1859??2015-05-07?20:34??學生成績管理系統\BLL\StudentJiyuView.cs
?????文件????????1627??2015-05-07?19:55??學生成績管理系統\BLL\StudentViewScore.cs
?????文件????????3482??2015-05-07?22:52??學生成績管理系統\BLL\TeacherAddStu.cs
?????文件????????2902??2015-05-07?23:03??學生成績管理系統\BLL\TeacherDleteStudent.cs
?????文件????????1315??2015-05-07?23:19??學生成績管理系統\BLL\TeacherLookAllStudent.cs
?????文件????????3843??2015-05-08?00:06??學生成績管理系統\BLL\TeacherMangerStu.cs
?????文件????????3151??2015-05-07?20:59??學生成績管理系統\BLL\TeacherOpertoStudent.cs
?????文件????????1666??2015-05-07?23:32??學生成績管理系統\BLL\TeacherPingjiastu.cs
?????文件????????4354??2015-05-08?00:30??學生成績管理系統\BLL\TeacherTongji.cs
?????文件????????3994??2015-05-07?19:45??學生成績管理系統\BLL\UserLogin.cs
?????目錄???????????0??2015-05-06?23:52??學生成績管理系統\BLL\bin\
?????目錄???????????0??2015-05-08?00:33??學生成績管理系統\BLL\bin\Debug\
?????目錄???????????0??2015-05-08?00:33??學生成績管理系統\BLL\bin\Release\
?????目錄???????????0??2015-05-07?10:34??學生成績管理系統\BLL\obj\
?????目錄???????????0??2015-05-07?15:44??學生成績管理系統\BLL\obj\Debug\
?????文件????????5686??2015-05-07?15:42??學生成績管理系統\BLL\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????目錄???????????0??2015-05-08?00:33??學生成績管理系統\BLL\obj\Debug\TempPE\
?????目錄???????????0??2015-05-08?00:31??學生成績管理系統\BLL\obj\Release\
?????文件????????5692??2015-05-08?00:30??學生成績管理系統\BLL\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache
?????目錄???????????0??2015-05-08?00:33??學生成績管理系統\BLL\obj\Release\TempPE\
?????目錄???????????0??2015-05-06?23:18??學生成績管理系統\DAL\
?????文件????????2352??2015-05-07?00:02??學生成績管理系統\DAL\DAL.csproj
?????文件????????8973??2015-05-07?16:59??學生成績管理系統\DAL\Databa
?????目錄???????????0??2015-05-06?23:15??學生成績管理系統\DAL\Properties\
?????文件????????1356??2015-05-06?23:15??學生成績管理系統\DAL\Properties\AssemblyInfo.cs
?????目錄???????????0??2015-05-06?23:17??學生成績管理系統\DAL\bin\
............此處省略104個文件信息
評論
共有 條評論