update code

This commit is contained in:
Nakorn Rientrakrunchai
2021-03-03 12:28:50 +07:00
parent ad14f4f664
commit 23e68366bb
43 changed files with 2650 additions and 777 deletions

View File

@@ -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)
{

View File

@@ -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; }
}
}

View File

@@ -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;
}

View File

@@ -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; }