DigitalFactory/Admin.NET/Admin.NET.Application/Service/ReportDetailTable/Dto/ReportDetailTableInput.cs

408 lines
8.5 KiB
C#
Raw Normal View History

2024-05-25 10:46:26 +00:00
using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
2024-05-31 10:13:10 +00:00
/// <summary>
/// 汇报单详情基础输入参数
/// </summary>
public class ReportDetailTableBaseInput
{
2024-05-25 10:46:26 +00:00
/// <summary>
2024-05-31 10:13:10 +00:00
/// 产品名称
/// </summary>
public virtual string ProductName { get; set; }
/// <summary>
/// 产品编码
/// </summary>
public virtual string? ProductCodeNum { get; set; }
/// <summary>
/// 单号
/// </summary>
public virtual string? OddNumber { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual string State { get; set; }
/// <summary>
/// 生产类型
/// </summary>
public virtual string? ProductType { get; set; }
/// <summary>
/// 生产线
/// </summary>
public virtual string? ProductionLine { get; set; }
/// <summary>
/// 生产线编码
/// </summary>
public virtual string? CodeNum { get; set; }
/// <summary>
/// 源单号
/// </summary>
public virtual string? SourceNumber { get; set; }
/// <summary>
/// 规格型号
/// </summary>
public virtual string? Specifications { get; set; }
/// <summary>
/// 完工数量
/// </summary>
public virtual int? ProductCount { get; set; }
/// <summary>
/// 入库数量
/// </summary>
public virtual int? PutWarehouse { get; set; }
/// <summary>
/// 基本完工数量
/// </summary>
public virtual int? BaseProductCount { get; set; }
/// <summary>
/// 基本入库数量
/// </summary>
public virtual int? BasePutWarehouse { get; set; }
/// <summary>
/// 单位
/// </summary>
public virtual string? Unit { get; set; }
/// <summary>
/// 基本单位
/// </summary>
public virtual string? BaseUnit { get; set; }
/// <summary>
/// 批次
/// </summary>
public virtual string? Batch { get; set; }
/// <summary>
/// 包装规格
/// </summary>
public virtual string? Package { get; set; }
/// <summary>
/// 包装数量
/// </summary>
public virtual int? PackageCount { get; set; }
/// <summary>
/// 采集失败数量
/// </summary>
public virtual int? GatherFalseCount { get; set; }
/// <summary>
/// 生产日期
/// </summary>
public virtual DateTime? ProductDate { get; set; }
/// <summary>
/// 班组
/// </summary>
public virtual string? TeamGroup { get; set; }
/// <summary>
/// 操作工人
/// </summary>
public virtual string? Operator { get; set; }
/// <summary>
/// 完工时间
/// </summary>
public virtual DateTime? EndDate { get; set; }
/// <summary>
/// 源单号
/// </summary>
public virtual string? SourceOddNumber { get; set; }
/// <summary>
/// 物料ID
/// </summary>
public virtual long? MaterialsId { get; set; }
2024-06-26 10:33:33 +00:00
/// <summary>
/// 单位组ID
/// </summary>
public long? UnitGroupId { get; set; }
2024-05-31 10:13:10 +00:00
/// <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 ReportDetailTableInput : BasePageInput
{
/// <summary>
/// 关键字查询
/// </summary>
public string? SearchKey { get; set; }
/// <summary>
/// 产品名称
/// </summary>
public string? ProductName { get; set; }
/// <summary>
/// 产品编码
/// </summary>
public string? ProductCodeNum { get; set; }
/// <summary>
/// 单号
/// </summary>
public string? OddNumber { get; set; }
/// <summary>
/// 状态
/// </summary>
public string? State { get; set; }
/// <summary>
/// 生产类型
/// </summary>
public string? ProductType { get; set; }
/// <summary>
/// 生产线
/// </summary>
public string? ProductionLine { get; set; }
/// <summary>
/// 生产线编码
/// </summary>
public string? CodeNum { get; set; }
/// <summary>
/// 源单号
/// </summary>
public string? SourceNumber { get; set; }
/// <summary>
/// 规格型号
/// </summary>
public string? Specifications { get; set; }
/// <summary>
/// 完工数量
/// </summary>
public int? ProductCount { get; set; }
/// <summary>
/// 入库数量
/// </summary>
public int? PutWarehouse { get; set; }
/// <summary>
/// 基本完工数量
/// </summary>
public int? BaseProductCount { get; set; }
/// <summary>
/// 基本入库数量
/// </summary>
public int? BasePutWarehouse { get; set; }
/// <summary>
/// 单位
/// </summary>
public string? Unit { get; set; }
/// <summary>
/// 基本单位
/// </summary>
public string? BaseUnit { get; set; }
/// <summary>
/// 批次
/// </summary>
public string? Batch { get; set; }
/// <summary>
/// 包装规格
/// </summary>
public string? Package { get; set; }
/// <summary>
/// 包装数量
/// </summary>
public int? PackageCount { get; set; }
/// <summary>
/// 采集失败数量
/// </summary>
public int? GatherFalseCount { get; set; }
/// <summary>
/// 生产日期
/// </summary>
public DateTime? ProductDate { get; set; }
/// <summary>
/// 生产日期范围
/// </summary>
public List<DateTime?> ProductDateRange { get; set; }
/// <summary>
/// 班组
/// </summary>
public string? TeamGroup { get; set; }
/// <summary>
/// 操作工人
/// </summary>
public string? Operator { get; set; }
/// <summary>
/// 完工时间
/// </summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// 完工时间范围
/// </summary>
public List<DateTime?> EndDateRange { get; set; }
/// <summary>
/// 源单号
/// </summary>
public string? SourceOddNumber { get; set; }
/// <summary>
/// 物料ID
/// </summary>
public long? MaterialsId { get; set; }
/// <summary>
/// 备注
/// </summary>
public string? Remarks { get; set; }
}
/// <summary>
/// 汇报单详情增加输入参数
/// </summary>
public class AddReportDetailTableInput : ReportDetailTableBaseInput
{
/// <summary>
/// 产品名称
/// </summary>
[Required(ErrorMessage = "产品名称不能为空")]
public override string ProductName { get; set; }
/// <summary>
/// 状态
/// </summary>
[Required(ErrorMessage = "状态不能为空")]
public override string State { get; set; }
/// <summary>
/// 软删除
/// </summary>
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
/// <summary>
/// 汇报单详情删除输入参数
/// </summary>
public class DeleteReportDetailTableInput : BaseIdInput
{
}
/// <summary>
/// 汇报单详情更新输入参数
/// </summary>
public class UpdateReportDetailTableInput : ReportDetailTableBaseInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 汇报单详情主键查询输入参数
/// </summary>
public class QueryByIdReportDetailTableInput : DeleteReportDetailTableInput
{
}
2024-07-04 15:34:54 +00:00
/// <summary>
/// 汇报单详情更新审核状态
/// </summary>
public class UpdateStateReportDetailTableInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public string[] Ids { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public string State { get; set; }
}