| | |
| | | string curQueryType = "hour"; |
| | | string queryTime; |
| | | Function function; |
| | | public AcstSubHistoryPage(Function temp) |
| | | string colorString; |
| | | public AcstSubHistoryPage(Function temp,string colorStr) |
| | | { |
| | | function = temp; |
| | | bodyView = this; |
| | | colorString = colorStr; |
| | | } |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, function.GetRoomListName()).LoadTopView(); |
| | | new TopViewDiv(bodyView, function.name).LoadTopView(); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | //var contentView = new FrameLayout() |
| | |
| | | { |
| | | Y = Application.GetRealHeight(222), |
| | | Height = Application.GetRealHeight(34), |
| | | Text = "最近24小时的平均室内温度", |
| | | TextID = StringId.Temp, |
| | | TextSize = 10, |
| | | TextColor = 0xFF798394, |
| | | TextAlignment = TextAlignment.Center, |
| | |
| | | { |
| | | Y = Application.GetRealHeight(222), |
| | | Height = Application.GetRealHeight(34), |
| | | Text = "最近24小时的平均室内湿度", |
| | | TextID = StringId.Humidity, |
| | | TextSize = 10, |
| | | TextColor = 0xFF798394, |
| | | TextAlignment = TextAlignment.Center, |
| | |
| | | } |
| | | tempEchartOption.InitXdataText(vs); |
| | | } |
| | | tempEchartOption.InitYdataText("", revertData, "#FF80AEFF"); |
| | | tempEchartOption.InitYdataTextLinearGradient("(°C)", revertData, colorString); |
| | | |
| | | tempEchartOption.xTitle = Language.StringByID(StringId.timeMode); |
| | | var opString = tempEchartOption.InitOption(); |
| | |
| | | } |
| | | humiEchartsOption.InitXdataText(vs); |
| | | } |
| | | humiEchartsOption.InitYdataText("", revertData, "#FF80AEFF"); |
| | | humiEchartsOption.InitYdataTextLinearGradient("(%)", revertData, colorString); |
| | | } |
| | | } |
| | | humiEchartsOption.xTitle = Language.StringByID(StringId.timeMode); |