รวม code ที่แก้ไขทั้งหมดในทุกจุด

This commit is contained in:
Nakorn Rientrakrunchai
2020-08-16 23:17:10 +07:00
parent a1ff729171
commit 4ef17d0300
54 changed files with 293 additions and 213 deletions

View File

@@ -219,17 +219,20 @@ namespace TodoAPI2.Models
existingEntity.score = i.score;
existingEntity.sumary = i.sumary;
if(current_eva.employee_id == current_detail.chief) // หัวหน้าและผู้ประเมินสูงสุด เป็นคนคนเดียวกัน
{
existingEntity.score2 = i.score;
existingEntity.sumary2 = i.sumary;
}
//if(current_eva.employee_id == current_detail.chief) // หัวหน้าและผู้ประเมินสูงสุด เป็นคนคนเดียวกัน
//{
// existingEntity.score2 = i.score;
// existingEntity.sumary2 = i.sumary;
//}
//else // เป็นคนละคน (แต่ดึงค่า default ไปใส่ให้)
//{
// existingEntity.score2 = i.score;
// existingEntity.sumary2 = i.sumary;
//}
existingEntity.score2 = i.score;
existingEntity.sumary2 = i.sumary;
existingEntity.target_score1 = i.target_score1;
existingEntity.target_score2 = i.target_score2;
existingEntity.target_score3 = i.target_score3;