schangxiang@126.com
2025-06-04 3e837690e8a1d3b6e86f3db72d2d84eab1bc7114
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
using iWareCc.Conveyor.EnumType;
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 GateInfoEntity
    {
 
        /// <summary>
        ///端口名称
        /// </summary>
        [DataMember]
        public string GateName { get; private set; }
 
        /// <summary>
        /// 任务号
        /// </summary>
        [DataMember]
        public string TaskId { get; private set; }
 
        /// <summary>
        /// 是否到位
        /// </summary>
        [DataMember]
        public string ROccupied { get; private set; }
 
        /// <summary>
        /// 是否空端口
        /// </summary>
        [DataMember]
        public string RIsEmpty { get; private set; }
       
        /// <summary>
        /// 入库物料条码
        /// </summary>
        [DataMember]
        public string RCheckMaterialCode { get; private set; }
 
        /// <summary>
        /// 滚动开始
        /// </summary>
        [DataMember]
        public string WStartRotation { get; private set; }
 
        /// <summary>
        /// 取货完成(开始任务)
        /// </summary>
        [DataMember]
        public string WPickFinishSymbol { get; private set; }
 
        /// <summary>
        /// 放货完成(开始任务)
        /// </summary>
        [DataMember]
        public string WPutFinishSymbol { get; private set; }
 
        /// <summary>
        /// 手动放货完成
        /// </summary>
        [DataMember]
        public string WIsInStorage { get; private set; }
 
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="conveyor">调用该货口的输送机</param>
        public GateInfoEntity(GateEntity gate)
        {
 
            this.GateName = gate.Place.PlaceTypeName;
            this.ROccupied = gate.ROccupied==true ? "到位" : "未到位";
            this.RIsEmpty = gate.RIsEmpty == true ? "无钢材" : "有钢材";
            this.WStartRotation = gate.WStartRotation ? "开始滚动" : "停止滚动";
            this.WPickFinishSymbol = gate.WPickFinishSymbol ? "已取货" : "未取货";
            this.WPutFinishSymbol = gate.WPutFinishSymbol ? "已放货" : "未放货";
            this.WIsInStorage = gate.WIsInStorage ? "入库" : "退库";
            this.TaskId = string.IsNullOrEmpty(gate.TaskId)==true?"暂无任务":gate.TaskId;
            this.RCheckMaterialCode = gate.RCheckMaterialCode;
 
        }
 
    }
}