资源简介
一个简单的图书管理系统,可供参考。基于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# 脱离框架运行
相关资源
- C# IP地址输入控件
- C#在一个窗口刷新更改另一个窗口控件
- C# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
评论
共有 条评论