MaintenanceRecord.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using Abp.Domain.Entities.Auditing;
  5. using ShwasherSys.Authorization.Users;
  6. namespace ShwasherSys.CompanyInfo
  7. {
  8. /// <summary>
  9. /// 机模维护记录
  10. /// </summary>
  11. [Table("MaintenanceRecordInfo")]
  12. public class MaintenanceRecord: CreationAuditedEntity<string, SysUser>
  13. {
  14. public const int DeviceNoMaxLength = 50;
  15. public const int DeviceTypeMaxLength = 50;
  16. public const int DescMaxLength = 500;
  17. public const int AddressMaxLength = 200;
  18. /// <summary>
  19. /// 计划编号
  20. /// </summary>
  21. [MaxLength(DeviceNoMaxLength)]
  22. public string DeviceMgPlanNo { get; set; }
  23. /// <summary>
  24. /// 设备编号
  25. /// </summary>
  26. [MaxLength(DeviceNoMaxLength)]
  27. public string DeviceNo { get; set; }
  28. /// <summary>
  29. /// 设备名称
  30. /// </summary>
  31. [MaxLength(DeviceNoMaxLength)]
  32. public string DeviceName { get; set; }
  33. /// <summary>
  34. /// 维护类型
  35. /// </summary>
  36. public int MgType { get; set; }
  37. /// <summary>
  38. /// 维护内容
  39. /// </summary>
  40. [MaxLength(DescMaxLength)]
  41. public string Description { get; set; }
  42. /// <summary>
  43. /// 维护地点
  44. /// </summary>
  45. [MaxLength(AddressMaxLength)]
  46. public string Address { get; set; }
  47. /// <summary>
  48. /// 计划时间
  49. /// </summary>
  50. public DateTime PlanDate { get; set; }
  51. /// <summary>
  52. /// 完成状态
  53. /// </summary>
  54. public int CompleteState { get; set; }
  55. /// <summary>
  56. /// 完成时间
  57. /// </summary>
  58. public DateTime? CompleteDate { get; set; }
  59. public const int RemarkMaxLength = 500;
  60. [MaxLength(RemarkMaxLength)]
  61. public string Remark { get; set; }
  62. }
  63. }