using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 标签打印基础输入参数
///
public class PrintLabelBaseInput
{
///
/// 打印模板ID
///
public virtual long TemplateId { get; set; }
///
/// 收货数量
///
public virtual int Count { get; set; }
///
/// 单位
///
public virtual string Unit { get; set; }
///
/// 标签数量
///
public virtual int? LabelCount { get; set; }
///
/// 标准包装数量
///
public virtual int? PackageCount { get; set; }
///
/// 包装单位
///
public virtual string PackageUnit { get; set; }
///
/// 生产日期
///
public virtual DateTime ProductDate { get; set; }
///
/// 失效日期
///
public virtual DateTime EndDate { get; set; }
///
/// 批次
///
public virtual int? Batch { 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 PrintLabelInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 打印模板ID
///
public long? TemplateId { get; set; }
///
/// 收货数量
///
public int? Count { get; set; }
///
/// 单位
///
public string? Unit { get; set; }
///
/// 标签数量
///
public int? LabelCount { get; set; }
///
/// 标准包装数量
///
public int? PackageCount { get; set; }
///
/// 包装单位
///
public string? PackageUnit { get; set; }
///
/// 生产日期
///
public DateTime? ProductDate { get; set; }
///
/// 生产日期范围
///
public List ProductDateRange { get; set; }
///
/// 失效日期
///
public DateTime? EndDate { get; set; }
///
/// 失效日期范围
///
public List EndDateRange { get; set; }
///
/// 批次
///
public int? Batch { get; set; }
/////
///// 备注
/////
//public string? Remarks { get; set; }
}
///
/// 标签打印增加输入参数
///
public class AddPrintLabelInput : PrintLabelBaseInput
{
///
/// 打印模板ID
///
[Required(ErrorMessage = "打印模板ID不能为空")]
public override long TemplateId { get; set; }
///
/// 收货数量
///
[Required(ErrorMessage = "收货数量不能为空")]
public override int Count { get; set; }
///
/// 单位
///
[Required(ErrorMessage = "单位不能为空")]
public override string Unit { get; set; }
///
/// 包装单位
///
[Required(ErrorMessage = "包装单位不能为空")]
public override string PackageUnit { get; set; }
///
/// 生产日期
///
[Required(ErrorMessage = "生产日期不能为空")]
public override DateTime ProductDate { get; set; }
///
/// 失效日期
///
[Required(ErrorMessage = "失效日期不能为空")]
public override DateTime EndDate { get; set; }
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 标签打印删除输入参数
///
public class DeletePrintLabelInput : BaseIdInput
{
}
///
/// 标签打印更新输入参数
///
public class UpdatePrintLabelInput : PrintLabelBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 标签打印主键查询输入参数
///
public class QueryByIdPrintLabelInput : DeletePrintLabelInput
{
}