DigitalFactory/Admin.NET/Admin.NET.Application/Service/ProductionTasks/Dto/ProductionTasksInput.cs

233 lines
5.8 KiB
C#

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
/// <summary>
/// 生产任务单基础输入参数
/// </summary>
public class ProductionTasksBaseInput
{
/// <summary>
/// 单号
/// </summary>
public virtual string? OddNumber { get; set; }
/// <summary>
/// 计划开工日期
/// </summary>
public virtual DateTime? PlanStartDate { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int? State { get; set; }
/// <summary>
/// 生产类型
/// </summary>
public virtual string? ProductType { get; set; }
/// <summary>
/// 产品名称
/// </summary>
public virtual string? Name { get; set; }
/// <summary>
/// 产品编码
/// </summary>
public virtual string? CodeNum { get; set; }
/// <summary>
/// 规格型号
/// </summary>
public virtual string? Specifications { get; set; }
/// <summary>
/// 批次
/// </summary>
public virtual int? Batch { get; set; }
/// <summary>
/// 生产线
/// </summary>
public virtual string? ProductionLine { get; set; }
/// <summary>
/// 开工时间
/// </summary>
public virtual DateTime? StartDate { get; set; }
/// <summary>
/// 完工时间
/// </summary>
public virtual DateTime? EndDate { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string? Remarks { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public virtual long? TenantId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public virtual DateTime? UpdateTime { get; set; }
/// <summary>
/// 创建者Id
/// </summary>
public virtual long? CreateUserId { get; set; }
/// <summary>
/// 创建者姓名
/// </summary>
public virtual string? CreateUserName { get; set; }
/// <summary>
/// 修改者Id
/// </summary>
public virtual long? UpdateUserId { get; set; }
/// <summary>
/// 修改者姓名
/// </summary>
public virtual string? UpdateUserName { get; set; }
/// <summary>
/// 软删除
/// </summary>
public virtual bool IsDelete { get; set; }
}
/// <summary>
/// 生产任务单分页查询输入参数
/// </summary>
public class ProductionTasksInput : BasePageInput
{
/// <summary>
/// 关键字查询
/// </summary>
public string? SearchKey { get; set; }
/// <summary>
/// 单号
/// </summary>
public string? OddNumber { get; set; }
/// <summary>
/// 计划开工日期
/// </summary>
public DateTime? PlanStartDate { get; set; }
/// <summary>
/// 计划开工日期范围
/// </summary>
public List<DateTime?> PlanStartDateRange { get; set; }
/// <summary>
/// 状态
/// </summary>
public int? State { get; set; }
/// <summary>
/// 生产类型
/// </summary>
public string? ProductType { get; set; }
/// <summary>
/// 产品名称
/// </summary>
public string? Name { get; set; }
/// <summary>
/// 产品编码
/// </summary>
public string? CodeNum { get; set; }
/// <summary>
/// 规格型号
/// </summary>
public string? Specifications { get; set; }
/// <summary>
/// 批次
/// </summary>
public int? Batch { get; set; }
/// <summary>
/// 生产线
/// </summary>
public string? ProductionLine { get; set; }
/// <summary>
/// 开工时间
/// </summary>
public DateTime? StartDate { get; set; }
/// <summary>
/// 开工时间范围
/// </summary>
public List<DateTime?> StartDateRange { get; set; }
/// <summary>
/// 完工时间
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// 完工时间范围
/// </summary>
public List<DateTime?> EndDateRange { get; set; }
}
/// <summary>
/// 生产任务单增加输入参数
/// </summary>
public class AddProductionTasksInput : ProductionTasksBaseInput
{
/// <summary>
/// 软删除
/// </summary>
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
/// <summary>
/// 生产任务单删除输入参数
/// </summary>
public class DeleteProductionTasksInput : BaseIdInput
{
}
/// <summary>
/// 生产任务单更新输入参数
/// </summary>
public class UpdateProductionTasksInput : ProductionTasksBaseInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 生产任务单主键查询输入参数
/// </summary>
public class QueryByIdProductionTasksInput : DeleteProductionTasksInput
{
}