| | |
| | | function.SetAttrState(FunctionAttributeKey.Value, value); |
| | | } |
| | | |
| | | List<string> _intervalValue = new List<string>(); |
| | | |
| | | public void SetIntervalValue(List<string> intervalValue) |
| | | { |
| | | _intervalValue = intervalValue; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 每个等级对区间值 |
| | | /// </summary> |
| | | public List<string> GetIntervalValue(string spk) |
| | | { |
| | | var _intervalValue = new List<string>(); |
| | | if(_intervalValue.Count != 0) |
| | | { |
| | | return _intervalValue; |
| | | } |
| | | _intervalValue = new List<string>(); |
| | | switch (spk) |
| | | { |
| | | case SPK.SensorPm25: |
| | |
| | | switch (function.spk) |
| | | { |
| | | case SPK.SensorPm25: |
| | | unit = "ug/m²"; |
| | | unit = "ug/m³"; |
| | | break; |
| | | case SPK.SensorTemperature: |
| | | unit = "°C"; |