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