รวม code ปรับ layout เงินประจำตำแหน่ง และค่าตอบแทนรายเดือน

This commit is contained in:
Nakorn Rientrakrunchai
2020-08-16 11:29:51 +07:00
parent 592a3e3c1b
commit 0340a3ae5d
8 changed files with 119 additions and 17 deletions

View File

@@ -77,6 +77,8 @@ he.position_level_id,
he.position_type_id,
hpl.position_level_id as hpl_position_level_id,
hpt.position_type_id as hpt_position_type_id,
he.position_allowance,
he.other_money,
hpt.position_type_name,he.packing_date,he.cost_of_living,
(CASE WHEN (SELECT hrm_work_rec.id FROM hrm_working_records as hrm_work_rec
@@ -174,7 +176,14 @@ order by he.firstname, he.lastname;
{
i.cost_of_living = Convert.ToDecimal(dr["cost_of_living"]);
}
if (dr["position_allowance"] != DBNull.Value)
{
i.position_allowance = Convert.ToDecimal(dr["position_allowance"]);
}
if (dr["other_money"] != DBNull.Value)
{
i.other_money = Convert.ToDecimal(dr["other_money"]);
}
if (dr["packing_date"] != DBNull.Value)
{
i.packing_date = Convert.ToDateTime(dr["packing_date"]);