From 45e4402b136be9ae03df7fcf84daf0572c5de266 Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 7 Feb 2025 10:18:54 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=AD=E0=B8=A3=E0=B9=8C?= =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=A3=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A?= =?UTF-8?q?=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B9=80=E0=B8=81=E0=B9=87=E0=B8=9A?= =?UTF-8?q?=E0=B9=81=E0=B8=84=E0=B9=88=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B9=80?= =?UTF-8?q?=E0=B8=A5=E0=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BMA.EHR.Placement.Service/Controllers/PlacementController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs index 074291af..ac13682b 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementController.cs @@ -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,