using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
using wms.dto;
namespace WMS.BZModels.Dto.CP.TaskDtos
{
public class WCSTaskoldDto
{
///
/// ID
///
public string ID { get; set; }
///
/// 生产编码
///
public string BarCode { get; set; }
///
/// 任务类型
///
public int? Type { get; set; }
public string TypeName
{
get
{
var result = "";
if (Type != null && Type.HasValue)
{
result = ((TaskType)Type.Value).GetDescription();
}
return result;
}
}
///
/// 任务状态
///
public int? Status { get; set; }
public string StatusName
{
get
{
var result = "";
if (Status != null && Status.HasValue)
{
result = ((TaskStatus)Status.Value).GetDescription();
}
return result;
}
}
///
/// 业务类型
///
public string BusType { get; set; }
///
/// 起始地址
///
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? 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; }
///
/// 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 string AddWho { get; set; }
///
/// 更新用户
///
public string EditWho { get; set; }
///
/// 更新时间
///
public DateTime? EditTime { get; set; }
///
/// 客户现场的机台/产线编号
///
public string WorkBench { get; set; }
///
/// WarehouseCode
///
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 double? Weight { get; set; }
}
public class WCSTaskoldQueryDto : 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 TaskGroupKey { 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 class TaskPriorityDto
{
public string[] TaskIds { get; set; }
public int Type { get; set; }
public string User { get; set; }
public string Priority { get; set; }
public string ManualRemarks { get; set; }
}
}