From bfb3d0d4879dca8c59ff287c92f5113162f3a33a Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 27 八月 2024 15:22:48 +0800
Subject: [PATCH] 代码备份

---
 OnPro/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs |  102 ---------------------------------------------------
 1 files changed, 0 insertions(+), 102 deletions(-)

diff --git a/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs b/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
index 934f962..f36e572 100644
--- a/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
+++ b/OnPro/HDL_ON/UI/UI2/2-Classification/ClassificaitionPublicBLL.cs
@@ -56,7 +56,6 @@
                                     if (SPK.LightSpkList().Contains(updataFunction.spk) ||
                                     SPK.AcSpkList().Contains(updataFunction.spk) ||
                                     SPK.FhSpkList().Contains(updataFunction.spk) ||
-                                    SPK.ElectricalSpkList().Contains(updataFunction.spk) ||
                                     SPK.AirFreshSpkList().Contains(updataFunction.spk))
                                     {
                                         #region 鎸夐挳鐘舵�佹洿鏂�
@@ -160,106 +159,6 @@
                                         }
                                         #endregion
                                     }
-                                    else if (SPK.MusicSpkList().Contains(updataFunction.spk))
-                                    {
-                                        #region 闊充箰鏇存柊
-                                        var uMusic = updataFunction;
-                                        if (cTag == updataFunction.spk + "_State_" + updataFunction.sid)
-                                        {
-                                            try
-                                            {
-                                                (fcView.GetChildren(j) as Button).IsSelected = uMusic.GetAttrState("on_off") == "on";
-                                            }
-                                            catch (Exception ex)
-                                            {
-                                                MainPage.Log($"{this.GetType()} error 3 : {ex.Message}");
-                                            }
-                                        }
-                                        #endregion
-                                    }
-                                    //鏇存柊姣背娉紶鎰熷櫒鐘舵��
-                                    else if(SPK.SenesorMegahealth == updataFunction.spk || SPK.SensorMmvPose == updataFunction.spk)
-                                    {
-                                        if (cTag == updataFunction.sid + "_SenesorMegahealth_Status")
-                                        {
-                                            try
-                                            {
-                                                Button btnStatus = (fcView.GetChildren(j) as Button);
-
-                                                var tempStatus = updataFunction.attributes.Find((sta) => sta.key == FunctionAttributeKey.TargetStatus);
-                                                if (tempStatus != null)
-                                                {
-
-                                                    switch (tempStatus.state)
-                                                    {//0绌猴紝1璧帮紝2璺戯紝3鍧愶紝4璺屽�掞紝5绔�
-                                                        case "0":
-                                                            btnStatus.TextID = StringId.SensorNormalState;
-                                                            btnStatus.TextColor = CSS_Color.MainColor;
-                                                            break;
-                                                        case "1":
-                                                            btnStatus.TextID = StringId.SomeoneIn;
-                                                            break;
-                                                        case "2":
-                                                            if (updataFunction.extSet.labModel)
-                                                            {
-                                                                btnStatus.TextID = StringId.SomeoneRunning;
-                                                            }
-                                                            else
-                                                            {
-                                                                btnStatus.TextID = StringId.Someone;
-                                                            }
-                                                            btnStatus.TextColor = CSS_Color.WarningColor;
-                                                            break;
-                                                        case "3":
-                                                            if (updataFunction.extSet.labModel)
-                                                            {
-                                                                btnStatus.TextID = StringId.SomeoneSitting;
-                                                            }
-                                                            else
-                                                            {
-                                                                btnStatus.TextID = StringId.Someone;
-                                                            }
-                                                            btnStatus.TextColor = CSS_Color.WarningColor;
-                                                            break;
-                                                        case "4":
-                                                            btnStatus.TextID = StringId.SomeoneFell;
-                                                            btnStatus.TextColor = CSS_Color.WarningColor;
-                                                            break;
-                                                        case "5":
-                                                            if (updataFunction.extSet.labModel)
-                                                            {
-                                                                btnStatus.TextID = StringId.SomeoneStanding;
-                                                            }
-                                                            else
-                                                            {
-                                                                btnStatus.TextID = StringId.Someone;
-                                                            }
-                                                            btnStatus.TextColor = CSS_Color.WarningColor;
-                                                            break;
-                                                    }
-
-                                                }
-
-
-                                            }
-                                            catch (Exception ex)
-                                            {
-                                                MainPage.Log($"{this.GetType()} error 3 : {ex.Message}");
-                                            }
-                                        }
-                                    }
-                                    //鏇存柊娓╂帶鍣ㄧ姸鎬�
-                                    else if(SPK.HvacCac == updataFunction.spk)
-                                    {
-                                        if (cTag == updataFunction.sid + "_Humidity")
-                                        {
-                                            (fcView.GetChildren(j) as Button).Text = updataFunction.GetAttrState(FunctionAttributeKey.RoomHumidity) + "%";
-                                        }
-                                        else if (cTag == updataFunction.sid + "_Temp")
-                                        {
-                                            (fcView.GetChildren(j) as Button).Text = updataFunction.GetAttrState(FunctionAttributeKey.RoomTemp) + "掳C";
-                                        }
-                                    }
                                 }
                             }
                         }
@@ -304,7 +203,6 @@
                         {
                             if (scrolView.GetChildren(i).GetType() == typeof(FunctionControlZone)) {
                                 var fcView = scrolView.GetChildren(i) as FunctionControlZone;
-                                fcView.UpdataOnline(updataFunction.isOnline());
                             }
                         }
                     }

--
Gitblit v1.8.0