Package clips.delegate.shedule

Examples of clips.delegate.shedule.SheduledDay


                } else {
                    it = sil.daySelector(currentWeekIndex, dayOfWeek);
                }

                Day day = currentWeekIndex.getDay(dayOfWeek);
                SheduledDay sheduledDay = new SheduleHelper(spl, sil).getSheduledDay(day);
                if (!sheduledDay.isWorking()) {
                    String desc = sheduledDay.getDescription();
                    toScreen += (desc == null) ?
                        "Выходной день\n" : "Выходной день:"+ sheduledDay.getDescription() + "\n";
                }

                if (!it.hasNext()) {
                    toScreen += "Нет работ";
                } else {
View Full Code Here


     */
    private void initNewTableModel(DayUI gui, WeekIndex weekIndex, DayOfWeek dayOfWeek,
            SheduleIndividualLocal sil, SheduleProrumbleLocal spl) throws ClipsException {

        Day day = weekIndex.getDay(dayOfWeek);
        SheduledDay sheeduledDay = new SheduleHelper(spl, sil).getSheduledDay(day);
           
        gui.table.setEnabled(true);
        gui.columnName.setText(day + dayOfWeek.getShortTitle());

        ComboOption option = options.get(sheeduledDay.getProrumbleItem());
        Day tableDay = day;
        TimeTableModel tableModel = null;
        boolean tableIsReadOnly = true;

        if(!sheeduledDay.isWorking()) {
            tableModel = new TimeTableModelDefault();

        } else if (!sheeduledDay.isByPlan()) {
            tableModel = new SheduleIndividualExceptionTableModel(sheeduledDay,
                    sil, weekIndex, getAuditManager());
            option = exceptionOption;
            tableIsReadOnly = false;

        } else {
            WeekIndex planWeekIndex = new WeekIndex(weekIndex.getIndex() % sil.getWeekCount());
            tableModel = new SheduleTemplateTableModel(sil, planWeekIndex, getAuditManager());
            tableDay = planWeekIndex.getDay(dayOfWeek);
            option = planOption;
        }


        TimeOffset shiftBegin = sheeduledDay.getClinicShiftBegin();
        TimeOffset shiftEnd = sheeduledDay.getClinicShiftEnd();

        gui.table.setShiftBegin(shiftBegin.getMilliseconds());
        gui.table.setShiftEnd(shiftEnd.getMilliseconds());

        gui.comboBox.setEnabled(sil.canModifyReal());
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());
        }
       
        Day thisDay = new Day(year, month, day);
        initPlanPanel(collab, thisDay, dayOfWeek, scaler, sheduledDay);
        initReceptionPanel(collab, thisDay, scaler, sheduledDay);
View Full Code Here

        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;
            throw new WeekendException(sheduledDay.getDescription());
        }

        Day thisDay = new Day(year, month, day);
        initPlanPanel(collaborator, thisDay, dayOfWeek, scaler, sheduledDay);
        initReceptionPanel(collaborator, thisDay, scaler, sheduledDay);
View Full Code Here

TOP

Related Classes of clips.delegate.shedule.SheduledDay

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.