แก้บั้นทึกเครื่องราชย์ไป กพ7 ใหม่
This commit is contained in:
parent
6c42209217
commit
38be118e15
3 changed files with 43 additions and 47 deletions
|
|
@ -1,39 +1,33 @@
|
||||||
using System;
|
namespace BMA.EHR.Application.Responses.Insignias
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace BMA.EHR.Application.Responses.Insignias
|
|
||||||
{
|
{
|
||||||
public class PostProfileInsigniaDto
|
public class PostProfileInsigniaDto
|
||||||
{
|
{
|
||||||
public Guid ProfileId { get; set; }
|
public Guid profileId { get; set; }
|
||||||
|
|
||||||
public int Year { get; set; } = 0;
|
public int year { get; set; } = 0;
|
||||||
|
|
||||||
public string No { get; set; } = string.Empty;
|
public string no { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Volume { get; set; } = string.Empty;
|
public string volume { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Section { get; set; } = string.Empty;
|
public string section { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Page { get; set; } = string.Empty;
|
public string page { get; set; } = string.Empty;
|
||||||
|
|
||||||
public DateTime ReceiveDate { get; set; } = DateTime.MinValue;
|
public DateTime receiveDate { get; set; } = DateTime.MinValue;
|
||||||
|
|
||||||
public Guid InsigniaId { get; set; }
|
public Guid insigniaId { get; set; }
|
||||||
|
|
||||||
public DateTime DateAnnounce { get; set; } = DateTime.MinValue;
|
public DateTime dateAnnounce { get; set; } = DateTime.MinValue;
|
||||||
|
|
||||||
public string Issue { get; set; } = string.Empty;
|
public string issue { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string VolumeNo { get; set; } = string.Empty;
|
public string volumeNo { get; set; } = string.Empty;
|
||||||
|
|
||||||
public DateTime? RefCommandDate { get; set; }
|
public DateTime? refCommandDate { get; set; }
|
||||||
|
|
||||||
public string RefCommandNo { get; set; } = string.Empty;
|
public string refCommandNo { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string Note { get; set; } = string.Empty;
|
public string note { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -162,18 +162,20 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
{
|
{
|
||||||
await _userProfileRepository.PostProfileInsigniaAsync(new PostProfileInsigniaDto
|
await _userProfileRepository.PostProfileInsigniaAsync(new PostProfileInsigniaDto
|
||||||
{
|
{
|
||||||
ProfileId = Guid.Parse(p.FkProfileId),
|
profileId = Guid.Parse(p.FkProfileId),
|
||||||
Year = item.InsigniaDateannounce.Value.Year,
|
year = item.InsigniaDateannounce.Value.Year,
|
||||||
No = p.InsigniaNo,
|
no = p.InsigniaNo,
|
||||||
Volume = item.InsigniaVolume,
|
volume = item.InsigniaVolume,
|
||||||
Section = item.InsigniaSection,
|
section = item.InsigniaSection,
|
||||||
Page = p.InsigniaPage,
|
page = p.InsigniaPage,
|
||||||
ReceiveDate = item.InsigniaDatereceive.Value,
|
receiveDate = item.InsigniaDatereceive.Value,
|
||||||
InsigniaId = p.Kp7InsigniaId,
|
insigniaId = p.Kp7InsigniaId,
|
||||||
DateAnnounce = item.InsigniaDateannounce.Value,
|
dateAnnounce = item.InsigniaDateannounce.Value,
|
||||||
Issue = item.InsigniaIssue,
|
issue = item.InsigniaIssue,
|
||||||
VolumeNo = item.InsigniaVolumeno.Value.ToString(),
|
volumeNo = item.InsigniaVolumeno.Value.ToString(),
|
||||||
|
note = "",
|
||||||
|
refCommandDate = null,
|
||||||
|
refCommandNo = "",
|
||||||
|
|
||||||
}, AccessToken);
|
}, AccessToken);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1906,20 +1906,20 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
|
|
||||||
var profileInsignia = new PostProfileInsigniaDto
|
var profileInsignia = new PostProfileInsigniaDto
|
||||||
{
|
{
|
||||||
ProfileId = profile.ProfileId.Value,
|
profileId = profile.ProfileId.Value,
|
||||||
Year = insigniaNote.Year,
|
year = insigniaNote.Year,
|
||||||
No = profile.No,
|
no = profile.No,
|
||||||
VolumeNo = profile.VolumeNo,
|
volumeNo = profile.VolumeNo,
|
||||||
Section = profile.Section,
|
section = profile.Section,
|
||||||
Page = profile.Page,
|
page = profile.Page,
|
||||||
ReceiveDate = profile.DateReceive.Value,
|
receiveDate = profile.DateReceive.Value,
|
||||||
DateAnnounce = profile.Date.Value,
|
dateAnnounce = profile.Date.Value,
|
||||||
InsigniaId = profile.RequestInsignia.Id,
|
insigniaId = profile.RequestInsignia.Id,
|
||||||
Issue = "",
|
issue = "",
|
||||||
Note = "",
|
note = "",
|
||||||
RefCommandDate = DateTime.MinValue,
|
refCommandDate = null,
|
||||||
RefCommandNo = "",
|
refCommandNo = "",
|
||||||
Volume = "",
|
volume = "",
|
||||||
|
|
||||||
};
|
};
|
||||||
await _userProfileRepository.PostProfileInsigniaAsync(profileInsignia, AccessToken);
|
await _userProfileRepository.PostProfileInsigniaAsync(profileInsignia, AccessToken);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue