Package com.projectlibre.pm.calendar

Examples of com.projectlibre.pm.calendar.WorkWeek


      }
    }   
   
    //work weeks
    OpenprojRangeConverter rangeConverter=new OpenprojRangeConverter();
    WorkWeek week=calendar.getWeek();
    WorkDay day;
    com.projity.pm.calendar.WorkDay openprojDay;
    for (int i=0; i<7; i++){
      day=week.getDay(i);
      if (day==null){
        openprojDay=null;
        if (calendar.getBase()==null &&
            openprojStandardCalendar.getWeekDay(i).isWorking())
          openprojDay=com.projity.pm.calendar.WorkDay.getNonWorkingDay();       
View Full Code Here


      calendar.setBase(baseCalendar);
    }
   
   
    //work weeks
    WorkWeek week=new WorkWeek();
    calendar.setWeek(week);
    MpxRangeConverter rangeConverter=new MpxRangeConverter();
    for (int i=0; i<7; i++) {
      Day mpxDayId=Day.getInstance(i+1);
      ProjectCalendarHours mpxDay=mpxCalendar.getCalendarHours(mpxDayId);
      net.sf.mpxj.DayType mpxDayType=mpxCalendar.getWorkingDay(mpxDayId);
      WorkDay day=null;
      if (mpxDay == null) {
        if (mpxCalendar.isDerived() &&
              mpxBaseCalendar!=null &&
              mpxBaseCalendar.isWorkingDay(mpxDayId))
          day = WorkDay.getNonWorkingDay();       
      } else {
        day=new WorkDay(DayType.getInstance(mpxDayType.getValue()));
        rangeConverter.from(mpxDay,day);
      }
      week.setDay(i,day);
    }
   
    //exceptions
    MpxExceptionConverter exceptionConverter=new MpxExceptionConverter();
    for (ProjectCalendarException mpxException : mpxCalendar.getCalendarExceptions()){
View Full Code Here

TOP

Related Classes of com.projectlibre.pm.calendar.WorkWeek

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.