-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #920 from bcgov/dev
Dev
- Loading branch information
Showing
22 changed files
with
305 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ | |
minlength="@Model.MinLength" | ||
maxlength="@Model.MaxLength" | ||
disabled="@Model.IsDisabled" | ||
id="answer-text[email protected]" | ||
id="answer-textarea[email protected]" | ||
name="[email protected]" | ||
data-original-value="@Model.Answer" | ||
oninput="handleInputChange('@Model.QuestionId','answer-text-')">@Model.Answer</textarea> | ||
oninput="handleInputChange('@Model.QuestionId','answer-textarea-')">@Model.Answer</textarea> | ||
<span id="[email protected]" class="text-danger field-validation-error"></span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...ity.Notifications/src/Unity.Notifications.Application.Contracts/Emails/EmailHistoryDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Unity.Notifications.Emails; | ||
|
||
[Serializable] | ||
public class EmailHistoryDto : ExtensibleAuditedEntityDto<Guid> | ||
{ | ||
public string Subject { get; set; } = string.Empty; | ||
public DateTime? SentDateTime { get; set; } | ||
public string Body { get; set; } = string.Empty; | ||
public EmailHistoryUserDto? SentBy { get; set; } | ||
} | ||
|
||
public class EmailHistoryUserDto : EntityDto<Guid> | ||
{ | ||
public string UserName { get; set; } = string.Empty; | ||
public string Name { get; set; } = string.Empty; | ||
public string Surname { get; set; } = string.Empty; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ations/src/Unity.Notifications.Application/EmailNotificaions/IEmailNotificationService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
using RestSharp; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Unity.Notifications.Emails; | ||
using Volo.Abp.Application.Services; | ||
|
||
namespace Unity.Notifications.EmailNotifications | ||
{ | ||
public interface IEmailNotificationService: IApplicationService | ||
public interface IEmailNotificationService : IApplicationService | ||
{ | ||
Task<EmailLog?> InitializeEmailLog(string emailTo, string body, string subject, Guid applicationId, string? emailFrom); | ||
Task<EmailLog?> GetEmailLogById(Guid id); | ||
Task<RestResponse> SendEmailNotification(string emailTo, string body, string subject, string? emailFrom); | ||
Task SendEmailToQueue(EmailLog emailLog); | ||
string GetApprovalBody(); | ||
string GetDeclineBody(); | ||
Task<List<EmailHistoryDto>> GetHistoryByApplicationId(Guid applicationId); | ||
} | ||
} |
8 changes: 5 additions & 3 deletions
8
...ications/src/Unity.Notifications.Application/NotificationsApplicationAutoMapperProfile.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
using AutoMapper; | ||
using Unity.Notifications.Emails; | ||
using Volo.Abp.Users; | ||
|
||
namespace Unity.Notifications; | ||
|
||
public class NotificationsApplicationAutoMapperProfile : Profile | ||
{ | ||
public NotificationsApplicationAutoMapperProfile() | ||
{ | ||
/* You can configure your AutoMapper mapping configuration here. | ||
* Alternatively, you can split your mapping configurations | ||
* into multiple profile classes for a better organization. */ | ||
CreateMap<EmailLog, EmailHistoryDto>() | ||
.ForMember(x => x.SentBy, map => map.Ignore()); | ||
CreateMap<IUserData, EmailHistoryUserDto>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.