public PerformanceMeasureReportingPeriodSubcategoryOptionReportedValue(int calendarYear,
                                                                        PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, double?reportedValue) :
     this(calendarYear, reportedValue, performanceMeasureSubcategoryOption.SortOrder ?? 0,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionID,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategory,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionName,
          performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionName)
 {
 }
 /// <summary>
 /// Constructor for building a new simple object with the POCO class
 /// </summary>
 public PerformanceMeasureSubcategoryOptionSimple(PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption)
     : this()
 {
     PerformanceMeasureSubcategoryOptionID   = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionID;
     PerformanceMeasureSubcategoryID         = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryID;
     PerformanceMeasureSubcategoryOptionName = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionName;
     SortOrder            = performanceMeasureSubcategoryOption.SortOrder;
     HasAssociatedActuals = performanceMeasureSubcategoryOption.HasDependentObjects();
     ShowOnFactSheet      = performanceMeasureSubcategoryOption.ShowOnFactSheet;
 }
 public ReportingCategoryForDisplay(PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption)
 {
     PerformanceMeasureSubcategoryOptionID = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionID;
     DisplayName = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionName;
     SortOrder   = performanceMeasureSubcategoryOption.SortOrder ?? 0;
 }
 public static void DeletePerformanceMeasureSubcategoryOption(this IQueryable <PerformanceMeasureSubcategoryOption> performanceMeasureSubcategoryOptions, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOptionToDelete)
 {
     DeletePerformanceMeasureSubcategoryOption(performanceMeasureSubcategoryOptions, new List <PerformanceMeasureSubcategoryOption> {
         performanceMeasureSubcategoryOptionToDelete
     });
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static PerformanceMeasureActualSubcategoryOptionUpdate CreateNewBlank(PerformanceMeasureActualUpdate performanceMeasureActualUpdate, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory)
 {
     return(new PerformanceMeasureActualSubcategoryOptionUpdate(performanceMeasureActualUpdate, performanceMeasureSubcategoryOption, performanceMeasure, performanceMeasureSubcategory));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public PerformanceMeasureActualSubcategoryOptionUpdate(PerformanceMeasureActualUpdate performanceMeasureActualUpdate, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.PerformanceMeasureActualSubcategoryOptionUpdateID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.PerformanceMeasureActualUpdateID = performanceMeasureActualUpdate.PerformanceMeasureActualUpdateID;
     this.PerformanceMeasureActualUpdate   = performanceMeasureActualUpdate;
     performanceMeasureActualUpdate.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this);
     this.PerformanceMeasureSubcategoryOptionID = performanceMeasureSubcategoryOption.PerformanceMeasureSubcategoryOptionID;
     this.PerformanceMeasureSubcategoryOption   = performanceMeasureSubcategoryOption;
     performanceMeasureSubcategoryOption.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this);
     this.PerformanceMeasureID = performanceMeasure.PerformanceMeasureID;
     this.PerformanceMeasure   = performanceMeasure;
     performanceMeasure.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this);
     this.PerformanceMeasureSubcategoryID = performanceMeasureSubcategory.PerformanceMeasureSubcategoryID;
     this.PerformanceMeasureSubcategory   = performanceMeasureSubcategory;
     performanceMeasureSubcategory.PerformanceMeasureActualSubcategoryOptionUpdates.Add(this);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static PerformanceMeasureExpectedSubcategoryOption CreateNewBlank(PerformanceMeasureExpected performanceMeasureExpected, PerformanceMeasureSubcategoryOption performanceMeasureSubcategoryOption, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory)
 {
     return(new PerformanceMeasureExpectedSubcategoryOption(performanceMeasureExpected, performanceMeasureSubcategoryOption, performanceMeasure, performanceMeasureSubcategory));
 }