初始化项目
This commit is contained in:
31
Services/Enums/CacheTimeType.cs
Normal file
31
Services/Enums/CacheTimeType.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Services.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 缓存的时间类别
|
||||
/// </summary>
|
||||
public enum CacheTimeType
|
||||
{
|
||||
/// <summary>
|
||||
/// 按照分钟模式
|
||||
/// </summary>
|
||||
ByMinutes,
|
||||
/// <summary>
|
||||
/// 按照小时模式
|
||||
/// </summary>
|
||||
ByHours,
|
||||
/// <summary>
|
||||
/// 按照天模式
|
||||
/// </summary>
|
||||
ByDays,
|
||||
/// <summary>
|
||||
/// 按照年模式
|
||||
/// </summary>
|
||||
ByYears
|
||||
}
|
||||
}
|
||||
30
Services/Enums/LoginInfoType.cs
Normal file
30
Services/Enums/LoginInfoType.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Services.Enums
|
||||
{
|
||||
public enum LoginInfoType
|
||||
{
|
||||
/*
|
||||
* 添加账户类型的时候,枚举值为2的倍数
|
||||
*
|
||||
*/
|
||||
|
||||
/// <summary>
|
||||
/// 管理人员
|
||||
/// </summary>
|
||||
[Description("管理人员")]
|
||||
Manager = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 用户
|
||||
/// </summary>
|
||||
[Description("用户")]
|
||||
User = 4,
|
||||
|
||||
}
|
||||
}
|
||||
34
Services/Enums/OperationLevel.cs
Normal file
34
Services/Enums/OperationLevel.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Services.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 操作权限级别
|
||||
/// </summary>
|
||||
public enum OperationLevel
|
||||
{
|
||||
/// <summary>
|
||||
/// 只读
|
||||
/// </summary>
|
||||
[Description("只读")]
|
||||
ReadOnly = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 读写
|
||||
/// </summary>
|
||||
[Description("读写")]
|
||||
ReadWrite = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 完整
|
||||
/// </summary>
|
||||
[Description("完整")]
|
||||
Full = 30,
|
||||
|
||||
}
|
||||
}
|
||||
62
Services/Enums/OrderStatus.cs
Normal file
62
Services/Enums/OrderStatus.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Services.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 已下单待转内部单
|
||||
/// </summary>
|
||||
[Description("已下单待转M/O")]
|
||||
PlaceOrder = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 已转M/O待制条码
|
||||
/// </summary>
|
||||
[Description("已转M/O待制条码")]
|
||||
MOrder = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 已制SN待制计划
|
||||
/// </summary>
|
||||
[Description("已制SN待制计划")]
|
||||
SnRules = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 已制计划待生产
|
||||
/// </summary>
|
||||
[Description("已制计划待生产")]
|
||||
ProductionPlan = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 生产中
|
||||
/// </summary>
|
||||
[Description("生产中")]
|
||||
InProduction = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 完成生产
|
||||
/// </summary>
|
||||
[Description("完成生产")]
|
||||
CompleteProduction = 6,
|
||||
|
||||
/// <summary>
|
||||
/// 已完成
|
||||
/// </summary>
|
||||
[Description("已完成")]
|
||||
Completed = 7,
|
||||
|
||||
/// <summary>
|
||||
/// 取消
|
||||
/// </summary>
|
||||
[Description("取消")]
|
||||
Cancel = -1,
|
||||
|
||||
/// <summary>
|
||||
/// 暂停中
|
||||
/// </summary>
|
||||
[Description("暂停中")]
|
||||
Suspend = -2,
|
||||
|
||||
}
|
||||
}
|
||||
47
Services/Enums/ShortStringVersion.cs
Normal file
47
Services/Enums/ShortStringVersion.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Services.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 短字符串版本
|
||||
/// </summary>
|
||||
public enum ShortStringVersion
|
||||
{
|
||||
/// <summary>
|
||||
/// 版本1
|
||||
/// </summary>
|
||||
[MaxLength(6)]
|
||||
[Description("版本1")]
|
||||
Version_1 = 5,
|
||||
/// <summary>
|
||||
/// 版本2
|
||||
/// </summary>
|
||||
[MaxLength(8)]
|
||||
[Description("版本2")]
|
||||
Version_2 = 4,
|
||||
/// <summary>
|
||||
/// 版本3
|
||||
/// </summary>
|
||||
[Description("版本3")]
|
||||
[MaxLength(10)]
|
||||
Version_3 = 3,
|
||||
/// <summary>
|
||||
/// 版本4
|
||||
/// </summary>
|
||||
[MaxLength(15)]
|
||||
[Description("版本4")]
|
||||
Version_4 = 2,
|
||||
/// <summary>
|
||||
/// 版本5
|
||||
/// </summary>
|
||||
[Description("版本5")]
|
||||
[MaxLength(30)]
|
||||
Version_5 = 1
|
||||
}
|
||||
}
|
||||
39
Services/Enums/StationType.cs
Normal file
39
Services/Enums/StationType.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Services.Enums
|
||||
{
|
||||
public enum StationType
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 测试
|
||||
/// </summary>
|
||||
[Description("Test")]
|
||||
Test = 100,
|
||||
|
||||
/// <summary>
|
||||
/// 测试2
|
||||
/// </summary>
|
||||
[Description("Test2")]
|
||||
Test2 = 120,
|
||||
|
||||
/// <summary>
|
||||
/// 组装
|
||||
/// </summary>
|
||||
[Description("Assem")]
|
||||
Assem = 200,
|
||||
|
||||
/// <summary>
|
||||
/// 质量保证
|
||||
/// </summary>
|
||||
[Description("QA")]
|
||||
QA = 300,
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user