public bool ArePurchaseHoursInRangeForReport(ReportDate myReportDate, DateTime purchaseStartingHour, DateTime purchaseFinishingHour) { return((purchaseStartingHour.TimeOfDay <= myReportDate.StartingHour.TimeOfDay && purchaseFinishingHour.TimeOfDay >= myReportDate.StartingHour.TimeOfDay) || (purchaseStartingHour.TimeOfDay <= myReportDate.FinishingHour.TimeOfDay && purchaseFinishingHour.TimeOfDay >= myReportDate.FinishingHour.TimeOfDay) || (purchaseStartingHour.TimeOfDay >= myReportDate.StartingHour.TimeOfDay && purchaseFinishingHour.TimeOfDay <= myReportDate.FinishingHour.TimeOfDay)); }
public bool IsPurchaseDateInRangeForReport(ReportDate myReportDate, DateTime purchaseDate) { return(purchaseDate.Date >= myReportDate.StartingDate.Date && purchaseDate.Date <= myReportDate.FinishingDate.Date); }
public bool IsChosenSDateEarlierThanChosenFDate(ReportDate myReportDate) { return(myReportDate.StartingDate.Date <= myReportDate.FinishingDate.Date); }
public bool IsChosenSHEarlierThanChosenFH(ReportDate myReportDate) { return(myReportDate.StartingHour.TimeOfDay <= myReportDate.FinishingHour.TimeOfDay); }