public PerformanceMeasureActualSubcategoryOptionSimple(PerformanceMeasureValueSubcategoryOption performanceMeasureActualSubcategoryOption, PerformanceMeasureExpected performanceMeasureExpected)
     : this(
         performanceMeasureActualSubcategoryOption.PrimaryKey,
         -1,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryOptionID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasure.PerformanceMeasureID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategory.PerformanceMeasureSubcategoryID)
 {
 }
 public PerformanceMeasureActualSubcategoryOptionSimple(PerformanceMeasureValueSubcategoryOption performanceMeasureActualSubcategoryOption, PerformanceMeasureActual performanceMeasureActual)
     : this(
         performanceMeasureActualSubcategoryOption.PrimaryKey,
         performanceMeasureActual.PerformanceMeasureActualID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryOptionID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryID)
 {
 }
 /// <summary>
 /// Constructor for building a new simple object with the POCO class
 /// </summary>
 public PerformanceMeasureActualUpdateSimple(PerformanceMeasureActualUpdate performanceMeasureActualUpdate) : this()
 {
     PerformanceMeasureActualUpdateID = performanceMeasureActualUpdate.PerformanceMeasureActualUpdateID;
     ProjectUpdateBatchID             = performanceMeasureActualUpdate.ProjectUpdateBatchID;
     PerformanceMeasureID             = performanceMeasureActualUpdate.PerformanceMeasureID;
     CalendarYear = performanceMeasureActualUpdate.CalendarYear;
     ActualValue  = performanceMeasureActualUpdate.ActualValue;
     PerformanceMeasureActualSubcategoryOptionUpdates = PerformanceMeasureValueSubcategoryOption.GetAllPossibleSubcategoryOptions(performanceMeasureActualUpdate);
 }
 public PerformanceMeasureExpectedSubcategoryOptionSimple(PerformanceMeasureValueSubcategoryOption performanceMeasureExpectedSubcategoryOption,
                                                          PerformanceMeasureExpectedUpdate performanceMeasureExpectedUpdate)
     : this(
         performanceMeasureExpectedSubcategoryOption.PrimaryKey,
         performanceMeasureExpectedUpdate.PerformanceMeasureExpectedUpdateID,
         performanceMeasureExpectedSubcategoryOption.PerformanceMeasureSubcategoryOptionID,
         performanceMeasureExpectedSubcategoryOption.PerformanceMeasure.PerformanceMeasureID,
         performanceMeasureExpectedSubcategoryOption.PerformanceMeasureSubcategory.PerformanceMeasureSubcategoryID)
 {
 }
 public PerformanceMeasureActualSubcategoryOptionUpdateSimple(PerformanceMeasureValueSubcategoryOption performanceMeasureActualSubcategoryOption,
                                                              PerformanceMeasureActualUpdate performanceMeasureActualUpdate)
     : this(
         performanceMeasureActualSubcategoryOption.PrimaryKey,
         performanceMeasureActualUpdate.PerformanceMeasureActualUpdateID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryOptionID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureID,
         performanceMeasureActualSubcategoryOption.PerformanceMeasureSubcategoryID)
 {
 }
 /// <summary>
 /// Constructor for building a new simple object with the POCO class
 /// </summary>
 public PerformanceMeasureActualSimple(PerformanceMeasureActual performanceMeasureActual)
     : this()
 {
     PerformanceMeasureActualID = performanceMeasureActual.PerformanceMeasureActualID;
     ProjectID            = performanceMeasureActual.ProjectID;
     PerformanceMeasureID = performanceMeasureActual.PerformanceMeasureID;
     CalendarYear         = performanceMeasureActual.CalendarYear;
     ActualValue          = performanceMeasureActual.ActualValue;
     PerformanceMeasureActualSubcategoryOptions = PerformanceMeasureValueSubcategoryOption.GetAllPossibleSubcategoryOptions(performanceMeasureActual);
 }
 /// <summary>
 /// Constructor for building a new simple object with the POCO class
 /// </summary>
 public PerformanceMeasureExpectedSimple(PerformanceMeasureExpectedUpdate performanceMeasureExpected)
     : this()
 {
     PerformanceMeasureExpectedID = performanceMeasureExpected.PerformanceMeasureExpectedUpdateID;
     DisplayName = performanceMeasureExpected.PerformanceMeasure.PerformanceMeasureDisplayName;
     DefinitionAndGuidanceUrl = performanceMeasureExpected.PerformanceMeasure.GetDefinitionAndGuidanceUrl();
     PerformanceMeasureID     = performanceMeasureExpected.PerformanceMeasureID;
     ExpectedValue            = performanceMeasureExpected.ExpectedValue;
     PerformanceMeasureExpectedSubcategoryOptions = PerformanceMeasureValueSubcategoryOption.GetAllPossibleSubcategoryOptions(performanceMeasureExpected);
 }
示例#8
0
        public PerformanceMeasureActualUpdateSimple(PerformanceMeasureExpectedUpdate performanceMeasureExpectedUpdate, int calendarYear, int performanceMeasureActualIdToUse)
            : this()
        {
            var reportingPeriods =
                HttpRequestStorage.DatabaseEntities.PerformanceMeasureReportingPeriods.Where(x =>
                                                                                             x.PerformanceMeasureReportingPeriodCalendarYear == calendarYear).ToList();
            var reportingPeriod = reportingPeriods.Single();

            PerformanceMeasureActualUpdateID = performanceMeasureActualIdToUse;
            ProjectUpdateBatchID             = performanceMeasureExpectedUpdate.ProjectUpdateBatchID;
            PerformanceMeasureID             = performanceMeasureExpectedUpdate.PerformanceMeasureID;
            CalendarYear = calendarYear;
            ActualValue  = null;
            PerformanceMeasureActualSubcategoryOptionUpdates = PerformanceMeasureValueSubcategoryOption.GetAllPossibleSubcategoryOptionsToActual(performanceMeasureExpectedUpdate);
            PerformanceMeasureReportingPeriodID = reportingPeriod.PerformanceMeasureReportingPeriodID;
        }
示例#9
0
        public PerformanceMeasureActualSimple(PerformanceMeasureExpected performanceMeasureExpected, int calendarYear, int decrementingPerformanceMeasureActual)
            : this()
        {
            var reportingPeriods =
                HttpRequestStorage.DatabaseEntities.PerformanceMeasureReportingPeriods.Where(x =>
                                                                                             x.PerformanceMeasureReportingPeriodCalendarYear == calendarYear).ToList();
            var reportingPeriod = reportingPeriods.Single();

            PerformanceMeasureActualID = decrementingPerformanceMeasureActual;
            ProjectID            = performanceMeasureExpected.ProjectID;
            PerformanceMeasureID = performanceMeasureExpected.PerformanceMeasureID;
            CalendarYear         = calendarYear;
            ActualValue          = null;
            PerformanceMeasureActualSubcategoryOptions = PerformanceMeasureValueSubcategoryOption.GetAllPossibleSubcategoryOptionsToActual(performanceMeasureExpected);
            PerformanceMeasureReportingPeriodID        = reportingPeriod.PerformanceMeasureReportingPeriodID;
        }