From b4f5f74d74a0a0996358d8348956601b30f17266 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 08 十二月 2021 16:07:51 +0800
Subject: [PATCH] 隐藏安防

---
 HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmDeploymentSettingPage.cs |  918 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 459 insertions(+), 459 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmDeploymentSettingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmDeploymentSettingPage.cs
index df3ec88..9b1da4a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmDeploymentSettingPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmDeploymentSettingPage.cs
@@ -1,516 +1,516 @@
-锘縰sing System;
-using System.Collections.Generic;
-using HDL_ON.DAL.Server;
-using HDL_ON.Entity;
-using HDL_ON.UI.CSS;
-using Shared;
-namespace HDL_ON.UI
-{
-    public class ArmDeploymentSettingPage : FrameLayout
-    {
-        FrameLayout bodyView;
-        /// <summary>
-        /// 涓婚鐣岄潰
-        /// </summary>
-        VerticalScrolViewLayout contentView;
-        /// <summary>
-        /// 杈撳叆鏉′欢鍒楄〃鍖哄煙鐣岄潰
-        /// </summary>
-        VerticalScrolViewLayout inputTargetView;
-        /// <summary>
-        /// 鍛婅鐩爣鍒楄〃鍖哄煙鐣岄潰
-        /// </summary>
-        VerticalScrolViewLayout outputTargetView;
+锘�//using System;
+//using System.Collections.Generic;
+//using HDL_ON.DAL.Server;
+//using HDL_ON.Entity;
+//using HDL_ON.UI.CSS;
+//using Shared;
+//namespace HDL_ON.UI
+//{
+//    public class ArmDeploymentSettingPage : FrameLayout
+//    {
+//        FrameLayout bodyView;
+//        /// <summary>
+//        /// 涓婚鐣岄潰
+//        /// </summary>
+//        VerticalScrolViewLayout contentView;
+//        /// <summary>
+//        /// 杈撳叆鏉′欢鍒楄〃鍖哄煙鐣岄潰
+//        /// </summary>
+//        VerticalScrolViewLayout inputTargetView;
+//        /// <summary>
+//        /// 鍛婅鐩爣鍒楄〃鍖哄煙鐣岄潰
+//        /// </summary>
+//        VerticalScrolViewLayout outputTargetView;
 
 
-        SecurityAlarm securityAlarm;
-        Action refreshAction;
+//        SecurityAlarm securityAlarm;
+//        Action refreshAction;
 
-        public ArmDeploymentSettingPage(SecurityAlarm alarm, Action action)
-        {
-            bodyView = this;
-            securityAlarm = alarm;
-            refreshAction = action;
-        }
+//        public ArmDeploymentSettingPage(SecurityAlarm alarm, Action action)
+//        {
+//            bodyView = this;
+//            securityAlarm = alarm;
+//            refreshAction = action;
+//        }
 
-        public void LoadPage()
-        {
-            new TopViewDiv(bodyView, Language.StringByID(StringId.Setting)).LoadTopView();
+//        public void LoadPage()
+//        {
+//            new TopViewDiv(bodyView, Language.StringByID(StringId.Setting)).LoadTopView();
 
-            bodyView.BackgroundColor = CSS_Color.BackgroundColor;
+//            bodyView.BackgroundColor = CSS_Color.BackgroundColor;
 
-            contentView = new VerticalScrolViewLayout()
-            {
-                Y = Application.GetRealHeight(64),
-                Height = Application.GetRealHeight(527),
-            };
-            bodyView.AddChidren(contentView);
+//            contentView = new VerticalScrolViewLayout()
+//            {
+//                Y = Application.GetRealHeight(64),
+//                Height = Application.GetRealHeight(527),
+//            };
+//            bodyView.AddChidren(contentView);
 
-            #region 甯冮槻淇℃伅
-            var deploymentTitleRow = new FrameLayout()
-            {
-                Height = Application.GetRealHeight(44),
-                BackgroundColor = CSS_Color.MainBackgroundColor,
-            };
-            contentView.AddChidren(deploymentTitleRow);
+//            #region 甯冮槻淇℃伅
+//            var deploymentTitleRow = new FrameLayout()
+//            {
+//                Height = Application.GetRealHeight(44),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//            };
+//            contentView.AddChidren(deploymentTitleRow);
 
-            var btnDeploymentTitle = new Button()
-            {
-                X = Application.GetRealWidth(16),
-                TextColor = CSS_Color.MainColor,
-                TextAlignment = TextAlignment.CenterLeft,
-                TextSize = CSS_FontSize.SubheadingFontSize,
-                TextID = StringId.DeploymentInformation,
-                IsBold = true,
-            };
-            deploymentTitleRow.AddChidren(btnDeploymentTitle);
+//            var btnDeploymentTitle = new Button()
+//            {
+//                X = Application.GetRealWidth(16),
+//                TextColor = CSS_Color.MainColor,
+//                TextAlignment = TextAlignment.CenterLeft,
+//                TextSize = CSS_FontSize.SubheadingFontSize,
+//                TextID = StringId.DeploymentInformation,
+//                IsBold = true,
+//            };
+//            deploymentTitleRow.AddChidren(btnDeploymentTitle);
 
-            deploymentTitleRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(43), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
+//            deploymentTitleRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(43), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
 
-            #region 甯冮槻鍚嶇О
-            var deploymentNameRow = new FrameLayout()
-            {
-                Height = Application.GetRealHeight(50),
-                BackgroundColor = CSS_Color.MainBackgroundColor,
-            };
-            contentView.AddChidren(deploymentNameRow);
+//            #region 甯冮槻鍚嶇О
+//            var deploymentNameRow = new FrameLayout()
+//            {
+//                Height = Application.GetRealHeight(50),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//            };
+//            contentView.AddChidren(deploymentNameRow);
 
-            var btnDeploymentNameTitle = new Button()
-            {
-                X = Application.GetRealWidth(16),
-                Width = Application.GetRealWidth(72),
-                TextAlignment = TextAlignment.CenterLeft,
-                TextColor = CSS_Color.FirstLevelTitleColor,
-                TextSize = CSS_FontSize.TextFontSize,
-                TextID = StringId.Name,
-            };
-            deploymentNameRow.AddChidren(btnDeploymentNameTitle);
-            btnDeploymentNameTitle.Text += ":";
+//            var btnDeploymentNameTitle = new Button()
+//            {
+//                X = Application.GetRealWidth(16),
+//                Width = Application.GetRealWidth(72),
+//                TextAlignment = TextAlignment.CenterLeft,
+//                TextColor = CSS_Color.FirstLevelTitleColor,
+//                TextSize = CSS_FontSize.TextFontSize,
+//                TextID = StringId.Name,
+//            };
+//            deploymentNameRow.AddChidren(btnDeploymentNameTitle);
+//            btnDeploymentNameTitle.Text += ":";
 
-            var btnDeploymentName = new Button()
-            {
-                X = Application.GetRealWidth(88),
-                Width = Application.GetRealWidth(230),
-                TextAlignment = TextAlignment.CenterLeft,
-                TextColor = CSS_Color.TextualColor,
-                TextSize = CSS_FontSize.TextFontSize,
-                Text = securityAlarm.name
-            };
-            deploymentNameRow.AddChidren(btnDeploymentName);
-            deploymentNameRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(49), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
+//            var btnDeploymentName = new Button()
+//            {
+//                X = Application.GetRealWidth(88),
+//                Width = Application.GetRealWidth(230),
+//                TextAlignment = TextAlignment.CenterLeft,
+//                TextColor = CSS_Color.TextualColor,
+//                TextSize = CSS_FontSize.TextFontSize,
+//                Text = securityAlarm.name
+//            };
+//            deploymentNameRow.AddChidren(btnDeploymentName);
+//            deploymentNameRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(49), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
 
-            LoadEvent_EditSecurityAlarmName(btnDeploymentName);
-            #endregion
+//            LoadEvent_EditSecurityAlarmName(btnDeploymentName);
+//            #endregion
 
-            /*
-            #region 瑙﹀彂寤舵椂
-            var delayedRow = new FrameLayout()
-            {
-                Height = Application.GetRealHeight(50),
-                BackgroundColor = CSS_Color.MainBackgroundColor,
-            };
-            contentView.AddChidren(delayedRow);
+//            /*
+//            #region 瑙﹀彂寤舵椂
+//            var delayedRow = new FrameLayout()
+//            {
+//                Height = Application.GetRealHeight(50),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//            };
+//            contentView.AddChidren(delayedRow);
 
-            var btnDelayedTitle = new Button()
-            {
-                X = Application.GetRealWidth(16),
-                Width = Application.GetRealWidth(72),
-                TextAlignment = TextAlignment.CenterLeft,
-                TextColor = CSS_Color.FirstLevelTitleColor,
-                TextSize = CSS_FontSize.TextFontSize,
-                TextID = StringId.TriggerDelay,
-            };
-            delayedRow.AddChidren(btnDelayedTitle);
-            btnDelayedTitle.Text += ":";
+//            var btnDelayedTitle = new Button()
+//            {
+//                X = Application.GetRealWidth(16),
+//                Width = Application.GetRealWidth(72),
+//                TextAlignment = TextAlignment.CenterLeft,
+//                TextColor = CSS_Color.FirstLevelTitleColor,
+//                TextSize = CSS_FontSize.TextFontSize,
+//                TextID = StringId.TriggerDelay,
+//            };
+//            delayedRow.AddChidren(btnDelayedTitle);
+//            btnDelayedTitle.Text += ":";
 
-            var btnDelayedText = new Button()
-            {
-                X = Application.GetRealWidth(88),
-                Width = Application.GetRealWidth(230),
-                TextAlignment = TextAlignment.CenterLeft,
-                TextColor = CSS_Color.TextualColor,
-                TextSize = CSS_FontSize.TextFontSize,
-                Text = securityAlarm.name
-            };
-            delayedRow.AddChidren(btnDelayedText);
+//            var btnDelayedText = new Button()
+//            {
+//                X = Application.GetRealWidth(88),
+//                Width = Application.GetRealWidth(230),
+//                TextAlignment = TextAlignment.CenterLeft,
+//                TextColor = CSS_Color.TextualColor,
+//                TextSize = CSS_FontSize.TextFontSize,
+//                Text = securityAlarm.name
+//            };
+//            delayedRow.AddChidren(btnDelayedText);
 
-            var btnDelayedRight = new Button()
-            {
-                X = Application.GetRealWidth(343),
-                Gravity = Gravity.CenterVertical,
-                Width = Application.GetMinRealAverage(16),
-                Height = Application.GetMinRealAverage(16),
-                UnSelectedImagePath = "Public/RightIcon.png",
-            };
-            delayedRow.AddChidren(btnDelayedRight);
+//            var btnDelayedRight = new Button()
+//            {
+//                X = Application.GetRealWidth(343),
+//                Gravity = Gravity.CenterVertical,
+//                Width = Application.GetMinRealAverage(16),
+//                Height = Application.GetMinRealAverage(16),
+//                UnSelectedImagePath = "Public/RightIcon.png",
+//            };
+//            delayedRow.AddChidren(btnDelayedRight);
 
-            //delayedRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(49), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
-            #endregion
-            */
+//            //delayedRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(49), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
+//            #endregion
+//            */
 
-            #endregion
-            contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8), BackgroundColor = CSS_Color.BackgroundColor });
+//            #endregion
+//            contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8), BackgroundColor = CSS_Color.BackgroundColor });
 
