109 lines
2.4 KiB
C#
109 lines
2.4 KiB
C#
using Admin.NET.Core;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Admin.NET.Application;
|
|
|
|
/// <summary>
|
|
/// 物料列表基础输入参数
|
|
/// </summary>
|
|
public class MaterialListBaseInput
|
|
{
|
|
/// <summary>
|
|
/// 物料ID
|
|
/// </summary>
|
|
public virtual long? MaterialsId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位
|
|
/// </summary>
|
|
public virtual string? Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数量
|
|
/// </summary>
|
|
public virtual int? Count { get; set; }
|
|
|
|
/// <summary>
|
|
/// 来源ID
|
|
/// </summary>
|
|
public virtual long? SourceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public virtual string? Remarks { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 物料列表分页查询输入参数
|
|
/// </summary>
|
|
public class MaterialListInput : BasePageInput
|
|
{
|
|
/// <summary>
|
|
/// 关键字查询
|
|
/// </summary>
|
|
public string? SearchKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料ID
|
|
/// </summary>
|
|
public long? MaterialsId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位
|
|
/// </summary>
|
|
public string? Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数量
|
|
/// </summary>
|
|
public int? Count { get; set; }
|
|
|
|
/// <summary>
|
|
/// 来源ID
|
|
/// </summary>
|
|
public long? SourceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string? Remarks { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 物料列表增加输入参数
|
|
/// </summary>
|
|
public class AddMaterialListInput : MaterialListBaseInput
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 物料列表删除输入参数
|
|
/// </summary>
|
|
public class DeleteMaterialListInput : BaseIdInput
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 物料列表更新输入参数
|
|
/// </summary>
|
|
public class UpdateMaterialListInput : MaterialListBaseInput
|
|
{
|
|
/// <summary>
|
|
/// 主键Id
|
|
/// </summary>
|
|
[Required(ErrorMessage = "主键Id不能为空")]
|
|
public long Id { get; set; }
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 物料列表主键查询输入参数
|
|
/// </summary>
|
|
public class QueryByIdMaterialListInput : DeleteMaterialListInput
|
|
{
|
|
|
|
}
|