HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/1-HomePage/HomePage.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
HDL_ON/UI/UI2/FuntionControlView/Aks/YkPage.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs
@@ -339,6 +339,16 @@ form.Show(); } break; case SPK.AvZkAiks: { //影音中控 var form = new UI2.FuntionControlView.Aks.AksPage(function, btnName, btnFromFloor, comerom, action); MainPage.BasePageView.AddChidren(form); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; form.Show(); } break; } }; return eventHandler; HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -1556,6 +1556,11 @@ btnIcon.UnSelectedImagePath = UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon(UI2.FuntionControlView.VideoDoorLock.CommonMethod.Comerom.collect); //btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png"; } else if (function.spk == SPK.AvZkAiks) { //为了去掉开关按钮 //btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png"; } //else if (function.spk == SPK.GroupControl) //{ // btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/lightswitch_blue.png"; HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs
@@ -200,6 +200,10 @@ { btnIcon.UnSelectedImagePath =UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.GetVideoDoorLockIcon(UI2.FuntionControlView.VideoDoorLock.CommonMethod.Comerom.function); } else if (function.spk == SPK.AvZkAiks) { //隐藏开关按钮 } else if(function.spk == SPK.GroupControl) { } else if (function.spk == SPK.HvacCac) { HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/HorizontalFramLayout.cs
@@ -58,6 +58,7 @@ Padding = new Padding(4, 4, 4, 4), Radius = (uint)Application.GetRealHeight(4), Tag = filters, Name = i.ToString(), }; //重新计算组件宽度 @@ -73,6 +74,11 @@ this.AddChidren(btnSpacing); button.MouseDownEventHandler += (sen, e) => { if (btnSelected.Name == button.Name) { //点击同一个组件无效 return; } btnSelected.IsSelected = false; button.IsSelected = true; btnSelected = button; @@ -80,7 +86,9 @@ { return; } SelectTypeEvent?.Invoke((Filters)button.Tag); var filters = (Filters)button.Tag; SelectTypeEvent?.Invoke(filters); }; if (defaultIndex != -1 && defaultIndex == i) HDL_ON/UI/UI2/FuntionControlView/Aks/YkPage.cs
@@ -4,6 +4,7 @@ using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock; using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; using System.Linq; namespace HDL_ON.UI.UI2.FuntionControlView.Aks { @@ -13,6 +14,8 @@ public class YkPage : FrameLayout { private Dictionary<string, Filters> FiltersList = new Dictionary<string, Filters>(); /// <summary> /// /// </summary> @@ -26,7 +29,7 @@ /// </summary> RemoteControlEntity remoteControl; /// <summary> /// 影片分类列表 /// 影片一级分类列表 /// </summary> List<FilterCategoryEntity> mFilterCategoryList; /// <summary> @@ -34,7 +37,7 @@ /// </summary> List<MovieLibrary> mMovieLibraryList; /// <summary> /// 头部布局 /// 顶部布局 /// </summary> TopView topView; @@ -104,7 +107,7 @@ }; } /// <summary> /// 加载分类布局 /// 加载一级分类布局 /// </summary> private void LoadFTypeLayout() { @@ -115,6 +118,7 @@ fLayout.AddChidren(horizontalFl); horizontalFl.LoadHorizontalPage(this.mFilterCategoryList); horizontalFl.AdjustRealHeight(20); vv = new VerticalRefreshLayout() { Y = horizontalFl.Bottom, @@ -124,7 +128,32 @@ //二级过滤事件 horizontalFl.selectKeyAction += (filters) => { AddMemoryFilters(filters); CommonMethod.Current.Loading.Start(); CommonMethod.Current.SunThread(() => { try { this.mMovieLibraryList = SendMethod.Current.GetMovieLibraryPage(this.remoteControl.deviceId, this.remoteControl.rcId, this.FiltersList.Values.ToList(), pageNo, SendMethod.pageSize); for (int i = 0; i < this.mMovieLibraryList.Count; i++) { var mMovieLibrary = this.mMovieLibraryList[i]; var bytes = SendMethod.Current.GetImage(mMovieLibrary.posterUrl); mMovieLibrary.imageBytes = bytes; } } catch { } finally { CommonMethod.Current.MainThread(() => { CommonMethod.Current.Loading.Hide(); this.LoadImageFLayout(); }); } }); }; @@ -201,5 +230,16 @@ } private void AddMemoryFilters(Filters filters) { if (FiltersList.ContainsKey(filters.category)) { FiltersList.Remove(filters.category); } FiltersList.Add(filters.category, filters); } } }