-            //甯冮槻鍔熻兘
-            iniDefenseView();
-            //鍛婅鐩爣
-            iniAlarmView();
+//            //甯冮槻鍔熻兘
+//            iniDefenseView();
+//            //鍛婅鐩爣
+//            iniAlarmView();
 
-            #region 搴曢儴鍖哄煙
-            var bottomView = new FrameLayout()
-            {
-                Y = Application.GetRealHeight(591),
-                Height = Application.GetRealHeight(100),
-                BackgroundColor = CSS_Color.MainBackgroundColor,
-                Radius = (uint)Application.GetRealWidth(22),
-            };
-            this.AddChidren(bottomView);
+//            #region 搴曢儴鍖哄煙
+//            var bottomView = new FrameLayout()
+//            {
+//                Y = Application.GetRealHeight(591),
+//                Height = Application.GetRealHeight(100),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//                Radius = (uint)Application.GetRealWidth(22),
+//            };
+//            this.AddChidren(bottomView);
 
-            var btnConfrim = new Button()
-            {
-                X = Application.GetRealWidth(78),
-                Y = Application.GetRealHeight(12),
-                Width = Application.GetRealWidth(220),
-                Height = Application.GetRealWidth(44),
-                Radius = (uint)Application.GetRealWidth(22),
-                BackgroundColor = CSS_Color.MainColor,
-                TextID = StringId.Confirm,
-                TextSize = CSS_FontSize.SubheadingFontSize,
-                TextColor = CSS_Color.MainBackgroundColor,
-                TextAlignment = TextAlignment.Center,
-            };
-            bottomView.AddChidren(btnConfrim);
+//            var btnConfrim = new Button()
+//            {
+//                X = Application.GetRealWidth(78),
+//                Y = Application.GetRealHeight(12),
+//                Width = Application.GetRealWidth(220),
+//                Height = Application.GetRealWidth(44),
+//                Radius = (uint)Application.GetRealWidth(22),
+//                BackgroundColor = CSS_Color.MainColor,
+//                TextID = StringId.Confirm,
+//                TextSize = CSS_FontSize.SubheadingFontSize,
+//                TextColor = CSS_Color.MainBackgroundColor,
+//                TextAlignment = TextAlignment.Center,
+//            };
+//            bottomView.AddChidren(btnConfrim);
 
