Created
March 3, 2015 04:19
-
-
Save fabriciomurta/c0979cc8b692b3ae4f9c to your computer and use it in GitHub Desktop.
Revisão da conversão de valores de metas compostas.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void convertCompositeGoalValue(List<fastGoalDataStructure.dadosMeta.valoresMeta> values) | |
{ | |
foreach (var value in values) | |
{ | |
if (!value.na && value.pontualPrevisto.HasValue) | |
{ | |
if (value.pontualRealizado.HasValue) | |
value.pontualRealizado = value.acumRealizado = 100 + value.getDeviation(eVisualizacaoValores.ValoresPontuais).Item2??0; | |
if (value.pontualFC1.HasValue) | |
value.pontualFC1 = value.acumFC1 = 100 + value.getDeviation(eVisualizacaoValores.ValoresPontuais, eTipoSerie.Forecast1).Item2??0; | |
if (value.pontualFC2.HasValue) | |
value.pontualFC2 = value.acumFC2 = 100 + value.getDeviation(eVisualizacaoValores.ValoresPontuais, eTipoSerie.Forecast2).Item2??0; | |
value.pontualPrevisto = value.acumPrevisto = 100; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment