updata next step

This commit is contained in:
kittapath 2024-11-14 18:24:06 +07:00
parent b06c128ca2
commit c18d9a392a
4 changed files with 5 additions and 4 deletions

View file

@ -551,7 +551,7 @@ namespace BMA.EHR.Placement.Service.Controllers
{ {
posMasterOldId = uppdated.posmasterId, posMasterOldId = uppdated.posmasterId,
posMasterId = req.posmasterId, posMasterId = req.posmasterId,
profileId = req.profileId, profileId = uppdated.profileId,
}); });
} }
uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper();

View file

@ -583,7 +583,7 @@ namespace BMA.EHR.Placement.Service.Controllers
{ {
posMasterOldId = uppdated.posmasterId, posMasterOldId = uppdated.posmasterId,
posMasterId = req.posmasterId, posMasterId = req.posmasterId,
profileId = req.profileId, profileId = uppdated.profileId,
}); });
} }
uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper();

View file

@ -14,6 +14,7 @@ using System.Security.Claims;
using System.Net.Http.Headers; using System.Net.Http.Headers;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
namespace BMA.EHR.Placement.Service.Controllers namespace BMA.EHR.Placement.Service.Controllers
{ {
@ -893,7 +894,7 @@ namespace BMA.EHR.Placement.Service.Controllers
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
{ {
posMasterId = req.posmasterId, posMasterId = req.posmasterId,
profileId = req.profileId, profileId = person.profileId,
}); });
} }
person.Draft = false; person.Draft = false;

View file

@ -652,7 +652,7 @@ namespace BMA.EHR.Placement.Service.Controllers
{ {
posMasterOldId = uppdated.posmasterId, posMasterOldId = uppdated.posmasterId,
posMasterId = req.posmasterId, posMasterId = req.posmasterId,
profileId = req.profileId, profileId = uppdated.profileId,
}); });
} }
uppdated.posmasterId = req.posmasterId; uppdated.posmasterId = req.posmasterId;