รวม code ที่แก้ไขทั้งหมดในทุกจุด
This commit is contained in:
@@ -105,7 +105,7 @@ namespace TodoAPI2.Models
|
||||
{
|
||||
id = m_eva_evaluation_behavior_process.id,
|
||||
create_evaluation_detail_id = m_eva_evaluation_behavior_process.create_evaluation_detail_id,
|
||||
behavior = m_eva_evaluation_behavior_process.behavior,
|
||||
behavior = m_eva_evaluation_behavior_process.behavior_fix,
|
||||
weight = m_eva_evaluation_behavior_process.weight,
|
||||
score = m_eva_evaluation_behavior_process.score,
|
||||
sumary = m_eva_evaluation_behavior_process.sumary,
|
||||
@@ -212,17 +212,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