84 lines
2.3 KiB
C#
84 lines
2.3 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace CRM.Core.Model.Entity
|
|
{
|
|
public class CMS_News
|
|
{
|
|
public CMS_News()
|
|
{
|
|
}
|
|
public CMS_News(string newsType, string title, string content, int createuser, string createusername, string att, string remark, decimal? channel)
|
|
{
|
|
NewsType = newsType;
|
|
Title = title;
|
|
Content = content;
|
|
Status = 0;
|
|
CreateUser = createuser;
|
|
CreateUserName = createusername;
|
|
CTime = DateTime.Now;
|
|
Att = att;
|
|
Remark = remark;
|
|
Channel = channel;
|
|
}
|
|
|
|
|
|
[Key]
|
|
[Column(Order = 0)]
|
|
public int Id { get; set; }
|
|
public string NewsType { get; set; }
|
|
public string Title { get; set; }
|
|
public string Content { get; set; }
|
|
public int Status { get; set; }
|
|
public int CreateUser { get; set; }
|
|
public string CreateUserName { get; set; }
|
|
public DateTime CTime { get; set; }
|
|
public string Att { get; set; }
|
|
public string Remark { get; set; }
|
|
public DateTime? StatusTime { get; set; }
|
|
public int? Auditer { get; set; }
|
|
public string AuditerName { get; set; }
|
|
public string AuditRemark { get; set; }
|
|
|
|
public string deptcode { get; set; }
|
|
|
|
public string AuditImg1 { get; set; }
|
|
public string AuditImg2 { get; set; }
|
|
public string AuditImg3 { get; set; }
|
|
public string AuditImg4 { get; set; }
|
|
public string AuditImg5 { get; set; }
|
|
public string AuditImg6 { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 1)]
|
|
public string Companycode { get; set; }
|
|
|
|
public decimal? Channel { get; set; }
|
|
|
|
[NotMapped]
|
|
public string SelectReason { get; set; }
|
|
|
|
public int? Reason { get; set; }
|
|
|
|
[NotMapped]
|
|
public string ReasonStr { get; set; }
|
|
|
|
public string UploadName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 作者
|
|
/// </summary>
|
|
public string Author { get; set; }
|
|
/// <summary>
|
|
/// 渠道
|
|
/// </summary>
|
|
public string Channels { get; set; }
|
|
|
|
/// <summary>
|
|
/// 附件
|
|
/// </summary>
|
|
public string Attachment { get; set; }
|
|
}
|
|
}
|