| | |
| | |
|
| | | public static string GetValueDescription(int id, int value)
|
| | | {
|
| | | return GetValueDescription(id, value, 1, false);
|
| | | return GetValueDescription(id, value, false);
|
| | | }
|
| | |
|
| | | public static string GetValueDescription(int id, int value, int decimalCount, bool largeValue)
|
| | | public static string GetValueDescription(int id, int value, bool largeValue)
|
| | | {
|
| | | var config = Get(id);
|
| | | if (config == null)
|
| | |
| | | }
|
| | | else if (config.ISPercentage == 1)
|
| | | {
|
| | | result = (float)Math.Round(value / 100f, decimalCount);
|
| | | result = (float)Math.Round(value / 100f, config.decimalCount);
|
| | | }
|
| | | else if (config.ISPercentage == 2)
|
| | | {
|
| | | result = (float)Math.Round(value / 100f, decimalCount);
|
| | | result = (float)Math.Round(value / 100f, config.decimalCount);
|
| | | }
|
| | |
|
| | | var label = string.Empty;
|