| | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | | Assert.hasKeyAndValue(reqJson, "curMonth", "未包含月 YYYY-MM"); |
| | | Assert.hasKeyAndValue(reqJson, "curDate", "未包含月 YYYY-MM"); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return; |
| | | } |
| | | |
| | | String curMonth = reqJson.getString("curMonth"); |
| | | String curMonth = reqJson.getString("curDate"); |
| | | String curMonthDay = curMonth + "-01"; |
| | | |
| | | Calendar calendar = Calendar.getInstance(); |
| | |
| | | ScheduleClassesDayDto tmpScheduleClassesDayDto = null; |
| | | int curDay = 1; |
| | | for (int day = 1; day <= maxDay; day++) { |
| | | |
| | | scDay = new ScheduleClassesDayDto(); |
| | | String today = curMonth + "-"+day; |
| | | |
| | | int scheduleCycle = Integer.parseInt(scheduleClassesDto.getScheduleCycle()); |
| | |
| | | ScheduleClassesDayDto tmpScheduleClassesDayDto = null; |
| | | int curDay = 1; |
| | | for (int day = 1; day <= maxDay; day++) { |
| | | |
| | | scDay = new ScheduleClassesDayDto(); |
| | | Calendar today = Calendar.getInstance(); |
| | | today.setTime(DateUtil.getDateFromStringB(curMonth + "-"+day)); |
| | | int week = today.get(Calendar.WEEK_OF_MONTH); |
| | |
| | | ScheduleClassesDayDto tmpScheduleClassesDayDto = null; |
| | | int curDay = 1; |
| | | for (int day = 1; day <= maxDay; day++) { |
| | | scDay = new ScheduleClassesDayDto(); |
| | | curDay = day; |
| | | scDay.setDay(day+""); |
| | | //计算 排班 |