-            btnConfrim.MouseUpEventHandler = (sender, e) =>
-            {
-                if (securityAlarm.input.Count == 0)
-                {
-                    var tip = new Tip()
-                    {
-                        Text = "璇烽�夋嫨甯冮槻鐩爣",
-                        CloseTime = 3,
-                        Direction = AMPopTipDirection.None
-                    };
-                    tip.Show(MainPage.BaseView);
-                    return;
-                }
-                if (securityAlarm.output.Count == 0)
-                {
-                    var tip = new Tip()
-                    {
-                        Text = "璇烽�夋嫨鍛婅鐩爣",
-                        CloseTime = 3,
-                        Direction = AMPopTipDirection.None
-                    };
-                    tip.Show(MainPage.BaseView);
+//            btnConfrim.MouseUpEventHandler = (sender, e) =>
+//            {
+//                if (securityAlarm.input.Count == 0)
+//                {
+//                    var tip = new Tip()
+//                    {
+//                        Text = "璇烽�夋嫨甯冮槻鐩爣",
+//                        CloseTime = 3,
+//                        Direction = AMPopTipDirection.None
+//                    };
+//                    tip.Show(MainPage.BaseView);
+//                    return;
+//                }
+//                if (securityAlarm.output.Count == 0)
+//                {
+//                    var tip = new Tip()
+//                    {
+//                        Text = "璇烽�夋嫨鍛婅鐩爣",
+//                        CloseTime = 3,
+//                        Direction = AMPopTipDirection.None
+//                    };
+//                    tip.Show(MainPage.BaseView);
 
-                    return;
-                }
+//                    return;
+//                }
 
-                var waitPage = new Loading();
-                waitPage.Start();
-                new System.Threading.Thread(() =>
-                {
-                    try
-                    {
-                        var code = securityAlarm.SaveInfo();
-                        if (code == StateCode.SUCCESS)
-                        {
-                            Common.ApiUtlis.Ins.GetSecurityList();
-                            Application.RunOnMainThread(() =>
-                            {
-                                this.RemoveFromParent();
-                                refreshAction?.Invoke();
-                            });
-                        }
-                        else
-                        {
-                            Application.RunOnMainThread(() =>
-                            {
-                                IMessageCommon.Current.ShowErrorInfoAlter(code);
-                            });
-                        }
-                    }
-                    catch { }
-                    finally
-                    {
-                        Application.RunOnMainThread(() => {
-                            if (waitPage != null)
-                            {
-                                waitPage.RemoveFromParent();
-                                waitPage = null;
-                            }
-                        });
-                    }
-                })
-                { IsBackground = true }.Start();
-            };
-            #endregion
+//                var waitPage = new Loading();
+//                waitPage.Start();
+//                new System.Threading.Thread(() =>
+//                {
+//                    try
+//                    {
+//                        var code = securityAlarm.SaveInfo();
+//                        if (code == StateCode.SUCCESS)
+//                        {
+//                            Common.ApiUtlis.Ins.GetSecurityList();
+//                            Application.RunOnMainThread(() =>
+//                            {
+//                                this.RemoveFromParent();
+//                                refreshAction?.Invoke();
+//                            });
+//                        }
+//                        else
+//                        {
+//                            Application.RunOnMainThread(() =>
+//                            {
+//                                IMessageCommon.Current.ShowErrorInfoAlter(code);
+//                            });
+//                        }
+//                    }
+//                    catch { }
+//                    finally
+//                    {
+//                        Application.RunOnMainThread(() => {
+//                            if (waitPage != null)
+//                            {
+//                                waitPage.RemoveFromParent();
+//                                waitPage = null;
+//                            }
+//                        });
+//                    }
+//                })
+//                { IsBackground = true }.Start();
+//            };
+//            #endregion
 
