Class WorkTypeTime


  • public class WorkTypeTime
    extends java.lang.Object
    • Constructor Detail

      • WorkTypeTime

        public WorkTypeTime()
      • WorkTypeTime

        public WorkTypeTime​(boolean isDynamic,
                            int workTypeId,
                            int timeFrom,
                            int timeTo,
                            java.lang.String comment)
    • Method Detail

      • getComment

        public java.lang.String getComment()
      • setComment

        public void setComment​(java.lang.String comment)
      • getWorkTypeId

        public int getWorkTypeId()
      • setWorkTypeId

        public void setWorkTypeId​(int workTypeId)
      • getDayMinuteFrom

        public int getDayMinuteFrom()
      • setDayMinuteFrom

        public void setDayMinuteFrom​(int timeFrom)
      • getDayMinuteTo

        public int getDayMinuteTo()
      • setDayMinuteTo

        public void setDayMinuteTo​(int timeTo)
      • minutesToHourMin

        public static final java.lang.String minutesToHourMin​(int minutes)
      • getFormatedTimeFrom

        public java.lang.String getFormatedTimeFrom()
      • getFormatedTimeTo

        public java.lang.String getFormatedTimeTo()
      • isDynamic

        public boolean isDynamic()
      • getIsDynamic

        public boolean getIsDynamic()
      • setDynamic

        public void setDynamic​(boolean isDynamic)
      • createFromString

        public static final java.util.List<WorkTypeTime> createFromString​(java.lang.String config)
      • setNextDays

        public static final void setNextDays​(java.util.List<WorkTypeTime> workTimes)
      • getWorkMinutesInDay

        public int getWorkMinutesInDay​(WorkType type,
                                       java.util.Date dateStart,
                                       java.util.Date inDate)
      • getMinutesInDay

        public int getMinutesInDay​(WorkType type,
                                   java.util.Date dateStart,
                                   java.util.Date inDate,
                                   boolean onlyWork)
      • getWorkMinutesInDay

        public static int getWorkMinutesInDay​(java.util.List<WorkTypeTime> workTypeTimeList,
                                              java.util.Date dateStart,
                                              java.util.Date inDate)