public List <GoogleChartJson> GetGoogleChartJsonDictionary(List <Project> projects) { var reportedValues = GetProjectPerformanceMeasureSubcategoryOptionReportedValues(this, projects); var googleChartJsons = PerformanceMeasureSubcategory.MakeGoogleChartJsons(this, reportedValues); return(googleChartJsons); }
public PerformanceMeasureValueSubcategoryOption(int primaryKey, int performanceMeasureSubcategoryOptionID, PerformanceMeasure performanceMeasure, PerformanceMeasureSubcategory performanceMeasureSubcategory) { PrimaryKey = primaryKey; PerformanceMeasureSubcategoryOptionID = performanceMeasureSubcategoryOptionID; PerformanceMeasure = performanceMeasure; PerformanceMeasureSubcategory = performanceMeasureSubcategory; }
/// <summary> /// Constructor for building a new simple object with the POCO class /// </summary> public PerformanceMeasureSubcategorySimple(PerformanceMeasureSubcategory performanceMeasureSubcategory) : this() { PerformanceMeasureSubcategoryID = performanceMeasureSubcategory.PerformanceMeasureSubcategoryID; PerformanceMeasureID = performanceMeasureSubcategory.PerformanceMeasureID; PerformanceMeasureSubcategoryDisplayName = performanceMeasureSubcategory.PerformanceMeasureSubcategoryDisplayName; ShowOnChart = performanceMeasureSubcategory.ShowOnChart; PerformanceMeasureSubcategoryOptions = performanceMeasureSubcategory.PerformanceMeasureSubcategoryOptions.ToList().Select(x => new PerformanceMeasureSubcategoryOptionSimple(x)).ToList(); }
public VirtualPerformanceMeasureValueSubcategoryOption( PerformanceMeasureSubcategory performanceMeasureSubcategory) { PerformanceMeasureSubcategoryOptionID = ModelObjectHelpers.NotYetAssignedID; PerformanceMeasureSubcategory = performanceMeasureSubcategory; PerformanceMeasure = PerformanceMeasureSubcategory.PerformanceMeasure; PerformanceMeasureSubcategoryOptionName = performanceMeasureSubcategory.PerformanceMeasureSubcategoryDisplayName; }
/// <summary> /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible /// </summary> public PerformanceMeasureSubcategoryOption(PerformanceMeasureSubcategory performanceMeasureSubcategory, string performanceMeasureSubcategoryOptionName, bool showOnFactSheet) : this() { // Mark this as a new object by setting primary key with special value this.PerformanceMeasureSubcategoryOptionID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue(); this.PerformanceMeasureSubcategoryID = performanceMeasureSubcategory.PerformanceMeasureSubcategoryID; this.PerformanceMeasureSubcategory = performanceMeasureSubcategory; performanceMeasureSubcategory.PerformanceMeasureSubcategoryOptions.Add(this); this.PerformanceMeasureSubcategoryOptionName = performanceMeasureSubcategoryOptionName; this.ShowOnFactSheet = showOnFactSheet; }
private PerformanceMeasureReportingPeriodSubcategoryOptionReportedValue(int calendarYear, double?reportedValue, int sortOrder, int performanceMeasureSubcategoryOptionID, PerformanceMeasureSubcategory performanceMeasureSubcategory, string performanceMeasureSubcategoryOptionName, string chartName) { PerformanceMeasureReportingPeriod = new PerformanceMeasureReportingPeriod(performanceMeasureSubcategory.PerformanceMeasure, new DateTime(calendarYear, 1, 1), calendarYear.ToString()) { PerformanceMeasureReportingPeriodID = calendarYear }; ReportedValue = reportedValue; SortOrder = sortOrder; PerformanceMeasureSubcategoryOptionID = performanceMeasureSubcategoryOptionID; PerformanceMeasureSubcategory = performanceMeasureSubcategory; PerformanceMeasureSubcategoryOptionName = performanceMeasureSubcategoryOptionName; ChartName = chartName; }
/// <summary> /// Creates a "blank" object of this type and populates primitives with defaults /// </summary> public static PerformanceMeasureSubcategoryOption CreateNewBlank(PerformanceMeasureSubcategory performanceMeasureSubcategory) { return(new PerformanceMeasureSubcategoryOption(performanceMeasureSubcategory, default(string), default(bool))); }
public static void DeletePerformanceMeasureSubcategory(this IQueryable <PerformanceMeasureSubcategory> performanceMeasureSubcategories, PerformanceMeasureSubcategory performanceMeasureSubcategoryToDelete) { DeletePerformanceMeasureSubcategory(performanceMeasureSubcategories, new List <PerformanceMeasureSubcategory> { performanceMeasureSubcategoryToDelete }); }
/// <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); }
public PerformanceMeasureReportingPeriodSubcategoryOptionReportedValue(int calendarYear, double reportedValue, PerformanceMeasureSubcategory performanceMeasureSubcategory, string performanceMeasureSubcategoryOptionName) : this(calendarYear, reportedValue, ModelObjectHelpers.NotYetAssignedID, ModelObjectHelpers.NotYetAssignedID, performanceMeasureSubcategory, performanceMeasureSubcategoryOptionName, performanceMeasureSubcategoryOptionName) { }
/// <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)); }