//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-02-15 11:55:43
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using IRaCIS.Core.Domain.Share;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace IRaCIS.Core.Domain.Models
{
///
///EmailNoticeConfig
///
[Table("EmailNoticeConfig")]
public class EmailNoticeConfig : BaseFullDeleteAuditEntity
{
#region 导航属性
[JsonIgnore]
public List TrialEmailNoticeConfigList { get; set; }
[JsonIgnore]
public List EmailNoticeUserTypeList { get; set; } = new List();
#endregion
public string Code { get; set; } = String.Empty;
public EmailBusinessScenario BusinessScenarioEnum { get; set; }
/// 标准类型 ///
public CriterionType? CriterionTypeEnum { get; set; }
/// 业务模块 ///
public int BusinessModuleEnum { get; set; }
/// 业务层级 ///
public int BusinessLevelEnum { get; set; }
/// 邮件类型 ///
public int EmailTypeEnum { get; set; }
/// 邮件加急类型 ///
public int EmailUrgentEnum { get; set; }
/// 定时周期 ///
public string EmailCron { get; set; } = string.Empty;
/// 邮件主题 ///
public string EmailTopic { get; set; } = string.Empty;
public string EmailTopicCN { get; set; } = string.Empty;
/// 附件 ///
public string AttachPath { get; set; } = string.Empty;
public string AttachCNPath { get; set; } = string.Empty;
public string EmailHtmlContent { get; set; } = string.Empty;
public string EmailHtmlContentCN { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string AttachName { get; set; } = string.Empty;
public string AttachNameCN { get; set; } = string.Empty;
public SysEmailLevel SystemLevel { get; set; }
///
/// 是否区分标准
///
public bool IsDistinguishCriteria { get; set; }
/// 是否需要回执
public bool IsReturnRequired { get; set; }
public bool IsAutoSend { get; set; }
public bool IsEnable { get; set; }
}
[Table("EmailNoticeUserType")]
public class EmailNoticeUserType : Entity
{
[JsonIgnore]
public EmailNoticeConfig EmailNoticeConfig { get; set; }
public Guid EmailNoticeConfigId { get; set; }
public UserTypeEnum UserType { get; set; }
public EmailUserType EmailUserType { get; set; }
}
public enum SysEmailLevel
{
not_sys=0,
//系统 不配置角色
sys_not_role=1,
//系统需要配置角色的
sys_Config_role=2
}
}