public UIFuncItemInfo(UIFunctionEnum func, string caption, UIFuncItemInfo parent = null, bool dependsOnCase = false) { Caption = caption; Function = func; Parent = parent; DependsOnCase = dependsOnCase; }
private ucContentBase GetContentPage(UIFuncItemInfo itemInfo) { ucContentBase tabPage = null; UIFuncItemInfo itemInfoPar = itemInfo; if (itemInfo.Parent != null && itemInfo.Parent == UIFuncItemInfo.SEARCH) { itemInfoPar = itemInfo.Parent; } UIFunctionEnum funcItem = itemInfoPar.Function; if (m_DTFunction2TabPage.ContainsKey(funcItem)) { tabPage = m_DTFunction2TabPage[funcItem]; } else { tabPage = CreateContentPage(itemInfoPar); if (tabPage != null) { tabPage.Dock = DockStyle.Fill; tabPage.BorderStyle = BorderStyle.None; AddPage(itemInfoPar, tabPage); } } if (itemInfo == UIFuncItemInfo.SEARCHMOTIONOBJECT) { Framework.Container.Instance.EvtAggregator.GetEvent <SearchVideoFilerChangedEvent>().Publish(SearchResourceResultType.Normal); } else if (itemInfo == UIFuncItemInfo.SEARCHFACE) { Framework.Container.Instance.EvtAggregator.GetEvent <SearchVideoFilerChangedEvent>().Publish(SearchResourceResultType.Face); } else if (itemInfo == UIFuncItemInfo.SEARCHVEHICLE) { Framework.Container.Instance.EvtAggregator.GetEvent <SearchVideoFilerChangedEvent>().Publish(SearchResourceResultType.Vehicle); } else if (itemInfo == UIFuncItemInfo.SEARCHBYIMAGE) { Framework.Container.Instance.EvtAggregator.GetEvent <SearchVideoFilerChangedEvent>().Publish(SearchResourceResultType.NoUse); } return(tabPage); }
private XtraUserControl GetNaviContent(UIFunctionEnum funcItem) { XtraUserControl tabTree = null; string name = GetName(funcItem); if (m_tabCtrlContainer.Controls.ContainsKey(name)) { tabTree = (XtraUserControl)m_tabCtrlContainer.Controls[name]; } else { tabTree = CreateNaviContent(funcItem); if (tabTree != null) { tabTree.Dock = DockStyle.Fill; tabTree.Name = GetName(funcItem); tabTree.BorderStyle = BorderStyle.None; m_tabCtrlContainer.Controls.Add(tabTree); } } return(tabTree); }
public void OnShowDialogEvent(UIFuncItemInfo itemInfo) { UIFunctionEnum funcItem = itemInfo.Function; ucContentBase ctrl = null; Form dlg; switch (funcItem) { case UIFunctionEnum.NewCase: dlg = new FormNewCase(new CaseInfo() { CaseHappenTime = DateTime.Now }); dlg.ShowDialog(); break; case UIFunctionEnum.ModifyCase: dlg = new FormNewCase(itemInfo.Subject as CaseInfo, true); dlg.ShowDialog(); break; } }
private XtraUserControl CreateNaviContent(UIFunctionEnum funcItem) { XtraUserControl ctl = null; switch (funcItem) { case UIFunctionEnum.CrowdAlarm: ctl = new IVX.Live.Crowd.Views.ResourceTree.ucCameraTreeView(); break; case UIFunctionEnum.CrowdPlay: ctl = new IVX.Live.Crowd.Views.ResourceTree.ucCameraTreeView(); break; case UIFunctionEnum.CrowdQuery: ctl = new IVX.Live.Crowd.Views.ResourceTree.ucQueryTreeView(); break; default: break; } return(ctl); }
private string GetName(UIFunctionEnum funcItem) { string name = string.Empty; switch (funcItem) { case UIFunctionEnum.CrowdAlarm: name = "事件报警"; break; case UIFunctionEnum.CrowdPlay: name = "预览"; break; case UIFunctionEnum.CrowdQuery: name = "查询"; break; default: break; } return(name); }
private XtraUserControl CreateNaviContent(UIFunctionEnum funcItem) { XtraUserControl ctl = null; switch (funcItem) { case UIFunctionEnum.MyCaseList: case UIFunctionEnum.NewCase: case UIFunctionEnum.CurrCase: ctl = new BOCOM.IVX.Views.ResourceTree.ucCaseTreeView(); break; case UIFunctionEnum.ImportVideos: case UIFunctionEnum.ImportPictures: //case UIFunctionEnum.RunningTasks: //case UIFunctionEnum.FinishedTasks: case UIFunctionEnum.VideoTasks: case UIFunctionEnum.PictureTasks: case UIFunctionEnum.TaskStatus: case UIFunctionEnum.NewTask: ctl = new BOCOM.IVX.Views.ResourceTree.ucTaskTreeView(); break; case UIFunctionEnum.Search: case UIFunctionEnum.SearchMotionObject: case UIFunctionEnum.SearchFace: case UIFunctionEnum.SearchVehicle: case UIFunctionEnum.SearchByImage: ctl = new ucSearchVideoTreeView(); //new BOCOM.IVX.Views.ResourceTree.ucCameraTreeView(); break; case UIFunctionEnum.LiveVideo: ctl = new BOCOM.IVX.Views.ResourceTree.ucResourceTreeViewByTaskBase() { ViewModelbase = new VideoPictureTreeViewByTaskModelBase(TreeShowType.Video) }; break; case UIFunctionEnum.BriefVideo: ctl = new BOCOM.IVX.Views.ResourceTree.ucBrivfCameraTreeView(); break; case UIFunctionEnum.CameraManagement: case UIFunctionEnum.PlatManagement: case UIFunctionEnum.UserManagement: case UIFunctionEnum.ClusterMonitor: case UIFunctionEnum.PASServerManagement: case UIFunctionEnum.FtpHttpServerManagement: case UIFunctionEnum.VDAServerManagement: case UIFunctionEnum.MediaServerManagement: case UIFunctionEnum.MediaRouterManagement: case UIFunctionEnum.VDAResultServerManagement: case UIFunctionEnum.ClientRouterManagement: case UIFunctionEnum.LogManagement: case UIFunctionEnum.CaseManagement: ctl = new BOCOM.IVX.Views.ResourceTree.ucSysconfigTreeView(); break; case UIFunctionEnum.CaseExport: case UIFunctionEnum.TagExport: ctl = new BOCOM.IVX.Views.ResourceTree.ucExportTreeView(); break; default: break; } return(ctl); }
private string GetName(UIFunctionEnum funcItem) { string name = string.Empty; switch (funcItem) { case UIFunctionEnum.MyCaseList: case UIFunctionEnum.NewCase: case UIFunctionEnum.CurrCase: name = "案件管理"; break; case UIFunctionEnum.ImportVideos: case UIFunctionEnum.ImportPictures: //case UIFunctionEnum.RunningTasks: //case UIFunctionEnum.FinishedTasks: case UIFunctionEnum.VideoTasks: case UIFunctionEnum.PictureTasks: case UIFunctionEnum.TaskStatus: case UIFunctionEnum.NewTask: name = "任务管理"; break; case UIFunctionEnum.Search: case UIFunctionEnum.SearchMotionObject: case UIFunctionEnum.SearchFace: case UIFunctionEnum.SearchVehicle: case UIFunctionEnum.SearchByImage: name = "智能检索"; break; case UIFunctionEnum.LiveVideo: name = "视频播放"; break; case UIFunctionEnum.BriefVideo: name = "浓缩播放"; break; case UIFunctionEnum.CameraManagement: case UIFunctionEnum.PlatManagement: case UIFunctionEnum.UserManagement: case UIFunctionEnum.ClusterMonitor: case UIFunctionEnum.VDAServerManagement: case UIFunctionEnum.PASServerManagement: case UIFunctionEnum.FtpHttpServerManagement: case UIFunctionEnum.MediaServerManagement: case UIFunctionEnum.MediaRouterManagement: case UIFunctionEnum.VDAResultServerManagement: case UIFunctionEnum.ClientRouterManagement: case UIFunctionEnum.LogManagement: case UIFunctionEnum.CaseManagement: name = "系统配置"; break; case UIFunctionEnum.CaseExport: case UIFunctionEnum.TagExport: name = "汇总导出"; break; default: break; } return(name); }
private ucContentBase CreateContentPage(UIFuncItemInfo itemInfo) { UIFunctionEnum funcItem = itemInfo.Function; ucContentBase ctrl = null; Form dlg; switch (funcItem) { case UIFunctionEnum.MyCaseList: ctrl = new ucMyCaseList(); break; case UIFunctionEnum.CurrCase: ctrl = new ucCurrentCase(itemInfo.Subject as CaseInfo); break; case UIFunctionEnum.CaseExport: ctrl = new ucCaseExport(); break; case UIFunctionEnum.NewCase: dlg = new FormNewCase(new CaseInfo() { CaseHappenTime = DateTime.Now }); dlg.ShowDialog(); break; case UIFunctionEnum.ModifyCase: dlg = new FormNewCase(itemInfo.Subject as CaseInfo, true); dlg.ShowDialog(); break; case UIFunctionEnum.ImportVideos: ctrl = new ucVideoTaskStatus(); break; case UIFunctionEnum.ImportPictures: ctrl = new ucPictureTaskStatus(); break; case UIFunctionEnum.Search: //case UIFunctionEnum.SearchMotionObject: //case UIFunctionEnum.SearchFace: //case UIFunctionEnum.SearchVehicle: //case UIFunctionEnum.SearchByImage: ctrl = new ucSearch(); break; case UIFunctionEnum.LiveVideo: ctrl = new ucPlayVideo(); break; case UIFunctionEnum.BriefVideo: ctrl = new ucPlayBriefVideoNew(); break; //case UIFunctionEnum.RunningTasks: // ctrl = new ucRunningTasks(); // break; //case UIFunctionEnum.FinishedTasks: // ctrl = new ucFinishedTasks(); // break; case UIFunctionEnum.VideoTasks: ctrl = new ucVideoTaskStatus(); break; case UIFunctionEnum.PictureTasks: ctrl = new ucPictureTaskStatus(); break; case UIFunctionEnum.TaskStatus: ctrl = new ucTasksStatus(); break; case UIFunctionEnum.NewTask: //ctrl = new ucCreateTaskWizard(); dlg = new FormCreateTaskWizard(); dlg.StartPosition = FormStartPosition.CenterParent; dlg.ShowDialog(); break; case UIFunctionEnum.NewTaskUnit: // ctrl = new ucCreateTaskWizard(itemInfo.Subject as TaskInfo); dlg = new FormCreateTaskWizard(itemInfo.Subject as TaskInfo); dlg.StartPosition = FormStartPosition.CenterParent; dlg.ShowDialog(); break; case UIFunctionEnum.CameraManagement: ctrl = new ucCameraManagement(); break; case UIFunctionEnum.PlatManagement: ctrl = new ucVideoSupplierDeviceManagement(); break; case UIFunctionEnum.UserManagement: ctrl = new ucUserManagement(); break; case UIFunctionEnum.ClusterMonitor: ctrl = new ucClusterMonitor(); break; case UIFunctionEnum.VDAServerManagement: ctrl = new ucVDAServerManagement(); break; case UIFunctionEnum.PASServerManagement: ctrl = new ucPASServerManagement(); break; case UIFunctionEnum.FtpHttpServerManagement: ctrl = new ucFtpHttpServerManagement(); break; case UIFunctionEnum.MediaServerManagement: ctrl = new ucMediaServerManagement(); break; case UIFunctionEnum.MediaRouterManagement: ctrl = new ucMediaRouterManagement(); break; case UIFunctionEnum.VDAResultServerManagement: ctrl = new ucVDAResultServerManagement(); break; case UIFunctionEnum.ClientRouterManagement: ctrl = new ucClientRouterManagement(); break; case UIFunctionEnum.LogManagement: ctrl = new ucLogManagement(); break; case UIFunctionEnum.CaseManagement: ctrl = new ucCaseManagement(); break; case UIFunctionEnum.TagExport: ctrl = new ucTagExport(); break; default: break; } return(ctrl); }