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