update code
This commit is contained in:
@@ -32,6 +32,9 @@ namespace TodoAPI2.Models
|
||||
|
||||
public decimal? total_salary_limit_rounded { get; set; }
|
||||
|
||||
[MaxLength(4000)]
|
||||
public string remark { get; set; }
|
||||
|
||||
|
||||
public void SetAutoField(DataContext context)
|
||||
{
|
||||
|
||||
@@ -28,6 +28,8 @@ namespace TodoAPI2.Models
|
||||
|
||||
public decimal? total_salary_limit_rounded { get; set; }
|
||||
|
||||
public string remark { get; set; }
|
||||
|
||||
public string active_mode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,6 +127,7 @@ 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,
|
||||
|
||||
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.code,
|
||||
@@ -179,6 +180,7 @@ namespace TodoAPI2.Models
|
||||
existingEntity.total_salary = model.total_salary;
|
||||
existingEntity.total_salary_limit = model.total_salary_limit;
|
||||
existingEntity.total_salary_limit_rounded = model.total_salary_limit_rounded;
|
||||
existingEntity.remark = model.remark;
|
||||
|
||||
existingEntity.SetAutoField(_repository.Context);
|
||||
|
||||
@@ -214,6 +216,7 @@ namespace TodoAPI2.Models
|
||||
existingEntity.total_salary = i.total_salary;
|
||||
existingEntity.total_salary_limit = i.total_salary_limit;
|
||||
existingEntity.total_salary_limit_rounded = i.total_salary_limit_rounded;
|
||||
existingEntity.remark = i.remark;
|
||||
|
||||
existingEntity.SetAutoField(_repository.Context);
|
||||
_repository.UpdateWithoutCommit(i.id.Value, existingEntity);
|
||||
@@ -285,7 +288,8 @@ namespace TodoAPI2.Models
|
||||
i.Add("limit_frame_295", "กรอบวงเงินที่กันไว้");
|
||||
i.Add("total_salary", "อัตราเงินเดือนรวม");
|
||||
i.Add("total_salary_limit", "วงเงินในการเลื่อนเงินเดือน");
|
||||
i.Add("total_salary_limit_rounded", "วงเงินในการเลื่อนเงินเดือน ที่ใช้จริง");
|
||||
i.Add("total_salary_limit_rounded", "วงเงินในการเลื่อนเงินเดือน ที่ใช้จริง");
|
||||
i.Add("remark", "หมายเหตุ");
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,8 @@ namespace TodoAPI2.Models
|
||||
|
||||
public decimal? total_salary_limit_rounded { get; set; }
|
||||
|
||||
public string remark { 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