Examples of WeekIndex


Examples of clips.delegate.shedule.individual.WeekIndex

                DayOfWeek dayOfWeek = DayOfWeek.createEurope(columnIndex);
                Iterator<SheduleIndividualData> it;

                if (option == PanelSheduleIndividual.planOption) {
                    int week = currentWeekIndex.getIndex() % sil.getWeekCount();
                    it = sil.daySelector(new WeekIndex(week), dayOfWeek);
                   
                } else {
                    it = sil.daySelector(currentWeekIndex, dayOfWeek);
                }
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

            }

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

            WeekIndex wi = new WeekIndex();
            if (wi.getIndex() < MINWEEKINDEX) {
                wi = new WeekIndex(MINWEEKINDEX);
            }
            switchToWeek(wi, newSil, newSpl);

            // get DELEGATE
            sil = newSil;
            sil.addContentStateListener(getContainer());
            // get DELEGATE
            spl = newSpl;
            spl.addContentStateListener(getContainer());

            for (int i = 0; i < dayUI.length; i++) {
                dayUI[i].comboBox.setEnabled(true);
            }

            //update current week index panel
            WeekIndex todayWeekIndex = new WeekIndex();
            Integer week = Math.abs(todayWeekIndex.getIndex() % sil.getWeekCount()) + 1;
            currentWeekTextfield.setText(week.toString());
            weeks.doLayout();
            currentWeekPanel.doLayout();
           
            fireContainerEventStateChanged();
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

                    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();
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

    }// </editor-fold>//GEN-END:initComponents

    private void prevousWeekBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevousWeekBtnActionPerformed
        if (currentWeekIndex.getIndex() - 1 >= MINWEEKINDEX) {
            try {
                changeWeek(new WeekIndex(currentWeekIndex.getIndex() - 1));
            } catch (Exception ex) {
                MessageBox.showExceptionOnly(ex);
            }
        }
    }//GEN-LAST:event_prevousWeekBtnActionPerformed
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

        }
    }//GEN-LAST:event_prevousWeekBtnActionPerformed

    private void nextWeekBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextWeekBtnActionPerformed
        try {
            changeWeek(new WeekIndex(currentWeekIndex.getIndex() + 1));//GEN-LAST:event_nextWeekBtnActionPerformed
        } catch (Exception ex) {
            MessageBox.showExceptionOnly(ex);
        }
    }
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

            start = MINWEEKINDEX;
        }

        JPopupMenu menu = new JPopupMenu();
        for (int i = start; i < start + 14; i++) {
            WeekIndex index = new WeekIndex(i);
            JMenuItem item = new JMenuItem(index.toString());
            item.addActionListener(new WeekMenuListener(index));
            menu.add(item);
        }

        //Point pt = currentWeekBtn.getLocationOnScreen();
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

     * @param weekIndex
     */
    private void changeWeek(WeekIndex weekIndex) throws ClipsException {
        try {
            if (weekIndex.getIndex() < MINWEEKINDEX) {
                weekIndex = new WeekIndex(MINWEEKINDEX);
            }
            if (currentWeekIndex.getIndex() == weekIndex.getIndex()) {
                return;
            }

View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

            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);
        }

        JTableRuler ruler = new JTableRuler(scaler);
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

            for(int i=0; i<weekCount; i++) {
                buttonPanel.add(buttons.get(i));
                buttons.get(i).setSelected(i==0);
            }
           
            currentWeekIndex = new WeekIndex(0);

            weekCountCombo.invalidate();
            buttonPanel.invalidate();
            weeks.invalidate();
            weekPanel.invalidate();
View Full Code Here

Examples of clips.delegate.shedule.individual.WeekIndex

            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);
        }

        JTableRuler ruler = new JTableRuler(scaler);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.