using Lottomat.Application.Code; using System; using Lottomat.Util; using Lottomat.Utils.Date; namespace Lottomat.Application.Entity.PublicInfoManage { /// /// 版 本 1.0 /// Copyright (c) 2016-2017 /// 创建人:赵轶 /// 日 期:2015.12.7 16:40 /// 描 述:新闻中心 /// public class NewsEntity : BaseEntity { #region 实体成员 /// /// PK /// /// public int PK { get; set; } /// /// 新闻主键 /// /// public string NewsId { get; set; } /// /// 类型(1-新闻2-公告) /// /// public int? TypeId { get; set; } /// /// 父级主键 /// /// public string ParentId { get; set; } /// /// 所属类别 /// /// public string Category { get; set; } /// /// 所属类别Id /// /// public string CategoryId { get; set; } /// /// 完整标题 /// /// public string FullHead { get; set; } /// /// 标题颜色 /// /// public string FullHeadColor { get; set; } /// /// 简略标题 /// /// public string BriefHead { get; set; } /// /// 作者 /// /// public string AuthorName { get; set; } /// /// 编辑 /// /// public string CompileName { get; set; } /// /// Tag词 /// /// public string TagWord { get; set; } /// /// 关键字 /// /// public string Keyword { get; set; } /// /// 来源 /// /// public string SourceName { get; set; } /// /// 来源地址 /// /// public string SourceAddress { get; set; } /// /// 新闻内容 /// /// public string NewsContent { get; set; } /// /// 浏览量 /// /// public int? PV { get; set; } /// /// 发布时间 /// /// public DateTime? ReleaseTime { get; set; } /// /// 排序码 /// /// public int? SortCode { get; set; } /// /// 删除标记 /// /// public int? DeleteMark { get; set; } /// /// 有效标志 /// /// public int? EnabledMark { get; set; } /// /// 备注 /// /// public string Description { get; set; } /// /// 创建日期 /// /// public DateTime? CreateDate { get; set; } /// /// 创建用户主键 /// /// public string CreateUserId { get; set; } /// /// 创建用户 /// /// public string CreateUserName { get; set; } /// /// 修改日期 /// /// public DateTime? ModifyDate { get; set; } /// /// 修改用户主键 /// /// public string ModifyUserId { get; set; } /// /// 修改用户 /// /// public string ModifyUserName { get; set; } /// /// 是否热门 /// /// public bool? IsHot { get; set; } /// /// 是否置顶 /// /// public bool? IsStick { get; set; } /// /// 是否推荐 /// /// public bool? IsRecommend { get; set; } /// /// 三要素-Title /// /// public string TitleElement { get; set; } /// /// 三要素-Description /// /// public string DescriptionElement { get; set; } /// /// 三要素-Keyword /// /// public string KeywordElement { get; set; } /// /// 静态文件地址 /// /// public string StaticFileSourceUrl { get; set; } /// /// 是否生成了静态文件 /// /// public bool? IsGenerated { get; set; } /// /// 是否删除 /// /// public bool? IsDelete { get; set; } /// /// 标签ID /// /// public string LabelId { get; set; } /// /// 期数 /// /// public string PeriodsNumber { get; set; } #endregion #region 扩展操作 /// /// 新增调用 /// public override void Create() { this.NewsId = CommonHelper.GetGuid().ToString(); this.CreateDate = DateTimeHelper.Now; this.ReleaseTime = DateTimeHelper.Now; this.CreateUserId = OperatorProvider.Provider.Current().UserId; this.CreateUserName = OperatorProvider.Provider.Current().UserName; this.DeleteMark = (int)DeleteMarkEnum.NotDelete; this.EnabledMark = (int)EnabledMarkEnum.Enabled; this.IsDelete = false; this.SortCode = 99; this.IsGenerated = false; this.PV = 0; } /// /// 编辑调用 /// /// public override void Modify(string keyValue) { this.NewsId = keyValue; this.ModifyDate = DateTimeHelper.Now; this.ModifyUserId = OperatorProvider.Provider.Current().UserId; this.ModifyUserName = OperatorProvider.Provider.Current().UserName; } #endregion } }