รวม code แก้บัก

This commit is contained in:
Nakorn Rientrakrunchai
2020-04-23 12:26:27 +07:00
parent a2a54c459d
commit f353f73d17
8 changed files with 40 additions and 22 deletions

View File

@@ -173,6 +173,8 @@ namespace TodoAPI2.Models
existingEntity.weight = model.weight;
existingEntity.score = model.score;
existingEntity.sumary = model.sumary;
existingEntity.score2 = model.score;
existingEntity.sumary2 = model.sumary;
existingEntity.target_score1 = model.target_score1;
existingEntity.target_score2 = model.target_score2;
existingEntity.target_score3 = model.target_score3;
@@ -212,13 +214,14 @@ namespace TodoAPI2.Models
//existingEntity.weight = i.weight;
existingEntity.score = i.score;
existingEntity.sumary = 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;
//existingEntity.target_score4 = i.target_score4;
//existingEntity.target_score5 = i.target_score5;
_repository.UpdateWithoutCommit(i.id.Value, existingEntity);
}
}

View File

@@ -105,6 +105,7 @@ namespace TodoAPI2.Models
behavior = m_eva_evaluation_behavior_process2.behavior,
weight = m_eva_evaluation_behavior_process2.weight,
score = m_eva_evaluation_behavior_process2.score,
sumary = m_eva_evaluation_behavior_process2.sumary,
score2 = m_eva_evaluation_behavior_process2.score2,
sumary2 = m_eva_evaluation_behavior_process2.sumary2,
target_score1 = m_eva_evaluation_behavior_process2.target_score1,

View File

@@ -22,6 +22,8 @@ namespace TodoAPI2.Models
public decimal? score { get; set; }
public decimal? sumary { get; set; }
public decimal? score2 { get; set; }
public decimal? sumary2 { get; set; }