資源簡(jiǎn)介
一個(gè)簡(jiǎn)單的圖書(shū)管理系統(tǒng),可供參考。基于VS2008,采用三層架構(gòu),數(shù)據(jù)庫(kù)用的是SQL2005

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Text;
using?System.Runtime.Serialization;
namespace?LibarayManager.Business.Authentication
{
????///?
///?認(rèn)證異常管理
///?
????public?class?AuthenticationException?:ApplicationException
????{
????????#region?構(gòu)造函數(shù)
????????????????///?
????????///?默認(rèn)構(gòu)造函數(shù)
????????///?
????????public?AuthenticationException()
????????{?}
????????///?
????????///?認(rèn)證帶有異常信息的構(gòu)造函數(shù)
????????///?
????????///?附加信息
????????public?AuthenticationException(string?message)
????????????:?base(message)
????????{?}
????????///?
????????///?認(rèn)證帶有異常信息內(nèi)部異常對(duì)象的構(gòu)造函數(shù)
????????///?
????????///?異常信息
????????///?內(nèi)部異常對(duì)象
????????public?AuthenticationException(string?message?System.Exception?innerException)
????????????:?base(message?innerException)
????????{?}??????
????????????????///?
????????///?帶有序列化和流的構(gòu)造函數(shù)
????????///?
????????///?
????????///?
????????public?AuthenticationException(SerializationInfo?info?StreamingContext?context)
???????????:?base(info?context)
????????{?}
????????#endregion
????????#region?異常方法
????????///?
????????///?無(wú)效參數(shù)異常
????????///?
????????///?異常信息
????????///?異常對(duì)象
???????internal?static??AuthenticationException?InvalidArgument(string?message)
????????{
????????????return?new?AuthenticationException(message);
????????}
????????///?
????????///?非法操作
????????///?
????????///?異常信息
????????///?異常對(duì)象
???????internal?static??AuthenticationException?InvalidOperation(string?message)
????????{
????????????return?new?AuthenticationException(message);
????????}
????????///?
????????///?密碼錯(cuò)誤
????????///?
????????///?異常對(duì)象
???????internal?static??AuthenticationException?WrongPassWord()
????????{
????????????return?new?AuthenticationException(“帳戶密碼錯(cuò)誤“);
????????}
????????///?
????????///?帳戶是否存在
????????///?
????????///?帳號(hào)
????????///?異常對(duì)象
???????internal?static??AuthenticationException?UserExist(string?userName)
????????{
????????????return?new?AuthenticationException(string.Format(“帳戶{0}已存在“?userName));
????????}
????????///?
????????///?帳戶是否不存在
????????///?
????????///?帳號(hào)
????????///?異常對(duì)象
????????internal?static?AuthenticationException?UserNotExist(string?userName)
????????{
????????????return?new?AuthenticationException(string.Format(“帳戶{0}不存在“?userName));
????????}
????????#endregion
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????2342??2010-06-13?11:46??圖書(shū)管理系統(tǒng)\LibarayManager\LibarayManager.sln
????..A..H.????164864??2011-02-22?22:42??圖書(shū)管理系統(tǒng)\LibarayManager\LibarayManager.suo
?????文件???????1666??2010-06-21?12:20??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\CommonInfo.cs
?????文件????????357??2010-06-07?17:11??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\Form1.cs
?????文件???????1167??2010-06-07?17:11??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\Form1.Designer.cs
?????文件??????22820??2010-06-21?16:46??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmAdmin.cs
?????文件??????20416??2010-06-21?16:23??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmAdmin.Designer.cs
?????文件??????10527??2010-06-21?16:23??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmAdmin.resx
?????文件???????5531??2010-06-21?16:27??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmBookAdmin.cs
?????文件??????11702??2010-06-21?16:24??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmBookAdmin.Designer.cs
?????文件???????6188??2010-06-21?16:24??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmBookAdmin.resx
?????文件???????5475??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmBookBorrow.cs
?????文件???????9401??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmBookBorrow.Designer.cs
?????文件???????6016??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmBookBorrow.resx
?????文件???????8921??2010-06-21?14:05??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlAccount.cs
?????文件??????15490??2010-06-21?11:23??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlAccount.Designer.cs
?????文件???????6568??2010-06-21?11:23??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlAccount.resx
?????文件??????14355??2010-06-20?23:56??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlBook.cs
?????文件??????28543??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlBook.Designer.cs
?????文件???????9700??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlBook.resx
?????文件??????10879??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlPart.cs
?????文件??????15421??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlPart.Designer.cs
?????文件???????7120??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlPart.resx
?????文件??????11288??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlsort.cs
?????文件??????18215??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlsort.Designer.cs
?????文件???????7488??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlsort.resx
?????文件??????11184??2010-06-20?23:51??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlUser.cs
?????文件??????19458??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlUser.Designer.cs
?????文件???????7856??2010-06-20?22:48??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmControlUser.resx
?????文件???????6649??2010-06-21?16:28??圖書(shū)管理系統(tǒng)\LibarayManager\WinForm\frmMain.cs
............此處省略165個(gè)文件信息
評(píng)論
共有 條評(píng)論