StateCreateDto.cs 894 B

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