using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Text; using WMS.Web.Core; namespace WMS.Web.Domain.Entitys { /// /// 订阅通知信息 /// [Serializable] [Table("t_wms_subscribe_notification")] public class SubscribeNotification : EntityBase { public SubscribeNotification() { } /// /// 主键 /// [Column("Id")] public override int Id { get; set; } /// /// 客户名称 /// [Column("CustomerName")] public string CustomerName { get; set; } /// /// 客户编码 /// [Column("CustomerNumber")] public string CustomerNumber { get; set; } /// /// 电话 /// [Column("Telephones")] public List Telephones { get; set; } = new List(); /// /// 邮件 /// [Column("Emails")] public List Emails { get; set; } = new List(); /// /// 是否删除 /// [Column("IsDelete")] public bool IsDelete { get; set; } = false; /// /// 创建人 /// [Column("CreatorId")] public int CreatorId { get; set; } /// /// 操作人 /// [Column("OperateId")] public int OperateId { get; set; } /// /// 创建时间 /// [Column("CreateTime")] public DateTime CreateTime { get; set; } = DateTime.Now; /// /// 操作时间 /// [Column("OperateTime")] public DateTime OperateTime { get; set; } = DateTime.Now; /// /// 新增 /// /// public void Create(int creatorId) { this.CreatorId = creatorId; this.CreateTime = DateTime.Now; this.OperateTime = DateTime.Now; } /// /// 修改 /// /// public void Edit(int operateId) { this.OperateId = operateId; this.OperateTime = DateTime.Now; } /// /// 删除 /// /// public void Delete(int operateId) { this.IsDelete = true; this.OperateId = operateId; this.OperateTime = DateTime.Now; } } }