| | |
| | | btnTitlea.MouseUpEventHandler = (sender, e) => { |
| | | var skipView = new AirSwitchP3SubloopEnergyPage(device,FunctionAttributeKey.ElectricityA); |
| | | MainPage.BasePageView.AddChidren(skipView); |
| | | skipView.LoadPage(); |
| | | skipView.LoadPage(StringId.RealTimeElectricityConsumptionDataOfPhaseA); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnTitlea.MouseUpEventHandler = (sender, e) => { |
| | | |
| | | btnTitleb.MouseUpEventHandler = (sender, e) => { |
| | | var skipView = new AirSwitchP3SubloopEnergyPage(device, FunctionAttributeKey.ElectricityB); |
| | | MainPage.BasePageView.AddChidren(skipView); |
| | | skipView.LoadPage(); |
| | | skipView.LoadPage(StringId.RealTimeElectricityConsumptionDataOfPhaseB); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnTitlea.MouseUpEventHandler = (sender, e) => { |
| | | |
| | | btnTitlec.MouseUpEventHandler = (sender, e) => { |
| | | var skipView = new AirSwitchP3SubloopEnergyPage(device, FunctionAttributeKey.ElectricityC); |
| | | MainPage.BasePageView.AddChidren(skipView); |
| | | skipView.LoadPage(); |
| | | skipView.LoadPage(StringId.RealTimeElectricityConsumptionDataOfPhaseC); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | |
| | | if (revertObj.Code == StateCode.SUCCESS) |
| | | { |
| | | var revertData = Newtonsoft.Json.JsonConvert.DeserializeObject<List<EnvironmentalSensorHistor>>(revertObj.Data.ToString()); |
| | | if (revertData == null || revertData.Count == 0 || true) { |
| | | #if DEBUG |
| | | if (revertData == null || revertData.Count == 0) { |
| | | List<string> vs = new List<string>() { |
| | | "1","2","3","4", |
| | | "5","6","7","8", |
| | |
| | | } |
| | | device.SetAttrState("ydata", brokenLine.InitYdataText2(device.name, revertData, "#5C62FE", curQueryType == "year_month") + ", "); |
| | | |
| | | } |
| | | else |
| | | #endif |
| | | } |
| | | else |
| | | { |
| | | List<string> vs = new List<string>(); |
| | | if (brokenLine.YvalueText == "") |