| | |
| | | |
| | | |
| | | //光伏数据 |
| | | if (FunctionList.List.InverterList.Count > 0 ) |
| | | if (FunctionList.List.InverterList().Count > 0 ) |
| | | { |
| | | FrameLayout inverterListView = new FrameLayout() |
| | | { |
| | |
| | | |
| | | Button btnFunctionCount = new Button() |
| | | { |
| | | X = Application.GetRealWidth(17) + Application.GetRealWidth(7 * FunctionList.List.InverterList.Count.ToString().Length), |
| | | X = Application.GetRealWidth(17) + Application.GetRealWidth(7 * FunctionList.List.InverterList().Count.ToString().Length), |
| | | Y = btnName.Bottom, |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(24), |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = "/" + FunctionList.List.InverterList.Count, |
| | | Text = "/" + FunctionList.List.InverterList().Count, |
| | | }; |
| | | inverterListView.AddChidren(btnFunctionCount); |
| | | Button btnOpenCount = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Y = btnName.Bottom, |
| | | Width = Application.GetRealWidth(14 * FunctionList.List.InverterList.Count.ToString().Length), |
| | | Width = Application.GetRealWidth(14 * FunctionList.List.InverterList().Count.ToString().Length), |
| | | Height = Application.GetRealHeight(24), |
| | | TextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = FunctionList.List.InverterList.Count.ToString(), |
| | | Text = FunctionList.List.InverterList().Count.ToString(), |
| | | Tag = "inverter_onCount", |
| | | BorderWidth = 0, |
| | | }; |
| | |
| | | } |
| | | var function = new Function(); |
| | | function.sid = data["sid"].ToString(); |
| | | var inObj = FunctionList.List.InverterList.Find((obj) => obj.sid == function.sid); |
| | | var inObj = FunctionList.List.InverterList().Find((obj) => obj.sid == function.sid); |
| | | if (inObj == null) |
| | | { |
| | | return; |
| | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | btnPowerTenerationToday.Text = Language.StringByID(StringId.PowerTenerationToday).Replace("----", info.totalElectricityPvToday); |
| | | btnWorkingMode.Text = Language.StringByID(StringId.WorkingMode).Replace("----", info.systemStatus); |
| | | btnWorkingMode.Text = Language.StringByID(StringId.WorkingMode).Replace("----", info.workMode); |
| | | btnCurrentPowerGeneration.Text = Language.StringByID(StringId.CurrentPowerGeneration).Replace("----", info.powerPvNow); |
| | | btnBatterySOC.Text = Language.StringByID(StringId.BatterySOC).Replace("--", info.batterySoc); |
| | | }); |