DeviceMgPlanCreateDto.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using Abp.AutoMapper;
  3. using System.ComponentModel.DataAnnotations;
  4. using IwbZero.AppServiceBase;
  5. namespace ShwasherSys.CompanyInfo.DeviceInfo.Dto
  6. {
  7. /// <summary>
  8. /// 设备维护计划
  9. /// </summary>
  10. [AutoMapTo(typeof(DeviceMgPlan))]
  11. public class DeviceMgPlanCreateDto:IwbEntityDto<int>
  12. {
  13. /// <summary>
  14. /// 计划编号
  15. /// </summary>
  16. [StringLength(DeviceMgPlan.NoMaxLength)]
  17. public string No { get; set; }
  18. /// <summary>
  19. /// 设备名称
  20. /// </summary>
  21. [Required]
  22. [StringLength(DeviceMgPlan.NameMaxLength)]
  23. public string Name { get; set; }
  24. /// <summary>
  25. /// 设备编码
  26. /// </summary>
  27. [StringLength(DeviceMgPlan.NoMaxLength)]
  28. public string DeviceNo { get; set; }
  29. /// <summary>
  30. /// 计划类型
  31. /// </summary>
  32. public int PlanType { get; set; }
  33. /// <summary>
  34. /// 维护内容
  35. /// </summary>
  36. [StringLength(DeviceMgPlan.DescMaxLength)]
  37. public string Description { get; set; }
  38. /// <summary>
  39. /// 有效期限
  40. /// </summary>
  41. public DateTime ExpireDate { get; set; }
  42. /// <summary>
  43. /// 维护周期
  44. /// </summary>
  45. public int MaintenanceCycle { get; set; }
  46. /// <summary>
  47. /// 维护时间
  48. /// </summary>
  49. public DateTime MaintenanceDate { get; set; }
  50. /// <summary>
  51. /// 下一次维护时间
  52. /// </summary>
  53. public DateTime? NextMaintenanceDate { get; set; }
  54. }
  55. }