2
schangxiang@126.com
2024-06-20 90b264c675155d6fb921d256f2de48ad398845c6
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace iWare.Wms.Core
{
    [Table("EquipmentBaseInfo")]
    [Comment("设备基础信息表")]
    public class EquipmentBaseInfo : DEntityBase
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        [Comment("设备编号")]
        [Required, MaxLength(32)]
        public string EquipmentId { get; set; }
 
        /// <summary>
        /// 设备名称
        /// </summary>
        [Comment("设备名称")]
        [MaxLength(255)]
        public string EquipmentName { get; set; }
 
        /// <summary>
        /// 设备所属工序
        /// </summary>
        [Comment("设备所属工序")]
        [MaxLength(32)]
        public string WorkingProcedure { get; set; }
 
        /// <summary>
        /// 设备型号
        /// </summary>
        [Comment("设备型号")]
        [MaxLength(900)]
        public string EquipmentModel { get; set; }
 
        /// <summary>
        /// 设备IP地址
        /// </summary>
        [Comment("设备IP地址")]
        [MaxLength(32)]
        public string EquipmentIP { get; set; }
 
        /// <summary>
        /// 功能
        /// </summary>
        [Comment("功能")]
        [MaxLength(255)]
        public string EquipmentFunction { get; set; }
 
        /// <summary>
        /// 设备品牌
        /// </summary>
        [Comment("设备品牌")]
        [MaxLength(255)]
        public string EquipmentBrand { get; set; }
 
        /// <summary>
        /// 设备制造商
        /// </summary>
        [Comment("设备制造商")]
        [MaxLength(255)]
        public string EquipmentManufacturer { get; set; }
 
        /// <summary>
        /// 清洗液添加时间 【Editby shaocx,2024-06-11】
        /// </summary>
        [Comment("清洗液添加时间")]
        public DateTime? DetergentAddtime { get; set; }
 
        /// <summary>
        /// 清洗液更换时间
        /// </summary>
        [Comment("清洗液更换时间")]
        public DateTime? Detergentchangetime { get; set; }
 
        /// <summary>
        /// 清洗液更换预警阈值
        /// </summary>
        [Comment("清洗液更换预警阈值")]
        public int DetergentChangeAlertThreshold { get; set; }
 
        /// <summary>
        /// 清洗液更换周期
        /// </summary>
        [Comment("清洗液更换周期")]
        public int DetergentChangeCycle { get; set; }
 
        /// <summary>
        /// 刀具更换时间
        /// </summary>
        [Comment("刀具更换时间")]
        public DateTime? KnifeToolChangeTime { get; set; }
 
        /// <summary>
        /// 刀具更换预警阈值
        /// </summary>
        [Comment("刀具更换预警阈值")]
        public int KnifeToolChangeAlertThreshold { get; set; }
 
        /// <summary>
        /// 切削液添加时间 【Editby shaocx,2024-06-11】
        /// </summary>
        [Comment("切削液添加时间")]
        public DateTime? CuttingFluidAddTime { get; set; }
 
        /// <summary>
        /// 切削液更换时间
        /// </summary>
        [Comment("切削液更换时间")]
        public DateTime? CuttingFluidChangeTime { get; set; }
 
        /// <summary>
        /// 切削液预警阈值
        /// </summary>
        [Comment("切削液预警阈值")]
        public int CuttingFluidChangeAlertThreshold { get; set; }
        /// <summary>
        /// 生产节拍(S)
        /// </summary>
        [Comment("生产节拍(S)")]
        public int TactTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Comment("备注")]
        [MaxLength(900)]
        public string Remarks { get; set; }
 
        ///// <summary>
        ///// 字典数据
        ///// </summary>
        //public ICollection<EquipmentWorkingLog> EquWorkingLog { get; set; }
 
        //public void Configure(EntityTypeBuilder<EquipmentBaseInfo> entityBuilder, DbContext dbContext, Type dbContextLocator)
        //{
        //    entityBuilder.HasMany(x => x.EquWorkingLog)
        //        .WithOne(x => x.EquipmentBaseInfo)
        //        .HasForeignKey(x => x.EquipId);
        //}
    }
 
}