StateUpdateDto.cs 948 B

1234567891011121314151617181920212223242526272829
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using ShwasherSys.BaseSysInfo;
  5. namespace ShwasherSys.BaseSysInfo.States.Dto
  6. {
  7. [AutoMapTo(typeof(SysState))]
  8. public class StateUpdateDto : EntityDto<int>
  9. {
  10. [StringLength(SysState.StateNoMaxLength)]
  11. public string StateNo { get; set; }
  12. [StringLength(SysState.StateNameMaxLength)]
  13. public string StateName { get; set; }
  14. [Required]
  15. [StringLength(SysState.TableNameMaxLength)]
  16. public string TableName { get; set; }
  17. [Required]
  18. [StringLength(SysState.ColNameMaxLength)]
  19. public string ColumnName { get; set; }
  20. [Required]
  21. [StringLength(SysState.CodeValueMaxLength)]
  22. public string CodeValue { get; set; }
  23. [Required]
  24. [StringLength(SysState.DisplayValueMaxLength)]
  25. public string DisplayValue { get; set; }
  26. }
  27. }