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.
87 lines
2.2 KiB
C#
87 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace djy.Paas.Model
|
|
{
|
|
/// <summary>
|
|
/// Email发送队列Dto
|
|
/// </summary>
|
|
public class MailSendDto
|
|
{
|
|
/// <summary>
|
|
///发送业务来源data数据唯一key键值 比如 Gid OrderNo Key
|
|
/// </summary>
|
|
public string DataKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// Email地址列表 多个,间隔
|
|
/// </summary>
|
|
public string Email { get; set; }
|
|
/// <summary>
|
|
/// 发送者Email
|
|
/// </summary>
|
|
public string SendEmail { get; set; }
|
|
/// <summary>
|
|
/// 附件文件列表
|
|
/// </summary>
|
|
|
|
public List<FileListDto> FileList=new List<FileListDto>();
|
|
|
|
/// <summary>
|
|
/// 判断FileList当中是否包括报关单和放行条
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool 文件包含报关单和放行条() {
|
|
if(FileList==null|| FileList.Count<2) return false;
|
|
|
|
if (FileList.Exists(x => x.Name.Contains("报关单")) && FileList.Exists(x => x.Name.Contains("放行条"))) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 发送邮件内容正文
|
|
/// </summary>
|
|
|
|
public string MailBody { get; set; }
|
|
/// <summary>
|
|
/// 标题 主题
|
|
/// </summary>
|
|
public string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态标识
|
|
/// </summary>
|
|
public int Status { get; set; } = 1;
|
|
|
|
/// <summary>
|
|
/// 公司Gid
|
|
/// </summary>
|
|
public string CompGid { get; set; }
|
|
|
|
/// <summary>
|
|
/// Type
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发件人配置信息Email
|
|
/// </summary>
|
|
public Ys.Core.Common.Email.SendServerConfigurationEntity SendMailConfig { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 此时间之后发出
|
|
/// </summary>
|
|
public DateTime SendTime { get; set; }
|
|
|
|
public tb_BaoGuanOrderList border { get; set; }
|
|
}
|
|
|
|
|
|
}
|