diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index 9695f2e0..02809ccb 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -961,7 +961,11 @@ namespace BMA.EHR.Placement.Service.Controllers var placementProfiles = await _context.PlacementAppointments .Where(x => req.refIds.Contains(x.Id.ToString())) .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "MOVE"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -981,11 +985,7 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.Status.ToUpper() == "REPORT") .ToListAsync(); - placementProfiles.ForEach(profile => - { - profile.Status = "REPORT"; - profile.typeCommand = "MOVE"; - }); + placementProfiles.ForEach(profile => profile.Status = "PENDING"); await _context.SaveChangesAsync(); return Success(); } @@ -1181,7 +1181,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.type == "EMPLOYEE") .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "SLIP"; + }); await _context.SaveChangesAsync(); return Success(); } @@ -1384,7 +1388,11 @@ namespace BMA.EHR.Placement.Service.Controllers .Where(x => req.refIds.Contains(x.Id.ToString())) // .Where(x => x.type == "EMPLOYEE") .ToListAsync(); - placementProfiles.ForEach(profile => profile.Status = "REPORT"); + placementProfiles.ForEach(profile => + { + profile.Status = "REPORT"; + profile.typeCommand = "MOVE"; + }); await _context.SaveChangesAsync(); return Success(); }