edit insignia emp
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
moss 2025-05-27 11:18:06 +07:00
parent b1380d4a2f
commit 2f37334444
4 changed files with 37 additions and 5 deletions

View file

@ -1051,7 +1051,7 @@ namespace BMA.EHR.Application.Repositories
}
public async Task PostProfileEmpInsigniaAsync(PostProfileInsigniaDto body, string? accessToken)
public async Task PostProfileEmpInsigniaAsync(PostProfileEmpInsigniaDto body, string? accessToken)
{
try
{

View file

@ -0,0 +1,33 @@
namespace BMA.EHR.Application.Responses.Insignias
{
public class PostProfileEmpInsigniaDto
{
public Guid profileEmployeeId { get; set; }
public int year { get; set; } = 0;
public string no { get; set; } = string.Empty;
public string volume { get; set; } = string.Empty;
public string section { get; set; } = string.Empty;
public string page { get; set; } = string.Empty;
public DateTime receiveDate { get; set; } = DateTime.MinValue;
public Guid insigniaId { get; set; }
public DateTime dateAnnounce { get; set; } = DateTime.MinValue;
public string issue { get; set; } = string.Empty;
public string volumeNo { get; set; } = string.Empty;
public DateTime? refCommandDate { get; set; }
public string refCommandNo { get; set; } = string.Empty;
public string note { get; set; } = string.Empty;
}
}

View file

@ -2,8 +2,7 @@
{
public class PostProfileInsigniaDto
{
public Guid? profileId { get; set; }
public Guid? profileEmployeeId { get; set; }
public Guid profileId { get; set; }
public int year { get; set; } = 0;

View file

@ -1822,7 +1822,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
}
else
{
var profileInsigniaBody = new PostProfileInsigniaDto
var profileInsigniaBody = new PostProfileEmpInsigniaDto
{
profileEmployeeId = profile.Id,
year = insigniaNote.Year,
@ -1889,7 +1889,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
}
else
{
var profileInsigniaBody = new PostProfileInsigniaDto
var profileInsigniaBody = new PostProfileEmpInsigniaDto
{
profileEmployeeId = profileInsignia.ProfileId.Value,
year = insigniaNote.Year,