重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
This commit is contained in:
@@ -16,18 +16,18 @@ namespace TechHelper.Client.Exam
|
||||
.Where(line => !string.IsNullOrWhiteSpace(line)).ToList();
|
||||
}
|
||||
|
||||
public static void SeqIndex(this AssignmentDto dto)
|
||||
public static void SeqIndex(this ExamDto dto)
|
||||
{
|
||||
dto.ExamStruct.SeqQGroupIndex();
|
||||
}
|
||||
|
||||
|
||||
public static void SeqQGroupIndex(this AssignmentQuestionDto dto)
|
||||
public static void SeqQGroupIndex(this ExamQuestionDto dto)
|
||||
{
|
||||
|
||||
foreach (var sqg in dto.ChildrenAssignmentQuestion)
|
||||
foreach (var sqg in dto.ChildExamQuestions)
|
||||
{
|
||||
sqg.Index = (byte)(dto.ChildrenAssignmentQuestion.IndexOf(sqg) + 1);
|
||||
sqg.Index = (byte)(dto.ChildExamQuestions.ToList().IndexOf(sqg) + 1);
|
||||
sqg.SeqQGroupIndex();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user