add law & skill
Some checks failed
release-dev / release-dev (push) Failing after 10s

This commit is contained in:
Warunee Tamkoo 2025-01-10 18:31:27 +07:00
parent 294fc79425
commit 223e876152
2 changed files with 27 additions and 0 deletions

View file

@ -89,6 +89,17 @@ namespace BMA.EHR.Application.Repositories.Reports
output_desc = string.IsNullOrEmpty(x.output_desc) ? string.Empty : x.output_desc.ToThaiNumber(),
}).ToList();
var skills = probation_assign.result.skills.Select(x => new
{
id = string.IsNullOrEmpty(x.id.ToString()) ? string.Empty : x.id.ToString().ToThaiNumber(),
title = string.IsNullOrEmpty(x.title) ? string.Empty : x.title.ToThaiNumber(),
description = string.IsNullOrEmpty(x.description) ? string.Empty : x.description.ToThaiNumber(),
}).ToList();
var laws = probation_assign.result.laws.Where(x => x.selected == true).Select((x, Index) => new
{
title = string.IsNullOrEmpty(x.description) ? string.Empty : $"{Index + 1}. {x.description.ToThaiNumber()}",
}).ToList();
return new
{

View file

@ -15,6 +15,8 @@
public List<Knowledge> knowledges { get; set; }
public List<Competency> competencys { get; set; }
public List<Output> outputs { get; set; }
public List<Law> laws { get; set; }
public List<Skill> skills { get; set; }
}
public class Profile
@ -73,6 +75,20 @@
public string description { get; set; } = string.Empty;
}
public class Skill
{
public int id { get; set; }
public string title { get; set; } = string.Empty;
public string description { get; set; } = string.Empty;
}
public class Law
{
public int id { get; set; }
public string description { get; set; } = string.Empty;
public bool selected { get; set; }
}
public class Competency
{
public string id { get; set; } = string.Empty;