コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
        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();
            }
        }
コード例 #5
0
 public string GetCalendarYear()
 {
     return(MultiTenantHelpers.FormatReportingYear(CalendarYear));
 }
 public static string GetCalendarYearDisplay(this PerformanceMeasureReportedValue performanceMeasureReportedValue)
 {
     return(MultiTenantHelpers.FormatReportingYear(performanceMeasureReportedValue.CalendarYear));
 }
コード例 #7
0
 public static string GetPlanningDesignStartYear(this ProjectUpdate projectUpdate)
 {
     return(projectUpdate.PlanningDesignStartYear.HasValue ? MultiTenantHelpers.FormatReportingYear(projectUpdate.PlanningDesignStartYear.Value) : null);
 }