pstmt.setObject(1,gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
pstmt.setObject(2,gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
pstmt.setObject(3,String.valueOf(Calendar.SUNDAY));
ResultSet rset = pstmt.executeQuery();
if (rset.next()) {
EmployeeCalendarVO vo = new EmployeeCalendarVO();
vo.setCompanyCodeSys01SCH02((String)gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
vo.setProgressiveReg04SCH02((BigDecimal)gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
vo.setDayOfWeekSCH02(String.valueOf(Calendar.SUNDAY));
vo.setMorningStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(1)));
vo.setMorningEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(2)));
vo.setAfternoonStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(3)));
vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
list.add(vo);
}
rset.close();
pstmt.setObject(1,gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
pstmt.setObject(2,gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
pstmt.setObject(3,String.valueOf(Calendar.MONDAY));
rset = pstmt.executeQuery();
if (rset.next()) {
EmployeeCalendarVO vo = new EmployeeCalendarVO();
vo.setCompanyCodeSys01SCH02((String)gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
vo.setProgressiveReg04SCH02((BigDecimal)gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
vo.setDayOfWeekSCH02(String.valueOf(Calendar.MONDAY));
vo.setMorningStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(1)));
vo.setMorningEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(2)));
vo.setAfternoonStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(3)));
vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
list.add(vo);
}
rset.close();
pstmt.setObject(1,gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
pstmt.setObject(2,gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
pstmt.setObject(3,String.valueOf(Calendar.TUESDAY));
rset = pstmt.executeQuery();
if (rset.next()) {
EmployeeCalendarVO vo = new EmployeeCalendarVO();
vo.setCompanyCodeSys01SCH02((String)gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
vo.setProgressiveReg04SCH02((BigDecimal)gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
vo.setDayOfWeekSCH02(String.valueOf(Calendar.TUESDAY));
vo.setMorningStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(1)));
vo.setMorningEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(2)));
vo.setAfternoonStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(3)));
vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
list.add(vo);
}
rset.close();
pstmt.setObject(1,gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
pstmt.setObject(2,gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
pstmt.setObject(3,String.valueOf(Calendar.WEDNESDAY));
rset = pstmt.executeQuery();
if (rset.next()) {
EmployeeCalendarVO vo = new EmployeeCalendarVO();
vo.setCompanyCodeSys01SCH02((String)gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
vo.setProgressiveReg04SCH02((BigDecimal)gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
vo.setDayOfWeekSCH02(String.valueOf(Calendar.WEDNESDAY));
vo.setMorningStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(1)));
vo.setMorningEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(2)));
vo.setAfternoonStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(3)));
vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
list.add(vo);
}
rset.close();
pstmt.setObject(1,gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
pstmt.setObject(2,gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
pstmt.setObject(3,String.valueOf(Calendar.THURSDAY));
rset = pstmt.executeQuery();
if (rset.next()) {
EmployeeCalendarVO vo = new EmployeeCalendarVO();
vo.setCompanyCodeSys01SCH02((String)gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
vo.setProgressiveReg04SCH02((BigDecimal)gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
vo.setDayOfWeekSCH02(String.valueOf(Calendar.THURSDAY));
vo.setMorningStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(1)));
vo.setMorningEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(2)));
vo.setAfternoonStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(3)));
vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
list.add(vo);
}
rset.close();
pstmt.setObject(1,gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
pstmt.setObject(2,gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
pstmt.setObject(3,String.valueOf(Calendar.FRIDAY));
rset = pstmt.executeQuery();
if (rset.next()) {
EmployeeCalendarVO vo = new EmployeeCalendarVO();
vo.setCompanyCodeSys01SCH02((String)gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
vo.setProgressiveReg04SCH02((BigDecimal)gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
vo.setDayOfWeekSCH02(String.valueOf(Calendar.FRIDAY));
vo.setMorningStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(1)));
vo.setMorningEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(2)));
vo.setAfternoonStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(3)));
vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
list.add(vo);
}
rset.close();
pstmt.setObject(1,gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
pstmt.setObject(2,gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
pstmt.setObject(3,String.valueOf(Calendar.SATURDAY));
rset = pstmt.executeQuery();
if (rset.next()) {
EmployeeCalendarVO vo = new EmployeeCalendarVO();
vo.setCompanyCodeSys01SCH02((String)gridParams.getOtherGridParams().get(ApplicationConsts.COMPANY_CODE_SYS01));
vo.setProgressiveReg04SCH02((BigDecimal)gridParams.getOtherGridParams().get(ApplicationConsts.PROGRESSIVE_REG04));
vo.setDayOfWeekSCH02(String.valueOf(Calendar.SATURDAY));
vo.setMorningStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(1)));
vo.setMorningEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(2)));
vo.setAfternoonStartHourSCH02(DateUtils.removeDate(rset.getTimestamp(3)));
vo.setAfternoonEndHourSCH02(DateUtils.removeDate(rset.getTimestamp(4)));
list.add(vo);
}
rset.close();
return new VOListResponse(list,false,list.size());