| | |
| | | 542=Wandering alarm |
| | | 543=Get more |
| | | 544=Angle |
| | | 545=Alarm data statistics |
| | | |
| | | 2532=Visitor Invitation Record |
| | | 2533=Visitor management |
| | |
| | | 542=徘徊报警 |
| | | 543=获取更多 |
| | | 544=角度 |
| | | 545=报警数据统计 |
| | | |
| | | |
| | | 2532=访客邀请记录 |
| | |
| | | 542=Wandering alarm |
| | | 543=Get more |
| | | 544=Angle |
| | | 545=Alarm data statistics |
| | | |
| | | 2532=Visitor Invitation Record |
| | | 2533=Visitor management |
| | |
| | | 542=Wandering alarm |
| | | 543=Get more |
| | | 544=Angle |
| | | 545=Alarm data statistics |
| | | |
| | | 1000=Humedad de ambiente |
| | | 1001=V-chip |
| | |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtaindream_blue.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\HomeIcon\curtaindream_white.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\Icon\curtaindream.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\CAC\HvacCacHumidityIcon.png" /> |
| | | <AndroidAsset Include="Assets\Phone\FunctionIcon\CAC\HvacCacTempIcon.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <AndroidResource Include="Resources\values\colors.xml" /> |
| | |
| | | using Com.Lechange.Opensdk.Device; |
| | | using Com.Lechange.Opensdk.Listener; |
| | | using Com.Lechange.Opensdk.Media; |
| | | using HDL_ON; |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON_Android.LeChengView.Form; |
| | | using Java.IO; |
| | |
| | | /// </summary> |
| | | public void StartTalk() |
| | | { |
| | | UserInfo.Current.inVideo = true; |
| | | CloseAudio();// 关闭Audio |
| | | LCOpenSDK_Talk.Listener = new AudioTalkerListener();//设置对讲监听 |
| | | //2021-10-29 对讲请求类型,call呼叫,如果不传,默认为talk |
| | |
| | | /// </summary> |
| | | public void StopTalk() |
| | | { |
| | | UserInfo.Current.inCall = DateTime.MinValue; |
| | | UserInfo.Current.inVideo = false; |
| | | LCOpenSDK_Talk.StopTalk(); |
| | | LCOpenSDK_Talk.Listener = null; |
| | | } |
| | |
| | | Utlis.WriteLine("PushMes messageType : " + pushMes.messageType); |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(pushMes.spk))//自研可视对讲需要记录时间反呼 |
| | | { |
| | | UserInfo.Current.pushMessageInfo = pushMes; |
| | | UserInfo.Current.inCall = DateTime.Now; |
| | | } |
| | | |
| | | Utlis.WriteLine("PushMes title : " + pushMes.Title); |
| | | Utlis.WriteLine("PushMes message : " + pushMes.Content); |
| | | Utlis.WriteLine("PushMes extras : " + pushMes.Extras); |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.5.9" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202207041"> |
| | | <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.5.9" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202207081"> |
| | | <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29" /> |
| | | <!--友盟--> |
| | | <!--<uses-sdk android:minSdkVersion="8"></uses-sdk>--> |
| | |
| | | Utlis.WriteLine("PushMes title : " + pushMes.Title); |
| | | Utlis.WriteLine("PushMes message : " + pushMes.Content); |
| | | Utlis.WriteLine("PushMes extras : " + pushMes.Extras); |
| | | if (!string.IsNullOrEmpty(pushMes.spk))//自研可视对讲需要记录时间反呼 |
| | | { |
| | | UserInfo.Current.pushMessageInfo = pushMes; |
| | | UserInfo.Current.inCall = DateTime.Now; |
| | | } |
| | | |
| | | if (bFinishedLaunching) |
| | | { |
| | |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\curtaindream.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtaindream_blue.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\Icon\HomeIcon\curtaindream_white.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\CAC\HvacCacHumidityIcon.png" /> |
| | | <BundleResource Include="Resources\Phone\FunctionIcon\CAC\HvacCacTempIcon.png" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ITunesArtwork Include="iTunesArtwork" /> |
| | |
| | | 542=Wandering alarm |
| | | 543=Get more |
| | | 544=Angle |
| | | 545=Alarm data statistics |
| | | |
| | | 2532=Visitor Invitation Record |
| | | 2533=Visitor management |
| | | 2534=Visitor Invitation |
| | | 2535=Record |
| | | 2536=*After you initiate the visitor certificate, you can unlock the door by password or swipe the code freely within the validity period you set. Please share the certificate carefully. |
| | | 2537=Input phone number of the visitor |
| | | 2538=Input 6-digits temporary password |
| | | 2539=Random Generation |
| | | 2540=After confirmation, the visitor QR code will be generated, and the 6-digit dynamic digital password SMS will also be sent to the visitor mobile phone. |
| | | 2541=Are you sure to delete visitor credentials? |
| | | 2542=Long press the QR code to save the QR code to the album |
| | | 2543=QR code is invalid |
| | | 2544=Generate Visitor Credentials |
| | | 2545=Cancle Visitor Credentials |
| | | 2546=Visitor QR Code |
| | | 2547=Phone Number |
| | | 2548=Please enter a correct phone number |
| | | 2549=Please select a effective time |
| | | 2550=Please select a expire time |
| | | 2551=Temporary password is invalid |
| | | |
| | | |
| | | 1000=Room Humidity |
| | |
| | | 7158=is |
| | | 7159=Fall in the alarm |
| | | 7160=Someone called the police |
| | | |
| | | |
| | | |
| | | |
| | |
| | | 542=徘徊报警 |
| | | 543=获取更多 |
| | | 544=角度 |
| | | 545=报警数据统计 |
| | | |
| | | |
| | | 2532=访客邀请记录 |
| | | 2533=访客管理 |
| | | 2534=访客邀请 |
| | | 2535=访客记录 |
| | | 2536=*您发起访客凭证后,该凭证将在您设置的有效期内,可自由刷码或密码开锁进行进出,请谨慎分享该凭证。 |
| | | 2537=输入访客手机号码 |
| | | 2538=输入6位动态密码 |
| | | 2539=随机生成 |
| | | |
| | | 2540=确认后,会生成访客二维码,同时也会将6位动态数字密码短信发送到访客手机上。 |
| | | 2541=确定删除访客凭证? |
| | | |
| | | 2542=长按二维码可以将二维码保存到相册 |
| | | 2543=二维码已失效 |
| | | 2544=生成访客凭证 |
| | | 2545=取消访客凭证 |
| | | 2546=访客二维码 |
| | | 2547=手机号 |
| | | 2548=请输入正确的手机号码 |
| | | 2549=请选择生效时间 |
| | | 2550=请选择失效时间 |
| | | 2551=动态密码已失效 |
| | | |
| | | |
| | | |
| | | 1000=室内湿度 |
| | | 1001=童锁 |
| | |
| | | 542=Wandering alarm |
| | | 543=Get more |
| | | 544=Angle |
| | | 545=Alarm data statistics |
| | | |
| | | 2532=Visitor Invitation Record |
| | | 2533=Visitor management |
| | | 2534=Visitor Invitation |
| | | 2535=Record |
| | | 2536=*After you initiate the visitor certificate, you can unlock the door by password or swipe the code freely within the validity period you set. Please share the certificate carefully. |
| | | 2537=Input phone number of the visitor |
| | | 2538=Input 6-digits temporary password |
| | | 2539=Random Generation |
| | | 2540=After confirmation, the visitor QR code will be generated, and the 6-digit dynamic digital password SMS will also be sent to the visitor mobile phone. |
| | | 2541=Are you sure to delete visitor credentials? |
| | | 2542=Long press the QR code to save the QR code to the album |
| | | 2543=QR code is invalid |
| | | 2544=Generate Visitor Credentials |
| | | 2545=Cancle Visitor Credentials |
| | | 2546=Visitor QR Code |
| | | 2547=Phone Number |
| | | 2548=Please enter a correct phone number |
| | | 2549=Please select a effective time |
| | | 2550=Please select a expire time |
| | | 2551=Temporary password is invalid |
| | | |
| | | |
| | | 1000=Влажность в Помещении |
| | |
| | | 542=Wandering alarm |
| | | 543=Get more |
| | | 544=Angle |
| | | 545=Alarm data statistics |
| | | |
| | | 1000=Humedad de ambiente |
| | | 1001=V-chip |
| | |
| | | |
| | | //字段兼容问题,只能直接取值了 |
| | | var json = Newtonsoft.Json.Linq.JObject.Parse(jpushMessageInfo.expantContent); |
| | | try |
| | | { |
| | | var pushTime = json["pushTime"]; |
| | | if (!string.IsNullOrEmpty(pushTime.ToString())) |
| | | { |
| | | var pushDateTime = Utlis.UnixToDateTimeMS(Convert.ToInt64(pushTime)); |
| | | if (pushDateTime.AddSeconds(30) < DateTime.Now) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | catch { } |
| | | |
| | | //1.视对讲厂家类型 |
| | | string interphoneTypeEnum = json["interphoneTypeEnum"].ToString(); |
| | | if (string.IsNullOrEmpty(interphoneTypeEnum)) return; |
| | |
| | | public static class StringId |
| | | { |
| | | /// <summary> |
| | | /// 报警数据统计 |
| | | /// </summary> |
| | | public const int AlarmDataStatistics = 545; |
| | | /// <summary> |
| | | /// 角度 |
| | | /// </summary> |
| | | public const int Angle = 544; |
| | |
| | | return path + "/"; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 推送消息记录 |
| | | /// </summary> |
| | | public JPushMessageInfo pushMessageInfo = new JPushMessageInfo(); |
| | | /// <summary> |
| | | /// 是否已经加载呼叫弹窗 |
| | | /// </summary> |
| | | public bool alreadyShowCallInDialog = false; |
| | | |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public bool inVideo = false; |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public DateTime inCall = DateTime.MinValue; |
| | | |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | public const string RoomHumidity = "room_humidity"; |
| | | /// <summary> |
| | | /// 露点温度 |
| | | /// </summary> |
| | | public const string dew_point_temp = "dew_point_temp"; |
| | | /// <summary> |
| | | /// value |
| | | /// </summary> |
| | | public const string Value = "value"; |
| | |
| | | if (readList.Count > 9) |
| | | { |
| | | Control.Ins.SendReadCommand(readList); |
| | | readList.Clear(); |
| | | } |
| | | } |
| | | if (readList.Count > 0) |
| | |
| | | { |
| | | Application.DesignWidth = 375; |
| | | Application.DesignHeight = 667; |
| | | //设置语言环境 防止string转 double出现逗号,todouble异常等问题 |
| | | System.Globalization.CultureInfo.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("zh-CN"); |
| | | |
| | | |
| | | BaseView = Application.MainPage; |
| | | Application.MainPage.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | |
| | | { |
| | | if (UserInfo.Current.unlockTime.AddMinutes(5) > DateTime.Now || UserInfo.Current.appUnlockPasswrod == "" || UserInfo.Current.appUnlockPage.Count == 0) |
| | | { |
| | | if (UserInfo.Current.inCall.AddMinutes(30) > DateTime.Now || |
| | | UserInfo.Current.inVideo) |
| | | { |
| | | //UserInfo.Current.PushMesLogTime = DateTime.MinValue; |
| | | |
| | | //var pushMes = new JPushMessageInfo() |
| | | //{ |
| | | // Title = UserInfo.Current.PushMesTitle, |
| | | // Content = UserInfo.Current.PushMesMessage, |
| | | // Extras = UserInfo.Current.PushMesExtras, |
| | | // messageType = UserInfo.Current.pushMesMessageType, |
| | | // expantContent = UserInfo.Current.pushMesExpantContent, |
| | | // HomeId = UserInfo.Current.PushMesHomeId, |
| | | //}; |
| | | Shared.Application.RunOnMainThread(() => |
| | | { |
| | | HDLCommon.Current.AdjustPushMessage(UserInfo.Current.pushMessageInfo); |
| | | }); |
| | | } |
| | | |
| | | return; |
| | | } |
| | | } |
| | |
| | | new FunctionAttributes(){ key = "on_off",curValue = "on",state = "on" }, |
| | | new FunctionAttributes(){ key = "cac_valve",curValue = "on",state = "on" },//毛细阀 |
| | | new FunctionAttributes(){ key = "fh_valve",curValue = "on",state = "on" },//地暖阀 |
| | | new FunctionAttributes(){ key = "mode",curValue = "cool",state = "cool", value = new List<string>{ "cool","heat","fan"} }, |
| | | new FunctionAttributes(){ key = "mode",curValue = "cool",state = "cool", value = new List<string>{ "cool","heat"} }, |
| | | new FunctionAttributes(){ key = "set_temp",curValue = "20",state = "20",min = 16,max = 30 }, |
| | | new FunctionAttributes(){ key = "room_temp",curValue = "20",state = "20" }, |
| | | new FunctionAttributes(){ key = "dew_point_temp",curValue = "20",state = "20" },//露点温度 |
| | |
| | | { |
| | | X = Application.GetRealWidth(51), |
| | | Y = Application.GetRealHeight(66), |
| | | Width = Application.GetRealWidth(17), |
| | | Height = Application.GetRealWidth(17), |
| | | UnSelectedImagePath = "Public/DeviceInfoIcon/HumidityIcon.png", |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "FunctionIcon/CAC/HvacCacHumidityIcon.png", |
| | | }; |
| | | bodyDiv.AddChidren(btnHumidityIcon); |
| | | var btnHumidityValues = new TextButton() |
| | | { |
| | | X = btnHumidityIcon.Right + Application.GetRealWidth(4), |
| | | Y = Application.GetRealHeight(66), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | X = Application.GetRealWidth(70), |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(18), |
| | | TextColor = 0xFF161616, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = function.GetAttrState(FunctionAttributeKey.RoomHumidity) + "%", |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | |
| | | Button btnTempIcon = new Button() |
| | | { |
| | | X = btnHumidityValues.Right + Application.GetRealWidth(20), |
| | | Gravity = Gravity.CenterVertical, |
| | | X = Application.GetRealWidth(110), |
| | | Y = Application.GetRealHeight(66), |
| | | Width = Application.GetMinRealAverage(17), |
| | | Height = Application.GetMinRealAverage(17), |
| | | UnSelectedImagePath = "Public/DeviceInfoIcon/TempIcon.png", |
| | | UnSelectedImagePath = "FunctionIcon/CAC/HvacCacTempIcon.png", |
| | | }; |
| | | bodyDiv.AddChidren(btnTempIcon); |
| | | |
| | | var btnTempValues = new TextButton() |
| | | { |
| | | X = btnTempIcon.Right + Application.GetRealWidth(4), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = function.GetAttrState(FunctionAttributeKey.RoomTemp) + "°", |
| | | X = Application.GetRealWidth(130), |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(18), |
| | | TextColor = 0xFF161616, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = function.GetAttrState(FunctionAttributeKey.RoomTemp) + "°C", |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | btnTempValues.Width = btnTempValues.GetTextWidth(); |
| | | btnTempValues.Width = btnTempValues.GetTextWidth(); |
| | | bodyDiv.AddChidren(btnTempIcon); |
| | | bodyDiv.AddChidren(btnTempValues); |
| | | |
| | | var btnJinMaoIcon = new Button() |
| | | { |
| | |
| | | private void InitFrameWhiteContent1() |
| | | { |
| | | //获取温度值 |
| | | var setTempTemp = device.GetAttrState(FunctionAttributeKey.SetTemp); |
| | | var setTempString = setTempTemp.Replace(",", "."); |
| | | var setTempDouble = Convert.ToDouble(setTempString); |
| | | temp = Convert.ToInt32(setTempDouble); |
| | | string setTempTemp = device.GetAttrState(FunctionAttributeKey.SetTemp); |
| | | temp = (int) Convert.ToDouble(setTempTemp); |
| | | if (temp <= 0) |
| | | { |
| | | //默认值改成16,2022年06月10日10:03:19 成甫要求的 |
| | |
| | | /// </summary> |
| | | Button btnTemp; |
| | | Button btnTempUint; |
| | | |
| | | /// <summary> |
| | | /// 室内湿度显示控件 |
| | | /// </summary> |
| | | TextButton btnHumidityValues; |
| | | /// <summary> |
| | | /// 室内温度显示控件 |
| | | /// </summary> |
| | | TextButton btnTempValues; |
| | | /// <summary> |
| | | /// 室内温度按钮 |
| | | /// </summary> |
| | | Button btnIndoorTemp; |
| | | //Button btnIndoorTemp; |
| | | /// <summary> |
| | | /// 模式按钮 |
| | | /// </summary> |
| | | Button btnMode; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | Button btnModeText; |
| | | /// <summary> |
| | | /// 风速按钮 |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | private void InitFrameWhiteContent1() |
| | | { |
| | | Button btnJinmaoIcon = new Button() |
| | | var btnHumidityIcon = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(94), |
| | | Width = Application.GetRealWidth(164), |
| | | Height = Application.GetRealHeight(43), |
| | | UnSelectedImagePath = "FunctionIcon/CAC/JinMaoIcon.png" |
| | | X = Application.GetRealWidth(55), |
| | | Y = Application.GetRealHeight(101), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "FunctionIcon/CAC/HvacCacHumidityIcon.png", |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnJinmaoIcon); |
| | | FrameWhiteCentet1.AddChidren(btnHumidityIcon); |
| | | btnHumidityValues = new TextButton() |
| | | { |
| | | X = Application.GetRealWidth(83), |
| | | Y = Application.GetRealHeight(96), |
| | | Height = Application.GetRealHeight(33), |
| | | Width = Application.GetRealWidth(100), |
| | | TextColor = 0xFF161616, |
| | | TextSize = 24, |
| | | Text = device.GetAttrState(FunctionAttributeKey.RoomHumidity) + "%", |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnHumidityValues); |
| | | |
| | | Button btnTempIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(194), |
| | | Y = Application.GetRealHeight(101), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "FunctionIcon/CAC/HvacCacTempIcon.png", |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnTempIcon); |
| | | |
| | | btnTempValues = new TextButton() |
| | | { |
| | | X = Application.GetRealWidth(222), |
| | | Y = Application.GetRealHeight(96), |
| | | Height = Application.GetRealHeight(33), |
| | | Width = Application.GetRealWidth(100), |
| | | TextColor = 0xFF161616, |
| | | TextSize = 24, |
| | | Text = device.GetAttrState(FunctionAttributeKey.RoomTemp) + "°C", |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnTempValues); |
| | | |
| | | |
| | | temp = (int)Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")); |
| | |
| | | OfflineProgressBarColor = CSS_Color.PromptingColor2, |
| | | ArcColor = CSS_Color.BackgroundColor, |
| | | #if __IOS__ |
| | | Y = Application.GetRealHeight(120 + 25), |
| | | Y = Application.GetRealHeight(130 + 25), |
| | | Width = Application.GetRealWidth(260 - 40), |
| | | Height = Application.GetRealWidth(260 - 40), |
| | | SeekBarPadding = Application.GetRealWidth(8), |
| | | #else |
| | | Y = Application.GetRealHeight(120 + 40), |
| | | Y = Application.GetRealHeight(130 + 40), |
| | | Width = Application.GetRealWidth(260 - 40), |
| | | Height = Application.GetRealWidth(260 - 40), |
| | | SeekBarPadding = Application.GetRealWidth(7), |
| | |
| | | btnTemp = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(206), |
| | | Y = Application.GetRealHeight(226), |
| | | Width = Application.GetRealWidth(71), |
| | | Height = Application.GetRealWidth(60), |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnTempUint); |
| | | |
| | | btnIndoorTemp = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = btnTemp.Bottom, |
| | | Width = Application.GetRealWidth(120), |
| | | Height = Application.GetRealHeight(20), |
| | | Text = Language.StringByID(StringId.IndoorTemp) + "20°C/" + Language.StringByID(StringId.Humidity) +"45%", |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnIndoorTemp); |
| | | //btnIndoorTemp = new Button() |
| | | //{ |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Y = btnTemp.Bottom, |
| | | // Width = Application.GetRealWidth(120), |
| | | // Height = Application.GetRealHeight(20), |
| | | // Text = Language.StringByID(StringId.IndoorTemp) + "20°C/" + Language.StringByID(StringId.Humidity) +"45%", |
| | | // TextColor = CSS_Color.PromptingColor1, |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | //}; |
| | | //FrameWhiteCentet1.AddChidren(btnIndoorTemp); |
| | | |
| | | btnMinus = new Button() |
| | | { |
| | |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnMode); |
| | | |
| | | Button btnModeText = new Button() |
| | | btnModeText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(30), |
| | | Y = btnMode.Bottom, |
| | | Y = btnMode.Bottom + Application.GetRealHeight(4), |
| | | Width = Application.GetRealWidth(90), |
| | | Height = Application.GetRealHeight(20), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = 12, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextID = StringId.Mode |
| | | Text = acFunction.GetModeAttrText(device.GetAttrState(FunctionAttributeKey.Mode)) |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnModeText); |
| | | |
| | |
| | | /// </summary> |
| | | void LoadEvent_AcStatesChange() |
| | | { |
| | | btnMode.MouseUpEventHandler = (sender, e) => |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | | if (device.trait_on_off.curValue.ToString() == "off") |
| | | { |
| | | return; |
| | | } |
| | | LoadDiv_ChangeModeView(); |
| | | var modeValueList = device.GetAttribute(FunctionAttributeKey.Mode).value; |
| | | if (modeValueList.Count == 0) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | var curMode = device.GetAttrState(FunctionAttributeKey.Mode); |
| | | var curModeIndex = device.GetAttribute(FunctionAttributeKey.Mode).value.IndexOf(curMode); |
| | | if (++curModeIndex >= modeValueList.Count) |
| | | { |
| | | curModeIndex = 0; |
| | | } |
| | | var setMode = device.GetAttribute(FunctionAttributeKey.Mode).value[curModeIndex]; |
| | | |
| | | device.SetAttrState(FunctionAttributeKey.Mode, setMode); |
| | | btnModeText.Text = acFunction.GetModeAttrText(setMode); |
| | | btnMode.UnSelectedImagePath = acFunction.GetModeIconPath(setMode); |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.Mode, setMode); |
| | | Control.Ins.SendWriteCommand(device, d); |
| | | |
| | | //LoadDiv_ChangeModeView(); |
| | | }; |
| | | |
| | | btnMode.MouseUpEventHandler = eventHandler; |
| | | btnModeText.MouseUpEventHandler = eventHandler; |
| | | |
| | | |
| | | |
| | | btnWindSpeed.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var page = new CacHistoryChoosePage(device); |
| | |
| | | } |
| | | else |
| | | { |
| | | btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.RoomTemp).Replace(",", "."))) + "°C" |
| | | + Language.StringByID(StringId.Humidity) + Convert.ToInt32(Convert.ToDouble(device.GetAttrState("room_humidity").Replace(", ", "."))) + "%"; |
| | | //btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.RoomTemp).Replace(",", "."))) + "°C" |
| | | // + Language.StringByID(StringId.Humidity) + Convert.ToInt32(Convert.ToDouble(device.GetAttrState("room_humidity").Replace(", ", "."))) + "%"; |
| | | btnTempValues.Text = Convert.ToInt32(Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.RoomTemp).Replace(",", "."))) + "°C"; |
| | | btnHumidityValues.Text = Convert.ToInt32(Convert.ToDouble(device.GetAttrState("room_humidity").Replace(", ", "."))) + "%"; |
| | | |
| | | btnMode.UnSelectedImagePath = acFunction.GetModeIconPath(device.GetAttrState(FunctionAttributeKey.Mode)); |
| | | temp = Convert.ToInt32(Convert.ToDouble(device.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", "."))); |
| | | |
| | |
| | | using HDL_ON.Stan; |
| | | using HDL_ON.UI.CSS; |
| | | using HDL_ON.Entity; |
| | | using System; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnSuctionView); |
| | | |
| | | |
| | | |
| | | |
| | | //加载瞬时值 |
| | | var btnInstantaneousValue = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(391), |
| | | Width = Application.GetMinRealAverage(32), |
| | | Height = Application.GetMinRealAverage(32), |
| | | UnSelectedImagePath = "FunctionIcon/EnvironmentalScience/DiagramIconOn.png", |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnInstantaneousValue); |
| | | var btnInstantaneousValueText = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = btnInstantaneousValue.Bottom, |
| | | Width = Application.GetRealWidth(96), |
| | | Height = Application.GetRealHeight(29), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextID = StringId.AlarmDataStatistics, |
| | | IsMoreLines = true |
| | | }; |
| | | FrameWhiteCentet1.AddChidren(btnInstantaneousValueText); |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | //var page = new SocketPage_InstantaneousValue(function); |
| | | //MainPage.BasePageView.AddChidren(page); |
| | | //page.LoadPage(); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | btnInstantaneousValue.MouseUpEventHandler = eventHandler; |
| | | btnInstantaneousValueText.MouseUpEventHandler = eventHandler; |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | }; |
| | | nameView.AddChidren(btnEditName); |
| | | |
| | | nameView.AddChidren( |
| | | new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(49), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(1) |
| | | }); |
| | | //nameView.AddChidren( |
| | | // new Button() |
| | | // { |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Y = Application.GetRealHeight(49), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | // Width = Application.GetRealWidth(343), |
| | | // Height = Application.GetRealHeight(1) |
| | | // }); |
| | | |
| | | #endregion |
| | | if (locationSetting) |
| | |
| | | new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(54), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(1) |
| | |
| | | new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(54), |
| | | //Y = Application.GetRealHeight(54), |
| | | BackgroundColor = CSS_Color.DividingLineColor, |
| | | Width = Application.GetRealWidth(343), |
| | | Height = Application.GetRealHeight(1) |
| | |
| | | #endregion |
| | | } |
| | | |
| | | |
| | | else if (function.spk == SPK.HvacCac) |
| | | { |
| | | #region 露点温度 |
| | | if (function.GetAttribute(FunctionAttributeKey.dew_point_temp) != null) |
| | | { |
| | | contentView.AddChidren(new Button |
| | | { |
| | | Height = Application.GetRealHeight(10), |
| | | }); |
| | | |
| | | var row = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(55), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | contentView.AddChidren(row); |
| | | |
| | | var btnText = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(160), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | TextID = StringId.DewPointTemp, |
| | | }; |
| | | row.AddChidren(btnText); |
| | | |
| | | var btnValue = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(355), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = function.GetAttrState(FunctionAttributeKey.dew_point_temp) + "°C", |
| | | }; |
| | | row.AddChidren(btnValue); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | LoadEventList(); |
| | | } |
| | | |