(from y in db.manpower_plan
where y.id_oper_unit == hierarchy.operUnit
&& y.id_department == hierarchy.department
&& y.year != Class.Config.SystemNextYear(1) <===ตัวนี้พอผมใส่ลงไปก็ใช้ไม่ได้ข้อมูลไม่ออก
select new Class.SelectListItem { value = y.year, text = y.year }).Distinct();
int iYear = Class.Config.SystemNextYear(1);
(from y in db.manpower_plan
where y.id_oper_unit == hierarchy.operUnit
&& y.id_department == hierarchy.department
&& y.year != iYear
select new Class.SelectListItem { value = y.year, text = y.year }).Distinct();