|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|