-        }
+//        }
 
-        /// <summary>
-        /// 鍒濆鍖栭儴鍒嗗姛鑳藉尯鍩�
-        /// </summary>
-        private void iniDefenseView()
-        {
+//        /// <summary>
+//        /// 鍒濆鍖栭儴鍒嗗姛鑳藉尯鍩�
+//        /// </summary>
+//        private void iniDefenseView()
+//        {
 
-            #region 甯冮槻鍔熻兘
-            var deploymentFunctionRow = new FrameLayout()
-            {
-                Height = Application.GetRealHeight(44),
-                BackgroundColor = CSS_Color.MainBackgroundColor,
-            };
-            contentView.AddChidren(deploymentFunctionRow);
+//            #region 甯冮槻鍔熻兘
+//            var deploymentFunctionRow = new FrameLayout()
+//            {
+//                Height = Application.GetRealHeight(44),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//            };
+//            contentView.AddChidren(deploymentFunctionRow);
 
-            var btnFunctionTitle = new Button()
-            {
-                X = Application.GetRealWidth(16),
-                TextColor = CSS_Color.MainColor,
-                TextAlignment = TextAlignment.CenterLeft,
-                TextSize = CSS_FontSize.SubheadingFontSize,
-                TextID = StringId.DefenseFunctionArmState,
-                IsBold = true,
-            };
-            deploymentFunctionRow.AddChidren(btnFunctionTitle);
+//            var btnFunctionTitle = new Button()
+//            {
+//                X = Application.GetRealWidth(16),
+//                TextColor = CSS_Color.MainColor,
+//                TextAlignment = TextAlignment.CenterLeft,
+//                TextSize = CSS_FontSize.SubheadingFontSize,
+//                TextID = StringId.DefenseFunctionArmState,
+//                IsBold = true,
+//            };
+//            deploymentFunctionRow.AddChidren(btnFunctionTitle);
 
-            var btnAddTarget = new Button()
-            {
-                X = Application.GetRealWidth(337),
-                Y = Application.GetRealHeight(6),
-                Width = Application.GetRealWidth(32),
-                Height = Application.GetRealWidth(32),
-                UnSelectedImagePath = "FunctionIcon/ArmCenter/AddTargetIcon.png",
-            };
-            deploymentFunctionRow.AddChidren(btnAddTarget);
-            ///娣诲姞杈撳叆鐩爣
-            btnAddTarget.MouseUpEventHandler = (sender, e) => {
-                Action<SecurityAlarm> action = (outTemp) => {
-                    securityAlarm = outTemp;
-                    iniInputTargetView();
-                };
-                var page = new AddInputPage(securityAlarm, action);
-                MainPage.BasePageView.AddChidren(page);
-                page.LoadPage();
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-            };
+//            var btnAddTarget = new Button()
+//            {
+//                X = Application.GetRealWidth(337),
+//                Y = Application.GetRealHeight(6),
+//                Width = Application.GetRealWidth(32),
+//                Height = Application.GetRealWidth(32),
+//                UnSelectedImagePath = "FunctionIcon/ArmCenter/AddTargetIcon.png",
+//            };
+//            deploymentFunctionRow.AddChidren(btnAddTarget);
+//            ///娣诲姞杈撳叆鐩爣
+//            btnAddTarget.MouseUpEventHandler = (sender, e) => {
+//                Action<SecurityAlarm> action = (outTemp) => {
+//                    securityAlarm = outTemp;
+//                    iniInputTargetView();
+//                };
+//                var page = new AddInputPage(securityAlarm, action);
+//                MainPage.BasePageView.AddChidren(page);
+//                page.LoadPage();
+//                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+//            };
 
-            deploymentFunctionRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(43), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
+//            deploymentFunctionRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(43), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
 
-            inputTargetView = new VerticalScrolViewLayout()
-            {
-                ScrollEnabled = false,
-            };
-            contentView.AddChidren(inputTargetView);
+//            inputTargetView = new VerticalScrolViewLayout()
+//            {
+//                ScrollEnabled = false,
+//            };
+//            contentView.AddChidren(inputTargetView);
 
-            iniInputTargetView();
+//            iniInputTargetView();
 
-            #endregion
-            contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8), BackgroundColor = CSS_Color.BackgroundColor });
+//            #endregion
+//            contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8), BackgroundColor = CSS_Color.BackgroundColor });
 
