HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-12-30 3dcbd186c42c598c0c08d1cd37034cf2baa09e54
ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/IndoorUnitListForm.cs
@@ -253,27 +253,30 @@
                    var data = device.DeviceStatusReport.AttriBute[i];
                    if (data.AttributeId == 0)
                    {
                        //室内温度
                        if (data.AttriButeData == 0)
                        HdlThreadLogic.Current.RunMain(() =>
                        {
                            //0℃
                            rowInfo.btnValue.Text = "0.0℃";
                        }
                        else if (data.AttriButeData > 32767)
                        {
                            //负数(特殊处理)
                            string strValue = (data.AttriButeData - 65536).ToString();
                            //小数点需要一位
                            strValue = strValue.Substring(0, strValue.Length - 1);
                            rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
                        }
                        else
                        {
                            //小数点需要一位
                            string strValue = data.AttriButeData.ToString();
                            strValue = strValue.Substring(0, strValue.Length - 1);
                            rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
                        }
                            //室内温度
                            if (data.AttriButeData == 0)
                            {
                                //0℃
                                rowInfo.btnValue.Text = "0.0℃";
                            }
                            else if (data.AttriButeData > 32767)
                            {
                                //负数(特殊处理)
                                string strValue = (data.AttriButeData - 65536).ToString();
                                //小数点需要一位
                                strValue = strValue.Substring(0, strValue.Length - 1);
                                rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
                            }
                            else
                            {
                                //小数点需要一位
                                string strValue = data.AttriButeData.ToString();
                                strValue = strValue.Substring(0, strValue.Length - 1);
                                rowInfo.btnValue.Text = strValue.Insert(strValue.Length - 1, ".") + "℃";
                            }
                        });
                    }
                    else if (data.AttributeId == 28)
                    {
@@ -281,9 +284,12 @@
                        //Off = 0  Auto = 1 Cool = 3 Heat = 4 FanOnly = 7  Dry = 8
                        if (data.AttriButeData != 0)
                        {
                            rowInfo.btnSwitch.IsSelected = true;
                            rowInfo.btnIcon.IsSelected = true;
                            rowInfo.btnIconBack.BackgroundColor = 0xfffef1ed;
                            HdlThreadLogic.Current.RunMain(() =>
                            {
                                rowInfo.btnSwitch.IsSelected = true;
                                rowInfo.btnIcon.IsSelected = true;
                                rowInfo.btnIconBack.BackgroundColor = 0xfffef1ed;
                            });
                        }
                    }
                    else if (data.AttributeId == 4097)
@@ -291,9 +297,12 @@
                        //42:需要清洗滤网
                        if (data.AttriButeData == 42)
                        {
                            rowInfo.btnWarningIcon.Visible = true;
                            //请注意清洗滤网哦
                            rowInfo.btnWarningMsg.TextID = R.MyInternationalizationString.uPleaseClreanACfilter;
                            HdlThreadLogic.Current.RunMain(() =>
                            {
                                rowInfo.btnWarningIcon.Visible = true;
                                //请注意清洗滤网哦
                                rowInfo.btnWarningMsg.TextID = R.MyInternationalizationString.uPleaseClreanACfilter;
                            });
                        }
                    }
                }