ปรับปรุงการคำนวณยอดรวมเงินเดือน
This commit is contained in:
@@ -56,12 +56,12 @@ namespace TodoAPI2.Models
|
||||
|
||||
public void DoAfterInsertUpdate(DataContext context)
|
||||
{
|
||||
total_salary = (from i in context.eva_limit_frame_employee
|
||||
join j in context.eva_limit_frame_group
|
||||
on i.frame_group_guid equals j.id
|
||||
select i.salary).Sum();
|
||||
limit_frame_005_total = total_salary * limit_frame_005 / 100;
|
||||
limit_frame_005_total_rounded = MyHelper.RoundOff(limit_frame_005_total.Value, 10);
|
||||
//total_salary = (from i in context.eva_limit_frame_employee
|
||||
// join j in context.eva_limit_frame_group
|
||||
// on i.frame_group_guid equals j.id
|
||||
// select i.salary).Sum();
|
||||
//limit_frame_005_total = total_salary * limit_frame_005 / 100;
|
||||
//limit_frame_005_total_rounded = MyHelper.RoundOff(limit_frame_005_total.Value, 10);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user