/*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果数据库字段发生变化,请在代码生器重新生成此Model
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;
namespace VOL.Entity.DomainModels
{
[Entity(TableCnName = "系统公告", TableName = "Sys_Announcement")]
public class Sys_Announcement : BaseEntity
{
///
///
///
[Key]
[Display(Name = "Gid")]
[Column(TypeName = "uniqueidentifier")]
[Required(AllowEmptyStrings = false)]
public Guid Gid { get; set; }
///
///标题
///
[Display(Name = "标题")]
[MaxLength(150)]
[Editable(true)]
[Column(TypeName = "varchar(150)")]
[Required(AllowEmptyStrings = false)]
public string Title { get; set; }
///
///摘要
///
[Display(Name = "摘要")]
[MaxLength(200)]
[Column(TypeName = "varchar(200)")]
[Editable(true)]
public string Abstract { get; set; }
///
///公告类型 1:通知公告2:系统消息
///
[Display(Name = "公告类型 1:通知公告2:系统消息")]
[Column(TypeName = "int")]
[Editable(true)]
public int? AnnouncementType { get; set; } = 1;
///
///接收类型 1:全体客户2:指定客户
///
[Display(Name = "接收类型 1:全体客户2:指定客户")]
[Column(TypeName = "int")]
[Editable(true)]
public int? ReceiveType { get; set; } = 2;
///
///指定客户公司
///
[Display(Name = "指定客户公司")]
[MaxLength(200)]
[Column(TypeName = "varchar(200)")]
[Editable(true)]
public string CompanyTypes { get; set; }
///
///内容
///
[Display(Name = "内容")]
[Editable(true)]
public string Content { get; set; }
///
///发送状态 0 未发布 1 已发布 2 已撤销
///
[Display(Name = "发送状态 0 未发布 1 已发布 2 已撤销")]
[Column(TypeName = "int")]
[Editable(true)]
public int? SendStatus { get; set; } = 0;
///
///截至日期
///
[Display(Name = "截至日期")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime? EndTime { get; set; }
///
///发布日期
///
[Display(Name = "发布日期")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime? SendTime { get; set; }
///
///撤销日期
///
[Display(Name = "撤销日期")]
[Editable(true)]
[Column(TypeName = "datetime")]
public DateTime? CancelTime { get; set; }
///
///状态 0 正常 1 删除
///
[Display(Name = "状态 0 正常 1 删除")]
[Column(TypeName = "smallint")]
[Required(AllowEmptyStrings = false)]
[Editable(true)]
public int Status { get; set; }
///
///
///
[Display(Name = "CORPID")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Editable(true)]
public string CORPID { get; set; }
///
///
///
[Display(Name = "CreateDate")]
[Column(TypeName = "datetime")]
public DateTime? CreateDate { get; set; }
///
///
///
[Display(Name = "CreateID")]
[Column(TypeName = "uniqueidentifier")]
public Guid? CreateID { get; set; }
///
///
///
[Display(Name = "Creator")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
public string Creator { get; set; }
///
///
///
[Display(Name = "Modifier")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
public string Modifier { get; set; }
///
///
///
[Display(Name = "ModifyDate")]
[Column(TypeName = "datetime")]
public DateTime? ModifyDate { get; set; }
///
///
///
[Display(Name = "ModifyID")]
[Column(TypeName = "uniqueidentifier")]
public Guid? ModifyID { get; set; }
}
}