You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.3 KiB
104 lines
3.3 KiB
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Volo.Abp.Domain.Entities;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Shentun.Peis.Models
|
|
{
|
|
/// <summary>
|
|
/// 项目结果模板设置
|
|
/// </summary>
|
|
[Table("item_result_template")]
|
|
[Index(nameof(ItemId), nameof(Result), Name = "ix_item_result_template", IsUnique = true)]
|
|
public class ItemResultTemplate : AuditedEntity<Guid>, IDisplayOrder, IHasConcurrencyStamp
|
|
{
|
|
|
|
public ItemResultTemplate(Guid id):base(id) { }
|
|
public ItemResultTemplate() { }
|
|
/// <summary>
|
|
/// 项目编号
|
|
/// </summary>
|
|
[Column("item_id")]
|
|
//[StringLength(6)]
|
|
public Guid ItemId { get; set; }
|
|
/// <summary>
|
|
/// 结果
|
|
/// </summary>
|
|
[Column("result")]
|
|
[StringLength(500)]
|
|
public string Result { get; set; } = null!;
|
|
/// <summary>
|
|
/// 诊断编号
|
|
/// </summary>
|
|
[Column("diagnosis_id")]
|
|
//[StringLength(8)]
|
|
public Guid? DiagnosisId { get; set; }
|
|
/// <summary>
|
|
/// 小结前是否加名称
|
|
/// </summary>
|
|
[Column("is_name_into_summary")]
|
|
[MaxLength(1)]
|
|
public char IsNameIntoSummary { get; set; }
|
|
/// <summary>
|
|
/// 是进入小结
|
|
/// </summary>
|
|
[Column("is_result_into_summary")]
|
|
[MaxLength(1)]
|
|
public char IsResultIntoSummary { get; set; }
|
|
/// <summary>
|
|
/// 结果状态
|
|
/// </summary>
|
|
[Column("result_status_id")]
|
|
[StringLength(2)]
|
|
public string ResultStatusId { get; set; }
|
|
///// <summary>
|
|
///// 结果模板类别
|
|
///// </summary>
|
|
//[Column("item_result_template_type_id")]
|
|
////[StringLength(6)]
|
|
//public Guid ItemResultTemplateTypeId { get; set; }
|
|
/// <summary>
|
|
/// 拼音简码
|
|
/// </summary>
|
|
[Column("simple_code")]
|
|
[StringLength(500)]
|
|
public string SimpleCode { get; set; } = null!;
|
|
/// <summary>
|
|
/// 显示顺序
|
|
/// </summary>
|
|
[Column("display_order")]
|
|
public int DisplayOrder { get; set; }
|
|
|
|
[Column("concurrency_stamp")]
|
|
public string ConcurrencyStamp { get; set; }
|
|
|
|
///// <summary>
|
|
///// 最后修改者
|
|
///// </summary>
|
|
//[Column("last_modifier_id")]
|
|
//public Guid LastModifierId { get; set; }
|
|
///// <summary>
|
|
///// 最后修改日期
|
|
///// </summary>
|
|
//[Column("last_modification_time", TypeName = "timestamp without time zone")]
|
|
//public DateTime LastModificationTime { get; set; }
|
|
//[Column("creator_id")]
|
|
//public Guid CreatorId { get; set; }
|
|
//[Column("creation_time", TypeName = "timestamp without time zone")]
|
|
//public DateTime CreationTime { get; set; }
|
|
//[Column("concurrency_stamp")]
|
|
//[StringLength(40)]
|
|
//public string ConcurrencyStamp { get; set; } = null!;
|
|
|
|
[ForeignKey(nameof(ItemId))]
|
|
[InverseProperty("ItemResultTemplates")]
|
|
public virtual Item Item { get; set; } = null!;
|
|
|
|
//public override object[] GetKeys()
|
|
//{
|
|
// return new object[] { ItemResultTemplateId };
|
|
//}
|
|
}
|
|
}
|