DigitalFactory/Admin.NET/Admin.NET.Application/Service/ProductBarCode/Dto/ProductBarCodeInput.cs

180 lines
4.4 KiB
C#

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
/// <summary>
/// 产品条码基础输入参数
/// </summary>
public class ProductBarCodeBaseInput
{
/// <summary>
/// 条码
/// </summary>
public virtual string? BarCode { get; set; }
/// <summary>
/// 上级码
/// </summary>
public virtual string? ParentCode { get; set; }
/// <summary>
/// 条码类型
/// </summary>
public virtual string? BarCodeType { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int? State { get; set; }
/// <summary>
/// 物料名称
/// </summary>
public virtual string? MaterialName { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public virtual string? MaterialCode { get; set; }
/// <summary>
/// 数量
/// </summary>
public virtual int? Count { get; set; }
/// <summary>
/// 单位
/// </summary>
public virtual string? Unit { get; set; }
/// <summary>
/// 单位ID
/// </summary>
public virtual long? UnitId { get; set; }
/// <summary>
/// 基本数量
/// </summary>
public virtual int? BaseCount { 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 ProductBarCodeInput : BasePageInput
{
/// <summary>
/// 关键字查询
/// </summary>
public string? SearchKey { get; set; }
/// <summary>
/// 条码
/// </summary>
public string? BarCode { get; set; }
/// <summary>
/// 上级码
/// </summary>
public string? ParentCode { get; set; }
/// <summary>
/// 条码类型
/// </summary>
public string? BarCodeType { get; set; }
/// <summary>
/// 物料名称
/// </summary>
public string? MaterialName { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public string? MaterialCode { get; set; }
}
/// <summary>
/// 产品条码增加输入参数
/// </summary>
public class AddProductBarCodeInput : ProductBarCodeBaseInput
{
/// <summary>
/// 软删除
/// </summary>
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
/// <summary>
/// 产品条码删除输入参数
/// </summary>
public class DeleteProductBarCodeInput : BaseIdInput
{
}
/// <summary>
/// 产品条码更新输入参数
/// </summary>
public class UpdateProductBarCodeInput : ProductBarCodeBaseInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
/// <summary>
/// 产品条码主键查询输入参数
/// </summary>
public class QueryByIdProductBarCodeInput : DeleteProductBarCodeInput
{
}