Mold.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities.Auditing;
  4. using ShwasherSys.Authorization.Users;
  5. namespace ShwasherSys.CompanyInfo
  6. {
  7. [Table("MoldInfo")]
  8. public class Mold : FullAuditedEntity<int, SysUser>
  9. {
  10. public const int NoMaxLength = 50;
  11. public const int NameMaxLength = 50;
  12. public const int DescMaxLength = 500;
  13. public const int ModelMaxLength = 50;
  14. public const int MaterialMaxLength = 50;
  15. public const int SurfaceColorMaxLength = 50;
  16. public const int RigidityMaxLength = 50;
  17. public const int CustomerNameMaxLength = 50;
  18. public const int ShelfNumMaxLength = 50;
  19. public const int OuterDiameterMaxLength = 50;
  20. public const int InsideDiameterMaxLength = 50;
  21. public const int ThicknessMaxLength = 50;
  22. public const int HeightMaxLength = 50;
  23. /// <summary>
  24. /// 模具编码
  25. /// </summary>
  26. [MaxLength(NoMaxLength)]
  27. public string No { get; set; }
  28. /// <summary>
  29. /// 模具名称
  30. /// </summary>
  31. [MaxLength(NameMaxLength)]
  32. public string Name { get; set; }
  33. /// <summary>
  34. /// 模具规格
  35. /// </summary>
  36. [MaxLength(ModelMaxLength)]
  37. public string Model { get; set; }
  38. /// <summary>
  39. /// 模具材质
  40. /// </summary>
  41. [MaxLength(MaterialMaxLength)]
  42. public string Material { get; set; }
  43. /// <summary>
  44. /// 模具描述
  45. /// </summary>
  46. [MaxLength(DescMaxLength)]
  47. public string Description { get; set; }
  48. public const int RemarkMaxLength = 500;
  49. [MaxLength(RemarkMaxLength)]
  50. public string Remark { get; set; }
  51. [MaxLength(CustomerNameMaxLength)]
  52. public string CustomerName { get; set; }
  53. [MaxLength(ShelfNumMaxLength)]
  54. public string ShelfNum { get; set; }
  55. [MaxLength(OuterDiameterMaxLength)]
  56. public string OuterDiameter { get; set; }
  57. [MaxLength(InsideDiameterMaxLength)]
  58. public string InsideDiameter { get; set; }
  59. [MaxLength(ThicknessMaxLength)]
  60. public string Thickness { get; set; }
  61. [MaxLength(HeightMaxLength)]
  62. public string Height { get; set; }
  63. [MaxLength(RigidityMaxLength)]
  64. public string Rigidity { get; set; }
  65. public int MaintenanceCycle { get; set; }
  66. }
  67. }