| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.6.1" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202209261"> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.6.1" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202209271"> |
| | | <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29" /> |
| | | <!--友盟--> |
| | | <!--<uses-sdk android:minSdkVersion="8"></uses-sdk>--> |
| | |
| | | { |
| | | |
| | | |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.2.8.165")] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] |
| | | public partial class Resource |
| | | { |
| | | |
| | |
| | | <key>UIStatusBarStyle</key> |
| | | <string>UIStatusBarStyleLightContent</string> |
| | | <key>CFBundleShortVersionString</key> |
| | | <string>1.6.102209261</string> |
| | | <string>1.6.102209271</string> |
| | | <key>CFBundleVersion</key> |
| | | <string>1.6.109261</string> |
| | | <string>1.6.109271</string> |
| | | <key>NSLocationWhenInUseUsageDescription</key> |
| | | <string>Use geographic location to provide services such as weather</string> |
| | | <key>NSAppleMusicUsageDescription</key> |
| | |
| | | //wjc |
| | | break; |
| | | case SPK.Inverter: |
| | | MainPage.Log("逆变器数据更新"); |
| | | var status = new Dictionary<string, object> { ["method"] = "status", ["data"] = temp.objects }; |
| | | //var dd = Newtonsoft.Json.JsonConvert.SerializeObject(status); |
| | | Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); |
| | | break; |
| | | } |
| | |
| | | _h5Page.LoadFileUrl(showPageUrl); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// h5界面的页面索引 |
| | | /// </summary> |
| | | public string PageIndex = "1"; |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | BaseView.AddChidren(BtnBackIcon); |
| | | backView.MouseMoveEventHandler = (sender, e) => |
| | | { |
| | | |
| | | if (BasePageView.ChildrenCount <= 1) |
| | | { |
| | | return; |
| | |
| | | }; |
| | | backView.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | |
| | | if (Inverter.Ins.H5Page.Parent != null) |
| | | { |
| | | if (Inverter.Ins.PageIndex != "1") |
| | | { |
| | | Inverter.Ins.PageIndex = "1"; |
| | | var status = new Dictionary<string, object> { ["method"] = "backPrePage", ["data"] = "" }; |
| | | Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); |
| | | MainPage.Log($"up{e.X}"); |
| | | StartX = 0; |
| | | BtnBackIcon.X = -Application.GetRealWidth(100); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | Inverter.Ins.PageIndex = "1"; |
| | | } |
| | | } |
| | | |
| | | |
| | | MainPage.Log($"up{e.X}"); |
| | | StartX = 0; |
| | | BtnBackIcon.X = -Application.GetRealWidth(100); |
| | |
| | | }; |
| | | backView.MouseUpOutsideEventHandler = (sender, e) => |
| | | { |
| | | if (Inverter.Ins.H5Page.Parent != null) |
| | | { |
| | | if (Inverter.Ins.PageIndex != "1") |
| | | { |
| | | Inverter.Ins.PageIndex = "1"; |
| | | var status = new Dictionary<string, object> { ["method"] = "backPrePage", ["data"] = "" }; |
| | | Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')"); |
| | | MainPage.Log($"up{e.X}"); |
| | | StartX = 0; |
| | | BtnBackIcon.X = -Application.GetRealWidth(100); |
| | | return; |
| | | } |
| | | else |
| | | { |
| | | Inverter.Ins.PageIndex = "1"; |
| | | } |
| | | } |
| | | |
| | | |
| | | MainPage.Log($"up{e.X}"); |
| | | StartX = 0; |
| | | BtnBackIcon.X = -Application.GetRealWidth(100); |
| | |
| | | //etAccount.Text = "s.savinov@hdlautomation.ru"; |
| | | } |
| | | b = !b; |
| | | etPassword.Text = "qunhui105113"; |
| | | etPassword.Text = "123456"; |
| | | if(etAccount.Text == "13418062953") |
| | | { |
| | | etPassword.Text = "a123456"; |
| | |
| | | view.AddChidren(btnAcstPower); |
| | | btnAcstPower.MouseUpEventHandler = (sender, e) => { |
| | | btnAcstPower.IsSelected = !btnAcstPower.IsSelected; |
| | | string onoff = btnAcstPower.IsSelected ? "on" : "off"; |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, onoff); |
| | | foreach(var temp in FunctionList.List.GetAcstParentList()) |
| | | new System.Threading.Thread(() => |
| | | { |
| | | Control.Ins.SendWriteCommand(temp, d); |
| | | } |
| | | |
| | | string onoff = btnAcstPower.IsSelected ? "on" : "off"; |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, onoff); |
| | | foreach (var temp in FunctionList.List.GetAcstParentList()) |
| | | { |
| | | Control.Ins.SendWriteCommand(temp, d); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | |
| | | |
| | |
| | | |
| | | new System.Threading.Thread(() => { |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add("onoff", btnPowerControl.IsSelected ? "on" : "off"); |
| | | d.Add(FunctionAttributeKey.OnOff, btnPowerControl.IsSelected ? "on" : "off"); |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | |
| | | X = btnSubTempIcon.Right, |
| | | Y = Application.GetRealHeight(45 + 11), |
| | | Height = Application.GetRealHeight(14), |
| | | Width = Application.GetRealWidth(22), |
| | | Width = Application.GetRealWidth(35), |
| | | TextColor = 0xFF1b3035, |
| | | TextSize = 10, |
| | | Text = sub.GetAttrState(AcstSub_AttrEnum.room_temp.ToString()) + "°C", |
| | |
| | | X = btnSubHumidityIcon.Right, |
| | | Y = Application.GetRealHeight(45 + 11), |
| | | Height = Application.GetRealHeight(14), |
| | | Width = Application.GetRealWidth(22), |
| | | Width = Application.GetRealWidth(35), |
| | | TextColor = 0xFF1b3053, |
| | | TextSize = 10, |
| | | Text = sub.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString()) + "%", |
| | |
| | | bodyView.btnTempValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_temp.ToString()); |
| | | bodyView.btnHumiValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString()); |
| | | bodyView.btnSetTempValues.Width = bodyView.btnSetTempValues.GetTextWidth() + Application.GetRealWidth(10); |
| | | bodyView.tempBar.Progress = Convert.ToInt32(temp.GetAttrState(FunctionAttributeKey.SetTemp)) + 16; |
| | | |
| | | int progress = 0; |
| | | int.TryParse(temp.GetAttrState(FunctionAttributeKey.SetTemp), out progress); |
| | | bodyView.tempBar.Progress = progress + 16; |
| | | if(temp.trait_on_off.curValue.ToString() == "on") |
| | | { |
| | | bodyView.btnPowerControl.IsSelected = true; |
| | | bodyView.tempBar.IsOffline = false; |
| | | bodyView.tempBar.Enable = false; |
| | | } |
| | | else |
| | | { |
| | | bodyView.btnPowerControl.IsSelected = false; |
| | | bodyView.tempBar.IsOffline = true; |
| | | bodyView.tempBar.Enable = true; |
| | | } |
| | | }); |
| | | |
| | |
| | | }; |
| | | contentView.AddChidren(btnMinValuesText); |
| | | |
| | | |
| | | int progress = 0; |
| | | int.TryParse(function.GetAttrState(FunctionAttributeKey.SetTemp),out progress); |
| | | |
| | | tempBar = new DiyImageSeekBar() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | |
| | | ThumbImageHeight = Application.GetRealHeight(51), |
| | | ProgressBarColor = function.trait_on_off.curValue.ToString() == "on" ? curColor : CSS_Color.DividingLineColor, |
| | | MaxValue = 14, |
| | | Progress = Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.SetTemp)) + 16, |
| | | Progress = progress + 16, |
| | | SeekBarPadding = Application.GetRealWidth(20), |
| | | IsProgressTextShow = false, |
| | | ProgressChangeDelayTime = 0, |
| | |
| | | |
| | | new System.Threading.Thread(() => { |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add("onoff", btnPowerControl.IsSelected ? "on" : "off"); |
| | | d.Add(FunctionAttributeKey.OnOff, btnPowerControl.IsSelected ? "on" : "off"); |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | }) |
| | | { IsBackground = true }.Start(); |