Package clips.delegate.shedule.prorumble

Examples of clips.delegate.shedule.prorumble.SheduleProrumbleData


            try {
                System.out.println(" Viewing collab: " + collab.toString());
                prorumbleSelector = prorumbleLocal.iterator(year, month);//берём селектор за текущий период

                for (int i = 0; i < prorumbleSelector.size(); i++) {//и переложим данные в мап, где ключ - день
                    SheduleProrumbleData spd = prorumbleSelector.get(i);
                    prorumbleMap.put(spd.getDay().getDay(), spd);
                }

                TableModelProrumble modelProrumble = new TableModelProrumble(prorumbleMap, size);//созлаём модель
                tblProrumble.setModel(modelProrumble);//ставим её в таблицу
View Full Code Here


     * @param days массив номеров дней в месяце (0..N)
     */
    private void removeProrumbleDays(int[] days){
        ArrayList<SheduleProrumbleData> listToRemove = new ArrayList<SheduleProrumbleData>();
        for (int i = 0; i<days.length; i++){
            SheduleProrumbleData prorumbleData = prorumbleMap.get(days[i]+1);
            if (prorumbleData != null){
                listToRemove.add(prorumbleData);
                System.out.println("Prorumble will be deleted: " + prorumbleData);
            }
        }
View Full Code Here

     * @throws cli_fmw.delegate.exception.ClipsException
     */
    @SuppressWarnings("unchecked")
    private void addProrumbleDay(int day, DirectoryProrumbleItem type) throws ClipsException {
        if (type != null) {
            SheduleProrumbleData data = new SheduleProrumbleData(collab);
            data.setDay(new Day(year, month-1, day));
            data.setType(type);
            prorumbleSelector.append(data);
            update();
        }
    }
View Full Code Here

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        if (columnIndex == CL_DAY){
            return rowIndex+1;
        } else {
            SheduleProrumbleData d  = prorumbleMap.get(rowIndex+1);
            if(d == null) {
                return null;
            }
            try {
                return d.getType();
            } catch (ClipsException ex) {
                return "Ошибка";
            }
        }
    }
View Full Code Here

     */
    private void initPlanPanel(DirectoryCollaboratorItem collaborator,
            Day day, DayOfWeek dayOfWeek, TimeScaler scaler, SheduledDay di) throws ClipsException {

        SheduleProrumbleLocal spl = new SheduleProrumbleLocal(collaborator);
        SheduleProrumbleData prorumble = spl.getProrumble(day);
       
        if(prorumble != null) {
            throw new WeekendException(prorumble.getType().toString());
        }
       
        TimeTableModel tableModel = null;
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        WeekIndex weekIndex = new WeekIndex(day);
View Full Code Here

     */
    private void initPlanPanel(DirectoryCollaboratorItem collaborator,
            Day day, DayOfWeek dayOfWeek, TimeScaler scaler, SheduledDay di) throws ClipsException {

        SheduleProrumbleLocal spl = new SheduleProrumbleLocal(collaborator);
        SheduleProrumbleData prorumble = spl.getProrumble(day);
       
        if(prorumble != null) {
            throw new WeekendException(prorumble.getType().toString());
        }
       
        TimeTableModel tableModel = null;
        SheduleIndividualLocal sil = new SheduleIndividualLocal(collaborator);
        WeekIndex weekIndex = new WeekIndex(day);
View Full Code Here

                return;
            }
           
            try {
                Day day = currentWeekIndex.getDay(dayOfWeek);
                SheduleProrumbleData data = spl.getProrumble(day);

                if (option == exceptionOption) {
                    WeekIndex planweekIndex = new WeekIndex(currentWeekIndex.getIndex() % sil.getWeekCount());
                    sil.copyWorksWithOverwrite(planweekIndex, dayOfWeek, currentWeekIndex, dayOfWeek);
                    if (data != null) {
                        spl.iterator(day.getYear(), day.getMonth() + 1).remove(data);
                    }
                } else if (option == planOption) {
                    sil.deleteWorks(currentWeekIndex, dayOfWeek);
                    if (data != null) {
                        spl.iterator(day.getYear(), day.getMonth() + 1).remove(data);
                    }
                } else {
                    /* prorumble*/
                    sil.deleteWorks(currentWeekIndex, dayOfWeek);
                    if (data == null) {
                        data = new SheduleProrumbleData(sil.getCollaborator());
                        data.setDay(day);
                        spl.iterator(day.getYear(), day.getMonth() + 1).append(data);
                    }
                    data.setType(option.getProrumbleType());
                }
                initNewTableModel(dayUI[dayOfWeek.getEuropean()],
                        currentWeekIndex, dayOfWeek, sil, spl);
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
View Full Code Here

            res.setWorking(false);
            res.setDescription("Выходной");
            return res;
        }
        //prorumble
        SheduleProrumbleData prorumble = spl.getProrumble(day);
        if (prorumble != null) {
            res.setWorking(false);
            res.setDescription(prorumble.toString());
            res.setProrumbleItem(prorumble.getType());
            return res;
        }

        //Получаем расписание врача за текущую неделю (только работы указанного типа)
        //если нет работ - значит врач работает по шаблону, идем дальше
View Full Code Here

TOP

Related Classes of clips.delegate.shedule.prorumble.SheduleProrumbleData

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.