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