EquipmentMaintainRule.cs
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using TableAttribute = System.ComponentModel.DataAnnotations.Schema.TableAttribute;
using ColumnAttribute = System.ComponentModel.DataAnnotations.Schema.ColumnAttribute;
using System.ComponentModel.DataAnnotations.Schema;
using FreeSql.DataAnnotations;
namespace HHECS.Model.Entities
{
/// <summary>
/// 维护规则
/// </summary>
[Table("equipmentmaintainrule")]
public class EquipmentMaintainRule : BaseEntityCU<int>
{
[Column(Order = 2)]
[MaxLength(50)]
[Required]
public string Code { get; set; }
[Column(Order = 3)]
[MaxLength(50)]
[Required]
public string Name { get; set; }
/// <summary>
/// 此维护规则针对的设备,在建立维护规则明细时,可从bom中提取部件
/// </summary>
public int EquipmentTypeId { get; set; }
[Column(Order = 4)]
[MaxLength(500)]
public string Remark { get; set; }
public EquipmentType EquipmentType { get; set; }
[NotMapped]
public string WarehouseCodeExt { get; set; }
/// <summary>
/// 保养规则明细
/// </summary>
public List<EquipmentMaintainRuleDetail> EquipmentMaintainRuleDetails { get; set; }
}
}