Merge branch 'develop' into adiDev
This commit is contained in:
commit
f85c0cf636
1 changed files with 19 additions and 17 deletions
|
|
@ -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,
|
||||||
|
|
@ -365,7 +366,7 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
Name = string.IsNullOrEmpty(evaluate_record.data.experimentee.name) ? string.Empty : evaluate_record.data.experimentee.name,
|
Name = string.IsNullOrEmpty(evaluate_record.data.experimentee.name) ? string.Empty : evaluate_record.data.experimentee.name,
|
||||||
Position = string.IsNullOrEmpty(evaluate_record.data.experimentee.Position) ? string.Empty : evaluate_record.data.experimentee.Position,
|
Position = string.IsNullOrEmpty(evaluate_record.data.experimentee.Position) ? string.Empty : evaluate_record.data.experimentee.Position,
|
||||||
Department = string.IsNullOrEmpty(evaluate_record.data.experimentee.Department) ? string.Empty : evaluate_record.data.experimentee.Department,
|
Department = string.IsNullOrEmpty(evaluate_record.data.experimentee.Department) ? string.Empty : evaluate_record.data.experimentee.Department,
|
||||||
Organization= string.IsNullOrEmpty(evaluate_record.data.experimentee.OrganizationOrganization) ? string.Empty : evaluate_record.data.experimentee.OrganizationOrganization,
|
Organization = string.IsNullOrEmpty(evaluate_record.data.experimentee.OrganizationOrganization) ? string.Empty : evaluate_record.data.experimentee.OrganizationOrganization,
|
||||||
Oc = string.IsNullOrEmpty(evaluate_record.data.experimentee.Oc) ? string.Empty : evaluate_record.data.experimentee.Oc,
|
Oc = string.IsNullOrEmpty(evaluate_record.data.experimentee.Oc) ? string.Empty : evaluate_record.data.experimentee.Oc,
|
||||||
DateStart = string.IsNullOrEmpty(evaluate_record.data.assign.date_start.ToString()) ? "-" : evaluate_record.data.assign.date_start.ToThaiFullDate().ToString().ToThaiNumber(),
|
DateStart = string.IsNullOrEmpty(evaluate_record.data.assign.date_start.ToString()) ? "-" : evaluate_record.data.assign.date_start.ToThaiFullDate().ToString().ToThaiNumber(),
|
||||||
DateFinish = string.IsNullOrEmpty(evaluate_record.data.assign.date_finish.ToString()) ? "-" : evaluate_record.data.assign.date_finish.ToThaiFullDate().ToString().ToThaiNumber(),
|
DateFinish = string.IsNullOrEmpty(evaluate_record.data.assign.date_finish.ToString()) ? "-" : evaluate_record.data.assign.date_finish.ToThaiFullDate().ToString().ToThaiNumber(),
|
||||||
|
|
@ -390,7 +391,7 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
Knows = knows,
|
Knows = knows,
|
||||||
Skills = skills,
|
Skills = skills,
|
||||||
Competencys = competencys,
|
Competencys = competencys,
|
||||||
Learns =learns,
|
Learns = learns,
|
||||||
Applys = applys,
|
Applys = applys,
|
||||||
AchievementOthers = achievementOthers,
|
AchievementOthers = achievementOthers,
|
||||||
Conducts1 = conducts1,
|
Conducts1 = conducts1,
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue