schangxiang@126.com
2024-09-06 2a19504209e763a7c0e957e4ee265dd419486ef1
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
using iWare.Wms.Core.Util.LowCode.Dto;
using System;
 
namespace iWare.Wms.Application
{
    /// <summary>
    /// 设备刀具操作日志表输出参数
    /// </summary>
    public class KnifeToolEquipmentUpdateLogOutput
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string EquipmentID { get; set; }
        
        /// <summary>
        /// 工序编号
        /// </summary>
        public string WorkingProcedure { get; set; }
        
        /// <summary>
        /// 工位
        /// </summary>
        public string Station { get; set; }
        
        /// <summary>
        /// 刀具编号
        /// </summary>
        public string KnifeToolID { get; set; }
        
        /// <summary>
        /// 刀具名称
        /// </summary>
        public string KnifeToolName { get; set; }
        
        /// <summary>
        /// 刀具寿命
        /// </summary>
        public int KnifeToolLife { get; set; }
        /// <summary>
        /// 刀具更换预警阈值
        /// </summary>
        public int KnifeToolChangeAlertThreshold { get; set; }
 
        public bool IsAlert { 
            get {
                if(CurrentLife.HasValue)
                {                    
                    if (KnifeToolLife <= CurrentLife.Value + KnifeToolChangeAlertThreshold)
                    {
                        return true;
                    }
                }
                return false;
            } }
 
        /// <summary>
        /// 换上时寿命
        /// </summary>
        public int? StartLife { get; set; }
        
        /// <summary>
        /// 当前寿命
        /// </summary>
        public int? CurrentLife { get; set; }
        
        /// <summary>
        /// 剩余寿命
        /// </summary>
        public int? ResidueLife { get; set; }
        
        /// <summary>
        /// 换上时间
        /// </summary>
        public DateTime? ChangeStartTime { get; set; }
        
        /// <summary>
        /// 换下时间
        /// </summary>
        public DateTime? ChangeEndTime { get; set; }
        
        /// <summary>
        /// 操作描述
        /// </summary>
        public string OperateDesc { get; set; }
        /// <summary>
        /// 操作类型
        /// </summary>
        public string OperateType { get; set; }
 
        /// <summary>
        /// 备注1
        /// </summary>
        public string Remarks1 { get; set; }
        
        /// <summary>
        /// 备注2
        /// </summary>
        public string Remarks2 { get; set; }
        
        /// <summary>
        /// 备注3
        /// </summary>
        public string Remarks3 { get; set; }
 
        /// <summary>
        /// Id主键
        /// </summary>
        public long Id { get; set; }
 
    }
}