//Proxy NSO Output
        public static ProxyNSOOutput SingleConvertToProxyNSOOutput(new_nsooutput output)
        {
            ProxyNSOOutput proxy = new ProxyNSOOutput();

            proxy.AchievedByYear            = EnsureValueFromOptionSet(output, "new_achievedbyyear");
            proxy.ActionTaken               = output.new_Outp_ProposedActionTaken;
            proxy.AssessmentOfCurrentStatus = output.new_Outp_AssessmentofCurrentStatus;
            proxy.Assumptions               = output.new_Outp_Assumptions;
            proxy.BaselineValue             = output.new_Outp_BaselineValue;
            proxy.BaselineYear              = EnsureValueFromOptionSet(output, "new_baselineyear");
            proxy.Classification            = EnsureValueFromOptionSet(output, "new_outp_classification");
            proxy.AchievementValue          = output.new_Outp_AchievementValue;
            proxy.CumulativeValue           = output.new_Outp_CumulativeValue;
            proxy.Date                          = output.new_Outp_Date;
            proxy.ID                            = output.Id;
            proxy.OutputNo                      = output.new_name;
            proxy.OutputStatement               = output.new_OutputStatement;
            proxy.Indicators                    = output.new_Outp_Indicators;
            proxy.ModifiedOn                    = output.ModifiedOn;
            proxy.PerformanceTargets            = output.new_Outp_PerformanceTargets;
            proxy.Problems                      = output.new_Outp_Problems;
            proxy.ProgressStatus                = output.new_Outp_ProgressStatus;
            proxy.RecentDevelopment             = output.new_Outp_RecentDevelopment;
            proxy.ReportingEndDate              = output.new_Outp_ReportingEndDate;
            proxy.ReportingStartDate            = output.new_Outp_ReportingStartDate;
            proxy.RiskAssessmentOfCurrentStatus = output.new_Outp_RisksAssessmentofCurrentStatus;
            proxy.Risks                         = output.new_Outp_Risks;
            proxy.UnitOfMeasurement             = EnsureValueFromOptionSet(output, "new_outp_unitofmeasurement");
            proxy.Value                         = output.new_Outp_Value;
            proxy.OpportunityID                 = output.new_opportunity_new_nsooutput != null ? output.new_opportunity_new_nsooutput.Id : Guid.Empty;
            proxy.OpportunityIDString           = proxy.OpportunityID.ToString();
            return(proxy);
        }
 //Proxy NSO Output
 public static ProxyNSOOutput SingleConvertToProxyNSOOutput(new_nsooutput output)
 {
     ProxyNSOOutput proxy = new ProxyNSOOutput();
     proxy.AchievedByYear = EnsureValueFromOptionSet(output, "new_achievedbyyear");
     proxy.ActionTaken = output.new_Outp_ProposedActionTaken;
     proxy.AssessmentOfCurrentStatus = output.new_Outp_AssessmentofCurrentStatus;
     proxy.Assumptions = output.new_Outp_Assumptions;
     proxy.BaselineValue = output.new_Outp_BaselineValue;
     proxy.BaselineYear = EnsureValueFromOptionSet(output, "new_baselineyear");
     proxy.Classification = EnsureValueFromOptionSet(output, "new_outp_classification");
     proxy.AchievementValue = output.new_Outp_AchievementValue;
     proxy.CumulativeValue = output.new_Outp_CumulativeValue;
     proxy.Date = output.new_Outp_Date;
     proxy.ID = output.Id;
     proxy.OutputNo = output.new_name;
     proxy.OutputStatement = output.new_OutputStatement;
     proxy.Indicators = output.new_Outp_Indicators;
     proxy.ModifiedOn = output.ModifiedOn;
     proxy.PerformanceTargets = output.new_Outp_PerformanceTargets;
     proxy.Problems = output.new_Outp_Problems;
     proxy.ProgressStatus = output.new_Outp_ProgressStatus;
     proxy.RecentDevelopment = output.new_Outp_RecentDevelopment;
     proxy.ReportingEndDate = output.new_Outp_ReportingEndDate;
     proxy.ReportingStartDate = output.new_Outp_ReportingStartDate;
     proxy.RiskAssessmentOfCurrentStatus = output.new_Outp_RisksAssessmentofCurrentStatus;
     proxy.Risks = output.new_Outp_Risks;
     proxy.UnitOfMeasurement = EnsureValueFromOptionSet(output, "new_outp_unitofmeasurement");
     proxy.Value = output.new_Outp_Value;
     proxy.OpportunityID = output.new_opportunity_new_nsooutput != null ? output.new_opportunity_new_nsooutput.Id : Guid.Empty;
     proxy.OpportunityIDString = proxy.OpportunityID.ToString();
     return proxy;
 }