陈嘉乐
2020-06-03 f573c74a1b431a6d016d766628f2e6320fa42ff9
ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
@@ -223,6 +223,7 @@
            //UserCenter.DoorLock.DoorLockCommonInfo.UpdateCurrentDoorlockAction += (DoorlockKey, _bool) =>
            //{
            //    Logic.SkipView.DelAllLogic(DoorlockKey);
            //    var key = Send.CurrentDoorLock.DeviceAddr + Send.CurrentDoorLock.DeviceEpoint;
            //    if (DoorlockKey == key)
            //    {
@@ -238,10 +239,10 @@
            //    }
            //};
        }
        /// <summary>
        /// 常开模式开关切换图标界面
        /// </summary>
        public void ModeView()
      /// <summary>
      /// 常开模式开关切换图标界面
      /// </summary>
      public void ModeView()
        {
            fLayout.RemoveAll();
@@ -282,6 +283,7 @@
                openModeFl.AddChidren(closeBtn);
                closeBtn.MouseUpEventHandler += async (sender, e) =>
                {
                    CommonPage.Loading.Start();
                    try
                    {
@@ -312,8 +314,7 @@
                        });
                    }
                };
                if (logicId != 0)
                {
                    ///显示失效设置时间文本控件
@@ -347,15 +348,15 @@
                        ///有时效性常开才显示时间条件文本
                        year = datetime.Year.ToString();//那一年
                        month = datetime.Month.ToString();//那一月
                        var d = int.Parse(datetime.ToString("dd"));//那一天
                        var h = int.Parse(datetime.ToString("HH"));//小时
                        int dayInt = (h + timeValue) / 24;//设置时间+当前系统时间是否超出24小时
                        hour = (h + timeValue) % 24;//设置时间+当前系统时间是否超出24小时剩下多少小时
                        days = d + dayInt;//当前系统天数+执行后天数
                        days = int.Parse(datetime.ToString("dd"));//那一天
                        hour = int.Parse(datetime.ToString("HH"));//小时
                        minute = datetime.Minute;//分钟
                        timeLong = 0;
                    }
                    else
                    {
                        ///读取系统时间                         year = DateTime.Now.Year.ToString();//那一年
                        month = DateTime.Now.Month.ToString();//那一月
                        var d = DateTime.Now.ToString("dd");//那一天
@@ -421,12 +422,13 @@
                modeFl.AddChidren(clickBtn);
                clickBtn.MouseUpEventHandler += (sender, e) =>
                {
                    LogicView.TipView.ShowConfrimTip(() =>
                    {///再次确认
                        LogicView.TipView.ShowInputTip(true, async (str) =>
                        {///确认发送命令
                            CommonPage.Loading.Start();
                            try
                            {