新增基础数据接口库,MOM工艺路线模版左侧树形结构返回

This commit is contained in:
DEVICE8\12494
2023-04-04 14:43:57 +08:00
parent 96fa7faf39
commit 92291d66c2
11 changed files with 333 additions and 0 deletions

View 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; }
}
}

View 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,
}
}