using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; using Volo.Abp.Domain.Entities; using Volo.Abp.Domain.Entities.Auditing; namespace Shentun.Peis.Models { /// /// 房间设置 /// [Table("room")] [Index(nameof(DisplayName), Name = "ix_room", IsUnique = true)] public class Room : AuditedEntity, IHasConcurrencyStamp { public Room() { Asbitems = new HashSet(); } [Column("display_name")] [StringLength(20)] public string DisplayName { get; set; } = null!; /// /// 项目类别编号 /// [Column("item_type_id")] public Guid ItemTypeId { get; set; } /// /// 体检中心ID /// [Column("medical_center_id")] public Guid MedicalCenterId { get; set; } [Column("for_sex_id")] [MaxLength(1)] public char ForSexId { get; set; } /// /// 0-普通,1-抽血室 /// [Column("room_type_flag")] [MaxLength(1)] public char RoomTypeFlag { get; set; } /// /// 候诊时间 /// [Column("queue_time")] [Precision(3, 1)] public decimal QueueTime { get; set; } [Column("is_active")] [MaxLength(1)] public char IsActive { get; set; } [Column("simple_code")] [StringLength(20)] public string SimpleCode { get; set; } = null!; [Column("display_order")] public int DisplayOrder { get; set; } [Column("concurrency_stamp")] public string ConcurrencyStamp { get; set; } [ForeignKey(nameof(ItemTypeId))] [InverseProperty("Rooms")] public virtual ItemType ItemType { get; set; } = null!; [ForeignKey("RoomId")] [InverseProperty(nameof(Asbitem.Rooms))] public virtual ICollection Asbitems { get; set; } } }