DigitalFactory/Admin.NET/Admin.NET.Application/Service/Outbound/Dto/OutboundInput.cs

201 lines
5.0 KiB
C#

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
/// <summary>
/// 出库单基础输入参数
/// </summary>
public class OutboundBaseInput
{
/// <summary>
/// 单号
/// </summary>
public virtual string? CodeNum { get; set; }
/// <summary>
/// 来源单号
/// </summary>
public virtual string SourceCodeNum { get; set; }
/// <summary>
/// 业务日期
/// </summary>
public virtual string? StartDate { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int? State { get; set; }
/// <summary>
/// 业务类型
/// </summary>
public virtual string? BusinessType { get; set; }
/// <summary>
/// 收货单位
/// </summary>
public virtual string Consignee { get; set; }
/// <summary>
/// 审核人ID
/// </summary>
public virtual long? ExaminerId { get; set; }
/// <summary>
/// 出库单整型拓展字段
/// </summary>
public virtual int? OutboundExpandInt { get; set; }
/// <summary>
/// 出库单字符串拓展字段
/// </summary>
public virtual string? OutboundExpandString { 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 virtual string? Warehouse { get; set; }
}
/// <summary>
/// 出库单分页查询输入参数
/// </summary>
public class OutboundInput : BasePageInput
{
/// <summary>
/// 关键字查询
/// </summary>
public string? SearchKey { get; set; }
/// <summary>
/// 单号
/// </summary>
public string? CodeNum { get; set; }
/// <summary>
/// 来源单号
/// </summary>
public string? SourceCodeNum { get; set; }
/// <summary>
/// 业务日期
/// </summary>
public string? StartDate { get; set; }
/// <summary>
/// 状态
/// </summary>
public int? State { get; set; }
/// <summary>
/// 业务类型
/// </summary>
public string? BusinessType { get; set; }
/// <summary>
/// 收货单位
/// </summary>
public string? Consignee { get; set; }
/// <summary>
/// 审核人ID
/// </summary>
public long? ExaminerId { get; set; }
}
/// <summary>
/// 出库单增加输入参数
/// </summary>
public class AddOutboundInput : OutboundBaseInput
{
/// <summary>
/// 来源单号
/// </summary>
[Required(ErrorMessage = "来源单号不能为空")]
public override string SourceCodeNum { get; set; }
/// <summary>
/// 收货单位
/// </summary>
[Required(ErrorMessage = "收货单位不能为空")]
public override string Consignee { get; set; }
/// <summary>
/// 软删除
/// </summary>
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
/// <summary>
/// 出库单删除输入参数
/// </summary>
public class DeleteOutboundInput : BaseIdInput
{
}
/// <summary>
/// 出库单更新输入参数
/// </summary>
public class UpdateOutboundInput : OutboundBaseInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 出库单主键查询输入参数
/// </summary>
public class QueryByIdOutboundInput : DeleteOutboundInput
{
}