ปรับปรุงสิทธิการมองเห็นต่างๆ

This commit is contained in:
Nakorn Rientrakrunchai
2020-03-01 17:17:43 +07:00
parent c65c179e85
commit f8f46bb346
29 changed files with 448 additions and 696 deletions

View File

@@ -157,6 +157,15 @@ namespace TodoAPI2.Models
var existingEntity = _repository.Get(id);
if (existingEntity != null)
{
var current_detail = (from k in _repository.Context.eva_create_evaluation_detail
where k.id == model.id
select k).FirstOrDefault();
if (current_detail.status_chief == "Y")
{
throw new Exception("ผู้ประเมิน ส่งแบบประเมินไปแล้ว บันทึกไม่ได้");
}
existingEntity.create_evaluation_id = model.create_evaluation_id;
existingEntity.supervisor1 = model.supervisor1;
existingEntity.supervisor1_result = model.supervisor1_result;