|
|
|
@ -571,7 +571,24 @@ END"; |
|
|
|
|
|
|
|
|
|
x.children1 = null; |
|
|
|
|
}); |
|
|
|
|
obj.Columns = columns; |
|
|
|
|
|
|
|
|
|
if (columns.Any(x => x.tabKey == "Photo") && columns.Any(x => x.tabKey == "Base")) |
|
|
|
|
{ |
|
|
|
|
columns.ForEach(x => |
|
|
|
|
{ |
|
|
|
|
if (x.tabKey == "Base") |
|
|
|
|
{ |
|
|
|
|
x.children.Insert(0, new ResumeFormColumnChildren() |
|
|
|
|
{ |
|
|
|
|
field = "PhotoUrls", |
|
|
|
|
elementType = "FileUpload", |
|
|
|
|
editable = "1" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
obj.Columns = columns.Where(x => x.tabKey != "Photo").ToList(); |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
#region Data |
|
|
|
@ -591,6 +608,17 @@ END"; |
|
|
|
|
var value = entity.GetPropertyValue(x); |
|
|
|
|
dicts.Add(x, value); |
|
|
|
|
}); |
|
|
|
|
if (entity.PhotoUrl.IsNotEmptyOrNull()) |
|
|
|
|
{ |
|
|
|
|
dicts.Add("PhotoUrls", new List<ResumePhotoAttachment>() |
|
|
|
|
{ |
|
|
|
|
new ResumePhotoAttachment() { RelativePath =entity.PhotoUrl } |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else dicts.Add("PhotoUrls", new List<ResumePhotoAttachment>() |
|
|
|
|
{ |
|
|
|
|
}); |
|
|
|
|
Data.Base = dicts; |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
@ -771,6 +799,9 @@ END"; |
|
|
|
|
resume.Base.ApplicationTime = DateTime.Now; |
|
|
|
|
if (status == "Submit") |
|
|
|
|
resume.Base.Status = "All"; |
|
|
|
|
|
|
|
|
|
if (resume.Base.PhotoUrls != null && resume.Base.PhotoUrls.Any()) |
|
|
|
|
resume.Base.PhotoUrl = resume.Base.PhotoUrls[0].RelativePath; |
|
|
|
|
await base.Update(id, resume.Base); |
|
|
|
|
|
|
|
|
|
await _ghrh_ResumeHomeServices.Delete(x => x.ResumeId != null && x.ResumeId == id);//家庭关系 |
|
|
|
|