ปรับปรุงสิทธิการมองเห็นต่างๆ
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user