รวม code ที่แก้ไขทั้งหมดในทุกจุด
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user