Files
WCS/Plugins/Wcs/Plugin.Cowain.Wcs/Models/Dto/ProcessDto.cs

48 lines
980 B
C#
Raw Normal View History

2026-03-02 09:13:29 +08:00

using Cowain.Base.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Plugin.Cowain.Wcs.Models.Dto;
2026-03-02 10:56:30 +08:00
[Table("process")]
2026-03-02 09:13:29 +08:00
public class ProcessDto : BaseModel
{
[Key]
public int Id { get; set; }
/// <summary>
/// 工艺名称
/// </summary>
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
/// <summary>
/// 工艺流程图存储
/// </summary>
[Required]
public string FlowData { get; set; } = string.Empty;
public bool Enable { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 最后一次更新时间
/// </summary>
public DateTime UpdateTime { get; set; } = DateTime.MinValue;
/// <summary>
/// PLC参数
/// </summary>
[Required]
public string Json { get; set; } = string.Empty;
}