From 7584dea0241cefc276a4b5311331aee1dcda6c80 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 16 三月 2021 11:44:41 +0800
Subject: [PATCH] Merge branch 'WJC' into temp-wxr

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/PirView.cs |  174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 174 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/PirView.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/PirView.cs
new file mode 100644
index 0000000..37368a5
--- /dev/null
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/PirView.cs
@@ -0,0 +1,174 @@
+锘縰sing System;
+using HDL_ON.UI.UI2.Intelligence.Automation.LogicView;
+using Shared;
+namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice.View
+{
+    public class PirView
+    {
+
+        /// <summary>
+        /// 鐖舵帶浠�
+        /// </summary>
+        public FrameLayout devfLayout = new FrameLayout
+        {
+            Y = Application.GetRealHeight(12),
+            X = Application.GetRealWidth(16),
+            Width = Application.GetRealWidth(375 - 16 * 2),
+            // Height = Application.GetRealHeight(92 + (50 * pirDevice.FunctioList.Count)),
+            BackgroundColor = CSS.CSS_Color.view,
+            Radius = (uint)Application.GetRealHeight(12),
+        };
+        /// <summary>
+        /// 鍥炬爣
+        /// </summary>
+        public Button priequipmentBtn = new Button
+        {
+            Y = Application.GetRealHeight(16),
+            X = Application.GetRealWidth(5),
+            Width = Application.GetRealWidth(60),
+            Height = Application.GetRealWidth(60),
+            UnSelectedImagePath = "PirIcon/priequipment.png",
+            TextAlignment = TextAlignment.Center,
+        };
+
+        /// <summary>
+        /// 鍚嶇О
+        /// </summary>
+        public Button deviceNameBtn = new Button
+        {
+            Y = Application.GetRealHeight(16),
+            X = Application.GetRealWidth(72),
+            Width = Application.GetRealWidth(120),
+            Height = Application.GetRealHeight(20),
+            //Text = pirDevice.name,
+            TextAlignment = TextAlignment.CenterLeft,
+            TextSize = TextSize.text14,
+            TextColor = CSS.CSS_Color.textColor,
+            IsBold = true,
+        };
+
+
+        /// <summary>
+        /// 鐗堟湰鍙�
+        /// </summary>
+        public Button versionBtn = new Button
+        {
+            Y = Application.GetRealHeight(40),
+            X = Application.GetRealWidth(72),
+            Width = Application.GetRealWidth(120),
+            Height = Application.GetRealHeight(17),
+            Text = "鐗堟湰鍙穠1.3.5",
+            TextAlignment = TextAlignment.CenterLeft,
+            TextSize = TextSize.text12,
+            TextColor = CSS.CSS_Color.textCancelColor,
+        };
+
+        /// <summary>
+        /// 褰撳墠涓暟
+        /// </summary>
+        public Button geBtn = new Button
+        {
+            Y = Application.GetRealHeight(59),
+            X = Application.GetRealWidth(72),
+            Width = Application.GetRealWidth(120),
+            Height = Application.GetRealHeight(17),
+            //Text = pirDevice.FunctioList.Count.ToString(),
+            TextAlignment = TextAlignment.CenterLeft,
+            TextSize = TextSize.text12,
+            TextColor = CSS.CSS_Color.textConfirmColor,
+        };
+
+        /// <summary>
+        /// 鎬绘暟
+        /// </summary>
+        public Button sumBtn = new Button
+        {
+            Y = Application.GetRealHeight(59),
+
+            Width = Application.GetRealWidth(20),
+            Height = Application.GetRealHeight(17),
+            Text = "/10",
+            TextAlignment = TextAlignment.CenterLeft,
+            TextSize = TextSize.text12,
+            TextColor = CSS.CSS_Color.textCancelColor,
+        };
+
+        /// <summary>
+        /// 鐘舵�佸浘鏍�
+        /// </summary>
+        public Button stateIconBtn = new Button
+        {
+            Y = Application.GetRealHeight(23),
+            X = Application.GetRealWidth(291),
+            Width = Application.GetRealWidth(8),
+            Height = Application.GetRealWidth(8),
+            UnSelectedImagePath = "PirIcon/online.png",
+            SelectedImagePath = "PirIcon/offline.png",
+        };
+
+        /// <summary>
+        /// 绾㈠瀹濈姸鎬侊紙鍦ㄧ嚎-绂荤嚎锛�
+        /// </summary>
+        public Button stateTextBtn = new Button
+        {
+            Y = Application.GetRealHeight(18),
+            X = Application.GetRealWidth(303),
+            Width = Application.GetRealWidth(30),
+            Height = Application.GetRealHeight(17),
+            TextID = StringId.zaixianhwb,
+            TextAlignment = TextAlignment.CenterLeft,
+            TextSize = TextSize.text12,
+            TextColor = 0xFF67D569,// CSS.CSS_Color.textColor,
+            SelectedTextColor = CSS.CSS_Color.textRedColor,
+            IsBold = true,
+        };
+        /// <summary>
+        /// 绾�
+        /// </summary>
+        public Button lineBtn = new Button
+        {
+            Y = Application.GetRealHeight(92) - 1,
+            X = Application.GetRealWidth(16),
+            Width = Application.GetRealWidth(343 - 16 * 2),
+            Height = 1,
+            BackgroundColor = CSS.CSS_Color.viewLine,
+        };
+
+        /// <summary>
+        /// 鐐瑰嚮浜嬩欢
+        /// </summary>
+        public Button clickBtn = new Button
+        {
+            Y = Application.GetRealHeight(12),
+            X = Application.GetRealWidth(16),
+            Width = Application.GetRealWidth(375 - 16 * 2),
+            Height = Application.GetRealHeight(92),
+            BackgroundColor = 0x00000000, //CSS.CSS_Color.view,
+            Radius = (uint)Application.GetRealHeight(12),
+            //Tag = Pir.pirDeviceList[i],
+        };
+        /// <summary>
+        /// view鏂规硶
+        /// </summary>
+        /// <param name="i"></param>
+        /// <param name="fLayout"></param>
+        public void Show(int i, FrameLayout fLayout)
+        {
+
+
+            fLayout.AddChidren(devfLayout);
+            devfLayout.Height = Application.GetRealHeight(92 + (50 * i));
+            devfLayout.AddChidren(priequipmentBtn);
+            devfLayout.AddChidren(deviceNameBtn);
+            devfLayout.AddChidren(versionBtn);
+            devfLayout.AddChidren(geBtn);
+            geBtn.Width = geBtn.GetTextWidth();
+            devfLayout.AddChidren(sumBtn);
+            sumBtn.X = geBtn.Right;
+            devfLayout.AddChidren(stateIconBtn);
+            devfLayout.AddChidren(stateTextBtn);
+            devfLayout.AddChidren(lineBtn);
+            devfLayout.AddChidren(clickBtn);
+        }
+    }
+}

--
Gitblit v1.8.0