void uctask_TaskDoAction(ucSingleRealtimeTask arg1, E_TASK_ACTION_TYPE arg2)
        {
            var cam = m_viewModel.GetCameraInfo(arg1.Task.CameraID);

            switch (arg2)
            {
            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_NONE:
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_PEOPLE_SEARCH:
                WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                    URL = "FormPeopleSearch", Title = "行人检索", Discription = "行人检索"
                }, cam));
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_VEHICLE_SEARCH:
                WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                    URL = "FormVehicleSearch", Title = "车辆检索", Discription = "车辆检索"
                }, cam));
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_CROWD:
                WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                    URL = "FormCrowdReatime", Title = "实时大客流", Discription = "实时大客流"
                }, arg1.Task));
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_BRIEF:
                FormPlayBriefNew f = new FormPlayBriefNew(arg1.Task);
                f.ShowDialog();
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT:
                WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                    URL = "FormTrafficEventAlarm", Title = "交通事件", Discription = "交通事件"
                }, arg1.Task));
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT_SEARCH:
                break;

            default:
                break;
            }
        }
        void uctask_TaskDoAction(ucSingleHistoryTask arg1, E_TASK_ACTION_TYPE arg2)
        {
            switch (arg2)
            {
            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_NONE:
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_PEOPLE_SEARCH:
                WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                    URL = "FormPeopleSearch", Title = "行人检索", Discription = "行人检索"
                }, arg1.Task));
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_VEHICLE_SEARCH:
                WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                    URL = "FormVehicleSearch", Title = "车辆检索", Discription = "车辆检索"
                }, arg1.Task));
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_CROWD:
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_BRIEF:
                FormPlayBriefNew f = new FormPlayBriefNew(arg1.Task);
                f.ShowDialog();
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT:
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT_SEARCH:
                break;

            case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_DYNMIC_VEHICLE_SEARCH:
                WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                    URL = "FormVehicleSearch", Title = "车辆检索", Discription = "车辆检索"
                }, arg1.Task));
                break;

            default:
                break;
            }
        }
Exemplo n.º 3
0
        void uctask_TaskDoAction(E_TASK_ACTION_TYPE arg2)
        {
            uint id = 0;

            if (advTree1.SelectedNode.Tag is Tuple <uint, StatusInfoV3_1> )
            {
                id = (advTree1.SelectedNode.Tag as Tuple <uint, StatusInfoV3_1>).Item1;
            }
            if (advTree1.SelectedNode.Tag is TaskInfoV3_1)
            {
                id = (advTree1.SelectedNode.Tag as TaskInfoV3_1).TaskId;
            }
            if (id != 0)
            {
                var task = m_viewModel.GetTaskInfo(id);
                switch (arg2)
                {
                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_NONE:
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_PEOPLE_SEARCH:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormPeopleSearch", Title = "行人检索", Discription = "行人检索"
                    }, task));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_VEHICLE_SEARCH:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormVehicleSearch", Title = "车辆检索", Discription = "车辆检索"
                    }, task));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_CROWD:
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_BRIEF:
                    FormPlayBriefNew f = new FormPlayBriefNew(task);
                    f.ShowDialog();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT:
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT_SEARCH:
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_DYNMIC_VEHICLE_SEARCH:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormVehicleSearch", Title = "车辆检索", Discription = "车辆检索"
                    }, task));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_INFO:
                    ShowSingleTask();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_PLAYBACK:
                    buttonTaskPlay_Click();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_DELETE:
                    buttonDelItem_Click();
                    break;

                default:
                    break;
                }
            }
        }
Exemplo n.º 4
0
        void uctask_TaskDoAction(E_TASK_ACTION_TYPE arg2)
        {
            uint id = 0;

            if (advTree1.SelectedNode.Tag is TaskInfoV3_1)
            {
                id = (advTree1.SelectedNode.Tag as TaskInfoV3_1).TaskId;
            }
            if (id != 0)
            {
                var task = m_viewModel.GetTaskInfo(id);

                var cam = m_viewModel.GetCameraInfo(task.CameraID);

                switch (arg2)
                {
                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_NONE:
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_PEOPLE_SEARCH:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormPeopleSearch", Title = "行人检索", Discription = "行人检索"
                    }, cam));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_VEHICLE_SEARCH:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormVehicleSearch", Title = "车辆检索", Discription = "车辆检索"
                    }, cam));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_CROWD:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormCrowdReatime", Title = "实时大客流", Discription = "实时大客流"
                    }, task));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_BRIEF:
                    FormPlayBriefNew f = new FormPlayBriefNew(task);
                    f.ShowDialog();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormTrafficEventAlarm", Title = "交通事件", Discription = "交通事件"
                    }, task));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_TRAFFIC_EVENT_SEARCH:
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_INFO:
                    ShowSingleTask();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_PLAYBACK:
                    buttonTaskPlay_Click();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_DELETE:
                    buttonDelItem_Click();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_SUNPEND:
                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_CONTINUE:
                    buttonTaskPauseResume_Click();
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_DYNMIC_FACE_ALARM:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormFaceAlarm", Title = "人脸报警", Discription = "人脸报警"
                    }, task));
                    break;

                case E_TASK_ACTION_TYPE.E_TASK_ACTION_TYPE_DYNMIC_FACE_CONTROL:
                    WinFormAppUtil.AppContainer.Instance.EvtAggregator.GetEvent <NavigateEvent>().Publish(new Tuple <SystemMenu, object>(new SystemMenu {
                        URL = "FormFaceAlarmControl", Title = "人脸布控", Discription = "人脸布控"
                    }, task));
                    break;

                default:
                    break;
                }
            }
        }