เบอร์โทรปรับให้เก็บแค่ตัวเลข
Some checks failed
release-dev / release-dev (push) Failing after 13s

This commit is contained in:
Bright 2025-02-07 10:18:54 +07:00
parent 98f493ec97
commit 45e4402b13

View file

@ -16,6 +16,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
using BMA.EHR.Application.Repositories.Reports;
using System.Text.RegularExpressions;
namespace BMA.EHR.Placement.Service.Controllers
{
@ -1743,7 +1744,7 @@ namespace BMA.EHR.Placement.Service.Controllers
posLevelId = p.posLevelId == null ? string.Empty : p.posLevelId,
posTypeId = p.posTypeId == null ? string.Empty : p.posTypeId,
email = p.Email == null ? string.Empty : p.Email,
phone = p.MobilePhone == null ? string.Empty : p.MobilePhone,
phone = p.MobilePhone == null ? string.Empty : Regex.Replace(p.MobilePhone, @"\D", ""),
keycloak = string.Empty,
isProbation = true,
isLeave = false,
@ -1755,7 +1756,7 @@ namespace BMA.EHR.Placement.Service.Controllers
birthDate = p.DateOfBirth == null ? (DateTime?)null : p.DateOfBirth,
reasonSameDate = (DateTime?)null,
ethnicity = p.Race == null ? string.Empty : p.Race,
telephoneNumber = p.Telephone == null ? string.Empty : p.Telephone,
telephoneNumber = p.Telephone == null ? string.Empty : Regex.Replace(p.Telephone, @"\D", ""),
nationality = p.Nationality == null ? string.Empty : p.Nationality,
gender = p.Gender == null ? string.Empty : p.Gender,
relationship = p.Relationship == null ? string.Empty : p.Relationship,