Commit 48ef0d6c authored by 黄奎's avatar 黄奎

新增字段

parent a9c24d7b
......@@ -19,5 +19,10 @@ namespace Edu.Model.ViewModel.Exam
/// 模板数据
/// </summary>
public List<ExamTemplate> TempDataList { get; set; }
/// <summary>
/// 父节点编号
/// </summary>
public int ParentId { get; set; }
}
}
......@@ -405,7 +405,7 @@ namespace Edu.Module.Exam
GenerateType = 1,
CreateNum = model.TemplateNum,
PaperType = 1,
ParentId = 0,
ParentId = model.ParentId,
};
var newPaperId = examination_PaperRepository.Insert(paperModel);
paperModel.PaperId = newPaperId;
......
......@@ -213,6 +213,7 @@ namespace Edu.WebApi.Controllers.Exam
School_Id = base.UserInfo.School_Id,
Status = Common.Enum.DateStateEnum.Normal,
IsSaveTemplate = base.ParmJObj.GetBoolValue("IsSaveTemplate"),
ParentId=base.ParmJObj.GetInt("ParentId"),
};
string TemplateData = base.ParmJObj.GetStringValue("TemplateData");
if (!string.IsNullOrEmpty(TemplateData))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment