新增基础数据接口库,MOM工艺路线模版左侧树形结构返回
This commit is contained in:
20
common/Tnb.Common/Contracts/BaseEntity`1.cs
Normal file
20
common/Tnb.Common/Contracts/BaseEntity`1.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JNPF.Common.Contracts;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Tnb.Common.Contracts
|
||||
{
|
||||
public class BaseEntity<TKey> : IEntity<TKey> where TKey : IEquatable<TKey>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 编号.
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true)]
|
||||
public TKey Id { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
36
common/Tnb.Common/Enums/RouteType.cs
Normal file
36
common/Tnb.Common/Enums/RouteType.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 Tnb.Common.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 工艺路线类型
|
||||
/// </summary>
|
||||
public enum RouteType
|
||||
{
|
||||
/// <summary>
|
||||
/// 标准途程
|
||||
/// </summary>
|
||||
[Description("标准途程")]
|
||||
Standard=1,
|
||||
/// <summary>
|
||||
/// 返工途程
|
||||
/// </summary>
|
||||
[Description("返工途程")]
|
||||
Rework=2,
|
||||
/// <summary>
|
||||
/// 试制途程
|
||||
/// </summary>
|
||||
[Description("试制途程")]
|
||||
Trial=4,
|
||||
/// <summary>
|
||||
/// 返修途程
|
||||
/// </summary>
|
||||
[Description("返修途程")]
|
||||
RMA =8,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user