新增维护简历模板声明备注

master
xiaochanghai 6 months ago
parent a878a432c5
commit deea32dfc2
  1. 27
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeTemplatePreviewController.cs
  2. 20
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 8
      Tiobon.Core.Api/Views/Ghrh_ResumeTemplatePreview/Index.cshtml
  4. 19
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  5. 20
      Tiobon.Core/Tiobon.Core.Model.xml

@ -193,6 +193,7 @@ BEGIN
-- order by ISNULL(a.IsDisplay,0) desc,isnull(a.SortNo,b.SortNo) -- , , -- order by ISNULL(a.IsDisplay,0) desc,isnull(a.SortNo,b.SortNo) -- , ,
ORDER BY a.SortNo ASC ORDER BY a.SortNo ASC
END"; END";
string statementRemark = string.Empty;
var columns = await _db.Ado.SqlQueryAsync<ResumeFormColumn>(sql); var columns = await _db.Ado.SqlQueryAsync<ResumeFormColumn>(sql);
columns.ForEach(x => columns.ForEach(x =>
{ {
@ -226,13 +227,13 @@ END";
&& o.field != "WorkYears" && o.field != "WorkYears"
&& o.field != "Age").ToList(); && o.field != "Age").ToList();
} }
if (x.tabKey == "Family") else if (x.tabKey == "Family")
x.children.ForEach(o => x.children.ForEach(o =>
{ {
if (o.field == "Gender") o.field = "GenderLabel"; if (o.field == "Gender") o.field = "GenderLabel";
if (o.field == "RelationType") o.field = "RelationTypeLabel"; if (o.field == "RelationType") o.field = "RelationTypeLabel";
}); });
if (x.tabKey == "Education") else if (x.tabKey == "Education")
x.children.ForEach(o => x.children.ForEach(o =>
{ {
if (o.field == "IsGraduate") o.field = "IsGraduateLabel"; if (o.field == "IsGraduate") o.field = "IsGraduateLabel";
@ -240,19 +241,26 @@ END";
if (o.field == "BeginDate") o.field = "BeginDate1"; if (o.field == "BeginDate") o.field = "BeginDate1";
if (o.field == "EndDate") o.field = "EndDate1"; if (o.field == "EndDate") o.field = "EndDate1";
}); });
if (x.tabKey == "WorkExp" || x.tabKey == "Licence") else if (x.tabKey == "WorkExp" || x.tabKey == "Licence")
x.children.ForEach(o => x.children.ForEach(o =>
{ {
if (o.field == "BeginDate") o.field = "BeginDate1"; if (o.field == "BeginDate") o.field = "BeginDate1";
if (o.field == "EndDate") o.field = "EndDate1"; if (o.field == "EndDate") o.field = "EndDate1";
}); });
if (x.tabKey == "Training") else if (x.tabKey == "Training")
x.children.ForEach(o => x.children.ForEach(o =>
{ {
if (o.field == "BeginDate") o.field = "BeginDate1"; if (o.field == "BeginDate") o.field = "BeginDate1";
if (o.field == "EndDate") o.field = "EndDate1"; if (o.field == "EndDate") o.field = "EndDate1";
if (o.field == "IsPass") o.field = "IsPassLabel"; if (o.field == "IsPass") o.field = "IsPassLabel";
}); });
else if (x.tabKey == "Statement")
{
var child = x.children.Where(o => o.field == "StatementRemark").SingleOrDefault();
if (child != null)
statementRemark = child.placeholder;
x.children = x.children.Where(o => o.field != "StatementRemark").ToList();
}
} }
x.children1 = null; x.children1 = null;
}); });
@ -414,6 +422,17 @@ END";
cssUrl = "http://localhost:9292"; cssUrl = "http://localhost:9292";
cssUrl += "/css/resume.css"; cssUrl += "/css/resume.css";
ViewBag.CssUrl = cssUrl; ViewBag.CssUrl = cssUrl;
ViewBag.StatementRemark = statementRemark.Replace("\\n", "</br>");
var displaySignatureArea = false;
var config = await _db.Queryable<Ghrh_Config>().Where(x => x.ConfigCode == "ESS_Recruit_File_Display_Signature_Area").SingleAsync();
if (config != null && config.ConfigValue == "1")
displaySignatureArea = true;
ViewBag.DisplaySignatureArea = displaySignatureArea;
return View(); return View();
} }

@ -8625,6 +8625,16 @@
Offer文件路径 Offer文件路径
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.DepartmentName">
<summary>
应聘部门
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.PositionName">
<summary>
应聘岗位
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGBase"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGBase">
<summary> <summary>
教育背景 (Dto.Base) 教育背景 (Dto.Base)
@ -22116,6 +22126,16 @@
Offer文件路径 Offer文件路径
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.DepartmentName">
<summary>
应聘部门
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.PositionName">
<summary>
应聘岗位
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBG"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBG">
<summary> <summary>
教育背景 (Model) 教育背景 (Model)

