54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using WmsLite.Api.Dtos.Common;
|
|
using WmsLite.Api.Enums;
|
|
|
|
namespace WmsLite.Api.Dtos.Location;
|
|
|
|
public class LocationUpdateRequest
|
|
{
|
|
[Range(1, long.MaxValue, ErrorMessage = "Id 必须大于 0。")]
|
|
public long Id { get; set; }
|
|
|
|
[Required(ErrorMessage = "仓库编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string WarehouseCode { get; set; } = string.Empty;
|
|
|
|
[Required(ErrorMessage = "库区编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string AreaCode { get; set; } = string.Empty;
|
|
|
|
[Required(ErrorMessage = "分区编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string ZoneCode { get; set; } = string.Empty;
|
|
|
|
[StringLength(64)]
|
|
public string? AisleCode { get; set; }
|
|
|
|
[Required(ErrorMessage = "储位编码不能为空。")]
|
|
[StringLength(64)]
|
|
public string Code { get; set; } = string.Empty;
|
|
|
|
[StringLength(256)]
|
|
public string? Name { get; set; }
|
|
|
|
public int? RowNo { get; set; }
|
|
|
|
public int? ColumnNo { get; set; }
|
|
|
|
public int? LayerNo { get; set; }
|
|
|
|
public decimal? Height { get; set; }
|
|
|
|
[Required]
|
|
[EnumDataType(typeof(LocationStatus), ErrorMessage = "LocationStatus 无效。")]
|
|
public LocationStatus LocationStatus { get; set; } = LocationStatus.Empty;
|
|
|
|
public bool IsOuter { get; set; }
|
|
|
|
[StringLength(64)]
|
|
public string? ContainerCode { get; set; }
|
|
|
|
public Dictionary<string, object>? Attrs { get; set; }
|
|
}
|