Package beans.shedule.week

Examples of beans.shedule.week.TimeOffset


        DayOfWeek dayOfWeek = getDayOfWeek(span);
        GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();
        cal.set(2007, 0, dayOfWeek.getEuropean()+1, 0, 0, 0);
        cal.set(Calendar.MILLISECOND, 0);
       
        TimeOffset timeBegin = new TimeOffset((int)((span.getBegin().getTime() - cal.getTimeInMillis()) / (60*1000)));
        swl.setWorkingDay(dayOfWeek, timeBegin, span.getLength());
    }
View Full Code Here


        initComponents();
        this.sil = sil;
        this.weekIndex = weekIndex;
        this.dayOfWeek = dayOfWeek;

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

        initTable(realTable,  shiftBegin, shiftEnd);
        realTable.setDay(weekIndex.getDay(dayOfWeek));
        realTable.setModel(model);
        realTable.setReadOnly(!sil.canModifyReal());
View Full Code Here

        public Object getValueAt(int rowIndex, int col) {
            DayOfWeek dayOfWeek = DayOfWeek.createEurope(col);
            if (swl.isWeekend(dayOfWeek)) {
                return "Выходной день";
            } else {
                TimeOffset begin = swl.getTimeBegin(dayOfWeek);
                TimeOffset end = swl.getTimeEnd(dayOfWeek);
                String timeTxt = String.format("%02d:%02d-%02d:%02d  ",
                        begin.getHours(), begin.getMinutes(), end.getHours(), end.getMinutes());
                return timeTxt;
            }  
        }
View Full Code Here

    private String description;
    List<SheduleIndividualData> data;

    public TimeOffset getClinicShiftEnd() {
        return new TimeOffset(clinicShiftBegin.getRaw() + clinicShiftDuration);
    }
View Full Code Here

    public SheduledDay getSheduledDay(Day day) throws ClipsException {
        SheduledDay res = new SheduledDay();
        //week
        DayOfWeek dow = day.getDayOfWeek();
        TimeOffset timeBegin = swl.getTimeBegin(dow);
        res.setClinicShiftBegin(timeBegin);
        res.setClinicShiftDuration(swl.getTimeEnd(dow).getRaw() - timeBegin.getRaw());
        //Возможно выходной
        if (res.getClinicShiftDuration() == 0) {
            res.setWorking(false);
            res.setDescription("Выходной");
            return res;
View Full Code Here

        getDetails().description = description;
        fireContentStateEvent();
    }

    public TimeOffset getBeginTime() {
        return new TimeOffset(getDetails().beginTime);
    }
View Full Code Here

TOP

Related Classes of beans.shedule.week.TimeOffset

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.