public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ConstInfoConvertHelper helper = null;

            switch ((DepartmentLevel)value)
            {
            case DepartmentLevel.ARMY:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "空军");
                break;

            case DepartmentLevel.DIVISION:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "师");
                break;

            case DepartmentLevel.BRIGADE:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "旅");
                break;

            case DepartmentLevel.REGIMENT:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "团");
                break;

            case DepartmentLevel.BATTALIONS:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "营");
                break;

            case DepartmentLevel.COMPANY:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "连");
                break;

            case DepartmentLevel.PLANTOON:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "排");
                break;

            case DepartmentLevel.CLASS:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "班");
                break;

            default:
                helper = new ConstInfoConvertHelper("#3ad2b1", "", "未知");
                break;
            }

            return(helper);
        }
Example #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ConstInfoConvertHelper helper = null;

            switch ((AssessmentMethod)value)
            {
            case AssessmentMethod.ALONY_AND_ONECE:
                helper = new ConstInfoConvertHelper("#49c8fd", "Walk", "单独组织一次性评估");
                break;

            case AssessmentMethod.BASED_AND_JOINED:
                helper = new ConstInfoConvertHelper("#49c8fd", "Walk", "依托基地融入式评估");
                break;

            case AssessmentMethod.LAYERED_AND_SPLITED:
                helper = new ConstInfoConvertHelper("#49c8fd", "Walk", "区分层次分阶段评估");
                break;

            default:
                helper = new ConstInfoConvertHelper("gray", "Unknow", "未知");
                break;
            }
            return(helper);
        }
Example #3
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ConstInfoConvertHelper helper = null;

            switch ((AssessmentStatus)value)
            {
            case AssessmentStatus.DOING:
                helper = new ConstInfoConvertHelper("#3ad2b1", "Run", "进行中");
                break;

            case AssessmentStatus.DONE:
                helper = new ConstInfoConvertHelper("#49c8fd", "Done", "已完成");
                break;

            case AssessmentStatus.UNDO:
                helper = new ConstInfoConvertHelper("#ec6d51", "TimerOff", "未完成");
                break;

            default:
                helper = new ConstInfoConvertHelper("gray", "Unknow", "未知");
                break;
            }
            return(helper);
        }
Example #4
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ConstInfoConvertHelper helper = null;

            switch ((AssessmentResult)value)
            {
            case AssessmentResult.PASS:
                helper = new ConstInfoConvertHelper("#3ad2b1", "Like", "已通过");
                break;

            case AssessmentResult.UNPASS:
                helper = new ConstInfoConvertHelper("#ec6d51", "DisLike", "未通过");
                break;

            case AssessmentResult.NOTDONE:
                helper = new ConstInfoConvertHelper("#49c8fd", "TimerOff", "未完成");
                break;

            default:
                helper = new ConstInfoConvertHelper("gray", "Unknow", "未知");
                break;
            }
            return(helper);
        }