//根据工作年限计算可请假的天数
在以下类增加以功能,当日期为5月31日后日执行以下语句,当日期为5月31号前时+加上上一年年休假天数!
public int getPermiDays(int iYears) {
//工作年限1-10年5天;10到20年10天;20年以上15天。
int iDays = 5;
if (iYears < 10) {
iDays = 5;
} else if (iYears < 20) {
iDays = 10;
} else {
iDays = 15;
}
return iDays;
}