using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Common.Data
{
///
/// 功能:删除状态
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum FlagDel
{
///
/// 正常
///
Normal = 0,
///
/// 已删除
///
Deleted = 1
}
///
/// 分页控制处理类型
///
public enum PagingType
{
First = 0,
Previous = 1,
Next = 2,
Last = 3,
Go = 4
}
///
/// 数据删除方式
///
public enum DeleteType
{
///
/// 物理删除
///
DeleteData = 0,
///
/// 逻辑删除
///
UpdateFlag = 1
}
///
/// 功能:数据排序方式
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum OrderBy
{
///
/// 正序
///
ASC = 0,
///
/// 倒序
///
DESC = 1
}
///
/// 功能:连接状态
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum ConnectionStatus
{
///
/// 已关闭
///
Closed = 0,
///
/// 已打开
///
Open = 1,
///
/// 占用
///
Using = 2
}
///
/// 功能:数据源类别
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum DataAccessType
{
///
/// SqlServer
///
SqlServer = 0,
///
/// Oracle
///
Oracle = 1,
///
/// Access
///
Access = 2,
///
/// MySql
///
MySql = 3,
///
/// DBII
///
DBII = 4,
///
/// SqlLite
///
SqlLite = 5,
///
/// XML
///
XML = 6
}
///
/// 功能:数据处理类型
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum CommandType
{
///
/// 查询
///
Select = 0,
///
/// 执行更新
///
Execute = 1,
///
/// 存储过程
///
procedure = 2,
///
/// 事务
///
Transaction = 3
}
///
/// 功能:数据库状态
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum DataBaseStatus
{
Closed = 0,
Running = 1,
Paused = 2
}
///
/// 功能:服务状态
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum ServiceStatus
{
///
/// 已关闭
///
Closed = 0,
///
/// 已绑定
///
Bound = 1,
///
/// 运行中
///
Running = 2,
///
/// 暂停运行
///
Paused = 3
}
///
/// 功能:网络传输数据的格式
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum NetDataFormat
{
///
/// String格式或其他可转换为String类型的数据
///
String = 0,
///
/// Short格式的数据
///
Int16 = 1,
///
/// Int格式的数据
///
Int32 = 2,
///
/// Long格式的数据
///
Int64 = 3,
///
/// Decimal格式的数据
///
Decimal = 4,
///
/// Single格式的数据
///
Single = 5,
///
/// Double格式的数据
///
Double = 6,
///
/// 继承于IList格式的数据
///
List = 7,
///
/// 基于文本类型的实体格式的数据
///
Entity = 8,
///
/// DataTable格式的数据
///
DataTable = 9,
///
/// 二进制数据
///
Binary = 10
}
///
/// 功能:服务实例状态
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum ServiceEntityState
{
///
/// 未载入
///
Unloaded = 0,
///
/// 禁止使用
///
Disabled = 1,
///
/// 载入中
///
Loading = 2,
///
/// 已载入
///
Loaded = 3
}
///
/// 功能:服务器充当的角色
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum ServerRole
{
///
/// 充当客户端,不具备转发数据能力
///
Client = 0,
///
/// 充当服务器,可转发数据
///
Server = 1
}
///
/// 功能:消息发送方式
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum MsgSendType
{
///
/// 点对点发送
///
P2P = 0,
///
/// 通过服务器转发
///
PSP = 1
}
///
/// 功能:消息发送状态
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum MsgSendState
{
///
/// 新建,未发送
///
New = 0,
///
/// 发送完成
///
Complete = 1
}
///
/// 功能:同步模式
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum SyncType
{
///
/// 同步方式
///
Sync = 0,
///
/// 异步方式
///
Async = 1
}
///
/// 功能:异常模式
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum ExceptionType
{
///
/// 无异常
///
NoneException = 0,
///
/// 有异常
///
Exception = 1
}
///
/// 功能:用户权限级别
/// 作者:王昊昇
/// 时间:2012.2.8
///
public enum UserAuthority
{
///
/// 用户
///
User = 0,
///
/// 高级用户
///
PowerUser = 1,
///
/// 管理员
///
Administrator = 2,
///
/// 系统所有者
///
SystemOwner = 3
}
}