招聘表单信息提交接口 新增实体简历头像接参

master
xiaochanghai 8 months ago
parent bf762037b5
commit f344bf983a
  1. 6
      Tiobon.Core.Model/Edit/Ghrh/Ghrh_Resume.Dto.EditInput.cs
  2. 4
      Tiobon.Core.Model/ViewModels/Extend/ResumeViewTab.cs
  3. 33
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs

@ -13,7 +13,9 @@
*  
* SimonHsiao
*
*/
*/
using Tiobon.Core.Model.ViewModels.Extend;
namespace Tiobon.Core.Model.Models
{
@ -23,5 +25,7 @@ namespace Tiobon.Core.Model.Models
/// </summary>
public class EditGhrh_ResumeInput : Ghrh_ResumeBase
{
public List<ResumePhotoAttachment> PhotoUrls { get; set; }
}
}

@ -71,3 +71,7 @@ public class ResumeAttachment
public string RemarkSz { get; set; }
}
public class ResumePhotoAttachment: ResumeAttachment
{
}

@ -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);//家庭关系

Loading…
Cancel
Save