using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WMS.BZModels.Dto.FJ.TaskDtos { public partial class WCSTaskinfoDto { /// /// ID /// public string ID { get; set; } /// /// 生产编码 /// public string BarCode { get; set; } /// /// 任务类型 /// public int? Type { get; set; } /// /// 任务状态 /// public int? Status { get; set; } public string TypeName { get { var result = ""; if (Type != null && Type.HasValue) { result = ((TaskType)Type.Value).GetDescription(); } return result; } } /// /// 业务类型 /// public string BusType { get; set; } //public string TaskBusTypeName //{ // get // { // var result = ""; // if (TaskBusType != null && TaskBusType.HasValue) // { // result = ((WMS.BZModels.TaskBusType)TaskBusType.Value).GetDescription(); // } // return result; // } //} public string StatusName { get { var result = ""; if (Status != null && Status.HasValue) { result = ((FJTaskStatus)Status.Value).GetDescription(); } return result; } } /// /// 起始地址 /// public string AddrFrom { get; set; } /// /// 目标地址 /// public string AddrTo { get; set; } /// /// 最后一个交互点 /// public string LastInteractionPoint { get; set; } /// /// 下一个地址 /// public string AddrNext { get; set; } /// /// 巷道 /// public string Tunnel { get; set; } /// /// 楼层 /// public int? Floor { get; set; } /// /// 设备 /// public string Device { get; set; } /// /// 堆垛机放货站台 /// public string SrmStation { get; set; } /// /// 创建时间 /// public DateTime AddTime { get; set; } /// /// 开始时间 /// public DateTime? StartTime { get; set; } /// /// 结束时间 /// public DateTime? EedTime { get; set; } /// /// 结束时间 /// public DateTime? EndTime { get; set; } /// /// 单号 /// public int? DocID { get; set; } /// /// 托盘类型 /// public int? PalletType { get; set; } /// /// 码垛工位 /// public int? ProdLine { get; set; } /// /// 满盘数量 /// public int? FullQty { get; set; } /// /// 高度 /// public int? Height { get; set; } /// /// 重量 /// public double? Weight { get; set; } /// /// WMS任务号 /// public int WmsTask { get; set; } /// /// 任务组ID /// public string TaskGroupKey { get; set; } /// /// 更新状态 /// public int Uploaded { get; set; } public string UploadedName { get { return ((TaskStatus)Uploaded).GetDescription(); } } /// /// AGV任务号 /// public int? AgvTaskID { get; set; } /// /// 优先级 /// public int Priority { get; set; } /// /// 手动处理备注 /// public string ManualRemarks { get; set; } /// /// 产品长度 /// public decimal? Length { get; set; } /// /// 产品编码 /// public string MaterialCode { get; set; } /// /// 是否可用 /// public bool Enabled { get; set; } /// /// 创建用户 /// public string AddWho { get; set; } /// /// 更新用户 /// public string EditWho { get; set; } /// /// 更新时间 /// public DateTime? EditTime { get; set; } /// /// 版本号 /// public byte[] VER { get; set; } /// /// 客户现场的机台/产线编号 /// public string WorkBench { get; set; } /// /// 仓库编号 /// public string WarehouseCode { get; set; } /// /// 物料编码 /// public string MatCode { get; set; } /// /// 材料号 /// public string InvBarCode { get; set; } /// /// 是否快投 /// public bool? IsFast { get; set; } /// /// 等级 /// public string Grade { get; set; } /// /// 是否改手盘 /// public bool? IsSurplus { get; set; } /// /// 是否返空 /// public bool? IsRework { get; set; } public int? OutType { get; set; } public string OutTypeName { get { return ((AutoManualOutType)(OutType ?? 0)).GetDescription(); } } /// /// 生产单号 /// public string WorkOrder { get; set; } /// /// 货位类型 /// public int? GoodsType { get; set; } /// /// 行 /// public int? Line { get; set; } /// /// 列 /// public int? Col { get; set; } /// /// 层 /// public int? Layer { get; set; } /// /// 深度 /// public int? Depth { get; set; } public string SetGrpCode { get; set; } } public class WCSTaskinfoQueryDto : PagerInfo { public string ID { get; set; } public string WmsTask { get; set; } public string BarCode { get; set; } public string Type { get; set; } public string Status { get; set; } /// /// 业务类型 /// public string BusType { get; set; } /// /// 起始地址 /// public string AddrFrom { get; set; } /// /// 目标地址 /// public string AddrTo { get; set; } /// /// 下一个地址 /// public string AddrNext { get; set; } public int? ProdLine { get; set; } public string Device { get; set; } public DateTime? AddTimeFrom { get; set; } public DateTime? AddTimeTo { get; set; } public string Grade { get; set; } public string MatCode { get; set; } /// /// 开始时间, /// public DateTime? StartTimeBegin { get; set; } /// /// 开始时间, /// public DateTime? StartTimeEnd { get; set; } /// /// 结束时间, /// public DateTime? EndTimeBegin { get; set; } public DateTime? EndTimeEnd { get; set; } /// /// AGV任务号, /// public string AgvTaskID { get; set; } /// /// 产品编码, /// public string MaterialCode { get; set; } public string Tunnel { get; set; } public string Floor { get; set; } public int? OutType { get; set; } public string WorkBench { get; set; } public string WarehouseCode { get; set; } } }