using Learun.Util; using System; using System.ComponentModel.DataAnnotations.Schema; namespace Learun.Application.TwoDevelopment.EducationalAdministration { /// /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 /// 创 建:超级管理员 /// 日 期:2023-03-06 12:18 /// 描 述:心里预约功能 /// public class PsychologyInfoEntity { #region 实体成员 /// /// Id /// /// [Column("ID")] public string Id { get; set; } /// /// 学生学号 /// /// [Column("STUNO")] public string StuNo { get; set; } /// /// 咨询内容 /// /// [Column("CONCENT")] public string Concent { get; set; } /// /// 附件 /// /// [Column("URL")] public string Url { get; set; } /// /// State /// /// [Column("STATE")] public int? State { get; set; } /// /// 提交日期 /// /// [Column("CREATETIME")] public DateTime? CreateTime { get; set; } #endregion #region 扩展操作 /// /// 新增调用 /// public void Create() { this.Id = Guid.NewGuid().ToString(); this.State = 0; this.CreateTime = DateTime.Now; } /// /// 编辑调用 /// /// public void Modify(string keyValue) { this.Id = keyValue; this.CreateTime = DateTime.Now; } #endregion [NotMapped] public string F_RealName { get; set; } [NotMapped] public string ReplyContent { get; set; } [NotMapped] public string Urls { get; set; } [NotMapped] public DateTime? ReplyTime { get; set; } [NotMapped] public string ReplyUser { get; set; } [NotMapped] public int? IsReply { get; set; } [NotMapped] public string Description { get; set; } } /// /// 心理咨询阅读表 /// public class PsychologyReadInfo { #region 实体成员 /// /// Id /// /// [Column("ID")] public string Id { get; set; } /// /// 心理预约表主键 /// /// [Column("PSYCHOLOGYINFOID")] public string PsychologyInfoId { get; set; } /// /// 状态 /// /// [Column("State")] public int? State { get; set; } /// /// 回复人/阅读人 /// /// [Column("ACCOUNT")] public string Account { get; set; } /// /// 是否需要回复 /// /// [Column("ISREPLY")] public int? IsReply { get; set; } /// /// 数据归档后是否已阅读 /// /// [Column("ISREAD")] public int? IsRead { get; set; } /// /// 描述 /// /// [Column("DESCRIPTION")] public string Description { get; set; } /// /// 创建日期 /// /// [Column("CREATETIME")] public DateTime? CreateTime { get; set; } /// /// 创建人 /// /// [Column("CREATEUSER")] public string CreateUser { get; set; } #endregion #region 扩展操作 /// /// 新增调用 /// public void Create() { this.Id = Guid.NewGuid().ToString(); this.CreateTime = DateTime.Now; this.CreateUser = LoginUserInfo.Get().account; this.IsReply = 0; this.IsRead = 0; } /// /// 编辑调用 /// /// public void Modify(string keyValue) { this.Id = keyValue; } #endregion } }