using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;
///
/// 包装关系基础输入参数
///
public class PackageInfoBaseInput
{
///
/// 物料Id
///
public virtual long? MaterialsId { get; set; }
///
/// 是否启用
///
public virtual bool IsEnable { get; set; }
///
/// 条码类型编码
///
public virtual string? CodeTypeNum { get; set; }
///
/// 条码类型
///
public virtual string? CodeType { get; set; }
///
/// 包装关系名称
///
public virtual string? PackageName { get; set; }
///
/// 单位Id
///
public virtual long? UnitId { get; set; }
///
/// 单位组Id
///
public virtual long? UnitGroupId { get; set; }
///
/// 产品数量
///
public virtual string? ProductCount { 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 PackageInfoInput : BasePageInput
{
///
/// 关键字查询
///
public string? SearchKey { get; set; }
///
/// 物料Id
///
public long? MaterialsId { get; set; }
///
/// 是否启用
///
public bool? IsEnable { get; set; }
///
/// 条码类型编码
///
public string? CodeTypeNum { get; set; }
///
/// 条码类型
///
public string? CodeType { get; set; }
///
/// 包装关系名称
///
public string? PackageName { get; set; }
///
/// 单位Id
///
public long? UnitId { get; set; }
///
/// 单位组Id
///
public long? UnitGroupId { get; set; }
///
/// 产品数量
///
public string? ProductCount { get; set; }
}
///
/// 包装关系增加输入参数
///
public class AddPackageInfoInput : PackageInfoBaseInput
{
///
/// 物料Id
///
[Required(ErrorMessage = "物料Id不能为空")]
public override long? MaterialsId { get; set; }
///
/// 是否启用
///
[Required(ErrorMessage = "是否启用不能为空")]
public override bool IsEnable { get; set; }
///
/// 软删除
///
[Required(ErrorMessage = "软删除不能为空")]
public override bool IsDelete { get; set; }
}
///
/// 包装关系删除输入参数
///
public class DeletePackageInfoInput : BaseIdInput
{
}
///
/// 包装关系更新输入参数
///
public class UpdatePackageInfoInput : PackageInfoBaseInput
{
///
/// 主键Id
///
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
///
/// 包装关系主键查询输入参数
///
public class QueryByIdPackageInfoInput : DeletePackageInfoInput
{
}