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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
 
namespace iWareCc.Conveyor.Entity
{
    [DataContract]
   public  class ConveyorInfoEntity
    {
 
        /// <summary>
        /// 设备实体
        /// </summary>
        [DataMember]
        public string ConveyorName { get; private set; }
 
        /// <summary>
        /// 输送机的每个端口
        /// </summary>
        [DataMember]
        public List<GateInfoEntity> GateInfos { get; private set; }
 
 
        public ConveyorInfoEntity(ConveyorEntity conveyor)
        {
 
            this.ConveyorName = conveyor.Equipment.EquipName;
 
            GateInfos = new List<GateInfoEntity>();
 
            conveyor.Gates.ForEach(x => GateInfos.Add(new GateInfoEntity(x)));
 
 
        }
    }
}