|
|
|
@ -324,7 +324,7 @@ public class Ghre_ExamServices : BaseServices<Ghre_Exam, Ghre_ExamDto, InsertGhr |
|
|
|
|
x.canEdit = 0; |
|
|
|
|
x.canDelete = 0; |
|
|
|
|
} |
|
|
|
|
if (x.Status == "Released") |
|
|
|
|
if (x.Status == "Draft") |
|
|
|
|
{ |
|
|
|
|
x.showLink = 0; |
|
|
|
|
x.showResult = 0; |
|
|
|
@ -810,7 +810,8 @@ public class Ghre_ExamServices : BaseServices<Ghre_Exam, Ghre_ExamDto, InsertGhr |
|
|
|
|
var insertStaffs = Mapper.Map(exam).ToANew<List<InsertGhre_ExamStaffInput>>(); |
|
|
|
|
id = await base.Add(insert); |
|
|
|
|
insertStaffs.ForEach(x => x.ExamId = id); |
|
|
|
|
await _ghre_ExamStaffServices.Add(insertStaffs); |
|
|
|
|
if (insertStaffs.Any()) |
|
|
|
|
await _ghre_ExamStaffServices.Add(insertStaffs); |
|
|
|
|
|
|
|
|
|
return ServiceResult.OprateSuccess("复制成功!"); |
|
|
|
|
|
|
|
|
|