Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
eaad8f37
Commit
eaad8f37
authored
Dec 04, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效详情未带出顶部固定列
parent
80cfbc09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
performance/Performance.Services/Details/SecondAllotDetails.cs
+4
-4
No files found.
performance/Performance.Services/Details/SecondAllotDetails.cs
View file @
eaad8f37
...
...
@@ -148,18 +148,18 @@ public List<BodyItem> GetBodyItems(int userId, int employeeSource, ag_secondallo
if
(
headItems
==
null
||
!
headItems
.
Any
())
return
bodyItems
;
var
topFixedColumns
=
headItems
.
Where
(
w
=>
w
.
Type
==
(
int
)
TempColumnType
.
TopFixedColumns
)?.
ToList
();
if
(
topFixedColumns
!=
null
&&
savedDataList
!=
null
&&
savedDataList
.
Any
(
w
=>
w
.
RowNumber
==
-
1
&&
w
.
Type
==
(
int
)
TempColumnType
.
TopFixedColumns
)
)
if
(
topFixedColumns
!=
null
)
{
var
topFixedDataList
=
new
List
<
BodyItem
>();
foreach
(
var
column
in
topFixedColumns
)
{
var
topFixedData
=
new
BodyItem
(
column
);
var
savedData
=
savedDataList
.
FirstOrDefault
(
w
=>
w
.
RowNumber
==
-
1
&&
w
.
Type
==
(
int
)
TempColumnType
.
TopFixedColumns
&&
w
.
ItemName
==
column
.
FiledName
);
var
savedData
=
savedDataList
?
.
FirstOrDefault
(
w
=>
w
.
RowNumber
==
-
1
&&
w
.
Type
==
(
int
)
TempColumnType
.
TopFixedColumns
&&
w
.
ItemName
==
column
.
FiledName
);
if
(
savedData
!=
null
)
{
topFixedData
.
Value
=
savedData
.
ItemValue
;
topFixedData
.
RowNumber
=
-
1
;
}
topFixedData
.
RowNumber
=
-
1
;
topFixedDataList
.
Add
(
topFixedData
);
}
SupplementFixedData
(
secondAllot
,
topFixedDataList
);
...
...
@@ -173,7 +173,7 @@ public List<BodyItem> GetBodyItems(int userId, int employeeSource, ag_secondallo
{
// 保存过数据,从保存的数据中心带出信息
// 未保存过数据,带入初始数据(首次填写二次绩效,人员信息来自人员字典,有历史二次绩效记录时,人员信息来自上次二次绩效填写记录)
if
(
savedDataList
==
null
)
if
(
savedDataList
==
null
||
!
savedDataList
.
Any
()
)
{
employeeSource
=
prevSecondAllot
==
null
?
(
int
)
EmployeeSource
.
EmployeeDict
:
(
int
)
EmployeeSource
.
PrevSecondAllot
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment