天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

382 lines
7.7 KiB

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