Package clips.delegate.shedule.individual

Examples of clips.delegate.shedule.individual.SheduleIndividualLocal$DaySelector


                } else { //CANCEL
                    throw new ChoosePanelComboException();
                }
            }

            SheduleIndividualLocal newSil = new SheduleIndividualLocal(coll);
            SheduleProrumbleLocal newSpl = new SheduleProrumbleLocal(coll);

            WeekIndex wi = new WeekIndex();
            if (wi.getIndex() < MINWEEKINDEX) {
                wi = new WeekIndex(MINWEEKINDEX);
View Full Code Here


                        throw new ChoosePanelComboException();
                    }
                }               
               
                // init data source
                sil = new SheduleIndividualLocal(collaborator);
                sil.addContentStateListener(getContainer());
               
                // init week buttons
                weekCountCombo.removeActionListener(weekCountComboListener);
                weekCountCombo.setSelectedItem(sil.getWeekCount());
View Full Code Here

        planPlacement.removeAll();
        realPlacement.removeAll();

        SheduleProrumbleLocal spl = new SheduleProrumbleLocal(collaborator);
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        SheduleHelper sh = new SheduleHelper(spl, sil);
       
        SheduledDay sheduledDay = sh.getSheduledDay(new Day(cal.getTimeInMillis()));
        if(!sheduledDay.isWorking()) {
            srl = null;
View Full Code Here

        if(prorumble != null) {
            throw new WeekendException(prorumble.getType().toString());
        }
       
        TimeTableModel tableModel = null;
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        WeekIndex weekIndex = new WeekIndex(day);

        JTimeTable table = new JTimeTable();

        if (sil.daySelector(weekIndex, dayOfWeek).hasNext()) {
            tableModel = new SheduleTemplateTableModel(sil, weekIndex, getAuditManager());
            table.setDay(day);
            System.out.println("TimeTable set day to " + day + " week:" + weekIndex);
        } else {
            WeekIndex planWeekIndex = new WeekIndex(weekIndex.getIndex() % sil.getWeekCount());
            tableModel = new SheduleTemplateTableModel(sil, planWeekIndex, getAuditManager());

            Day planDay = planWeekIndex.getDay(dayOfWeek);
            table.setDay(planDay);
            System.out.println("PlanTimeTable set day to " + planDay + " week:" + planWeekIndex);
View Full Code Here

       
        collaborator = collab;
        fireContainerEventStateChanged();
       
        spl = new SheduleProrumbleLocal(collaborator);
        sil = new SheduleIndividualLocal(collaborator);
        SheduledDay sheduledDay = new SheduleHelper(spl, sil)
                .getSheduledDay(new Day(cal.getTimeInMillis()));
        if(!sheduledDay.isWorking()) {
            srl = null;
            throw new WeekendException(sheduledDay.getDescription());
View Full Code Here

        if(prorumble != null) {
            throw new WeekendException(prorumble.getType().toString());
        }
       
        TimeTableModel tableModel = null;
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        WeekIndex weekIndex = new WeekIndex(day);

        JTimeTable table = new JTimeTable();

        if (sil.daySelector(weekIndex, dayOfWeek).hasNext()) {
            tableModel = new SheduleTemplateTableModel(sil, weekIndex, getAuditManager());
            table.setDay(day);
            System.out.println("TimeTable set day to " + day + " week:" + weekIndex);
        } else {
            WeekIndex planWeekIndex = new WeekIndex(weekIndex.getIndex() % sil.getWeekCount());
            tableModel = new SheduleTemplateTableModel(sil, planWeekIndex, getAuditManager());

            Day planDay = planWeekIndex.getDay(dayOfWeek);
            table.setDay(planDay);
            System.out.println("PlanTimeTable set day to " + planDay + " week:" + planWeekIndex);
View Full Code Here

            data.put("clientFIO", "Пациент: " + item.getClient(am).toString());
            data.put("collabFIO", "Врач: " + item.getCollaborator().getTitle());
            data.put("date", "Дата: " + Converter.dateToString(item.getBegin()));
           
            DayOfWeek dayOfWeek = day.getDayOfWeek();
            SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);           
            WeekIndex weekIndex = new WeekIndex(day);
           
            Iterator<SheduleIndividualData> it = sil.daySelector(weekIndex, dayOfWeek);
           
            if (!it.hasNext()) {
                WeekIndex planWeekIndex = new WeekIndex(weekIndex.getIndex() % sil.getWeekCount());
                it = sil.daySelector(planWeekIndex, dayOfWeek);
            }
           
            DirectoryCabinetItem cabinet = null;
           
            Calendar itemBegin = new GregorianCalendar();
View Full Code Here

TOP

Related Classes of clips.delegate.shedule.individual.SheduleIndividualLocal$DaySelector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.