ปรับปรุงการมองเห็นของ หัวหน้าแผนก

This commit is contained in:
nakorn
2021-10-18 16:42:58 +07:00
parent 3db2768ed5
commit 8a02127499
3 changed files with 15 additions and 3 deletions

View File

@@ -254,7 +254,10 @@ namespace TodoAPI2.Models
var entity = GetEntity(model);
entity.id = GetNewPrimaryKey();
if (!entity.work_period.HasValue)
{
entity.work_period = 6;
}
var inserted = _repository.Insert(entity);
@@ -277,6 +280,11 @@ namespace TodoAPI2.Models
existingEntity.help_org_id = model.help_org_id;
existingEntity.remark = model.remark;
if (!existingEntity.work_period.HasValue)
{
existingEntity.work_period = 6;
}
var updated = _repository.Update(id, existingEntity);
return Get(updated.id);
}

View File

@@ -406,7 +406,11 @@ namespace TodoAPI2.Models
&& (fk_external_employee.department_id == model.org_id || !model.org_id.HasValue)
&& (fk_external_employee.id == model.employee_id || !model.employee_id.HasValue)
&& (string.IsNullOrEmpty(model.evaluation_round_search) || fk_planResult.id == Guid.Parse(model.evaluation_round_search))
&& (m_eva_create_evaluation_detail_agreement.employee_id == emp_id || m_eva_create_evaluation_detail_agreement.chief == emp_id || ((int?[])special_person).Contains(emp_id))
&& (m_eva_create_evaluation_detail_agreement.employee_id == emp_id
|| m_eva_create_evaluation_detail_agreement.chief == emp_id
|| ((int?[])special_person).Contains(emp_id)
|| fk_eva_create_evaluationResult10.employee_id == emp_id
)
orderby
fk_sort_depResult2.external_code,

View File

@@ -54,7 +54,7 @@
<div class='row'>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_work_period" for="eva_create_evaluation_detail_work_period">ระยะเวลาทำงาน ในรอบการประเมินนี้ (เดือน)</label>
<input class="form-control" type="number" id="eva_create_evaluation_detail_work_period" iLabel="ระยะเวลาทำงาน ในรอบการประเมินนี้ (เดือน)" iRequire="true" iGroup="eva_create_evaluation_detail" />
<input class="form-control" type="number" id="eva_create_evaluation_detail_work_period" iLabel="ระยะเวลาทำงาน ในรอบการประเมินนี้ (เดือน)" iRequire="false" iGroup="eva_create_evaluation_detail" />
</div>
<div class="form-group col-md-4">
<label id="lab_eva_create_evaluation_detail_create_evaluation_id" for="eva_create_evaluation_detail_create_evaluation_id">แบบประเมิน</label>