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