using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using WCS.Model.ApiModel.StoreInfo;
namespace WCS.Model.ApiModel.AGV
{
public class AGVTaskModel : INotifyPropertyChanged
{
///
/// 主键 自增Id
///
public int Id { get; set; }
#region 任务属性
///
/// 请求码
///
public string RequestCode { get; set; }
///
/// 任务码
///
public string TaskCode { get; set; }
///
/// 任务类型
///
public string TaskType { get; set; } = string.Empty;
///
/// 起点位置ID
///
public int StratLocationId { get; set; } = 0;
///
/// 起点位置编码
///
public string StartLocationCode { get; set; } = string.Empty;
///
/// 终点位置ID
///
public int EndLocationId { get; set; } = 0;
///
/// 终点位置编码
///
public string EndLocationCode { get; set; } = string.Empty;
///
/// 货架码
///
public string ShelfCode { get; set; } = string.Empty;
///
/// AGV编号
///
public string AgvCode { get; set; } = string.Empty;
///
/// 任务发起人
///
public string? CreateUser { get; set; }
///
/// 任务创建时间
///
public DateTime? CreateTime { get; set; } = DateTime.Now;
///
/// 最后更新时间
///
public DateTime? ModifyTime { get; set; } = DateTime.Now;
///
/// 任务状态
///
public TaskStatusEnum TaskStatus { get; set; } = TaskStatusEnum.已创建;
#endregion
///
/// 序号
///
public int RowNumber { get; set; }
///
/// 是否选择
///
public bool IsSelected
{
get { return isSelected; }
set
{
isSelected = value;
OnPropertyChanged(nameof(IsSelected));
}
}
public bool isSelected;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}