|
|
@using Tiobon.Core.Model.ViewModels.Extend
|
|
|
@{
|
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
|
|
|
|
string frontUrl = AppSettings.app(["Startup", "FrontUrl"]);
|
|
|
List<ResumeFormColumn> Columns = ViewBag.Columns;
|
|
|
Ghrh_ResumeDto entity = ViewBag.entity;
|
|
|
ViewData["Title"] = entity.StaffName;
|
|
|
Dictionary<string, object> BaseDic = ViewBag.BaseDic;
|
|
|
List<Dictionary<string, object>> FamilyDic = ViewBag.FamilyDic;
|
|
|
List<Dictionary<string, object>> EducationDic = ViewBag.EducationDic;
|
|
|
List<Dictionary<string, object>> WorkExpDic = ViewBag.WorkExpDic;
|
|
|
List<Dictionary<string, object>> LicenceDic = ViewBag.LicenceDic;
|
|
|
List<Dictionary<string, object>> TrainingDic = ViewBag.TrainingDic;
|
|
|
Dictionary<string, bool?> StatementDic = ViewBag.StatementDic;
|
|
|
}
|
|
|
<style type="text/css">
|
|
|
body {
|
|
|
color: #000000d9;
|
|
|
font-size: 14px;
|
|
|
font-family: Noto Sans SC, PingFang SC, tahoma, arial, Hiragino Sans GB, Hiragino Sans GB W3, Microsoft Yahei, STHeitiSC-Light, Helvetica-Light, sans-serif !important;
|
|
|
page-break-before: always;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-info .pageContainer {
|
|
|
background-color: #fff;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.ghr-preview-staff-info .pageContainer .a4page {
|
|
|
width: 794px;
|
|
|
/* padding: 40px; */
|
|
|
box-sizing: border-box;
|
|
|
/* page-break-after: always; */
|
|
|
}
|
|
|
|
|
|
.pageContainer .a4page.displayMode {
|
|
|
margin: 20px auto;
|
|
|
/* border: 1px #d3d3d3 solid;
|
|
|
box-shadow: 0 0 5px #0000001a; */
|
|
|
/* display: flex; */
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-base-info .staffPhoto {
|
|
|
width: 100px;
|
|
|
height: 100px;
|
|
|
display: inline-block;
|
|
|
vertical-align: top;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-base-info .staffPhoto img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
-o-object-fit: contain;
|
|
|
object-fit: contain;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-base-info .staffBaseInfo {
|
|
|
height: 100px;
|
|
|
display: inline-block;
|
|
|
vertical-align: top;
|
|
|
padding-left: 25px;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-base-info .staffBaseInfo .staffName {
|
|
|
font-size: 20px;
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-base-info .staffBaseInfo .staffEName {
|
|
|
font-size: 16px;
|
|
|
color: #5d5d5d;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-base-info .staffBaseInfo .staffHumanResourcesMsg {
|
|
|
font-size: 16px;
|
|
|
color: #5d5d5d;
|
|
|
margin-top: 15px;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-resume-title {
|
|
|
height: 26px;
|
|
|
line-height: 26px;
|
|
|
font-size: 18px;
|
|
|
color: #242424;
|
|
|
margin: 10px 0;
|
|
|
border-left: 2px solid #ff9300;
|
|
|
padding-left: 15px;
|
|
|
width: 100%
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-resume-block-item {
|
|
|
width: 50%;
|
|
|
display: inline-block;
|
|
|
vertical-align: top;
|
|
|
min-height: 25px;
|
|
|
word-break: break-all;
|
|
|
line-height: 25px;
|
|
|
margin: 5px 0;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-resume-block-item .label {
|
|
|
width: 150px;
|
|
|
display: inline-block;
|
|
|
vertical-align: top;
|
|
|
height: 25px;
|
|
|
line-height: 25px;
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
.ghr-preview-staff-resume-block-item .itemValue {
|
|
|
display: inline-block;
|
|
|
vertical-align: top;
|
|
|
min-height: 25px;
|
|
|
line-height: 25px;
|
|
|
}
|
|
|
|
|
|
.page-break-inside {
|
|
|
page-break-inside: avoid;
|
|
|
}
|
|
|
</style>
|
|
|
<div class="ghr-preview-staff-info">
|
|
|
<div class="pageContainer">
|
|
|
|
|
|
@if (Columns != null && Columns.Count > 0)
|
|
|
{
|
|
|
foreach (var item in Columns)
|
|
|
{
|
|
|
if (item.tabKey == "Photo")
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
<div class="ghr-preview-staff-base-info" id="info">
|
|
|
<div class="staffPhoto">
|
|
|
@if (!string.IsNullOrEmpty(entity.PhotoUrl))
|
|
|
{
|
|
|
<img src="@frontUrl@entity.PhotoUrl" alt="">
|
|
|
}
|
|
|
</div>
|
|
|
<div class="staffBaseInfo">
|
|
|
<div class="staffName">@(entity.StaffName) </div>
|
|
|
<div class="staffEName">@(entity.ApplyStatusLabel) </div>
|
|
|
<div class="staffHumanResourcesMsg">经验:@(entity.WorkYears)年工作经验 <span><span> | </span><span>年龄:@(entity.Age)</span> </span><span><span> | </span><span>学历: @(entity.EduDegreeLabel)</span> </span></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
else if (item.tabKey == "Base")
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
<div class="ghr-preview-staff-resume-title" id="Base" style="float:left;">
|
|
|
@item.tabName
|
|
|
</div>
|
|
|
@if (item.children != null && item.children.Any())
|
|
|
@foreach (var children in item.children)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="float:left;width:@(children.label=="备注"?"100%": "50%")">
|
|
|
<div class="label">@(children.label):</div>
|
|
|
<div class="itemValue">
|
|
|
@{
|
|
|
if (BaseDic.ContainsKey(children.field))
|
|
|
{
|
|
|
if (children.field == "Birthday" || children.field == "GraduateDate")
|
|
|
@DateTimeHelper.ConvertToDayString(BaseDic[children.field])
|
|
|
else
|
|
|
@BaseDic[children.field]
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
</div>
|
|
|
|
|
|
}
|
|
|
else if (item.tabKey == "Family")
|
|
|
{
|
|
|
@if (FamilyDic.Count > 0)
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
@if (FamilyDic.Count > 0)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-title" id="Base" style="float:left;">
|
|
|
@item.tabName
|
|
|
</div>
|
|
|
}
|
|
|
@for (var i = 0; i < FamilyDic.Count; i++)
|
|
|
{
|
|
|
@if (i > 0)
|
|
|
{
|
|
|
<div style="margin-top:20px;width:100%"></div>
|
|
|
}
|
|
|
@if (item.children != null && item.children.Any())
|
|
|
{
|
|
|
@foreach (var children in item.children)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="float:left;width:@(children.label=="备注"?"100%": "50%")">
|
|
|
<div class="label">@(children.label):</div>
|
|
|
<div class="itemValue">
|
|
|
@{
|
|
|
if (FamilyDic[i].ContainsKey(children.field))
|
|
|
{
|
|
|
if (children.field == "Birth")
|
|
|
@DateTimeHelper.ConvertToDayString(FamilyDic[i][children.field])
|
|
|
else
|
|
|
@FamilyDic[i][children.field]
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
else if (item.tabKey == "Education")
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
@{
|
|
|
if (EducationDic.Count > 0)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-title" id="Base" style="float:left;">
|
|
|
@item.tabName
|
|
|
</div>
|
|
|
}
|
|
|
for (var i = 0; i < EducationDic.Count; i++)
|
|
|
{
|
|
|
if (i > 0)
|
|
|
{
|
|
|
<div style="margin-top:20px;width:100%"></div>
|
|
|
}
|
|
|
if (item.children != null && item.children.Any())
|
|
|
foreach (var children in item.children)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="float:left;width:@(children.label=="备注"?"100%": "50%")">
|
|
|
<div class="label">@(children.label):</div>
|
|
|
<div class="itemValue">
|
|
|
@{
|
|
|
if (EducationDic[i].ContainsKey(children.field))
|
|
|
{
|
|
|
@EducationDic[i][children.field]
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
}
|
|
|
else if (item.tabKey == "WorkExp")
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
@{
|
|
|
if (WorkExpDic.Count > 0)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-title" id="Base" style="float:left;">
|
|
|
@item.tabName
|
|
|
</div>
|
|
|
}
|
|
|
for (var i = 0; i < WorkExpDic.Count; i++)
|
|
|
{
|
|
|
if (i > 0)
|
|
|
{
|
|
|
<div style="margin-top:20px;width:100%"></div>
|
|
|
}
|
|
|
if (item.children != null && item.children.Any())
|
|
|
foreach (var children in item.children)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="float:left;width:@(children.label=="备注"?"100%": "50%")">
|
|
|
<div class="label">@(children.label):</div>
|
|
|
<div class="itemValue">
|
|
|
@{
|
|
|
if (WorkExpDic[i].ContainsKey(children.field))
|
|
|
{
|
|
|
@WorkExpDic[i][children.field]
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
|
|
|
}
|
|
|
else if (item.tabKey == "Licence")
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
@{
|
|
|
if (LicenceDic.Count > 0)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-title" id="Base" style="float:left;">
|
|
|
@item.tabName
|
|
|
</div>
|
|
|
}
|
|
|
for (var i = 0; i < LicenceDic.Count; i++)
|
|
|
{
|
|
|
if (i > 0)
|
|
|
{
|
|
|
<div style="margin-top:20px;width:100%"></div>
|
|
|
}
|
|
|
if (item.children != null && item.children.Any())
|
|
|
foreach (var children in item.children)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="float:left;width:@(children.label=="备注"?"100%": "50%")">
|
|
|
<div class="label">@(children.label):</div>
|
|
|
<div class="itemValue">
|
|
|
@{
|
|
|
if (LicenceDic[i].ContainsKey(children.field))
|
|
|
{
|
|
|
@LicenceDic[i][children.field]
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
}
|
|
|
else if (item.tabKey == "Training")
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
@{
|
|
|
if (TrainingDic.Count > 0)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-title" id="Base" style="float:left;">
|
|
|
@item.tabName
|
|
|
</div>
|
|
|
}
|
|
|
for (var i = 0; i < TrainingDic.Count; i++)
|
|
|
{
|
|
|
if (i > 0)
|
|
|
{
|
|
|
<div style="margin-top:20px;width:100%"></div>
|
|
|
}
|
|
|
if (item.children != null && item.children.Any())
|
|
|
foreach (var children in item.children)
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="float:left;width:@(children.label=="培训说明"?"100%": "50%")">
|
|
|
<div class="label">@(children.label):</div>
|
|
|
<div class="itemValue">
|
|
|
@{
|
|
|
if (TrainingDic[i].ContainsKey(children.field))
|
|
|
{
|
|
|
@TrainingDic[i][children.field]
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
}
|
|
|
else if (item.tabKey == "Statement")
|
|
|
{
|
|
|
<div class="a4page displayMode page-break-inside" id="pageIndex-0">
|
|
|
@{
|
|
|
var ii = 0;
|
|
|
if (item.children != null && item.children.Any())
|
|
|
{
|
|
|
<div class="ghr-preview-staff-resume-title" id="Base" style="float:left;">
|
|
|
@item.tabName
|
|
|
</div>
|
|
|
}
|
|
|
|
|
|
if (item.children != null && item.children.Any())
|
|
|
foreach (var children in item.children)
|
|
|
{
|
|
|
|
|
|
if (ii > 0)
|
|
|
{
|
|
|
<div style="margin-top:20px;width:100%;float:left;"></div>
|
|
|
}
|
|
|
<div class="ghr-preview-staff-resume-block-item" id="Base-0-StaffName" style="display: flex;width:80%">
|
|
|
<div class="itemValue" style="width:80%">@(ii + 1). @(children.placeholder):</div>
|
|
|
<div class="label" style="width:20%">
|
|
|
@{
|
|
|
ii++;
|
|
|
if (StatementDic.ContainsKey("Statement" + ii))
|
|
|
{
|
|
|
if (StatementDic["Statement" + ii] != null)
|
|
|
if (StatementDic["Statement" + ii] == true)
|
|
|
@("是")
|
|
|
else
|
|
|
@("否")
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</div>
|
|
|
</div> |