ปรับปรุงการมองเห็นของ หัวหน้าแผนก
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user