コード例 #1
0
        //public DataTable TaskUnitImportStatus
        //{
        //    get
        //    {
        //        DataTable t = new DataTable();
        //        t.Columns.Add("KEY");
        //        t.Columns.Add("NAME");
        //        t.Columns.Add("VALUE");
        //        t.Rows.Add(0, "E_TASKUNIT_IMPORT_NOUSE", "等待导入");
        //        t.Rows.Add(1, "E_TASKUNIT_IMPORT_WAIT", "等待导入");
        //        t.Rows.Add(2, "E_TASKUNIT_IMPORT_READY", "导入准备");
        //        t.Rows.Add(3, "E_TASKUNIT_IMPORT_EXECUTING", "导入中");
        //        t.Rows.Add(4, "E_TASKUNIT_IMPORT_FINISH", "导入完成");
        //        t.Rows.Add(5, "E_TASKUNIT_IMPORT_FAILED", "导入失败");
        //        t.Rows.Add(6, "E_TASKUNIT_ANALYZE_WAIT", "等待导入中");
        //        t.Rows.Add(7, "E_TASKUNIT_ANALYZE", "分析中");
        //        t.Rows.Add(8, "E_TASKUNIT_ANALYZE_COMPLETE", "完成");
        //        t.Rows.Add(9, "E_TASKUNIT_ANALYZE_FAILED", "失败");

        //        return t;
        //    }
        //}
        private Image GetStatusImage(E_VDA_TASK_UNIT_STATUS s)
        {
            Image i = imageGroup.Images[25];

            switch (s)
            {
            //case E_VDA_TASK_UNIT_STATUS.E_TASKUNIT_NO_ANALYZE:
            //    i = imageCollection1.Images[25];
            //    break;
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_WAIT:
                i = imageGroup.Images[30];
                break;

            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_EXECUTING:
                i = imageGroup.Images[27];
                break;

            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_FINISH:
                i = imageGroup.Images[29];
                break;

            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_FAILED:
                i = imageGroup.Images[28];
                break;

            default:
                i = imageGroup.Images[25];
                break;
            }
            return(i);
        }
コード例 #2
0
        private bool Match(TaskUnitInfo taskunit, TreeShowObjectFilter filter)
        {
            switch ((E_VDA_TASK_UNIT_STATUS)taskunit.ImportStatus)
            {
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_NOUSE:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_IMPORT_WAIT:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_IMPORT_READY:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_IMPORT_EXECUTING:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_IMPORT_FAILED:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_IMPORT_FINISH:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_PREANALYSE_EXECUTING:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_PREANALYSE_FAILED:
            case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_PREANALYSE_WAIT:
                return(false);
            }

            if (filter == TreeShowObjectFilter.NoUse)
            {
                return(true);
            }

            bool retval = false;

            foreach (E_VDA_ANALYZE_TYPE type in taskunit.AnalyzeStatus.Keys)
            {
                E_VDA_TASK_UNIT_STATUS status = taskunit.AnalyzeStatus[type];
                if ((E_VDA_TASK_UNIT_STATUS)status != E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_FINISH)
                {
                    continue;
                }

                //switch ((E_VDA_TASK_UNIT_STATUS)status)
                //{
                //    case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_WAIT:
                //    case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_EXECUTING:
                //    case E_VDA_TASK_UNIT_STATUS.E_TASK_UNIT_ANALYSE_FAILED:
                //        continue;
                //}

                if ((filter & TreeShowObjectFilter.Brief) > 0 && type == E_VDA_ANALYZE_TYPE.E_ANALYZE_BRIEAF)
                {
                    retval = true;
                }
                else if ((filter & TreeShowObjectFilter.Face) > 0 && type == E_VDA_ANALYZE_TYPE.E_ANALYZE_FACE)
                {
                    retval = true;
                }
                else if ((filter & TreeShowObjectFilter.Car) > 0 && type == E_VDA_ANALYZE_TYPE.E_ANALYZE_VEHICLE)
                {
                    retval = true;
                }
                else if ((filter & TreeShowObjectFilter.Object) > 0 && type == E_VDA_ANALYZE_TYPE.E_ANALYZE_OBJECT)
                {
                    retval = true;
                }
            }
            return(retval);
        }
コード例 #3
0
ファイル: TaskType.cs プロジェクト: test123test111/XD
 public TaskUnitImportStatusInfo(E_VDA_TASK_UNIT_STATUS status, string name)
 {
     Status = status;
     Name   = name;
 }
コード例 #4
0
ファイル: TaskType.cs プロジェクト: test123test111/XD
 public AnalyzeStatusInfo(E_VDA_TASK_UNIT_STATUS status, string name)
 {
     Status = status;
     Name   = name;
 }