using System.Collections.Generic; namespace DaJiaoYan.Models { public static class Enumerates { /// /// 答题卡尺寸 /// public enum CardSizeType { Other = 0, K16 = 1, A4 = 2, K8 = 3, A3 = 4, A5 = 5, B5 = 6, } /// /// 打分方式 /// public enum ScorePartType { /// /// 填涂 /// Paint = 0, /// /// 手写 /// Write = 1, } /// /// 批改类型 /// public enum TestCorrectType { /// /// 按区 /// Area = 1, /// /// 按空 /// Empty = 2, /// /// 按区划分按空批改 /// AreaEmpty = 3, } /// /// 试卷状态 /// public enum TestStatus { /// /// 等待 /// StandBy = 0, /// /// 进行中 /// Progressing = 1, /// /// 完成/结束 /// Finish = 2, } /// /// 纸张方向 /// public enum PaperDirection { /// /// 横向 /// Horizontal, /// /// 纵向 /// Vertical } /// /// 题型 /// public enum QuestionType { /// /// 未设置 /// NotSet = 0, /// /// 客观题 /// Objective = 1, /// /// 主观题 /// Subjective = 2, } /// /// 学生上传类型 /// public enum StudentUploadType { All = 0, NotUploaded = 1, Uploaded = 2, } /// /// 字体 /// public enum FontWeight { /// /// 普通 /// Normal, /// /// 粗体 /// Bold } /// /// 系统题型 /// public static class SystemQuestType { /// /// 单选 /// private const string MULTIPLE_ONE = "multiple_one"; /// /// 多选 /// private const string MULTIPLE_MANY = "multiple_many"; /// /// 大题 /// private const string BIG_SPACES = "big_spaces"; /// /// 填空题 /// private const string EMPTY_SPACES = "empty_spaces"; /// /// 所有类型 /// private static readonly List allTypes = new List() { MULTIPLE_ONE, MULTIPLE_MANY, EMPTY_SPACES, BIG_SPACES }; /// /// 单选 /// public static string MultipleOne { get { return MULTIPLE_ONE; } } /// /// 多选 /// public static string MultipleMany { get { return MULTIPLE_MANY; } } /// /// 大题 /// public static string BigSpaces { get { return BIG_SPACES; } } /// /// 填空题 /// public static string EmptySpaces { get { return EMPTY_SPACES; } } /// /// 所有类型 /// public static List AllTypes { get { return allTypes; } } /// /// 判断题型是否相等 /// /// /// /// public static bool EqualType(string res, string dst) { return string.Equals(res, dst, System.StringComparison.OrdinalIgnoreCase); } } /// /// 选项字体的字体 /// public static Dictionary FontWeights = new Dictionary() { {FontWeight.Normal, "普通" }, {FontWeight.Bold, "粗体" }, }; /// /// 选项字体系数 /// public static Dictionary FontWeightPct = new Dictionary() { {FontWeight.Normal, 1 }, {FontWeight.Bold, 1.3 }, }; /// /// 填涂的轻重 /// public enum SignWeight { /// /// 很浅 /// Lightest, /// /// 较浅 /// Lighter, /// /// 普通 /// Normal, /// /// 较深 /// Harder, /// /// 很深 /// Hardest } /// /// 填涂的深浅 /// public static Dictionary SignWeigths = new Dictionary() { {SignWeight.Lightest, "很浅" }, {SignWeight.Lighter, "较浅" }, {SignWeight.Normal, "普通" }, {SignWeight.Harder, "较深" }, {SignWeight.Hardest, "很深" }, }; /// /// 填涂系数百分比 /// public static Dictionary SignWeigthPct = new Dictionary() { {SignWeight.Lightest, 0.75 }, {SignWeight.Lighter, 0.9 }, {SignWeight.Normal, 1 }, {SignWeight.Harder, 1.1 }, {SignWeight.Hardest, 1.25 }, }; /// /// 题型字典 /// public static Dictionary QuestTypes = new Dictionary() { {QuestionType.NotSet, "未设定" }, {QuestionType.Objective, "客观题" }, {QuestionType.Subjective, "主观题" }, }; /// /// 上传学生类型 /// public static Dictionary StudentUploadTypes = new Dictionary() { {StudentUploadType.All, "所有" }, {StudentUploadType.NotUploaded, "未上传" }, {StudentUploadType.Uploaded, "已上传" }, }; /// /// 任务状态 /// public enum TaskState { /// /// 等待中 /// StandBy, /// /// 运行中 /// Running, /// /// 已完成 /// Finish, } /// /// 任务状态 /// public static Dictionary TaskTypes = new Dictionary() { { TaskState.StandBy, "未启动" }, {TaskState.Running, "运行中" }, {TaskState.Finish, "已结束" } }; /// /// 主观题未批改处理类型 /// public enum SubjectiveNoMarkingType { /// /// 未批改部分强制给0分 /// ForceZero = 0, /// /// 未批改部分为线上批改 /// OnlineMarking = 1 } /// /// 主观题未批改处理类型描述 /// public static Dictionary SubjectiveNoMarkingTypes = new Dictionary() { {SubjectiveNoMarkingType.OnlineMarking, "线上阅卷" }, {SubjectiveNoMarkingType.ForceZero, "强制0分" }, }; } }