Uat_Study
parent
8653ef23af
commit
8590a5012c
|
@ -21,7 +21,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
public DateTime CreateUserId { get; set; }
|
||||
public Guid CreateUserId { get; set; }
|
||||
}
|
||||
|
||||
///<summary>TrialEmailNoticeConfigQuery 列表查询参数模型</summary>
|
||||
|
|
|
@ -101,43 +101,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
|
||||
//邮件内容html
|
||||
var pathToFile = _hostEnvironment.WebRootPath
|
||||
+ Path.DirectorySeparatorChar.ToString()
|
||||
+ "EmailTemplate"
|
||||
+ Path.DirectorySeparatorChar.ToString()
|
||||
+ "SubjectEnrollConfirmOrPDProgress.html";
|
||||
|
||||
|
||||
if (businessScenarioEnum == CommonDocumentBusinessScenario.EnrollConfirmed)
|
||||
{
|
||||
|
||||
sendEmailConfig.TopicDescription = "入组确认测试";
|
||||
|
||||
using (StreamReader SourceReader = System.IO.File.OpenText(pathToFile))
|
||||
{
|
||||
var templateInfo = SourceReader.ReadToEnd();
|
||||
|
||||
|
||||
sendEmailConfig.HtmlBodyStr = string.Format(templateInfo,
|
||||
$" 附件为入组确认报告,请查收 "
|
||||
);
|
||||
}
|
||||
}
|
||||
else if (businessScenarioEnum == CommonDocumentBusinessScenario.PDConfirmed)
|
||||
{
|
||||
|
||||
sendEmailConfig.TopicDescription = "疾病进展测试";
|
||||
|
||||
using (StreamReader SourceReader = System.IO.File.OpenText(pathToFile))
|
||||
{
|
||||
var templateInfo = SourceReader.ReadToEnd();
|
||||
|
||||
|
||||
sendEmailConfig.HtmlBodyStr = string.Format(templateInfo,
|
||||
$" 附件为疾病进展确认报告,请查收 "
|
||||
);
|
||||
}
|
||||
}
|
||||
await FillWordTemplateAndSetEmailAsync(sendEmailConfig, businessScenarioEnum, criterionTypeEnum!);
|
||||
|
||||
//邮件附件
|
||||
var path = FileStoreHelper.GetPhysicalFilePath(_hostEnvironment, emailConfig.FilePath);
|
||||
|
@ -162,6 +126,48 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
|
||||
|
||||
private async Task FillWordTemplateAndSetEmailAsync(SMTPEmailConfig sendEmailConfig, CommonDocumentBusinessScenario businessScenarioEnum, CriterionType criterionType)
|
||||
{
|
||||
var pathToFile = _hostEnvironment.WebRootPath
|
||||
+ Path.DirectorySeparatorChar.ToString()
|
||||
+ "EmailTemplate"
|
||||
+ Path.DirectorySeparatorChar.ToString()
|
||||
+ "SubjectEnrollConfirmOrPDProgress.html";
|
||||
|
||||
|
||||
if (businessScenarioEnum == CommonDocumentBusinessScenario.EnrollConfirmed)
|
||||
{
|
||||
|
||||
sendEmailConfig.TopicDescription = "入组确认";
|
||||
|
||||
using (StreamReader SourceReader = System.IO.File.OpenText(pathToFile))
|
||||
{
|
||||
var templateInfo = SourceReader.ReadToEnd();
|
||||
|
||||
|
||||
sendEmailConfig.HtmlBodyStr = string.Format(templateInfo,
|
||||
$" 附件为入组确认报告,请查收 "
|
||||
);
|
||||
}
|
||||
}
|
||||
else if (businessScenarioEnum == CommonDocumentBusinessScenario.PDConfirmed)
|
||||
{
|
||||
|
||||
sendEmailConfig.TopicDescription = "疾病进展";
|
||||
|
||||
using (StreamReader SourceReader = System.IO.File.OpenText(pathToFile))
|
||||
{
|
||||
var templateInfo = SourceReader.ReadToEnd();
|
||||
|
||||
|
||||
sendEmailConfig.HtmlBodyStr = string.Format(templateInfo,
|
||||
$" 附件为疾病进展确认报告,请查收 "
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[HttpPost]
|
||||
public async Task<List<TrialEmailNoticeConfigView>> GetTrialEmailNoticeConfigList(TrialEmailNoticeConfigQuery inQuery)
|
||||
{
|
||||
|
|
|
@ -78,10 +78,10 @@ namespace IRaCIS.Core.Domain.Share
|
|||
/// </summary>
|
||||
public enum CriterionType
|
||||
{
|
||||
NoCriterion=-1,
|
||||
NoCriterion = -1,
|
||||
|
||||
|
||||
None = 0,
|
||||
//自定义
|
||||
SelfDefine = 0,
|
||||
|
||||
/// <summary>
|
||||
/// RECIST 1.1
|
||||
|
|
|
@ -113,7 +113,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// <summary>
|
||||
/// 标准类型
|
||||
/// </summary>
|
||||
public CriterionType? CriterionType { get; set; }
|
||||
public CriterionType CriterionType { get; set; }
|
||||
|
||||
#region 阅片单元配置 新加
|
||||
|
||||
|
|
Loading…
Reference in New Issue