Merge branch 'develop' into adiDev

This commit is contained in:
AdisakKanthawilang 2024-09-11 16:00:22 +07:00
commit f85c0cf636

View file

@ -46,7 +46,7 @@ namespace BMA.EHR.Application.Repositories.Reports
#region 13 #region 13
public async Task<object> GetProbationAssignAsync(Guid assign_id, string token) public async Task<object> GetProbationAssignAsync(Guid assign_id, string token)
{ {
var api_url = $"{_configuration["APIPROBATION"]}/assign/probation-assign?assign_id={assign_id}"; var api_url = $"{_configuration["APIPROBATION"]}/assign?assign_id={assign_id}";
ProbationAssignResponse probation_assign; ProbationAssignResponse probation_assign;
using (var client = new HttpClient()) using (var client = new HttpClient())
{ {
@ -148,7 +148,8 @@ namespace BMA.EHR.Application.Repositories.Reports
var other_training = evaluate_record.data.evaluate.other_training == "1" ? "🗹 ดำเนินการแล้ว ☐ ยังไม่ได้ดำเนินการ" : "☐ ดำเนินการแล้ว 🗹 ยังไม่ได้ดำเนินการ"; var other_training = evaluate_record.data.evaluate.other_training == "1" ? "🗹 ดำเนินการแล้ว ☐ ยังไม่ได้ดำเนินการ" : "☐ ดำเนินการแล้ว 🗹 ยังไม่ได้ดำเนินการ";
var expects = evaluate_record.data.evaluate != null && evaluate_record.data.evaluate.achievements.Count > 0 var expects = evaluate_record.data.evaluate != null && evaluate_record.data.evaluate.achievements.Count > 0
? new { ? new
{
col1 = evaluate_record.data.evaluate.achievements[0].evaluate_expect_level.col1 == "/" ? "✓" : string.Empty, col1 = evaluate_record.data.evaluate.achievements[0].evaluate_expect_level.col1 == "/" ? "✓" : string.Empty,
col2 = evaluate_record.data.evaluate.achievements[0].evaluate_expect_level.col2 == "/" ? "✓" : string.Empty, col2 = evaluate_record.data.evaluate.achievements[0].evaluate_expect_level.col2 == "/" ? "✓" : string.Empty,
col3 = evaluate_record.data.evaluate.achievements[0].evaluate_expect_level.col3 == "/" ? "✓" : string.Empty, col3 = evaluate_record.data.evaluate.achievements[0].evaluate_expect_level.col3 == "/" ? "✓" : string.Empty,
@ -436,7 +437,8 @@ namespace BMA.EHR.Application.Repositories.Reports
if (evaluate_assign.data != null) if (evaluate_assign.data != null)
{ {
var knows = new { var knows = new
{
col1 = evaluate_assign.data.evaluate.knowledge_level.col1 == "/" ? "✓" : string.Empty, col1 = evaluate_assign.data.evaluate.knowledge_level.col1 == "/" ? "✓" : string.Empty,
col2 = evaluate_assign.data.evaluate.knowledge_level.col2 == "/" ? "✓" : string.Empty, col2 = evaluate_assign.data.evaluate.knowledge_level.col2 == "/" ? "✓" : string.Empty,
col3 = evaluate_assign.data.evaluate.knowledge_level.col3 == "/" ? "✓" : string.Empty, col3 = evaluate_assign.data.evaluate.knowledge_level.col3 == "/" ? "✓" : string.Empty,