2024-05-31 10:17:33 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using MiniExcelLibs.Attributes;
|
|
|
|
|
|
|
2024-07-01 16:04:10 +08:00
|
|
|
|
namespace DOAN.Model.MES.dev.Dto
|
2024-06-17 10:17:04 +08:00
|
|
|
|
{
|
2024-05-31 10:17:33 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 任务执行查询对象
|
|
|
|
|
|
/// </summary>
|
2024-06-04 11:25:17 +08:00
|
|
|
|
public class DeviceTaskExecuteQueryDto : PagerInfo
|
2024-05-31 10:17:33 +08:00
|
|
|
|
{
|
2024-06-17 10:17:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 任务名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string TaskName { get; set; }
|
2024-07-17 14:18:06 +08:00
|
|
|
|
|
2024-06-17 10:17:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 时间范围
|
|
|
|
|
|
/// </summary>
|
2024-06-17 10:38:03 +08:00
|
|
|
|
public DateTime[] TimeRange { get; set; }
|
2024-06-17 10:17:04 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 任务类型
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Type { get; set; }
|
|
|
|
|
|
|
2025-03-20 15:46:46 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 1是检查 2是保养
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int InnerType { get; set; }
|
|
|
|
|
|
|
2024-06-17 10:17:04 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 状态
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Status { get; set; }
|
2024-06-04 11:25:17 +08:00
|
|
|
|
}
|
2024-07-17 14:18:06 +08:00
|
|
|
|
|
2024-06-24 17:09:07 +08:00
|
|
|
|
public class DeviceTaskExecuteQueryDto2
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
public int Status { get; set; }
|
2024-07-17 14:18:06 +08:00
|
|
|
|
public string UpdatedBy { get; set; }
|
2024-06-24 17:09:07 +08:00
|
|
|
|
|
|
|
|
|
|
public DateTime UpdatedTime { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-06-04 11:25:17 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询表单结果
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class DeviceTaskExecuteResult1QueryDto_TaskExecute
|
|
|
|
|
|
{
|
2024-07-17 14:18:06 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 任务id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string FkTaskId { get; set; }
|
|
|
|
|
|
|
2024-06-04 11:25:17 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 类型 (巡检、点检)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int? PlanType { get; set; }
|
2024-07-17 14:18:06 +08:00
|
|
|
|
|
2024-06-04 11:25:17 +08:00
|
|
|
|
/// <summary>
|
2024-06-05 16:16:33 +08:00
|
|
|
|
/// 巡检计划或者点检计划id
|
2024-06-04 11:25:17 +08:00
|
|
|
|
/// </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; }
|
2024-06-17 10:17:04 +08:00
|
|
|
|
|
2024-06-04 11:25:17 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 表单标题
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int? Type { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string[] Children { get; set; }
|
2024-05-31 10:17:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 任务执行输入输出对象
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class DeviceTaskExecuteDto
|
|
|
|
|
|
{
|
|
|
|
|
|
[Required(ErrorMessage = "主键不能为空")]
|
|
|
|
|
|
[ExcelColumn(Name = "主键")]
|
|
|
|
|
|
[ExcelColumnName("主键")]
|
2024-06-04 09:00:11 +08:00
|
|
|
|
public string Id { get; set; }
|
2024-05-31 10:17:33 +08:00
|
|
|
|
|
|
|
|
|
|
[ExcelColumn(Name = "任务名称")]
|
|
|
|
|
|
[ExcelColumnName("任务名称")]
|
|
|
|
|
|
public string TaskName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ExcelColumn(Name = "任务id")]
|
|
|
|
|
|
[ExcelColumnName("任务id")]
|
2024-07-19 09:53:14 +08:00
|
|
|
|
public string PlanId { get; set; }
|
2024-05-31 10:17:33 +08:00
|
|
|
|
|
|
|
|
|
|
[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; }
|
|
|
|
|
|
|
2024-07-18 09:16:01 +08:00
|
|
|
|
//耗时
|
|
|
|
|
|
public double ConsumeTime { get; set; }
|
|
|
|
|
|
|
2024-05-31 10:17:33 +08:00
|
|
|
|
[ExcelColumn(Name = "状态")]
|
|
|
|
|
|
[ExcelColumnName("状态")]
|
|
|
|
|
|
public int? Status { get; set; }
|
|
|
|
|
|
|
2024-07-03 20:13:57 +08:00
|
|
|
|
[ExcelColumn(Name = "执行人")]
|
|
|
|
|
|
[ExcelColumnName("执行人")]
|
2024-07-17 14:18:06 +08:00
|
|
|
|
public string Person { get; set; }
|
2024-07-03 20:13:57 +08:00
|
|
|
|
|
2024-05-31 10:17:33 +08:00
|
|
|
|
[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; }
|
2025-03-20 18:04:46 +08:00
|
|
|
|
|
|
|
|
|
|
public int inner_type { get; set; }
|
2024-05-31 10:17:33 +08:00
|
|
|
|
}
|
2024-07-17 14:18:06 +08:00
|
|
|
|
}
|