public DefaultSettings(string identifier, TimeSetting timeSetting, int timeTickInMinutes) { _id = identifier; _time = timeSetting; _timeTickInMinutes = timeTickInMinutes; }
public bool isEqual(TimeSetting timeSetting) { if (Start != timeSetting.Start) { return(false); } if (End != timeSetting.End) { return(false); } if (LunchStart != timeSetting.LunchStart) { return(false); } if (LunchEnd != timeSetting.LunchEnd) { return(false); } if (OtherHours != timeSetting.OtherHours) { return(false); } return(true); }
public TimeSetting(TimeSetting timeSetting) { _start = new Time(timeSetting.Start); _end = new Time(timeSetting.End); _lunchStart = new Time(timeSetting.LunchStart); _lunchEnd = new Time(timeSetting.LunchEnd); _otherHours = new Time(timeSetting.OtherHours); }
public ListingItem(Listing listing, int day, string locality, Time start, Time end, Time lunchStart, Time lunchEnd, Time otherHours) { _date = new DateTime(listing.Year, listing.Month, day); _day = day; _locality = locality; _timeSetting = new TimeSetting(start, end, lunchStart, lunchEnd, otherHours); }
public DefaultSettings(string identifier) { _id = identifier; Time = new TimeSetting( new Time("06:00"), new Time("14:30"), new Time("10:30"), new Time("11:00"), new Time("00:00") ); TimeTickInMinutes = 5; Pdfsetting = new DefaultListingPdfReportSetting(); }
public DayItem(Listing listing, int day) { _listing = listing; _year = listing.Year; _month = listing.Month; _day = day; _date = new DateTime(_year, _month, day); _week = PrepareWeek(_year, _month, _day); ListingItem item = listing.GetItemByDay(day); if (item != null) { _listingItem = item; Locality = item.Locality; _timeSetting = item.TimeSetting; } }
public ListingItem ReplaceItem(int day, string locality, TimeSetting timeSetting) { return(ReplaceItem(day, locality, timeSetting.Start, timeSetting.End, timeSetting.LunchStart, timeSetting.LunchEnd, timeSetting.OtherHours)); }