แก้บั้นทึกเครื่องราชย์ไป กพ7 ใหม่

This commit is contained in:
Suphonchai Phoonsawat 2024-07-01 21:44:11 +07:00
parent 6c42209217
commit 38be118e15
3 changed files with 43 additions and 47 deletions

View file

@ -162,18 +162,20 @@ namespace BMA.EHR.Insignia.Service.Controllers
{
await _userProfileRepository.PostProfileInsigniaAsync(new PostProfileInsigniaDto
{
ProfileId = Guid.Parse(p.FkProfileId),
Year = item.InsigniaDateannounce.Value.Year,
No = p.InsigniaNo,
Volume = item.InsigniaVolume,
Section = item.InsigniaSection,
Page = p.InsigniaPage,
ReceiveDate = item.InsigniaDatereceive.Value,
InsigniaId = p.Kp7InsigniaId,
DateAnnounce = item.InsigniaDateannounce.Value,
Issue = item.InsigniaIssue,
VolumeNo = item.InsigniaVolumeno.Value.ToString(),
profileId = Guid.Parse(p.FkProfileId),
year = item.InsigniaDateannounce.Value.Year,
no = p.InsigniaNo,
volume = item.InsigniaVolume,
section = item.InsigniaSection,
page = p.InsigniaPage,
receiveDate = item.InsigniaDatereceive.Value,
insigniaId = p.Kp7InsigniaId,
dateAnnounce = item.InsigniaDateannounce.Value,
issue = item.InsigniaIssue,
volumeNo = item.InsigniaVolumeno.Value.ToString(),
note = "",
refCommandDate = null,
refCommandNo = "",
}, AccessToken);
}

View file

@ -1906,20 +1906,20 @@ namespace BMA.EHR.Insignia.Service.Controllers
var profileInsignia = new PostProfileInsigniaDto
{
ProfileId = profile.ProfileId.Value,
Year = insigniaNote.Year,
No = profile.No,
VolumeNo = profile.VolumeNo,
Section = profile.Section,
Page = profile.Page,
ReceiveDate = profile.DateReceive.Value,
DateAnnounce = profile.Date.Value,
InsigniaId = profile.RequestInsignia.Id,
Issue = "",
Note = "",
RefCommandDate = DateTime.MinValue,
RefCommandNo = "",
Volume = "",
profileId = profile.ProfileId.Value,
year = insigniaNote.Year,
no = profile.No,
volumeNo = profile.VolumeNo,
section = profile.Section,
page = profile.Page,
receiveDate = profile.DateReceive.Value,
dateAnnounce = profile.Date.Value,
insigniaId = profile.RequestInsignia.Id,
issue = "",
note = "",
refCommandDate = null,
refCommandNo = "",
volume = "",
};
await _userProfileRepository.PostProfileInsigniaAsync(profileInsignia, AccessToken);