初始化项目
This commit is contained in:
31
AUTS.Services/Enums/CacheTimeType.cs
Normal file
31
AUTS.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 AUTS.Services.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 缓存的时间类别
|
||||
/// </summary>
|
||||
public enum CacheTimeType
|
||||
{
|
||||
/// <summary>
|
||||
/// 按照分钟模式
|
||||
/// </summary>
|
||||
ByMinutes,
|
||||
/// <summary>
|
||||
/// 按照小时模式
|
||||
/// </summary>
|
||||
ByHours,
|
||||
/// <summary>
|
||||
/// 按照天模式
|
||||
/// </summary>
|
||||
ByDays,
|
||||
/// <summary>
|
||||
/// 按照年模式
|
||||
/// </summary>
|
||||
ByYears
|
||||
}
|
||||
}
|
||||
30
AUTS.Services/Enums/LoginInfoType.cs
Normal file
30
AUTS.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 AUTS.Services.Enums
|
||||
{
|
||||
public enum LoginInfoType
|
||||
{
|
||||
/*
|
||||
* 添加账户类型的时候,枚举值为2的倍数
|
||||
*
|
||||
*/
|
||||
|
||||
/// <summary>
|
||||
/// 管理人员
|
||||
/// </summary>
|
||||
[Description("管理人员")]
|
||||
Manager = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 用户
|
||||
/// </summary>
|
||||
[Description("用户")]
|
||||
User = 4,
|
||||
|
||||
}
|
||||
}
|
||||
34
AUTS.Services/Enums/OperationLevel.cs
Normal file
34
AUTS.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 AUTS.Services.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 操作权限级别
|
||||
/// </summary>
|
||||
public enum OperationLevel
|
||||
{
|
||||
/// <summary>
|
||||
/// 只读
|
||||
/// </summary>
|
||||
[Description("只读")]
|
||||
ReadOnly = 10,
|
||||
|
||||
/// <summary>
|
||||
/// 读写
|
||||
/// </summary>
|
||||
[Description("读写")]
|
||||
ReadWrite = 20,
|
||||
|
||||
/// <summary>
|
||||
/// 完整
|
||||
/// </summary>
|
||||
[Description("完整")]
|
||||
Full = 30,
|
||||
|
||||
}
|
||||
}
|
||||
72
AUTS.Services/Enums/OrderStatus.cs
Normal file
72
AUTS.Services/Enums/OrderStatus.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace AUTS.Services.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 此类变量英文不正确
|
||||
/// </summary>
|
||||
public enum OrderStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 已转MO
|
||||
/// </summary>
|
||||
[Description("已转MO")]
|
||||
PlaceOrder = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 已分配条码
|
||||
/// </summary>
|
||||
[Description("已分配条码")]
|
||||
NoScheduling = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 已排产
|
||||
/// </summary>
|
||||
[Description("已排产")]
|
||||
MOrder = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 生产中
|
||||
/// </summary>
|
||||
[Description("生产中")]
|
||||
SnRules = 4,
|
||||
|
||||
/// <summary>
|
||||
/// 完成生产
|
||||
/// </summary>
|
||||
[Description("完成生产")]
|
||||
ProductionPlan = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 已结单
|
||||
/// </summary>
|
||||
[Description("已结单")]
|
||||
InProduction = 6,
|
||||
|
||||
/// <summary>
|
||||
/// 未确认
|
||||
/// </summary>
|
||||
[Description("PO已录入")]
|
||||
unconfirmed=99,
|
||||
|
||||
///// <summary>
|
||||
///// 已完成
|
||||
///// </summary>
|
||||
//[Description("已完成")]
|
||||
//Completed = 7,
|
||||
|
||||
/// <summary>
|
||||
/// 取消
|
||||
/// </summary>
|
||||
[Description("取消")]
|
||||
Cancel = -1,
|
||||
|
||||
/// <summary>
|
||||
/// 暂停中
|
||||
/// </summary>
|
||||
[Description("暂停中")]
|
||||
Suspend = -2,
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
76
AUTS.Services/Enums/Root.cs
Normal file
76
AUTS.Services/Enums/Root.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Services.Enums
|
||||
{
|
||||
public class Root
|
||||
{
|
||||
public List<DataItem> data { get; set; }
|
||||
}
|
||||
public class DataItem
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ExtendedLocation { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string OriginQuery { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string appinfo { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int disp_type { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string fetchkey { get; set; }
|
||||
/// <summary>
|
||||
/// 本地局域网
|
||||
/// </summary>
|
||||
public string location { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string origip { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string origipquery { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string resourceid { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int role_id { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int shareImage { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int showLikeShare { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string showlamp { get; set; }
|
||||
/// <summary>
|
||||
/// IP地址查询
|
||||
/// </summary>
|
||||
public string titlecont { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string tplt { get; set; }
|
||||
}
|
||||
}
|
||||
47
AUTS.Services/Enums/ShortStringVersion.cs
Normal file
47
AUTS.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 AUTS.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
|
||||
}
|
||||
}
|
||||
36
AUTS.Services/Enums/SnType.cs
Normal file
36
AUTS.Services/Enums/SnType.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AUTS.Services.Enums
|
||||
{
|
||||
public enum SnType
|
||||
{
|
||||
/// <summary>
|
||||
/// 无序
|
||||
/// </summary>
|
||||
[Description("无序")]
|
||||
Unordered = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 十六进制
|
||||
/// </summary>
|
||||
[Description("自动生成")]
|
||||
Hexadecimal = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 直接录入
|
||||
/// </summary>
|
||||
[Description("直接录入")]
|
||||
Entering = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Excel导入
|
||||
/// </summary>
|
||||
[Description("Excel导入")]
|
||||
Excel = 3,
|
||||
}
|
||||
}
|
||||
39
AUTS.Services/Enums/StationType.cs
Normal file
39
AUTS.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 AUTS.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