資源簡介
校園餐卡管理系統是在.NET平臺下開發的基于三層架構的管理系統。系統主要功能:包括對餐卡的開戶、銷戶、掛失、解掛、補卡、消費、充值以及查詢等。
用戶名:admin 密碼:admin
系統運行環境:本系統運行在Visual Studio 2008或較高版本中。
系統運行前請先修改 ./源代碼/Windows/App.config文件中的數據庫配置。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Data;
using?System.Data.SqlClient;
namespace?Hui.BLL
{
????///?
????///?業務邏輯類Card
????///?
????public?class?Card
????{
????????//創建數據訪問層對象
????????private?readonly?Hui.DAL.Card?dal?=?new?Hui.DAL.Card();
????????public?Card()
????????{
????????}
????????///
????????///添加一條數據
????????///
????????public?int?Add(Hui.Model.Card?model)
????????{
????????????return?dal.Add(model);
????????}
????????///
????????///開戶
????????///
????????public?string?OpenAccount(Hui.Model.Student?student?Hui.Model.Card?card)
????????{
????????????return?dal.OpenAccount(student?card);
????????}
????????///
????????///銷戶
????????///
????????public?int?ClosingAccount(string?stuid)
????????{
????????????return?dal.ClosingAccount(stuid);
????????}
????????///
????????///補卡
????????///
????????public?string?ReOpen(Hui.Model.Card?card?Hui.Model.Card?newcard)
????????{
????????????return?dal.ReOpen(card?newcard);
????????}
????????///
????????///更新一條數據
????????///
????????public?int?Update(Hui.Model.Card?model)
????????{
????????????return?dal.Update(model);
????????}
????????///
????????///得到一個對象實體
????????///
????????///Model
????????public?Hui.Model.Card?GetModel(string?StuID)
????????{
????????????Hui.Model.Card?model?=?dal.GetModel(StuID);
????????????return?model;
????????}
????????///
????????///驗證學號是否存在
????????///
????????public?int?CardStuId_Check(string?StuId)
????????{
????????????Hui.Model.Card?card?=?new?Hui.Model.Card();
????????????card?=?GetModel(StuId);
????????????if?(card?!=?null)
????????????{
????????????????return?1;
????????????}
????????????else
????????????{
????????????????return?0;
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6144??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.BLL.dll
?????文件??????34304??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.BLL.pdb
?????文件???????4096??2012-05-22?21:33??源代碼\BLL\bin\Debug\Hui.Common.dll
?????文件???????7680??2012-05-22?21:33??源代碼\BLL\bin\Debug\Hui.Common.pdb
?????文件??????16384??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.DAL.dll
?????文件??????40448??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.DAL.pdb
?????文件???????7168??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.DBUtility.dll
?????文件??????19968??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.DBUtility.pdb
?????文件???????7168??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.Model.dll
?????文件??????38400??2012-06-07?21:28??源代碼\BLL\bin\Debug\Hui.Model.pdb
?????文件???????3213??2012-05-22?10:29??源代碼\BLL\BLL.csproj
?????文件???????2109??2012-05-22?08:07??源代碼\BLL\Bll_Card.cs
?????文件???????1312??2012-05-22?09:27??源代碼\BLL\BLL_ConsumeCard.cs
?????文件???????1186??2012-05-22?16:16??源代碼\BLL\BLL_Manager.cs
?????文件???????1287??2012-05-22?10:34??源代碼\BLL\BLL_RechargeCard.cs
?????文件???????1443??2012-05-22?08:05??源代碼\BLL\BLL_Student.cs
?????文件???????1395??2012-06-07?20:19??源代碼\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
?????文件???????6144??2012-06-07?21:28??源代碼\BLL\obj\Debug\Hui.BLL.dll
?????文件??????34304??2012-06-07?21:28??源代碼\BLL\obj\Debug\Hui.BLL.pdb
?????文件???????4608??2012-06-07?19:12??源代碼\BLL\obj\Debug\Refactor\Hui.BLL.dll
?????文件??????17463??2012-06-07?21:28??源代碼\BLL\obj\Debug\ResolveAssemblyReference.cache
?????文件???????1358??2012-05-13?08:27??源代碼\BLL\Properties\AssemblyInfo.cs
?????文件???????4096??2012-05-22?21:33??源代碼\Common\bin\Debug\Hui.Common.dll
?????文件???????7680??2012-05-22?21:33??源代碼\Common\bin\Debug\Hui.Common.pdb
?????文件????????888??2012-05-22?21:32??源代碼\Common\Common.cs
?????文件???????2546??2012-05-22?21:14??源代碼\Common\Common.csproj
?????文件????????276??2012-05-22?21:16??源代碼\Common\obj\Debug\Common.csproj.FileListAbsolute.txt
?????文件???????4096??2012-05-22?21:33??源代碼\Common\obj\Debug\Hui.Common.dll
?????文件???????7680??2012-05-22?21:33??源代碼\Common\obj\Debug\Hui.Common.pdb
?????文件???????3072??2012-06-07?19:12??源代碼\Common\obj\Debug\Refactor\Hui.Common.dll
............此處省略182個文件信息
評論
共有 條評論