แก้ออกคำสั่ง

This commit is contained in:
Kittapath 2024-06-14 17:26:15 +07:00
parent ee2aa136b9
commit 6c09c68c5c
33 changed files with 18908 additions and 626 deletions

View file

@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Telerik.Reporting;
using Telerik.Reporting.Processing;
using System.Text.RegularExpressions;
namespace BMA.EHR.Report.Service.Controllers
{
@ -158,10 +159,12 @@ namespace BMA.EHR.Report.Service.Controllers
dynamic knowledges = probation.GetType().GetProperty("Knowledge").GetValue(probation);
foreach (var knowledge in knowledges)
{
string output = Regex.Replace(knowledge.description, "<.*?>", string.Empty);
output = output.Replace("&nbsp;", " ");
_knowledgeList.Add(new
{
Title = knowledge.title,
Description =knowledge.description
Description = output
});
}
var tblKnowledges = (Telerik.Reporting.Table)report.Items["detailSection1"].Items["table3"];
@ -171,11 +174,13 @@ namespace BMA.EHR.Report.Service.Controllers
dynamic competencys = probation.GetType().GetProperty("Competency").GetValue(probation);
foreach (var competency in competencys)
{
string output = Regex.Replace(competency.description, "<.*?>", string.Empty);
output = output.Replace("&nbsp;", " ");
_competencysList.Add(new
{
Id = competency.id,
Title = competency.title,
Description = competency.description
Description = output
});
}
var tblCompetencys = (Telerik.Reporting.Table)report2.Items["detailSection1"].Items["table4"];