-        }
+//        }
 
-        /// <summary>
-        /// 鍒濆鍖栬緭鍏ユ潯浠跺尯鍩熺晫闈�
-        /// </summary>
-        /// <param name=""></param>
-        private void iniInputTargetView()
-        {
-            inputTargetView.RemoveAll();
-            if (securityAlarm.input.Count > 0)
-            {
-                foreach (var target in securityAlarm.input)
-                {
-                    inputTargetView.AddChidren(new InputRow(target.GetFunction().name, target.GetFunction().GetRoomListName(), target.StateText()));
-                }
-                inputTargetView.Height = Application.GetRealHeight(65 * securityAlarm.input.Count);
-                //if (outputTargetView != null)
-                //{
-                //    contentView.AddChidren(outputTargetView);
-                //}
-            }
-            else
-            {
-                inputTargetView.AddChidren(new Button()
-                {
-                    Height = Application.GetRealHeight(65),
-                    TextAlignment = TextAlignment.Center,
-                    TextSize = CSS_FontSize.TextFontSize,
-                    TextColor = CSS_Color.PromptingColor1,
-                    TextID = StringId.ThereIsNoAssociatedTaskDeploymentStatus,
-                    IsMoreLines = true,
-                    BackgroundColor = CSS_Color.MainBackgroundColor,
-                });
+//        /// <summary>
+//        /// 鍒濆鍖栬緭鍏ユ潯浠跺尯鍩熺晫闈�
+//        /// </summary>
+//        /// <param name=""></param>
+//        private void iniInputTargetView()
+//        {
+//            inputTargetView.RemoveAll();
+//            if (securityAlarm.input.Count > 0)
+//            {
+//                foreach (var target in securityAlarm.input)
+//                {
+//                    inputTargetView.AddChidren(new InputRow(target.GetFunction().name, target.GetFunction().GetRoomListName(), target.StateText()));
+//                }
+//                inputTargetView.Height = Application.GetRealHeight(65 * securityAlarm.input.Count);
+//                //if (outputTargetView != null)
+//                //{
+//                //    contentView.AddChidren(outputTargetView);
+//                //}
+//            }
+//            else
+//            {
+//                inputTargetView.AddChidren(new Button()
+//                {
+//                    Height = Application.GetRealHeight(65),
+//                    TextAlignment = TextAlignment.Center,
+//                    TextSize = CSS_FontSize.TextFontSize,
+//                    TextColor = CSS_Color.PromptingColor1,
+//                    TextID = StringId.ThereIsNoAssociatedTaskDeploymentStatus,
+//                    IsMoreLines = true,
+//                    BackgroundColor = CSS_Color.MainBackgroundColor,
+//                });
 
-                inputTargetView.Height = Application.GetRealHeight(68);
-                //if(outputTargetView!= null)
-                //{
-                //    contentView.AddChidren(outputTargetView);
-                //}
-            }
+//                inputTargetView.Height = Application.GetRealHeight(68);
+//                //if(outputTargetView!= null)
+//                //{
+//                //    contentView.AddChidren(outputTargetView);
+//                //}
+//            }
 
 
-        }
+//        }
 
