Exemplo n.º 1
0
        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_VDA_ANALYZE_TYPE, E_VDA_TASK_UNIT_STATUS>(),
                Progress            = Progress,
                LeftTimeS           = LeftTimeS,
                AnalyzeStatusString = "",
                CameraId            = CameraId
            };

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

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

            return(searchItem);
        }