using Estsh.Core.Base; using System.ComponentModel; using System.ComponentModel.DataAnnotations.Schema; namespace Estsh.Core.Models { /// /// ,数据实体对象 /// [Table("g_sn_defect")] [Serializable] public class GSnDefect : BaseEntity { [Column("serial_number")] [DisplayName(" ")] public string SerialNumber { get; set; } [Column("workorder_no")] [DisplayName(" ")] public string WorkorderNo { get; set; } [Column("part_id")] [DisplayName(" ")] public int PartId { get; set; } [Column("defect_id")] [DisplayName(" ")] public int DefectId { get; set; } [Column("terminal_id")] [DisplayName(" ")] public int TerminalId { get; set; } [Column("defect_qty")] [DisplayName(" ")] public decimal DefectQty { get; set; } [Column("rp_status")] [DisplayName(" ")] public string RpStatus { get; set; } [Column("memo")] [DisplayName(" ")] public string Memo { get; set; } [Column("item_defect_id")] [DisplayName(" ")] public int? ItemDefectId { get; set; } [Column("ruid")] [DisplayName(" ")] public int Ruid { get; set; } #region 扩展字段 [NotMapped] [Column("defect_code")] [DisplayName(" ")] public string DefectCode { get; set; } [NotMapped] [Column("defect_desc")] [DisplayName(" ")] public string DefectDesc { get; set; } [NotMapped] [Column("reason_code")] [DisplayName(" ")] public string ReasonCode { get; set; } [NotMapped] [Column("reason_desc")] [DisplayName(" ")] public string ReasonDesc { get; set; } [NotMapped] [Column("duty_code")] [DisplayName(" ")] public string DutyCode { get; set; } [NotMapped] [Column("duty_desc")] [DisplayName(" ")] public string DutyDesc { get; set; } [NotMapped] [Column("emp_name")] [DisplayName(" ")] public string EmpName { get; set; } [NotMapped] [Column("remark")] [DisplayName(" ")] public string Remark { get; set; } #endregion } }