fix preview invoice insignia
This commit is contained in:
parent
320fb3386e
commit
f1ad524b89
1 changed files with 3 additions and 54 deletions
|
|
@ -1868,37 +1868,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
// continue;
|
// continue;
|
||||||
if (profile.Status != "DONE")
|
if (profile.Status != "DONE")
|
||||||
{
|
{
|
||||||
// public class PostProfileInsigniaDto
|
|
||||||
//{
|
|
||||||
// public Guid ProfileId { 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;
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
profile.Status = "DONE";
|
profile.Status = "DONE";
|
||||||
|
|
@ -1924,29 +1894,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
};
|
};
|
||||||
await _userProfileRepository.PostProfileInsigniaAsync(profileInsignia, AccessToken);
|
await _userProfileRepository.PostProfileInsigniaAsync(profileInsignia, AccessToken);
|
||||||
|
|
||||||
//await _context.ProfileInsignias.AddAsync(new ProfileInsignia
|
|
||||||
//{
|
|
||||||
// Year = insigniaNote.Year,
|
|
||||||
// No = profile.No,
|
|
||||||
// Issue = profile.VolumeNo,
|
|
||||||
// VolumeNo = profile.VolumeNo,
|
|
||||||
// // Volume = profile.Volume,
|
|
||||||
// Section = profile.Section,
|
|
||||||
// Page = profile.Page,
|
|
||||||
// DateAnnounce = profile.Date,
|
|
||||||
// ReceiveDate = profile.DateReceive,
|
|
||||||
// InsigniaType = profile.RequestInsignia.InsigniaType == null ? null : profile.RequestInsignia.InsigniaType.Name,
|
|
||||||
// Insignia = profile.RequestInsignia,
|
|
||||||
// // RefCommandNo = req.RefCommandNo,
|
|
||||||
// // RefCommandDate = req.RefCommandDate,
|
|
||||||
// ProfileId = profile.ProfileId.Value,
|
|
||||||
// CreatedFullName = FullName ?? "System Administrator",
|
|
||||||
// CreatedUserId = UserId ?? "",
|
|
||||||
// CreatedAt = DateTime.Now,
|
|
||||||
// LastUpdateFullName = FullName ?? "System Administrator",
|
|
||||||
// LastUpdateUserId = UserId ?? "",
|
|
||||||
// LastUpdatedAt = DateTime.Now,
|
|
||||||
//});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
|
|
@ -2182,6 +2130,7 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
||||||
var _insigniaNoteProfiles = new List<dynamic>();
|
var _insigniaNoteProfiles = new List<dynamic>();
|
||||||
foreach (var item in items)
|
foreach (var item in items)
|
||||||
{
|
{
|
||||||
|
if (item.CitizanId == null) continue;
|
||||||
var pf = _userProfileRepository.GetOfficerProfileByCitizenId(item.CitizanId, AccessToken);
|
var pf = _userProfileRepository.GetOfficerProfileByCitizenId(item.CitizanId, AccessToken);
|
||||||
var profile = insigniaNote.InsigniaNoteProfiles.FirstOrDefault(x => x.ProfileId == pf.Id);
|
var profile = insigniaNote.InsigniaNoteProfiles.FirstOrDefault(x => x.ProfileId == pf.Id);
|
||||||
if (profile == null)
|
if (profile == null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue