using System; using SqlSugar; using System.Linq; using System.ComponentModel; using System.Collections.Generic; namespace Tiger.Model { /// /// ʵÌ壺É豸¹ÊÕÏµÇ¼Ç /// [Description("Primary:ID")] [DisplayName("É豸¹ÊÕϵǼÇ")] [Serializable] [SugarTable("EMS_FAULT")] public class EMS_FAULT : DbEntityWithAuth { #region ¹¹Ô캯Êý /// /// ʵÌ壺É豸¹ÊÕÏµÇ¼Ç /// public EMS_FAULT() {} #endregion #region ¹«¹²ÊôÐÔ /// /// É豸¹ÊÕϱàÂë /// [DisplayName("É豸¹ÊÕϱàÂë")] public string FAULT_NO { get; set; } /// /// É豸±àÂë /// [DisplayName("É豸±àÂë")] public string EQM_CODE { get; set; } /// /// ״̬(0BeFound±»·¢ÏÖ|1WaitHandle´ý´¦Àí|2RepairingάÐÞÖÐ|2ResolvedÒÑ´¦Àí) /// [DisplayName("״̬(0BeFound±»·¢ÏÖ|1WaitHandle´ý´¦Àí|2RepairingάÐÞÖÐ|2ResolvedÒÑ´¦Àí)")] public int STATUS { get; set; } /// /// ·¢Éúʱ¼ä /// [DisplayName("·¢Éúʱ¼ä")] public DateTime OCCUR_TIME { get; set; } = DateTime.MinValue; /// /// ·¢ÏÖÈË /// [DisplayName("·¢ÏÖÈË")] public DateTime OCCUR_USER { get; set; } = DateTime.MinValue; /// /// ¹ÊÕÏÏÖÏó /// [DisplayName("¹ÊÕÏÏÖÏó")] public string PROBLEM { get; set; } /// /// ¹ÊÕÏÔ­Òò /// [DisplayName("¹ÊÕÏÔ­Òò")] public string REASON { get; set; } /// /// Òì³£¹¤Ê± /// [DisplayName("Òì³£¹¤Ê±")] public double OFF_HOURS { get; set; } /// /// ÊÇ·ñÐèҪάÐÞ /// [DisplayName("ÊÇ·ñÐèҪάÐÞ")] public string NEED_REPAIR { get; set; } /// /// ´¦ÀíÈË /// [DisplayName("´¦ÀíÈË")] public DateTime HANDLE_USER { get; set; } = DateTime.MinValue; /// /// ´¦Àí´ëÊ© /// [DisplayName("´¦Àí´ëÊ©")] public string MEASURE { get; set; } /// /// ´¦Àí½á¹û /// [DisplayName("´¦Àí½á¹û")] public string RESULT { get; set; } /// /// ±¸×¢ /// [DisplayName("±¸×¢")] public string REMARK { get; set; } #endregion #region ÐéÄâÊôÐÔ /*Àý×Ó [SugarColumn(IsIgnore = true)] public string FieldName { get; set; } */ #endregion #region Íâ¼üÊôÐÔ /*Àý×Ó //Ò»¶ÔÒ»Íâ¼üµ¼º½ [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//Ò»¶ÔÒ» ClassAIdÊÇEMS_FAULTÀàÀïÃæµÄÍâ¼üID×Ö¶Î public ClassA ClassA { get; set; } //×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull //Ò»¶Ô¶àÍâ¼üµ¼º½ [Navigate(NavigateType.OneToMany, nameof(ClassA.EMS_FAULTId))]//ClassA±íÖеÄEMS_FAULTId public List ClassAList { get; set; }//×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull //¶à¶Ô¶àÍâ¼üµ¼º½ [Navigate(typeof(MappingClass), nameof(MappingClass.EMS_FAULTId), nameof(MappingClass.ClassAId))]//×¢Òâ˳Ðò public List ClassAList { get; set; } //×¢Òâ½ûÖ¹ÊÖ¶¯¸³Öµ£¬Ö»ÄÜÊÇnull */ #endregion #region ö¾Ù±äÁ¿ /*Àý×Ó public enum FieldNames { [Description("ö¾ÙÃèÊö0")] Enum0, [Description("ö¾ÙÃèÊö1")] Enum1, } */ /// /// ö¾Ù£º×´Ì¬(0BeFound±»·¢ÏÖ|1WaitHandle´ý´¦Àí|2RepairingάÐÞÖÐ|2ResolvedÒÑ´¦Àí) /// public enum STATUSs { [Description("±»·¢ÏÖ")] BeFound = 0, [Description("´ý´¦Àí")] WaitHandle = 1, [Description("άÐÞÖÐ")] Repairing = 2, [Description("ÒÑ´¦Àí")] Resolved = 2, } #endregion #region ¹«¹²·½·¨ #endregion }//endClass }