This commit is contained in:
parent
b1380d4a2f
commit
2f37334444
4 changed files with 37 additions and 5 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue