using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using ShwasherSys.Authorization.Users; namespace ShwasherSys.CompanyInfo { /// /// 机模维护记录 /// [Table("MaintenanceRecordInfo")] public class MaintenanceRecord: CreationAuditedEntity { public const int DeviceNoMaxLength = 50; public const int DeviceTypeMaxLength = 50; public const int DescMaxLength = 500; public const int AddressMaxLength = 200; /// /// 计划编号 /// [MaxLength(DeviceNoMaxLength)] public string DeviceMgPlanNo { get; set; } /// /// 设备编号 /// [MaxLength(DeviceNoMaxLength)] public string DeviceNo { get; set; } /// /// 设备名称 /// [MaxLength(DeviceNoMaxLength)] public string DeviceName { get; set; } /// /// 维护类型 /// public int MgType { get; set; } /// /// 维护内容 /// [MaxLength(DescMaxLength)] public string Description { get; set; } /// /// 维护地点 /// [MaxLength(AddressMaxLength)] public string Address { get; set; } /// /// 计划时间 /// public DateTime PlanDate { get; set; } /// /// 完成状态 /// public int CompleteState { get; set; } /// /// 完成时间 /// public DateTime? CompleteDate { get; set; } public const int RemarkMaxLength = 500; [MaxLength(RemarkMaxLength)] public string Remark { get; set; } } }