@ -13,6 +13,7 @@
List<Dictionary<string, object>> LicenceDic = ViewBag.LicenceDic; List<Dictionary<string, object>> LicenceDic = ViewBag.LicenceDic;
List<Dictionary<string, object>> TrainingDic = ViewBag.TrainingDic; List<Dictionary<string, object>> TrainingDic = ViewBag.TrainingDic;
Dictionary<string, bool?> StatementDic = ViewBag.StatementDic; Dictionary<string, bool?> StatementDic = ViewBag.StatementDic;
bool displaySignatureArea = ViewBag.DisplaySignatureArea;
} }
<link rel="stylesheet" href="@ViewBag.CssUrl"> <link rel="stylesheet" href="@ViewBag.CssUrl">
@ -261,7 +262,7 @@
@item.tabName @item.tabName
</div> </div>
} }
<div style="float:left;width:80%;padding-left: 10px;color: #ff9300;">员工本人声明(本人填写、提供的资料,是真实的、可靠的。如有虚假,则所签订的劳动合同将自动作废,由此产生的一切后果由本人负责。)</div> <div style="float:left;width:80%;padding-left: 10px;color: #ff9300;">@Html.Raw(ViewBag.StatementRemark)</div>
if (item.children != null && item.children.Any()) if (item.children != null && item.children.Any())
foreach (var children in item.children) foreach (var children in item.children)
@ -288,11 +289,14 @@
</p> </p>
</div> </div>
<div class="label" style="float: left;width: 25%;"> <div class="label" style="float: left;width: 25%;">
</div> </div>
</div> </div>
} }
} }
@if (displaySignatureArea)
{
<div style="float:left;width:80%;padding-left: 10px;">申请人签名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期:</div>
}
</div> </div>
} }
} }

@ -1,10 +1,7 @@
using Amazon.Auth.AccessControlPolicy; using DinkToPdf;
using DinkToPdf;
using DinkToPdf.Contracts; using DinkToPdf.Contracts;
using DnsClient.Protocol;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using NPOI.HSSF.Record;
using System.IO.Compression; using System.IO.Compression;
using static Tiobon.Core.Model.Consts; using static Tiobon.Core.Model.Consts;
@ -823,7 +820,7 @@ ORDER BY A.SortNo ASC";
dynamic Guide = new ExpandoObject(); dynamic Guide = new ExpandoObject();
dynamic Data = new ExpandoObject(); dynamic Data = new ExpandoObject();
var entity = await QueryById(id); var entity = await QueryById(id);
string statementRemark = string.Empty;
#region Column #region Column
string sql = @"DECLARE @ID BIGINT = 1 string sql = @"DECLARE @ID BIGINT = 1
@ -996,6 +993,13 @@ END";
editable = "1" editable = "1"
}); });
} }
else if (x.tabKey == "Statement")
{
var child = x.children.Where(o => o.field == "StatementRemark").SingleOrDefault();
if (child != null)
statementRemark = child.placeholder;
x.children = x.children.Where(o => o.field != "StatementRemark").ToList();
}
}); });
} }
@ -1175,6 +1179,9 @@ END";
dynamic StatementRemark = new ExpandoObject(); dynamic StatementRemark = new ExpandoObject();
StatementRemark.Top = "员工本人声明(本人填写、提供的资料,是真实的、可靠的。如有虚假,则所签订的劳动合同将自动作废,由此产生的一切后果由本人负责。)"; StatementRemark.Top = "员工本人声明(本人填写、提供的资料,是真实的、可靠的。如有虚假,则所签订的劳动合同将自动作废,由此产生的一切后果由本人负责。)";
if (statementRemark.IsNotEmptyOrNull())
StatementRemark.Top = statementRemark;
StatementRemark.CenterPart1 = "根据本人实际情况,在下列"; StatementRemark.CenterPart1 = "根据本人实际情况,在下列";
StatementRemark.CenterPart2 = "中打“√”选择符合项目:"; StatementRemark.CenterPart2 = "中打“√”选择符合项目:";
obj.StatementRemark = StatementRemark; obj.StatementRemark = StatementRemark;
@ -3415,7 +3422,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status";
#endregion #endregion
#region 实话OA同步 #region 世华OA同步
public async Task Shihua_OA_Sync() public async Task Shihua_OA_Sync()
{ {
var list = await Db.Queryable<Ghrz_Shihua_OA_Employment>().Where(x => x.CreateTime.Value.Date == DateTime.Now).ToListAsync(); var list = await Db.Queryable<Ghrz_Shihua_OA_Employment>().Where(x => x.CreateTime.Value.Date == DateTime.Now).ToListAsync();

@ -8625,6 +8625,16 @@
Offer文件路径 Offer文件路径
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.DepartmentName">
<summary>
应聘部门
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.PositionName">
<summary>
应聘岗位
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGBase"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGBase">
<summary> <summary>
教育背景 (Dto.Base) 教育背景 (Dto.Base)
@ -22116,6 +22126,16 @@
Offer文件路径 Offer文件路径
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.DepartmentName">
<summary>
应聘部门
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.PositionName">
<summary>
应聘岗位
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBG"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBG">
<summary> <summary>
教育背景 (Model) 教育背景 (Model)

Loading…
Cancel
Save