Skip to content

Instantly share code, notes, and snippets.

@fabriciomurta
Created March 3, 2015 04:19
Show Gist options
  • Save fabriciomurta/c0979cc8b692b3ae4f9c to your computer and use it in GitHub Desktop.
Save fabriciomurta/c0979cc8b692b3ae4f9c to your computer and use it in GitHub Desktop.
Revisão da conversão de valores de metas compostas.
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