From cbc156bc38d8b8eae7aef60cb186ab2b52fa701f Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期二, 16 七月 2024 13:59:56 +0800
Subject: [PATCH] 增加全部挂断

---
 HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs |   40 ++++++++++++++++++++++++++++++++--------
 1 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs
index 8becceb..d86a322 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorLockPage.cs
@@ -60,6 +60,7 @@
         /// 闂ㄩ攣鐘舵��
         /// </summary>
         private Button btnDoorLockIcon;
+            Button btnDoorlockStatus;
         /// <summary>
         /// 瀹炴椂瑙嗛
         /// </summary>
@@ -239,7 +240,6 @@
 
             this.CalculatedPosition();//閲嶆柊璁$畻瀹藉害
 
-            Button btnDoorlockStatus;
             btnDoorlockStatus = new Button()
             {
                 Width = Application.GetRealWidth(200),
@@ -264,6 +264,7 @@
             rtvFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/RTV.png";
             rtvFL.GetTextButton().TextID = StringId.shishishipin;
             
+            
             //涓存椂瀵嗙爜
             pswFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout);
             whiteFl.AddChidren(pswFL);
@@ -273,6 +274,11 @@
             pswFL.AddTextButtonView();
             pswFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/OneOpenLock.png";
             pswFL.GetTextButton().TextID = StringId.linshimima1;
+            if (device.omodel.Contains("CS-DL30F-V100"))
+            {
+                rtvFL.Visible = rtvFL.Enable = false;
+                pswFL.X = Application.GetRealWidth(26);
+            }
 
             //鍘嗗彶璁板綍
             recordFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout);
@@ -378,14 +384,27 @@
                 CommonMethod.Current.SkipRTVActivity(this.device.sid, this.device.deviceId, this.device.spk, false);
 
             });
+            var lastClickTime = DateTime.MinValue;
             //涓存椂瀵嗙爜
             this.pswFL.SetClickListener((fl, btnStateImage, btnStateText) =>
             {
+                if (lastClickTime.AddSeconds(3) > DateTime.Now)
+                {
+                    return;
+                }
+                lastClickTime = DateTime.Now;
                 CommonMethod.Current.SkipPSWActivity(this.device.deviceId);
             });
+
             //鍘嗗彶璁板綍
             this.recordFL.SetClickListener((fl, btnStateImage, btnStateText) =>
             {
+                if (lastClickTime.AddSeconds(3) > DateTime.Now)
+                {
+                    return;
+                }
+                lastClickTime = DateTime.Now;
+
                 //VideoDoorlockHistoryPage historyPage = new VideoDoorlockHistoryPage(device);
                 //MainPage.BasePageView.AddChidren(historyPage);
                 //historyPage.LoadPage();
@@ -434,7 +453,18 @@
                         //this.cellDiyArcSeekBar.Progress = i;
                         //鏇存柊鐢甸噺鍊�
                         this.btnCell.Text = cellInfo.remain + "%";
-                        this.btnDoorLockIcon.IsSelected = videoDoorLockInfo.doorStatus == "open";
+                        if(videoDoorLockInfo.doorStatus == "open")
+                        {
+                            this.btnDoorLockIcon.IsSelected = true;
+                            this.btnDoorlockStatus.TextID = StringId.DoorlockOpen;
+                            this.btnDoorlockStatus.TextColor = CSS_Color.WarningColor;
+                        }
+                        else
+                        {
+                            this.btnDoorLockIcon.IsSelected = false;
+                            this.btnDoorlockStatus.TextID = StringId.DoorlockClose;
+                            this.btnDoorlockStatus.TextColor = 0xFF000000;
+                        }
                     });
                 }
                 catch { }
@@ -618,11 +648,5 @@
             return false;
 
         }
-
-
-
-
     }
-
-
 }

--
Gitblit v1.8.0