This commit is contained in:
parent
564a23988d
commit
910dc53808
2 changed files with 20 additions and 15 deletions
|
|
@ -341,7 +341,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
|
|
||||||
data.CreatedAt,
|
data.CreatedAt,
|
||||||
data.Reason,
|
data.Reason,
|
||||||
educationOld = data.EducationOld == "/" || data.EducationOld == null ? null : data.EducationOld,
|
data.EducationOld,
|
||||||
data.salary,
|
data.salary,
|
||||||
data.PositionTypeOld,
|
data.PositionTypeOld,
|
||||||
data.PositionLevelOld,
|
data.PositionLevelOld,
|
||||||
|
|
@ -844,7 +844,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
result.Add(r);
|
result.Add(r);
|
||||||
string? _null = null;
|
string? _null = null;
|
||||||
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "") {
|
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "")
|
||||||
|
{
|
||||||
result.Add(new
|
result.Add(new
|
||||||
{
|
{
|
||||||
No = _null,
|
No = _null,
|
||||||
|
|
@ -1056,7 +1057,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
result.Add(r);
|
result.Add(r);
|
||||||
string? _null = null;
|
string? _null = null;
|
||||||
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "") {
|
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "")
|
||||||
|
{
|
||||||
result.Add(new
|
result.Add(new
|
||||||
{
|
{
|
||||||
No = _null,
|
No = _null,
|
||||||
|
|
@ -1265,7 +1267,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
result.Add(r);
|
result.Add(r);
|
||||||
string? _null = null;
|
string? _null = null;
|
||||||
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "") {
|
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "")
|
||||||
|
{
|
||||||
result.Add(new
|
result.Add(new
|
||||||
{
|
{
|
||||||
No = _null,
|
No = _null,
|
||||||
|
|
@ -1470,7 +1473,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
result.Add(r);
|
result.Add(r);
|
||||||
string? _null = null;
|
string? _null = null;
|
||||||
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "") {
|
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "")
|
||||||
|
{
|
||||||
result.Add(new
|
result.Add(new
|
||||||
{
|
{
|
||||||
No = _null,
|
No = _null,
|
||||||
|
|
@ -1618,13 +1622,13 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var report_data = (from p in _context.PlacementAppointments
|
var report_data = (from p in _context.PlacementAppointments
|
||||||
//.Include(x => x.PlacementEducation)
|
//.Include(x => x.PlacementEducation)
|
||||||
// .ThenInclude(x => x.PlacementType)
|
// .ThenInclude(x => x.PlacementType)
|
||||||
.Where(x => req.refIds.Select(x => x.refId).Contains(x.Id.ToString()))
|
.Where(x => req.refIds.Select(x => x.refId).Contains(x.Id.ToString()))
|
||||||
// .Where(x => x.Placement!.PlacementType!.Name == "เลื่อนข้าราชการ")
|
// .Where(x => x.Placement!.PlacementType!.Name == "เลื่อนข้าราชการ")
|
||||||
// .Where(x => x.typeCommand.Trim().ToUpper() == "SLIP")
|
// .Where(x => x.typeCommand.Trim().ToUpper() == "SLIP")
|
||||||
.ToList()
|
.ToList()
|
||||||
join r in req.refIds
|
join r in req.refIds
|
||||||
on p.Id.ToString() equals r.refId
|
on p.Id.ToString() equals r.refId
|
||||||
orderby r.Sequence
|
orderby r.Sequence
|
||||||
|
|
@ -1686,7 +1690,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
{
|
{
|
||||||
result.Add(r);
|
result.Add(r);
|
||||||
string? _null = null;
|
string? _null = null;
|
||||||
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "") {
|
if (r.RemarkHorizontal != null && r.RemarkHorizontal != "")
|
||||||
|
{
|
||||||
result.Add(new
|
result.Add(new
|
||||||
{
|
{
|
||||||
No = _null,
|
No = _null,
|
||||||
|
|
|
||||||
|
|
@ -335,7 +335,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
|
|
||||||
data.CreatedAt,
|
data.CreatedAt,
|
||||||
data.Reason,
|
data.Reason,
|
||||||
educationOld = data.EducationOld == "/" || data.EducationOld == null ? null : data.EducationOld,
|
data.EducationOld,
|
||||||
data.AmountOld,
|
data.AmountOld,
|
||||||
data.PositionOld,
|
data.PositionOld,
|
||||||
organizationOld = data.OrganizationOld == "/" || data.OrganizationOld == null ? null : data.OrganizationOld,
|
organizationOld = data.OrganizationOld == "/" || data.OrganizationOld == null ? null : data.OrganizationOld,
|
||||||
|
|
@ -488,7 +488,7 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
placementReceive.posLevelOldId = org.result.posLevelId;
|
placementReceive.posLevelOldId = org.result.posLevelId;
|
||||||
placementReceive.posLevelNameOld = org.result.posLevelName;
|
placementReceive.posLevelNameOld = org.result.posLevelName;
|
||||||
|
|
||||||
// placementReceive.EducationOld = profile.Educations.Count() == 0 ? null : $"{profile.Educations.OrderByDescending(x => x.FinishDate).FirstOrDefault().Degree}-{profile.Educations.OrderByDescending(x => x.FinishDate).FirstOrDefault().Field}";
|
placementReceive.EducationOld = org.result.education;
|
||||||
placementReceive.AmountOld = org.result.Amount;
|
placementReceive.AmountOld = org.result.Amount;
|
||||||
|
|
||||||
placementReceive.PositionOld = org.result.position;
|
placementReceive.PositionOld = org.result.position;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue