資源簡介
要求具備基本功能如下:
(1)能夠對角色信息進行添加、修改、刪除、瀏覽等操作;
(2)能夠對權限信息進行添加、刪除、修改和查詢;
(3)實現對角色的權限分配與管理;
(4)系統操作簡單,方便實用。
數據庫在database文件夾中!

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Windows.Forms;
using?System.Reflection;
namespace?MrCy
{
????partial?class?AboutBox1?:?Form
????{
????????public?AboutBox1()
????????{
????????????InitializeComponent();
????????????//??初始化?AboutBox?以顯示程序集信息中包含的產品信息。
????????????//??也可以通過以下方法更改應用程序的程序集信息設置:
????????????//??-?項目->屬性->應用程序->程序集信息
????????????//??-?AssemblyInfo.cs
????????????this.Text?=?String.Format(“關于?{0}“?Assemblytitle);
????????????this.labelProductName.Text?=?AssemblyProduct;
????????????this.labelVersion.Text?=?String.Format(“版本?{0}“?AssemblyVersion);
????????????this.labelCopyright.Text?=?AssemblyCopyright;
????????????this.labelCompanyName.Text?=?AssemblyCompany;
????????????this.textBoxDescription.Text?=?AssemblyDescription;
????????}
????????#region?程序集屬性訪問器
????????public?string?Assemblytitle
????????{
????????????get
????????????{
????????????????//?獲取此程序集上的所有?title?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute)?false);
????????????????//?如果至少有一個?title?屬性
????????????????if?(attributes.Length?>?0)
????????????????{
????????????????????//?請選擇第一個屬性
????????????????????AssemblytitleAttribute?titleAttribute?=?(AssemblytitleAttribute)attributes[0];
????????????????????//?如果該屬性為非空字符串,則將其返回
????????????????????if?(titleAttribute.title?!=?““)
????????????????????????return?titleAttribute.title;
????????????????}
????????????????//?如果沒有?title?屬性,或者?title?屬性為一個空字符串,則返回?.exe?的名稱
????????????????return?System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
????????????}
????????}
????????public?string?AssemblyVersion
????????{
????????????get
????????????{
????????????????return?Assembly.GetExecutingAssembly().GetName().Version.ToString();
????????????}
????????}
????????public?string?AssemblyDescription
????????{
????????????get
????????????{
????????????????//?獲取此程序集的所有?Description?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute)?false);
????????????????//?如果?Description?屬性不存在,則返回一個空字符串
????????????????if?(attributes.Length?==?0)
????????????????????return?““;
????????????????//?如果有?Description?屬性,則返回該屬性的值
????????????????return?((AssemblyDescriptionAttribute)attributes[0]).Description;
????????????}
????????}
????????public?string?AssemblyProduct
????????{
????????????get
????????????{
????????????????//?獲取此程序集上的所有?Product?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute)?false);
????????????????//?如果?Product?屬性不存在,則返回一個空字符串
????????????????if?(attributes.Length?==?0)
????????????????????return?““;
????????????????//?如果有?Product?屬性,則返回該屬性的值
????????????????return?((AssemblyProductAttribute)attributes[0]).Product;
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-07-05?08:48??程序\
?????目錄???????????0??2012-07-05?08:48??程序\MrCy\
?????目錄???????????0??2012-07-05?08:48??程序\MrCy\MrCy\
?????文件?????????902??2012-05-03?08:24??程序\MrCy\MrCy.sln
?????文件???????72704??2012-06-08?16:36??程序\MrCy\MrCy.suo
?????文件????????5381??2012-06-05?13:08??程序\MrCy\MrCy\AboutBox1.cs
?????文件???????10539??2012-06-05?13:08??程序\MrCy\MrCy\AboutBox1.Designer.cs
?????文件???????49720??2012-06-05?13:08??程序\MrCy\MrCy\AboutBox1.resx
?????文件????????2142??2012-05-22?20:08??程序\MrCy\MrCy\AddRoles.cs
?????文件????????9629??2012-05-21?17:05??程序\MrCy\MrCy\AddRoles.Designer.cs
?????文件????????5814??2012-05-21?17:05??程序\MrCy\MrCy\AddRoles.resx
?????文件????????2758??2012-05-18?11:48??程序\MrCy\MrCy\AddUser.cs
?????文件????????9703??2012-05-18?11:48??程序\MrCy\MrCy\AddUser.Designer.cs
?????文件????????5814??2012-05-18?11:48??程序\MrCy\MrCy\AddUser.resx
?????目錄???????????0??2012-07-05?08:48??程序\MrCy\MrCy\ba
?????文件?????????311??2012-05-03?10:39??程序\MrCy\MrCy\ba
?????目錄???????????0??2012-07-05?08:48??程序\MrCy\MrCy\bin\
?????目錄???????????0??2012-07-05?08:48??程序\MrCy\MrCy\bin\Debug\
?????目錄???????????0??2012-07-05?08:48??程序\MrCy\MrCy\bin\Debug\Databa
?????文件?????1179648??2012-05-05?17:11??程序\MrCy\MrCy\bin\Debug\Databa
?????文件?????1048576??2012-05-05?17:11??程序\MrCy\MrCy\bin\Debug\Databa
?????文件??????217088??2012-05-22?09:27??程序\MrCy\MrCy\bin\Debug\Interop.Microsoft.Office.Core.dll
?????文件???????57344??2012-05-22?09:27??程序\MrCy\MrCy\bin\Debug\Interop.VBIDE.dll
?????文件??????655360??2012-05-22?09:27??程序\MrCy\MrCy\bin\Debug\Interop.Word.dll
?????文件??????471040??2012-06-05?13:08??程序\MrCy\MrCy\bin\Debug\MrCy.exe
?????文件??????210432??2012-06-05?13:08??程序\MrCy\MrCy\bin\Debug\MrCy.pdb
?????文件???????14328??2012-06-08?16:09??程序\MrCy\MrCy\bin\Debug\MrCy.vshost.exe
?????文件?????????490??2007-07-21?02:33??程序\MrCy\MrCy\bin\Debug\MrCy.vshost.exe.manifest
?????目錄???????????0??2012-07-05?08:48??程序\MrCy\MrCy\Databa
?????文件?????1179648??2012-05-05?17:11??程序\MrCy\MrCy\Databa
?????文件?????1048576??2012-05-05?17:11??程序\MrCy\MrCy\Databa
............此處省略95個文件信息
評論
共有 條評論