From dfd3bdc07c49fab66b38382e0bbe7c91bdf4f15b Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 28 四月 2020 15:03:43 +0800
Subject: [PATCH] 合并新代码,提供逻辑需要的门锁接口

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs |   52 +++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 39 insertions(+), 13 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs
old mode 100755
new mode 100644
index b38dd82..ea3f30e
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs
@@ -87,12 +87,12 @@
 
             //鍒濆鍖栨甯�
             this.tableContr = new InformationEditorControl();
-            this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1128);
-
-            //鍒濆鍖栬澶囧洖璺浘鏍�
-            this.InitDeviceEpointIcon(listBackControl);
-
-            //淇濆瓨
+            this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1128);
+
+            //鍒濆鍖栬澶囧洖璺浘鏍�
+            this.InitDeviceEpointIcon(listBackControl);
+
+            //淇濆瓨
             var btnFinish = new BottomClickButton();
             btnFinish.TextID = R.MyInternationalizationString.uSave;
             bodyFrameLayout.AddChidren(btnFinish);
@@ -316,8 +316,8 @@
                 {
                     strType = Language.StringByID(R.MyInternationalizationString.uSocket1);
                     nowSelectNo = 2;
-                }
-
+                }
+
                 var btnFunction = new FrameCaptionViewControl(caption, strType, listview.rowSpace / 2);
                 btnFunction.UseClickStatu = false;
                 listview.AddChidren(btnFunction);
@@ -377,6 +377,20 @@
                     };
                 }
             }
+
+            //濡傛灉鏄柊椋�
+            if (nowSelectDevice.Type == DeviceType.FreshAir)
+            {
+                //鍔熻兘绫诲瀷
+                string caption = Language.StringByID(R.MyInternationalizationString.uFunctionType);
+                string strType = Language.StringByID(R.MyInternationalizationString.FreshAir);
+                var btnFunction = new FrameCaptionViewControl(caption, strType, listview.rowSpace / 2);
+                btnFunction.UseClickStatu = false;
+                listview.AddChidren(btnFunction);
+                btnFunction.InitControl();
+                //搴曠嚎
+                btnFunction.AddBottomLine();
+            }
         }
 
         #endregion
@@ -414,7 +428,7 @@
             else
             {
                 //涓嶉渶瑕佹粦鍔ㄦ帶浠�
-                frameBorder.AddChidren(frameBack);
+                frameBorder.AddChidren(frameBack);
             }
 
             int index = 0;
@@ -429,7 +443,17 @@
 
                 if (listIcon.Count == 1)
                 {
-                    frame.Gravity = Gravity.CenterVertical;
+                    frame.Gravity = Gravity.CenterVertical;
+
+                    //濡傛灉鏄柊椋�
+                    if (deviceObj.Type == DeviceType.FreshAir)
+                    {
+                        frame.RemoveFromParent();
+                        frameBack.BackgroundImagePath = "FreshAir/FreshAirRealDevicePic.png";
+                        frameBack.Width = Application.GetMinRealAverage(878);
+                        frameBack.Height = Application.GetMinRealAverage(354);
+                        frameBack.Gravity = Gravity.Center;
+                    }
                 }
                 else
                 {
@@ -442,15 +466,15 @@
                 //璁$畻鐪熷疄楂樺害
                 int realHeight = this.GetPictrueRealSize(58 + 58);//涓婁笅闂磋窛
                 realHeight += frameBack.ChildrenCount * this.GetPictrueRealSize(124);//鍦嗗湀楂樺害
-                realHeight += (frameBack.ChildrenCount-1) * this.GetPictrueRealSize(60);//鍦嗗湀闂磋窛
+                realHeight += (frameBack.ChildrenCount - 1) * this.GetPictrueRealSize(60);//鍦嗗湀闂磋窛
                 if (realHeight > frameBack.Height)
                 {
                     //鍙樻洿楂樺害
                     frameBack.Height = realHeight;
                 }
             }
-        }
-
+        }
+
         /// <summary>
         /// 鍒濆鍖栦竴琛岃澶囧浘鏍�
         /// </summary>
@@ -491,6 +515,8 @@
                 //鍒濆鍖栬彍鍗曡
                 this.DeviceEpointSelectEvent(btnTemp, null);
             }
+
+
         }
 
         /// <summary>

--
Gitblit v1.8.0