From 3e286ae4d9a23674674f9ad12573e7e7911f2dfb Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 17 三月 2021 18:00:48 +0800
Subject: [PATCH] 备份代码

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs |   93 +++++++---------------------------------------
 1 files changed, 15 insertions(+), 78 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
index 626c205..d2e068c 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
@@ -80,23 +80,27 @@
             if (Pir.pirDeviceList.Count != 0)
             {
 
-                if (function != null)
-                {
-                    var pir = function as Pir;
-                    Pir.currPir = pir;
-                }
-                else
-                {
-                    Pir.currPir = Pir.pirDeviceList[0];
-                }
+                //if (function != null)
+                //{
+                //    Pir pir = new Pir();
+                //    pir.name = function.name;
+                //    pir.deviceId = function.deviceId;
+                //    pir.sid = function.sid;
+                //    Pir.currPir = pir;
+                //}
+                //else
+                //{
+                //    Pir.currPir = Pir.pirDeviceList[0];
+                //}
                 //榛樿绗竴涓孩澶栧疂
+                Pir.currPir = Pir.pirDeviceList[0];
                 int sum = 0;
                 for (int i = 0; i < Pir.pirDeviceList.Count; i++)
                 {
                     //鏌ユ壘
                     sum += Pir.pirDeviceList[i].FunctioList.Count;
                 }
-                deviceNameBtn.Text = Pir.currPir.name;
+                deviceNameBtn.Text = Pir.pirDeviceList[0].name;
                 mainView.numberDeviceBtn.Text = Pir.pirDeviceList.Count.ToString() + Language.StringByID(StringId.ge);
                 mainView.currDeviceNumberControlBtn.Text = sum.ToString() + Language.StringByID(StringId.ge);
             }
@@ -224,83 +228,16 @@
             }
             GetBrandList(jobDeviceType.id, (brandList) =>
             {
-                var brandSupportStrList = GetBrandSupport(if_value);
-                var strList = new List<string>();
-                for (int str = 0; str < brandList.Count; str++)
-                {
-                    string s = brandList[str].brandName;
-                    var bool_if = brandSupportStrList.Find((c) => s.Contains(c));
-                    if (bool_if != null)
-                    {
-                        strList.Add(s);
-                    }
-
-                }
                 Application.RunOnMainThread(() =>
                 {
                     BrandList brandObj = new BrandList();
-                    MainPage.BasePageView.AddChidren(brandObj);
-                    brandObj.Show(brandList, strList, strings[1]);
-                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                    brandObj.Show(brandList, strings[1]);
                 });
 
             });
 
         }
 
-        /// <summary>
-        /// 鑾峰彇鍝佺墝鏀寔
-        /// </summary>
-        /// <param name="index">绱㈠紩鍊�</param>
-        private List<string> GetBrandSupport(int index)
-        {
-            List<string> strList = new List<string>();
-            switch (index)
-            {
-                case 1:
-                    {
-                        strList.Add("鏍煎姏");
-                        strList.Add("缇庣殑");
-                        strList.Add("娴峰皵");
-                        strList.Add("鏉句笅");
-                        strList.Add("娴蜂俊");
-                        strList.Add("闀胯櫣");
-                    }
-                    break;
-                case 2:
-                    {
-                        strList.Add("鍒涚淮");
-                        strList.Add("TCL");
-                        strList.Add("娴蜂俊");
-                        strList.Add("闀胯櫣");
-                        strList.Add("娴峰皵");
-                        strList.Add("涓夋槦");
-                        strList.Add("涔愯");
-                        strList.Add("绱㈠凹");
-                        strList.Add("LG涔愰噾");
-                    }
-                    break;
-                case 3:
-                    {
-                    }
-                    break;
-                case 4:
-                    {
-                    }
-                    break;
-                case 5:
-                    {
-                    }
-                    break;
-                case 6:
-                    {
-                    }
-                    break;
-
-
-            }
-            return strList;
-        }
         /// <summary>
         /// 鑾峰彇璁惧绫诲瀷str
         /// </summary>

--
Gitblit v1.8.0