You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DSWMS/Vue.Net/VOL.Entity/DomainModels/System/Sys_Announcement.cs

175 lines
4.9 KiB
C#

2 years ago
/*
*,
*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
{
/// <summary>
///
/// </summary>
[Key]
[Display(Name = "Gid")]
[Column(TypeName = "uniqueidentifier")]
[Required(AllowEmptyStrings = false)]
public Guid Gid { get; set; }
/// <summary>
///标题
/// </summary>
[Display(Name = "标题")]
[MaxLength(150)]
[Editable(true)]
[Column(TypeName = "varchar(150)")]
[Required(AllowEmptyStrings = false)]
public string Title { get; set; }
/// <summary>
///摘要
/// </summary>
[Display(Name = "摘要")]
[MaxLength(200)]
[Column(TypeName = "varchar(200)")]
[Editable(true)]
public string Abstract { get; set; }
/// <summary>
///公告类型 1:通知公告2:系统消息
/// </summary>
[Display(Name = "公告类型 1:通知公告2:系统消息")]
[Column(TypeName = "int")]
[Editable(true)]
public int? AnnouncementType { get; set; } = 1;
/// <summary>
///接收类型 1:全体客户2:指定客户
/// </summary>
[Display(Name = "接收类型 1:全体客户2:指定客户")]
[Column(TypeName = "int")]
[Editable(true)]
public int? ReceiveType { get; set; } = 2;
/// <summary>
///指定客户公司
/// </summary>
[Display(Name = "指定客户公司")]
[MaxLength(200)]
[Column(TypeName = "varchar(200)")]
[Editable(true)]
public string CompanyTypes { get; set; }
/// <summary>
///内容
/// </summary>
[Display(Name = "内容")]
[Editable(true)]
public string Content { get; set; }
/// <summary>
///发送状态 0 未发布 1 已发布 2 已撤销
/// </summary>
[Display(Name = "发送状态 0 未发布 1 已发布 2 已撤销")]
[Column(TypeName = "int")]
[Editable(true)]
public int? SendStatus { get; set; } = 0;
/// <summary>
///截至日期
/// </summary>
[Display(Name = "截至日期")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime? EndTime { get; set; }
/// <summary>
///发布日期
/// </summary>
[Display(Name = "发布日期")]
[Column(TypeName = "datetime")]
[Editable(true)]
public DateTime? SendTime { get; set; }
/// <summary>
///撤销日期
/// </summary>
[Display(Name = "撤销日期")]
[Editable(true)]
[Column(TypeName = "datetime")]
public DateTime? CancelTime { get; set; }
/// <summary>
///状态 0 正常 1 删除
/// </summary>
[Display(Name = "状态 0 正常 1 删除")]
[Column(TypeName = "smallint")]
[Required(AllowEmptyStrings = false)]
[Editable(true)]
public int Status { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "CORPID")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
[Editable(true)]
public string CORPID { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "CreateDate")]
[Column(TypeName = "datetime")]
public DateTime? CreateDate { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "CreateID")]
[Column(TypeName = "uniqueidentifier")]
public Guid? CreateID { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "Creator")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
public string Creator { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "Modifier")]
[MaxLength(50)]
[Column(TypeName = "varchar(50)")]
public string Modifier { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "ModifyDate")]
[Column(TypeName = "datetime")]
public DateTime? ModifyDate { get; set; }
/// <summary>
///
/// </summary>
[Display(Name = "ModifyID")]
[Column(TypeName = "uniqueidentifier")]
public Guid? ModifyID { get; set; }
}
}