using MiniExcelLibs.Attributes;
using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel;
using CMS.Plugin.HIAWms.Domain.Shared.Enums;
namespace CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsTask;
///
/// Wms任务管理导出模型
///
public class WmsTaskExportModel
{
///
/// 任务号
///
[ExcelColumn(Name = "任务号", Width = 25)]
public string TaskNo { get; set; }
///
/// 任务类型
///
[ExcelColumn(Name = "任务类型", Width = 25)]
public TaskTypeEnum TaskType { get; set; }
///
/// 任务等级
///
[ExcelColumn(Name = "任务等级", Width = 25)]
public int TaskLevel { get; set; }
///
/// 任务状态
///
[ExcelColumn(Name = "任务状态", Width = 25)]
public WmsTaskStatus TaskStatus { get; set; }
///
/// 托盘编号
///
[ExcelColumn(Name = "托盘编号", Width = 25)]
public string ContainerNo { get; set; }
///
/// 起始库位
///
[ExcelColumn(Name = "起始库位", Width = 25)]
public string SourcePlace { get; set; }
///
/// 目标库位
///
[ExcelColumn(Name = "目标库位", Width = 25)]
public string ToPlace { get; set; }
///
/// PLC任务号
///
[ExcelColumn(Name = "PLC任务号", Width = 25)]
public int PlcTaskId { get; set; }
///
/// 巷道
///
[ExcelColumn(Name = "巷道", Width = 25)]
public int? Aisle { get; set; }
///
/// 堆垛机ID
///
[ExcelColumn(Name = "堆垛机ID", Width = 25)]
public int? DodeviceId { get; set; }
///
/// 设备类型
///
[ExcelColumn(Name = "设备类型", Width = 25)]
public DodevicetypeEnum Dodevicetype { get; set; }
///
/// 设备任务状态
///
[ExcelColumn(Name = "设备任务状态", Width = 25)]
public TaskDodeviceStatus TaskDodeviceStatus { get; set; }
///
/// WCS是否可以读取
///
[ExcelColumn(Name = "WCS是否可以读取", Width = 25)]
public bool IsRead { get; set; }
///
/// 子任务类型
///
[ExcelColumn(Name = "子任务类型", Width = 25)]
public SonTaskTypeEnum? SonTaskType { get; set; }
///
/// 来源单据号
///
[ExcelColumn(Name = "来源单据号", Width = 25)]
public string SourceOrderNo { get; set; }
///
/// 下个任务是否生成成功
///
[ExcelColumn(Name = "下个任务是否生成成功", Width = 25)]
public int? IsNextTask { get; set; }
///
/// 可变变量1
///
[ExcelColumn(Name = "可变变量1", Width = 25)]
public string MutableParam1 { get; set; }
///
/// 可变变量2
///
[ExcelColumn(Name = "可变变量2", Width = 25)]
public string MutableParam2 { get; set; }
///
/// 可变变量3
///
[ExcelColumn(Name = "可变变量3", Width = 25)]
public string MutableParam3 { get; set; }
///
/// 排序
///
[ExcelColumn(Name = "排序", Width = 25)]
public int Sort { get; set; }
///
/// 是否禁用
///
[ExcelColumn(Name = "是否禁用", Width = 25)]
public bool? IsDisabled { get; set; }
public Dictionary GetExportData()
{
var exportData = new Dictionary();
foreach (var property in this.GetType().GetProperties())
{
exportData.Add(property.Name, property.GetValue(this));
}
return exportData;
}
}