using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using ShwasherSys.Authorization.Users; namespace ShwasherSys.CompanyInfo { [Table("DeviceMgPlanInfo")] public class DeviceMgPlan : FullAuditedEntity { public const int NoMaxLength = 50; public const int NameMaxLength = 50; public const int DescMaxLength = 5000; public const int ModelMaxLength = 50; public const int MaterialMaxLength = 50; public const int SurfaceColorMaxLength = 50; public const int RigidityMaxLength = 50; /// /// 计划编号 /// [MaxLength(NoMaxLength)] public string No { get; set; } /// /// 计划类型 /// public int PlanType { get; set; } /// /// 设备编码 /// [MaxLength(NoMaxLength)] public string DeviceNo { get; set; } /// /// 设备名称 /// [MaxLength(NameMaxLength)] public string Name { get; set; } /// /// 维护内容 /// [MaxLength(DescMaxLength)] public string Description { get; set; } /// /// 有效期限 /// public DateTime ExpireDate { get; set; } /// /// 维护周期 /// public int MaintenanceCycle { get; set; } /// /// 维护时间 /// public DateTime MaintenanceDate { get; set; } /// /// 下一次维护时间 /// public DateTime? NextMaintenanceDate { get; set; } public const int RemarkMaxLength = 500; [MaxLength(RemarkMaxLength)] public string Remark { get; set; } public int NumberOfUsers { get; set; } } }