แก้สถ่นะออกคำสั่ง
Some checks failed
release-dev / release-dev (push) Failing after 12s

This commit is contained in:
moss 2025-04-03 11:13:25 +07:00
parent e160e1e552
commit e947f08f8e
14 changed files with 60 additions and 39 deletions

View file

@ -759,7 +759,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.Status = "REPORT";
profile.Status = req.status.Trim().ToUpper();
profile.typeCommand = "APPOINT";
});
await _context.SaveChangesAsync();
@ -969,7 +969,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.Status = "REPORT";
profile.Status = req.status.Trim().ToUpper();
profile.typeCommand = "MOVE";
});
await _context.SaveChangesAsync();
@ -1180,7 +1180,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.Status = "REPORT";
profile.Status = req.status.Trim().ToUpper();
profile.typeCommand = "SLIP";
});
await _context.SaveChangesAsync();
@ -1380,7 +1380,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.Status = "REPORT";
profile.Status = req.status.Trim().ToUpper();
profile.typeCommand = "MOVE";
});
await _context.SaveChangesAsync();
@ -1588,7 +1588,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.Status = "REPORT";
profile.Status = req.status.Trim().ToUpper();
profile.typeCommand = "SLIP";
});
await _context.SaveChangesAsync();

View file

@ -1564,7 +1564,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.PlacementStatus = "REPORT";
profile.PlacementStatus = req.status.Trim().ToUpper();
profile.typeCommand = "APPOINT";
});
await _context.SaveChangesAsync();
@ -1895,7 +1895,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.PlacementStatus = "REPORT";
profile.PlacementStatus = req.status.Trim().ToUpper();
profile.typeCommand = "APPOINT";
});
await _context.SaveChangesAsync();
@ -2219,10 +2219,10 @@ namespace BMA.EHR.Placement.Service.Controllers
// .Where(x => x.Placement!.PlacementType!.Name == "แต่งตั้งข้าราชการ")
// .Where(x => x.typeCommand.Trim().ToUpper() == "APPOIN")
.ToListAsync();
placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT");
placementProfiles.ForEach(profile => profile.PlacementStatus = req.status.Trim().ToUpper());
placementProfiles.ForEach(profile =>
{
profile.PlacementStatus = "REPORT";
profile.PlacementStatus = req.status.Trim().ToUpper();
profile.typeCommand = "APPOIN";
});
@ -2455,7 +2455,7 @@ namespace BMA.EHR.Placement.Service.Controllers
.ToListAsync();
placementProfiles.ForEach(profile =>
{
profile.PlacementStatus = "REPORT";
profile.PlacementStatus = req.status.Trim().ToUpper();
profile.typeCommand = "MOVE";
});
await _context.SaveChangesAsync();
@ -2681,7 +2681,7 @@ namespace BMA.EHR.Placement.Service.Controllers
var placementProfiles = await _context.PlacementProfiles
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.PlacementStatus = "REPORT");
placementProfiles.ForEach(profile => profile.PlacementStatus = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}

View file

@ -411,7 +411,7 @@ namespace BMA.EHR.Placement.Service.Controllers
(org.result.child2 == null ? "" : org.result.child2 + "\n") +
(org.result.child1 == null ? "" : org.result.child1 + "\n") +
(org.result.root == null ? "" : org.result.root);
placementOfficer.OrganizationPositionOld = org.result.position + "\n" + (placementOfficer.PositionExecutiveOld == null ? "" : placementOfficer.PositionExecutiveOld + "\n") + placementOfficer.OrganizationOld;
placementOfficer.OrganizationPositionOld = org.result.position + "\n" + (placementOfficer.PositionExecutiveOld == null ? "" : placementOfficer.PositionExecutiveOld + "\n") + placementOfficer.OrganizationOld;
}
await _context.PlacementOfficers.AddAsync(placementOfficer);
await _context.SaveChangesAsync();
@ -561,7 +561,7 @@ namespace BMA.EHR.Placement.Service.Controllers
var placementProfiles = await _context.PlacementOfficers
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "REPORT");
placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}

View file

@ -885,7 +885,7 @@ namespace BMA.EHR.Placement.Service.Controllers
var placementProfiles = await _context.PlacementReceives
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "REPORT");
placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}

View file

@ -500,7 +500,7 @@ namespace BMA.EHR.Placement.Service.Controllers
var placementProfiles = await _context.PlacementRepatriations
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "REPORT");
placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}

View file

@ -752,7 +752,7 @@ namespace BMA.EHR.Placement.Service.Controllers
var placementProfiles = await _context.PlacementTransfers
.Where(x => req.refIds.Contains(x.Id.ToString()))
.ToListAsync();
placementProfiles.ForEach(profile => profile.Status = "REPORT");
placementProfiles.ForEach(profile => profile.Status = req.status.Trim().ToUpper());
await _context.SaveChangesAsync();
return Success();
}