using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Linq;
namespace Procurement.Enums
{
public enum FileType
{
///
/// 图片
///
Image,
///
/// 文件
///
File
}
public enum ResultCode
{
//Code
[Display(Name = "成功")]
Success = 10000,
[Display(Name = "失败")]
Fail = 40000,
//SubCode
[Display(Name = "服务不可用")]
ServiceError = 20000,
[Display(Name = "授权权限不足")]
AuthorityError = 40001,
[Display(Name = "参数错误")]
ParameterError = 40002,
[Display(Name = "没有符合记录")]
ExistsError = 40003,
[Display(Name = "业务处理失败")]
BusinessError = 40004,
[Display(Name = "账户或密码错误")]
UserExistsError = 40005,
[Display(Name = "该用户没有匹配的产线")]
UserLineExistsError = 40006,
[Display(Name = "没有授权可用功能")]
UserRightError = 40007,
[Display(Name = "该人员已离职")]
UserStatusError = 40008,
[Display(Name = "该产线已被组线生产")]
UserLineGroupError = 40009
}
//public enum SqlDbTypes
//{
// Decimal = 0,
// Int16 = 2,
// Int24 = 9,
// Int32 = 3,
// Int64 = 8,
// Float = 4,
// Double = 5,
// Date = 10,
// DateTime = 12,
// JSON = 245,
// VarChar = 253,
// String = 254,
// LongText = 751,
// Text = 752,
//}
public enum SqlParamDirection
{
//
// 摘要:
// The parameter is an input parameter.
Input = 1,
//
// 摘要:
// The parameter is an output parameter.
Output = 2,
//
// 摘要:
// The parameter is capable of both input and output.
InputOutput = 3,
//
// 摘要:
// The parameter represents a return value from an operation such as a stored procedure,
// built-in function, or user-defined function.
ReturnValue = 6
}
}