-
- @if (Columns != null && Columns.Count > 0)
+ @if (Columns != null && Columns.Count > 0)
+ {
+ foreach (var item in Columns)
{
- foreach (var item in Columns)
+ if (item.tabKey == "Photo")
{
- if (item.tabKey == "Photo")
- {
+
-
)
+ @if (!string.IsNullOrEmpty(entity.PhotoUrl))
+ {
+
)
+ }
@(entity.StaffName)
@@ -140,14 +144,16 @@
经验:@(entity.WorkYears)年工作经验 | 年龄:@(entity.Age) | 学历: @(entity.EduDegreeLabel)
- }
- else if (item.tabKey == "Base")
- {
+
+ }
+ else if (item.tabKey == "Base")
+ {
+
@item.tabName
- if (item.children != null && item.children.Any())
- foreach (var children in item.children)
+ @if (item.children != null && item.children.Any())
+ @foreach (var children in item.children)
{
@(children.label):
@@ -164,208 +170,232 @@
}
- }
- else if (item.tabKey == "Family")
+
+
+ }
+ else if (item.tabKey == "Family")
+ {
+ @if (FamilyDic.Count > 0)
{
- if (FamilyDic.Count > 0)
- {
-
- @item.tabName
-
- }
- for (var i = 0; i < FamilyDic.Count; i++)
- {
- if (i > 0)
+
+ @if (FamilyDic.Count > 0)
{
-
+
+ @item.tabName
+
}
- if (item.children != null && item.children.Any())
- foreach (var children in item.children)
+ @for (var i = 0; i < FamilyDic.Count; i++)
+ {
+ @if (i > 0)
{
-
- @(children.label):
-
- @{
- if (FamilyDic[i].ContainsKey(children.field))
- {
- if (children.field == "Birth")
- @DateTimeHelper.ConvertToDayString(FamilyDic[i][children.field])
- else
- @FamilyDic[i][children.field]
+
+ }
+ @if (item.children != null && item.children.Any())
+ {
+ @foreach (var children in item.children)
+ {
+
+ @(children.label):
+
+ @{
+ if (FamilyDic[i].ContainsKey(children.field))
+ {
+ if (children.field == "Birth")
+ @DateTimeHelper.ConvertToDayString(FamilyDic[i][children.field])
+ else
+ @FamilyDic[i][children.field]
+ }
}
- }
-
-
+
+
+ }
}
- }
-
+ }
+
}
- else if (item.tabKey == "Education")
- {
- if (EducationDic.Count > 0)
- {
-
- @item.tabName
-
- }
- for (var i = 0; i < EducationDic.Count; i++)
- {
- if (i > 0)
+ }
+ else if (item.tabKey == "Education")
+ {
+
+ @{
+ if (EducationDic.Count > 0)
{
-
+
+ @item.tabName
+
}
- if (item.children != null && item.children.Any())
- foreach (var children in item.children)
+ for (var i = 0; i < EducationDic.Count; i++)
+ {
+ if (i > 0)
{
-
- @(children.label):
-
- @{
- if (EducationDic[i].ContainsKey(children.field))
- {
- @EducationDic[i][children.field]
- }
- }
-
-
+
}
+ if (item.children != null && item.children.Any())
+ foreach (var children in item.children)
+ {
+
+ @(children.label):
+
+ @{
+ if (EducationDic[i].ContainsKey(children.field))
+ {
+ @EducationDic[i][children.field]
+ }
+ }
+
+
+ }
+ }
}
-
- }
- else if (item.tabKey == "WorkExp")
- {
- if (WorkExpDic.Count > 0)
- {
-
- @item.tabName
-
- }
- for (var i = 0; i < WorkExpDic.Count; i++)
- {
- if (i > 0)
+
+ }
+ else if (item.tabKey == "WorkExp")
+ {
+
+ @{
+ if (WorkExpDic.Count > 0)
{
-
+
+ @item.tabName
+
}
- if (item.children != null && item.children.Any())
- foreach (var children in item.children)
+ for (var i = 0; i < WorkExpDic.Count; i++)
+ {
+ if (i > 0)
{
-
- @(children.label):
-
- @{
- if (WorkExpDic[i].ContainsKey(children.field))
- {
- @WorkExpDic[i][children.field]
- }
- }
-
-
+
}
+ if (item.children != null && item.children.Any())
+ foreach (var children in item.children)
+ {
+
+ @(children.label):
+
+ @{
+ if (WorkExpDic[i].ContainsKey(children.field))
+ {
+ @WorkExpDic[i][children.field]
+ }
+ }
+
+
+ }
+ }
}
+
- }
- else if (item.tabKey == "Licence")
- {
- if (LicenceDic.Count > 0)
- {
-
- @item.tabName
-
- }
- for (var i = 0; i < LicenceDic.Count; i++)
- {
- if (i > 0)
+ }
+ else if (item.tabKey == "Licence")
+ {
+
+ @{
+ if (LicenceDic.Count > 0)
{
-
+
+ @item.tabName
+
}
- if (item.children != null && item.children.Any())
- foreach (var children in item.children)
+ for (var i = 0; i < LicenceDic.Count; i++)
+ {
+ if (i > 0)
{
-
- @(children.label):
-
- @{
- if (LicenceDic[i].ContainsKey(children.field))
- {
- @LicenceDic[i][children.field]
- }
- }
-
-
+
}
+ if (item.children != null && item.children.Any())
+ foreach (var children in item.children)
+ {
+
+ @(children.label):
+
+ @{
+ if (LicenceDic[i].ContainsKey(children.field))
+ {
+ @LicenceDic[i][children.field]
+ }
+ }
+
+
+ }
+ }
}
-
- }
- else if (item.tabKey == "Training")
- {
- if (TrainingDic.Count > 0)
- {
-
- @item.tabName
-
+
+ }
+ else if (item.tabKey == "Training")
+ {
+
+ @{
+ if (TrainingDic.Count > 0)
+ {
+
+ @item.tabName
+
+ }
+ for (var i = 0; i < TrainingDic.Count; i++)
+ {
+ if (i > 0)
+ {
+
+ }
+ if (item.children != null && item.children.Any())
+ foreach (var children in item.children)
+ {
+
+ @(children.label):
+
+ @{
+ if (TrainingDic[i].ContainsKey(children.field))
+ {
+ @TrainingDic[i][children.field]
+ }
+ }
+
+
+ }
+ }
}
- for (var i = 0; i < TrainingDic.Count; i++)
- {
- if (i > 0)
+
+ }
+ else if (item.tabKey == "Statement")
+ {
+
+ @{
+ var ii = 0;
+ if (item.children != null && item.children.Any())
{
-
+
+ @item.tabName
+
}
+
if (item.children != null && item.children.Any())
foreach (var children in item.children)
{
-
- @(children.label):
-
+
+ if (ii > 0)
+ {
+
+ }
+
+ @(ii + 1). @(children.placeholder):
+
@{
- if (TrainingDic[i].ContainsKey(children.field))
+ ii++;
+ if (StatementDic.ContainsKey("Statement" + ii))
{
- @TrainingDic[i][children.field]
+ if (StatementDic["Statement" + ii] != null)
+ if (StatementDic["Statement" + ii] == true)
+ @("是")
+ else
+ @("否")
}
}
}
}
-
- }
- else if (item.tabKey == "Statement")
- {
- var ii = 0;
- if (item.children != null && item.children.Any())
- {
-
- @item.tabName
-
- }
-
- if (item.children != null && item.children.Any())
- foreach (var children in item.children)
- {
-
- if (ii > 0)
- {
-
- }
-
- @(children.placeholder):
-
- @{
- ii++;
- if (StatementDic.ContainsKey("Statement" + ii))
- {
- if (StatementDic["Statement" + ii] != null)
- if (StatementDic["Statement" + ii] == true)
- @("是")
- else
- @("否")
- }
- }
-
-
- }
- }
+
}
}
-
+ }