-        /// <summary>
-        /// 鍒濆鍖栧憡璀︾洰鏍囧尯鍩�
-        /// </summary>
-        private void iniAlarmView()
-        {
-            #region 鍛婅鐩爣
-            var outputRow = new FrameLayout()
-            {
-                Height = Application.GetRealHeight(44),
-                BackgroundColor = CSS_Color.MainBackgroundColor,
-            };
-            contentView.AddChidren(outputRow);
+//        /// <summary>
+//        /// 鍒濆鍖栧憡璀︾洰鏍囧尯鍩�
+//        /// </summary>
+//        private void iniAlarmView()
+//        {
+//            #region 鍛婅鐩爣
+//            var outputRow = new FrameLayout()
+//            {
+//                Height = Application.GetRealHeight(44),
+//                BackgroundColor = CSS_Color.MainBackgroundColor,
+//            };
+//            contentView.AddChidren(outputRow);
 
-            var btnOutputRowTitle = new Button()
-            {
-                X = Application.GetRealWidth(16),
-                TextColor = CSS_Color.MainColor,
-                TextAlignment = TextAlignment.CenterLeft,
-                TextSize = CSS_FontSize.SubheadingFontSize,
-                TextID = StringId.AlarmTargetAfterTriggering,
-                IsBold = true,
-            };
-            outputRow.AddChidren(btnOutputRowTitle);
+//            var btnOutputRowTitle = new Button()
+//            {
+//                X = Application.GetRealWidth(16),
+//                TextColor = CSS_Color.MainColor,
+//                TextAlignment = TextAlignment.CenterLeft,
+//                TextSize = CSS_FontSize.SubheadingFontSize,
+//                TextID = StringId.AlarmTargetAfterTriggering,
+//                IsBold = true,
+//            };
+//            outputRow.AddChidren(btnOutputRowTitle);
 
-            var btnAddOutTarget = new Button()
-            {
-                X = Application.GetRealWidth(337),
-                Y = Application.GetRealHeight(6),
-                Width = Application.GetRealWidth(32),
-                Height = Application.GetRealWidth(32),
-                UnSelectedImagePath = "FunctionIcon/ArmCenter/AddTargetIcon.png",
-            };
-            outputRow.AddChidren(btnAddOutTarget);
+//            var btnAddOutTarget = new Button()
+//            {
+//                X = Application.GetRealWidth(337),
+//                Y = Application.GetRealHeight(6),
+//                Width = Application.GetRealWidth(32),
+//                Height = Application.GetRealWidth(32),
+//                UnSelectedImagePath = "FunctionIcon/ArmCenter/AddTargetIcon.png",
+//            };
+//            outputRow.AddChidren(btnAddOutTarget);
 
-            btnAddOutTarget.MouseUpEventHandler = (sender, e) => {
-                Action<SecurityAlarm> action = (outTemp) => {
-                    securityAlarm = outTemp;
-                    iniAlarmListView();
-                };
-                var page = new AddOutputPage(securityAlarm, action);
-                MainPage.BasePageView.AddChidren(page);
-                page.LoadPage();
-                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-            };
+//            btnAddOutTarget.MouseUpEventHandler = (sender, e) => {
+//                Action<SecurityAlarm> action = (outTemp) => {
+//                    securityAlarm = outTemp;
+//                    iniAlarmListView();
+//                };
+//                var page = new AddOutputPage(securityAlarm, action);
+//                MainPage.BasePageView.AddChidren(page);
+//                page.LoadPage();
+//                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+//            };
 
-            outputRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(43), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
+//            outputRow.AddChidren(new Button() { Gravity = Gravity.CenterHorizontal, Y = Application.GetRealHeight(43), Height = 1, BackgroundColor = CSS_Color.DividingLineColor });
 
 
-            outputTargetView = new VerticalScrolViewLayout()
-            {
-                ScrollEnabled = false,
-            };
-            contentView.AddChidren(outputTargetView);
+//            outputTargetView = new VerticalScrolViewLayout()
+//            {
+//                ScrollEnabled = false,
+//            };
+//            contentView.AddChidren(outputTargetView);
 
-            iniAlarmListView();
+//            iniAlarmListView();
 
-            #endregion
-            contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8), BackgroundColor = CSS_Color.BackgroundColor });
+//            #endregion
+//            contentView.AddChidren(new Button() { Height = Application.GetRealHeight(8), BackgroundColor = CSS_Color.BackgroundColor });
 
