Examples of DayType


Examples of net.sf.mpxj.DayType

      List<Project.Calendars.Calendar.WeekDays.WeekDay> dayList = days.getWeekDay();

      for (int loop = 1; loop < 8; loop++)
      {
         DayType workingFlag = bc.getWorkingDay(Day.getInstance(loop));

         if (workingFlag != DayType.DEFAULT)
         {
            Project.Calendars.Calendar.WeekDays.WeekDay day = m_factory.createProjectCalendarsCalendarWeekDaysWeekDay();
            dayList.add(day);
View Full Code Here

Examples of net.sf.mpxj.DayType

            List<Project.Calendars.Calendar.WorkWeeks.WorkWeek.WeekDays.WeekDay> dayList = xmlWeekDays.getWeekDay();

            for (int loop = 1; loop < 8; loop++)
            {
               DayType workingFlag = week.getWorkingDay(Day.getInstance(loop));

               if (workingFlag != DayType.DEFAULT)
               {
                  Project.Calendars.Calendar.WorkWeeks.WorkWeek.WeekDays.WeekDay day = m_factory.createProjectCalendarsCalendarWorkWeeksWorkWeekWeekDaysWeekDay();
                  dayList.add(day);
View Full Code Here

Examples of net.sf.mpxj.DayType

    * @param mpxjDay day of the week
    * @param plannerDay planner day type
    */
   private void setWorkingDay(ProjectCalendar mpxjCalendar, Day mpxjDay, String plannerDay)
   {
      DayType dayType = DayType.DEFAULT;

      if (plannerDay != null)
      {
         switch (getInt(plannerDay))
         {
View Full Code Here

Examples of net.sf.mpxj.planner.schema.DayType

   {
      DayTypes dayTypes = m_factory.createDayTypes();
      calendars.setDayTypes(dayTypes);
      List<DayType> typeList = dayTypes.getDayType();

      DayType dayType = m_factory.createDayType();
      typeList.add(dayType);
      dayType.setId("0");
      dayType.setName("Working");
      dayType.setDescription("A default working day");

      dayType = m_factory.createDayType();
      typeList.add(dayType);
      dayType.setId("1");
      dayType.setName("Nonworking");
      dayType.setDescription("A default non working day");

      dayType = m_factory.createDayType();
      typeList.add(dayType);
      dayType.setId("2");
      dayType.setName("Use base");
      dayType.setDescription("Use day from base calendar");
   }
View Full Code Here

Examples of net.sourceforge.ganttproject.calendar.GPCalendar.DayType

                int startDayOfWeek = c.get(Calendar.DAY_OF_WEEK);
                c.setTime(endDate);
                int endDayOfWeek = c.get(Calendar.DAY_OF_WEEK);
                TaskLength duration = myTaskManager.createLength(timeUnit,
                        startDate, endDate);
                DayType dayType = getTaskManager().getCalendar()
                        .getWeekDayType(startDayOfWeek);
                dayType = getTaskManager().getCalendar().getDayTypeDate(
                        startDate);
                return new DayTypeAlternance(dayType, duration, endDate);
            }
            void createAlternance(TimeUnit timeUnit, TimeFrame timeFrame, List output) {
                DayType startType = null;
                Date startDate = null;
                int unitCount = timeFrame.getUnitCount(timeUnit);
                for (int i=0; i<unitCount; i++) {
                    Date start = timeFrame.getUnitStart(timeUnit, i);
                    c.setTime(start);
                    int startDayOfWeek = c.get(Calendar.DAY_OF_WEEK);
                    DayType dayType = getTaskManager().getCalendar().getWeekDayType(startDayOfWeek);
                    if (startType==null) {
                        startType = dayType;
                        startDate = start;
                    }
                    if (startType!=dayType) {
View Full Code Here

Examples of net.sourceforge.ganttproject.calendar.GPCalendar.DayType

                int startDayOfWeek = c.get(Calendar.DAY_OF_WEEK);
                c.setTime(endDate);
                int endDayOfWeek = c.get(Calendar.DAY_OF_WEEK);
                TaskLength duration = myTaskManager.createLength(timeUnit,
                        startDate, endDate);
                DayType dayType = getTaskManager().getCalendar()
                        .getWeekDayType(startDayOfWeek);
                dayType = getTaskManager().getCalendar().getDayTypeDate(
                        startDate);
                return new DayTypeAlternance(dayType, duration, endDate);
            }
View Full Code Here

Examples of net.sourceforge.ganttproject.calendar.GPCalendar.DayType

                dayType = getTaskManager().getCalendar().getDayTypeDate(
                        startDate);
                return new DayTypeAlternance(dayType, duration, endDate);
            }
            void createAlternance(TimeUnit timeUnit, TimeFrame timeFrame, List output) {
                DayType startType = null;
                Date startDate = null;
                int unitCount = timeFrame.getUnitCount(timeUnit);
                for (int i=0; i<unitCount; i++) {
                    Date start = timeFrame.getUnitStart(timeUnit, i);
                    c.setTime(start);
                    int startDayOfWeek = c.get(Calendar.DAY_OF_WEEK);
                    DayType dayType = getTaskManager().getCalendar().getWeekDayType(startDayOfWeek);
                    if (startType==null) {
                        startType = dayType;
                        startDate = start;
                    }
                    if (startType!=dayType) {
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.