56 lines
1.3 KiB
C#
56 lines
1.3 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using DOAN.Model.MES.dev;
|
|
using DOAN.Model.MES.dev.Dto;
|
|
|
|
namespace DOAN.Model.Dto
|
|
{
|
|
/// <summary>
|
|
/// 库存信息表查询对象
|
|
/// </summary>
|
|
public class DevicePartsInventoryQueryDto : PagerInfo
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 库存信息表输入输出对象
|
|
/// </summary>
|
|
public class DevicePartsInventoryDto
|
|
{
|
|
[Required(ErrorMessage = "库存ID不能为空")]
|
|
public int InventoryId { get; set; }
|
|
|
|
[Required(ErrorMessage = "备件ID不能为空")]
|
|
public int PartId { get; set; }
|
|
|
|
[Required(ErrorMessage = "数量不能为空")]
|
|
public int Quantity { get; set; }
|
|
|
|
public string Location { get; set; }
|
|
|
|
public DateTime? LastInventoryCheck { get; set; }
|
|
|
|
public DateTime? CreatedAt { get; set; }
|
|
|
|
public DateTime? UpdatedAt { get; set; }
|
|
|
|
|
|
|
|
}
|
|
public class DevicePartsInventoryDto2 : DeviceSparePartsDto
|
|
{
|
|
|
|
public int InventoryId { get; set; }
|
|
|
|
public int PartId { get; set; }
|
|
|
|
public int Quantity { get; set; }
|
|
|
|
public string Location { get; set; }
|
|
|
|
public DateTime? LastInventoryCheck { get; set; }
|
|
|
|
public DateTime? CreatedAt { get; set; }
|
|
|
|
public DateTime? UpdatedAt { get; set; }
|
|
}
|
|
} |