You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
548 B
28 lines
548 B
using Connected.Data;
|
|
using Connected.ServiceModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Common.Types.MeasureUnits;
|
|
|
|
public class MeasureUnitInsertArgs : Dto
|
|
{
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string? Name { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(8)]
|
|
public string? Code { get; set; }
|
|
|
|
[Range(0, 32)]
|
|
public byte Precision { get; set; }
|
|
|
|
public Status Status { get; set; } = Status.Enabled;
|
|
}
|
|
|
|
public sealed class MeasureUnitUpdateArgs : MeasureUnitInsertArgs
|
|
{
|
|
[Range(1, int.MaxValue)]
|
|
public int Id { get; set; }
|
|
}
|