/// <summary> /// Constructor for building a new object with MaximalConstructor required fields in preparation for insert into database /// </summary> public ProjectExemptReportingYearUpdateSimple(int projectExemptReportingYearUpdateID, int projectUpdateBatchID, int calendarYear) : this() { ProjectExemptReportingYearUpdateID = projectExemptReportingYearUpdateID; ProjectUpdateBatchID = projectUpdateBatchID; CalendarYear = calendarYear; CalendarYearDisplay = MultiTenantHelpers.FormatReportingYear(calendarYear); }
/// <summary> /// Constructor for building a new simple object with the POCO class /// </summary> public ProjectExemptReportingYearUpdateSimple(ProjectExemptReportingYearUpdate projectExemptReportingYearUpdate) : this() { ProjectExemptReportingYearUpdateID = projectExemptReportingYearUpdate.ProjectExemptReportingYearUpdateID; ProjectUpdateBatchID = projectExemptReportingYearUpdate.ProjectUpdateBatchID; CalendarYear = projectExemptReportingYearUpdate.CalendarYear; IsExempt = ModelObjectHelpers.IsRealPrimaryKeyValue(projectExemptReportingYearUpdate.ProjectExemptReportingYearUpdateID); CalendarYearDisplay = MultiTenantHelpers.FormatReportingYear(projectExemptReportingYearUpdate.CalendarYear); }
/// <summary> /// Constructor for building a new simple object with the POCO class /// </summary> public ProjectExemptReportingYearSimple(ProjectExemptReportingYear projectExemptReportingYear) : this() { ProjectExemptReportingYearID = projectExemptReportingYear.ProjectExemptReportingYearID; ProjectID = projectExemptReportingYear.ProjectID; CalendarYear = projectExemptReportingYear.CalendarYear; IsExempt = ModelObjectHelpers.IsRealPrimaryKeyValue(projectExemptReportingYear.ProjectExemptReportingYearID); CalendarYearDisplay = MultiTenantHelpers.FormatReportingYear(projectExemptReportingYear.CalendarYear); }
public CalendarYearString(int calendarYear, AddedDeletedOrRealElement addedDeletedOrRealElement) { CalendarYear = calendarYear; CalendarYearDisplay = MultiTenantHelpers.FormatReportingYear(calendarYear); IsRealEntry = addedDeletedOrRealElement == AddedDeletedOrRealElement.RealElement; AddedDeletedOrRealElement = addedDeletedOrRealElement; switch (AddedDeletedOrRealElement) { case AddedDeletedOrRealElement.AddedElement: DisplayCssClass = HtmlDiffContainer.DisplayCssClassAddedElement; break; case AddedDeletedOrRealElement.DeletedElement: DisplayCssClass = HtmlDiffContainer.DisplayCssClassDeletedElement; break; case AddedDeletedOrRealElement.RealElement: DisplayCssClass = string.Empty; break; default: throw new ArgumentOutOfRangeException(); } }
public string GetCalendarYear() { return(MultiTenantHelpers.FormatReportingYear(CalendarYear)); }
public static string GetCalendarYearDisplay(this PerformanceMeasureReportedValue performanceMeasureReportedValue) { return(MultiTenantHelpers.FormatReportingYear(performanceMeasureReportedValue.CalendarYear)); }
public static string GetPlanningDesignStartYear(this ProjectUpdate projectUpdate) { return(projectUpdate.PlanningDesignStartYear.HasValue ? MultiTenantHelpers.FormatReportingYear(projectUpdate.PlanningDesignStartYear.Value) : null); }