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
{
///
///端口名称
///
[DataMember]
public string GateName { get; private set; }
///
/// 任务号
///
[DataMember]
public string TaskId { get; private set; }
///
/// 是否到位
///
[DataMember]
public string ROccupied { get; private set; }
///
/// 是否空端口
///
[DataMember]
public string RIsEmpty { get; private set; }
///
/// 入库物料条码
///
[DataMember]
public string RCheckMaterialCode { get; private set; }
///
/// 滚动开始
///
[DataMember]
public string WStartRotation { get; private set; }
///
/// 取货完成(开始任务)
///
[DataMember]
public string WPickFinishSymbol { get; private set; }
///
/// 放货完成(开始任务)
///
[DataMember]
public string WPutFinishSymbol { get; private set; }
///
/// 手动放货完成
///
[DataMember]
public string WIsInStorage { get; private set; }
///
/// 构造函数
///
/// 调用该货口的输送机
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;
}
}
}