Files
shgx_tz_mes_backend_sync/ZR.Model/MES/Device/Dto/DeviceTaskExecuteDto.cs
gcw_MV9p2JJN 308ca6df79 设备管理
2025-09-23 15:11:18 +08:00

164 lines
4.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
using MiniExcelLibs.Attributes;
using ZR.Model;
namespace ZR.Model.MES.dev.Dto
{
/// <summary>
/// 任务执行查询对象
/// </summary>
public class DeviceTaskExecuteQueryDto : PagerInfo
{
/// <summary>
/// 任务名称
/// </summary>
public string TaskName { get; set; }
/// <summary>
/// 时间范围
/// </summary>
public DateTime[] TimeRange { get; set; }
/// <summary>
/// 任务类型
/// </summary>
public int Type { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
}
public class DeviceTaskExecuteQueryDto2
{
public string Id { get; set; }
public int Status { get; set; }
public string UpdatedBy { get; set; }
public DateTime UpdatedTime { get; set; }
}
/// <summary>
/// 查询表单结果
/// </summary>
public class DeviceTaskExecuteResult1QueryDto_TaskExecute
{
/// <summary>
/// 任务id
/// </summary>
public string FkTaskId { get; set; }
/// <summary>
/// 类型 (巡检、点检)
/// </summary>
public int? PlanType { get; set; }
/// <summary>
/// 巡检计划或者点检计划id
/// </summary>
public string FkPlanId { get; set; }
/// <summary>
/// 设备id
/// </summary>
public int? FkDeviceId { get; set; }
/// <summary>
/// 检查项id
/// </summary>
public int FkInspectId { get; set; }
}
/// <summary>
/// 生成表单结果
/// </summary>
public class DeviceTaskExecuteResult1_result
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
/// <summary>
/// 表单标题
/// </summary>
public string Title { get; set; }
public int? Type { get; set; }
public string Value { get; set; }
public string[] Children { get; set; }
}
/// <summary>
/// 任务执行输入输出对象
/// </summary>
public class DeviceTaskExecuteDto
{
[Required(ErrorMessage = "主键不能为空")]
[ExcelColumn(Name = "主键")]
[ExcelColumnName("主键")]
public string Id { get; set; }
[ExcelColumn(Name = "任务名称")]
[ExcelColumnName("任务名称")]
public string TaskName { get; set; }
[ExcelColumn(Name = "任务id")]
[ExcelColumnName("任务id")]
public string PlanId { get; set; }
[Required(ErrorMessage = "任务类型1是巡检2是点检不能为空")]
[ExcelColumn(Name = "任务类型1是巡检2是点检")]
[ExcelColumnName("任务类型1是巡检2是点检")]
public int Type { get; set; }
[ExcelColumn(Name = "任务派发时间", Format = "yyyy-MM-dd HH:mm:ss")]
[ExcelColumnName("任务派发时间")]
public DateTime? DistributedTime { get; set; }
[ExcelColumn(Name = "任务执行——开始时间", Format = "yyyy-MM-dd HH:mm:ss")]
[ExcelColumnName("任务执行——开始时间")]
public DateTime? StartTime { get; set; }
[ExcelColumn(Name = "任务执行——结束时间", Format = "yyyy-MM-dd HH:mm:ss")]
[ExcelColumnName("任务执行——结束时间")]
public DateTime? EndTime { get; set; }
//耗时
public double ConsumeTime { get; set; }
[ExcelColumn(Name = "状态")]
[ExcelColumnName("状态")]
public int? Status { get; set; }
[ExcelColumn(Name = "执行人")]
[ExcelColumnName("执行人")]
public string Person { get; set; }
[ExcelColumn(Name = "备注")]
[ExcelColumnName("备注")]
public string Remark { get; set; }
[ExcelColumn(Name = "创建人")]
[ExcelColumnName("创建人")]
public string CreatedBy { get; set; }
[ExcelColumn(Name = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")]
[ExcelColumnName("创建时间")]
public DateTime? CreatedTime { get; set; }
[ExcelColumn(Name = "更新人")]
[ExcelColumnName("更新人")]
public string UpdatedBy { get; set; }
[ExcelColumn(Name = "更新时间", Format = "yyyy-MM-dd HH:mm:ss")]
[ExcelColumnName("更新时间")]
public DateTime? UpdatedTime { get; set; }
}
}