เพิ่มฟิล remark2
This commit is contained in:
@@ -35,6 +35,9 @@ namespace TodoAPI2.Models
|
||||
[MaxLength(4000)]
|
||||
public string remark { get; set; }
|
||||
|
||||
[MaxLength(4000)]
|
||||
public string remark2 { get; set; }
|
||||
|
||||
public int? main_dept_id { get; set; }
|
||||
public void SetAutoField(DataContext context)
|
||||
{
|
||||
|
||||
@@ -30,6 +30,8 @@ namespace TodoAPI2.Models
|
||||
|
||||
public string remark { get; set; }
|
||||
|
||||
public string remark2 { get; set; }
|
||||
|
||||
public string active_mode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,13 +119,11 @@ namespace TodoAPI2.Models
|
||||
into eva_evaluation_groupResult2
|
||||
from fk_eva_evaluation_groupResult2 in eva_evaluation_groupResult2.DefaultIfEmpty()
|
||||
|
||||
|
||||
where
|
||||
1 == 1
|
||||
&& (!model.frame_plan_guid.HasValue || m_eva_limit_frame_group.frame_plan_guid == model.frame_plan_guid)
|
||||
&& (!model.group_guid.HasValue || m_eva_limit_frame_group.group_guid == model.group_guid)
|
||||
|
||||
|
||||
orderby fk_eva_evaluation_groupResult2.code
|
||||
select new eva_limit_frame_groupViewModel()
|
||||
{
|
||||
@@ -136,7 +134,9 @@ namespace TodoAPI2.Models
|
||||
total_salary = m_eva_limit_frame_group.total_salary,
|
||||
total_salary_limit = m_eva_limit_frame_group.total_salary_limit,
|
||||
total_salary_limit_rounded = m_eva_limit_frame_group.total_salary_limit_rounded,
|
||||
remark = m_eva_limit_frame_group.remark,
|
||||
remark = m_eva_limit_frame_group.remark+@"
|
||||
"+ m_eva_limit_frame_group.remark2,
|
||||
remark2 = m_eva_limit_frame_group.remark2,
|
||||
|
||||
frame_plan_guid_eva_limit_frame_plan_executed_date = fk_eva_limit_frame_planResult1.executed_date,
|
||||
group_guid_eva_evaluation_group_code = fk_eva_evaluation_groupResult2.thegroup,
|
||||
@@ -204,6 +204,7 @@ namespace TodoAPI2.Models
|
||||
existingEntity.total_salary_limit = model.total_salary_limit;
|
||||
existingEntity.total_salary_limit_rounded = model.total_salary_limit_rounded;
|
||||
existingEntity.remark = "";
|
||||
existingEntity.remark2 = model.remark2;
|
||||
|
||||
int j = 1;
|
||||
foreach (var y in from z in _repository.Context.eva_limit_frame_employee where z.frame_group_guid == model.id orderby z.order_of_data select z)
|
||||
@@ -257,8 +258,9 @@ namespace TodoAPI2.Models
|
||||
existingEntity.total_salary_limit = i.total_salary_limit;
|
||||
existingEntity.total_salary_limit_rounded = i.total_salary_limit_rounded;
|
||||
existingEntity.remark = i.remark;
|
||||
existingEntity.remark2 = i.remark2;
|
||||
|
||||
existingEntity.SetAutoField(_repository.Context);
|
||||
existingEntity.SetAutoField(_repository.Context);
|
||||
_repository.UpdateWithoutCommit(i.id.Value, existingEntity);
|
||||
}
|
||||
}
|
||||
@@ -329,7 +331,8 @@ namespace TodoAPI2.Models
|
||||
i.Add("total_salary", "อัตราเงินเดือนรวม");
|
||||
i.Add("total_salary_limit", "วงเงินในการเลื่อนเงินเดือน");
|
||||
i.Add("total_salary_limit_rounded", "วงเงินในการเลื่อนเงินเดือน ที่ใช้จริง");
|
||||
i.Add("remark", "หมายเหตุ");
|
||||
i.Add("remark", "หมายเหตุ");
|
||||
i.Add("remark2", "หมายเหตุ กรอกเอง");
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace TodoAPI2.Models
|
||||
|
||||
public string remark { get; set; }
|
||||
|
||||
public string remark2 { get; set; }
|
||||
|
||||
public DateTime? frame_plan_guid_eva_limit_frame_plan_executed_date { get; set; }
|
||||
public string group_guid_eva_evaluation_group_code { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user