333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
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
using IWareCommon.Enum.Chaidie;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
 
namespace IWareCC.ChaiDie.Entity
{
    [DataContract]
   public  class ChaiDieInfoEntity
    {
        /// <summary>
        /// 拆叠名称
        /// </summary>
        [DataMember]
       public string ChaiDieName { get; private set; }
 
        /// <summary>
        /// 根据心跳判断堆垛机是否在线
        /// </summary>
         [DataMember]
        public string IsOnline { get; private set; }
 
        /// <summary>
        /// 心跳
        /// </summary>
         [DataMember]
        public int HandShake { get; private set; }
        /// <summary>
        /// 拆叠机编号
        /// </summary>
        [DataMember]
        public string ChaiDieNo { get; private set; }
 
        /// <summary>
        /// 模式
        /// </summary>
        [DataMember]
        public string  Mode { get; private set; }
        /// <summary>
        /// 是否有报警
        /// </summary>
        [DataMember]
        public string Alarm { get; private set; }
 
        /// <summary>
        /// 报警编号
        /// </summary>
         [DataMember]
        public string RAlarmCode { get; private set; }
        /// <summary>
        /// 状态
        /// </summary>
         [DataMember]
        public string State { get; private set; }
 
        /// <summary>
        /// 是否满盘
        /// </summary>
        [DataMember]
        public string  Ph1 { get; private set; }
        /// <summary>
        /// 是否空盘
        /// </summary>
        [DataMember]
        public string Ph2 { get; private set; }
 
        /// <summary>
        /// 是否空盘
        /// </summary>
        [DataMember]
        public string EmptyStatus { get; private set; }
 
        /// <summary>
        /// 下发确认
        /// </summary>
        [DataMember]
        public string ACK { get; private set; }
 
        public ChaiDieInfoEntity()
        { 
        
        }
       public ChaiDieInfoEntity(ChaiDieEntity  cd) 
       {
           this.ChaiDieName = cd.ChaiDieName;
           this.ChaiDieNo = cd.WChaiDieNo;
           this.Alarm = cd.RAlarm ? "告警" : "正常";
           this.HandShake = cd.RHandShake;
 
           this.IsOnline = cd.IsOnline?"在线":"离线";
           this.Mode = ((EChaiDieModel)cd.RMode).ToString();
           this.RAlarmCode = ((EChaiDeiAlerm)cd.RAlarmCode).ToString();
           this.State = ((EChaiDieState)cd.RState).ToString();
           this.ACK = cd.RACK?"收到":"置位";
           this.EmptyStatus = cd.EmptyStatus.ToString();
           this.Ph1 = cd.PH1.ToString();
           this.Ph2 = cd.PH2.ToString();
 
 
       }
    }
}