-        }
+//        }
 
-        /// <summary>
-        /// 鍒濆鍖栧憡璀﹀垪琛ㄥ尯鍩�
-        /// </summary>
-        private void iniAlarmListView()
-        {
-            outputTargetView.RemoveAll();
-            if (securityAlarm.output.Count > 0)
-            {
-                foreach (var outTarget in securityAlarm.output)
-                {
-                    outputTargetView.AddChidren(new OutputRow(outTarget.GetFunction().name, outTarget.GetFunction().GetRoomListName(), "鎵撳紑"));
-                }
-                outputTargetView.Height = Application.GetRealHeight(65 * securityAlarm.output.Count);
-            }
-            else
-            {
-                outputTargetView.AddChidren(new Button()
-                {
-                    Height = Application.GetRealHeight(65),
-                    TextAlignment = TextAlignment.Center,
-                    TextSize = CSS_FontSize.TextFontSize,
-                    TextColor = CSS_Color.PromptingColor1,
-                    TextID = StringId.ThereIsNoAssociatedTaskDeploymentStatus,
-                    IsMoreLines = true,
-                    BackgroundColor = CSS_Color.MainBackgroundColor,
-                });
-            }
-        }
+//        /// <summary>
+//        /// 鍒濆鍖栧憡璀﹀垪琛ㄥ尯鍩�
+//        /// </summary>
+//        private void iniAlarmListView()
+//        {
+//            outputTargetView.RemoveAll();
+//            if (securityAlarm.output.Count > 0)
+//            {
+//                foreach (var outTarget in securityAlarm.output)
+//                {
+//                    outputTargetView.AddChidren(new OutputRow(outTarget.GetFunction().name, outTarget.GetFunction().GetRoomListName(), "鎵撳紑"));
+//                }
+//                outputTargetView.Height = Application.GetRealHeight(65 * securityAlarm.output.Count);
+//            }
+//            else
+//            {
+//                outputTargetView.AddChidren(new Button()
+//                {
+//                    Height = Application.GetRealHeight(65),
+//                    TextAlignment = TextAlignment.Center,
+//                    TextSize = CSS_FontSize.TextFontSize,
+//                    TextColor = CSS_Color.PromptingColor1,
+//                    TextID = StringId.ThereIsNoAssociatedTaskDeploymentStatus,
+//                    IsMoreLines = true,
+//                    BackgroundColor = CSS_Color.MainBackgroundColor,
+//                });
+//            }
+//        }
 
 
-        /// <summary>
-        /// 淇敼瀹夐槻鍚嶇О
-        /// </summary>
-        void LoadEvent_EditSecurityAlarmName(Button btnDeploymentName)
-        {
-            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
-            {
-                Action<string> callBack = (str) =>
-                {
-                    //鍚嶇О涓嶈兘涓虹┖
-                    if (string.IsNullOrEmpty(str))
-                    {
-                        new Tip()
-                        {
-                            CloseTime = 1,
-                            Text = Language.StringByID(StringId.NameCannotBeEmpty),
-                            Direction = AMPopTipDirection.None,
-                        }.Show(bodyView);
-                        return;
-                    }
+//        /// <summary>
+//        /// 淇敼瀹夐槻鍚嶇О
+//        /// </summary>
+//        void LoadEvent_EditSecurityAlarmName(Button btnDeploymentName)
+//        {
+//            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
+//            {
+//                Action<string> callBack = (str) =>
+//                {
+//                    //鍚嶇О涓嶈兘涓虹┖
+//                    if (string.IsNullOrEmpty(str))
+//                    {
+//                        new Tip()
+//                        {
+//                            CloseTime = 1,
+//                            Text = Language.StringByID(StringId.NameCannotBeEmpty),
+//                            Direction = AMPopTipDirection.None,
+//                        }.Show(bodyView);
+//                        return;
+//                    }
 
 
-                    btnDeploymentName.Text = securityAlarm.name = str;
+//                    btnDeploymentName.Text = securityAlarm.name = str;
 
-                    //var waitPage = new Loading();
-                    //bodyView.AddChidren(waitPage);
-                    //waitPage.Start(Language.StringByID(StringId.PleaseWait));
-                    //new System.Threading.Thread(() =>
-                    //{
-                    //    try
-                    //    {
-                    //        securityAlarm.name = str;
-                    //        var responsePack = new HttpServerRequest().EditSecurity(new List<SecurityAlarm>() { securityAlarm});
-                    //        if (responsePack.Code == StateCode.SUCCESS)
-                    //        {
-                    //            Application.RunOnMainThread(() =>
-                    //            {
-                    //                btnDeploymentName.Text = str;
-                    //            });
-                    //        }
-                    //        else
-                    //        {
-                    //            IMessageCommon.Current.ShowErrorInfoAlter(responsePack.Code);
-                    //        }
-                    //    }
-                    //    catch (Exception ex)
-                    //    {
-                    //        MainPage.Log($"update user name error : {ex.Message}");
-                    //    }
-                    //    finally
-                    //    {
-                    //        Application.RunOnMainThread(() =>
-                    //        {
-                    //            if (waitPage != null)
-                    //            {
-                    //                waitPage.RemoveFromParent();
-                    //                waitPage = null;
-                    //            }
-                    //        });
-                    //    }
-                    //})
-                    //{ IsBackground = true }.Start();
-                };
-                new PublicAssmebly().LoadDialog_EditParater(StringId.Name, securityAlarm.name, callBack, StringId.NameCannotBeEmpty, 0, new List<string>());
-            };
-            btnDeploymentName.MouseUpEventHandler = eventHandler;
-        }
+//                    //var waitPage = new Loading();
+//                    //bodyView.AddChidren(waitPage);
+//                    //waitPage.Start(Language.StringByID(StringId.PleaseWait));
+//                    //new System.Threading.Thread(() =>
+//                    //{
+//                    //    try
+//                    //    {
+//                    //        securityAlarm.name = str;
+//                    //        var responsePack = new HttpServerRequest().EditSecurity(new List<SecurityAlarm>() { securityAlarm});
+//                    //        if (responsePack.Code == StateCode.SUCCESS)
+//                    //        {
+//                    //            Application.RunOnMainThread(() =>
+//                    //            {
+//                    //                btnDeploymentName.Text = str;
+//                    //            });
+//                    //        }
+//                    //        else
+//                    //        {
+//                    //            IMessageCommon.Current.ShowErrorInfoAlter(responsePack.Code);
+//                    //        }
+//                    //    }
+//                    //    catch (Exception ex)
+//                    //    {
+//                    //        MainPage.Log($"update user name error : {ex.Message}");
+//                    //    }
+//                    //    finally
+//                    //    {
+//                    //        Application.RunOnMainThread(() =>
+//                    //        {
+//                    //            if (waitPage != null)
+//                    //            {
+//                    //                waitPage.RemoveFromParent();
+//                    //                waitPage = null;
+//                    //            }
+//                    //        });
+//                    //    }
+//                    //})
+//                    //{ IsBackground = true }.Start();
+//                };
+//                new PublicAssmebly().LoadDialog_EditParater(StringId.Name, securityAlarm.name, callBack, StringId.NameCannotBeEmpty, 0, new List<string>());
+//            };
+//            btnDeploymentName.MouseUpEventHandler = eventHandler;
+//        }
 
-    }
+//    }
 
-}
+//}

--
Gitblit v1.8.0