This commit is contained in:
parent
294fc79425
commit
223e876152
2 changed files with 27 additions and 0 deletions
|
|
@ -89,6 +89,17 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
output_desc = string.IsNullOrEmpty(x.output_desc) ? string.Empty : x.output_desc.ToThaiNumber(),
|
output_desc = string.IsNullOrEmpty(x.output_desc) ? string.Empty : x.output_desc.ToThaiNumber(),
|
||||||
}).ToList();
|
}).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
|
return new
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@
|
||||||
public List<Knowledge> knowledges { get; set; }
|
public List<Knowledge> knowledges { get; set; }
|
||||||
public List<Competency> competencys { get; set; }
|
public List<Competency> competencys { get; set; }
|
||||||
public List<Output> outputs { get; set; }
|
public List<Output> outputs { get; set; }
|
||||||
|
public List<Law> laws { get; set; }
|
||||||
|
public List<Skill> skills { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Profile
|
public class Profile
|
||||||
|
|
@ -73,6 +75,20 @@
|
||||||
public string description { get; set; } = string.Empty;
|
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 class Competency
|
||||||
{
|
{
|
||||||
public string id { get; set; } = string.Empty;
|
public string id { get; set; } = string.Empty;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue