public object Clone()
        {
            TaskUnitInfo newTaskUnit = new TaskUnitInfo()
            {
                TaskID              = TaskID,
                TaskUnitID          = TaskUnitID,
                TaskUnitName        = TaskUnitName,
                TaskUnitSize        = TaskUnitSize,
                TaskUnitType        = TaskUnitType,
                FilePathType        = FilePathType,
                FilePath            = FilePath,
                StartTime           = StartTime,
                EndTime             = EndTime,
                ImportStatus        = ImportStatus,
                VideoAnalyzeTypeNum = VideoAnalyzeTypeNum,
                AnalyzeStatus       = new Dictionary <E_VIDEO_ANALYZE_TYPE, E_VDA_TASK_UNIT_STATUS>(),
                Progress            = Progress,
                LeftTimeS           = LeftTimeS,
                AnalyzeStatusString = "",
                CameraId            = CameraId
            };

            foreach (E_VIDEO_ANALYZE_TYPE t in AnalyzeStatus.Keys)
            {
                newTaskUnit.AnalyzeStatus.Add(t, AnalyzeStatus[t]);
            }

            return(newTaskUnit);
        }
        public static SearchItem ToSearchItem(this TaskUnitInfo taskUnit, PageInfoBase pageInfo)
        {
            SearchItem searchItem = new SearchItem()
            {
                TaskUnitId = taskUnit.TaskUnitID,
                PageInfo   = pageInfo,
                CameraId   = taskUnit.CameraId,
                CameraCode = taskUnit.CameraCode
            };

            return(searchItem);
        }