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
be771d58
Commit
be771d58
authored
Jun 08, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效补充主任基础绩效值
parent
f0b10e29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
performance/Performance.Services/SecondAllotService.cs
+5
-2
No files found.
performance/Performance.Services/SecondAllotService.cs
View file @
be771d58
...
@@ -408,10 +408,13 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems)
...
@@ -408,10 +408,13 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems)
{
{
if
(
bodyItems
==
null
||
!
bodyItems
.
Any
())
return
;
if
(
bodyItems
==
null
||
!
bodyItems
.
Any
())
return
;
var
account
=
perforResaccountRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
second
.
AllotId
&&
t
.
AccountingUnit
==
second
.
Department
&&
((
UnitType
)
t
.
UnitType
).
ToString
()
==
second
.
UnitType
);
var
keyValue
=
new
Dictionary
<
string
,
string
>
var
keyValue
=
new
Dictionary
<
string
,
string
>
{
{
{
"发放月份"
,
$"
{
second
.
Year
}
年
{
second
.
Month
.
ToString
().
PadLeft
(
2
,
'0'
)}
月"
},
{
"发放月份"
,
$"
{
second
.
Year
}
年
{
second
.
Month
.
ToString
().
PadLeft
(
2
,
'0'
)}
月"
},
{
"绩效合计(考核后)"
,
second
.
RealGiveFee
.
ToString
()},
{
"绩效合计(考核后)"
,
second
.
RealGiveFee
.
ToString
()},
{
"主任基础绩效"
,
account
?.
Avg
?.
ToString
()}
};
};
var
config
=
perforCofagainRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
second
.
AllotId
);
var
config
=
perforCofagainRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
second
.
AllotId
);
if
(
config
!=
null
&&
config
.
Any
())
if
(
config
!=
null
&&
config
.
Any
())
...
@@ -423,7 +426,7 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems)
...
@@ -423,7 +426,7 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems)
foreach
(
var
item
in
keyValue
)
foreach
(
var
item
in
keyValue
)
{
{
var
header
=
bodyItems
.
FirstOrDefault
(
t
=>
t
.
FiledName
==
item
.
Key
);
var
header
=
bodyItems
.
FirstOrDefault
(
t
=>
t
.
FiledName
==
item
.
Key
);
if
(
header
!=
null
&&
string
.
IsNullOrEmpty
(
header
.
Value
))
if
(
header
!=
null
&&
(
string
.
IsNullOrEmpty
(
header
.
Value
)
||
header
.
Value
==
"0"
))
bodyItems
.
FirstOrDefault
(
t
=>
t
.
FiledName
==
item
.
Key
).
Value
=
item
.
Value
;
bodyItems
.
FirstOrDefault
(
t
=>
t
.
FiledName
==
item
.
Key
).
Value
=
item
.
Value
;
}
}
}
}
...
@@ -482,7 +485,7 @@ private void SupplyHeaderByWorkItem(UseTempRequest request, SecondResponse resul
...
@@ -482,7 +485,7 @@ private void SupplyHeaderByWorkItem(UseTempRequest request, SecondResponse resul
{
{
var
headItem
=
(
HeadItem
)
headers
[
i
].
Clone
();
var
headItem
=
(
HeadItem
)
headers
[
i
].
Clone
();
headItem
.
FiledName
=
(
i
%
2
==
0
)
?
item
.
TypeName
:
item
.
TypeName
.
Replace
(
"占比"
,
"金额"
);
headItem
.
FiledName
=
(
i
%
2
==
0
)
?
item
.
TypeName
:
item
.
TypeName
.
Replace
(
"占比"
,
"金额"
);
if
(
i
%
2
!=
0
&&
!
headItem
.
FiledName
.
EndsWith
(
"金额"
))
if
(
i
%
2
!=
0
&&
!
headItem
.
FiledName
.
EndsWith
(
"金额"
))
headItem
.
FiledName
+=
"金额"
;
headItem
.
FiledName
+=
"金额"
;
headItem
.
FiledId
+=
item
.
Id
;
headItem
.
FiledId
+=
item
.
Id
;
headItem
.
Sort
=
maxSortValue
+
sortindex
;
headItem
.
Sort
=
maxSortValue
+
sortindex
;
...
...
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