資源簡介
一個簡單的圖書管理系統,可供參考。基于VS2008,采用三層架構,數據庫用的是SQL2005

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