資源簡介
C# WinForm中實現(xiàn)基于角色的權(quán)限菜單的完整源碼,數(shù)據(jù)庫腳本在DBscript目錄下,在sql server 依次執(zhí)行如下腳本即可
執(zhí)行完畢后 修改下 app.config中的數(shù)據(jù)庫連接串 為你本機的即可
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?DALFactory?=?CodingMouse.CMCSharpSDK.DALFactory;
using?IBLL?=?CodingMouse.CMCSharpSDK.IBLL;
using?IDAL?=?CodingMouse.CMCSharpSDK.IDAL;
using?Model?=?CodingMouse.CMCSharpSDK.Model;
namespace?CodingMouse.CMCSharpSDK.BLL
{
????///?
????///?操作員數(shù)據(jù)訪問操作類
????///?
????public?class?OperatorManager?:?IBLL.IOperatorManager
????{
????????#region?IOperatorManager?成員
????????///?
????????///?根據(jù)操作員名稱和密碼獲取操作員實體
????????///?
????????///?操作員名稱
????????///?操作員密碼
????????///?操作員實體
????????public?Model.Operator?GetOperatorInfoByName(string?name?string?pwd)
????????{
????????????//?超級后門管理員賬戶
?????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-04-24?13:12??BLL\
?????文件????????3120??2018-04-24?13:12??BLL\BLL.csproj
?????文件????????4841??2008-12-15?21:37??BLL\OperatorManager.cs
?????目錄???????????0??2008-12-23?21:31??BLL\Properties\
?????文件????????1376??2008-12-15?21:39??BLL\Properties\AssemblyInfo.cs
?????文件????????3764??2008-12-15?21:37??BLL\RightsGroupManager.cs
?????文件????????5220??2008-12-15?21:37??BLL\RightsRelationManager.cs
?????目錄???????????0??2018-04-24?13:12??BLL\bin\
?????目錄???????????0??2018-04-24?13:20??BLL\bin\Debug\
?????文件????????7680??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKBLL.dll
?????文件???????24064??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKBLL.pdb
?????文件????????6884??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKBLL.xm
?????文件???????15872??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDAL.dll
?????文件???????30208??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDAL.pdb
?????文件????????6884??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDAL.xm
?????文件????????5632??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDALFactory.dll
?????文件???????15872??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDALFactory.pdb
?????文件????????2577??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDALFactory.xm
?????文件????????8192??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDBUtility.dll
?????文件???????24064??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDBUtility.pdb
?????文件???????10991??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKDBUtility.xm
?????文件????????5632??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKIBLL.dll
?????文件????????7680??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKIBLL.pdb
?????文件????????6936??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKIBLL.xm
?????文件????????5632??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKIDAL.dll
?????文件????????7680??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKIDAL.pdb
?????文件????????6936??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKIDAL.xm
?????文件????????7680??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKModel.dll
?????文件???????30208??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKModel.pdb
?????文件????????7977??2018-04-24?13:20??BLL\bin\Debug\CMCSharpSDKModel.xm
?????目錄???????????0??2018-04-24?13:12??BLL\obj\
............此處省略482個文件信息
評論
共有 條評論