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
0042f9f3
Commit
0042f9f3
authored
Sep 25, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次绩效根据实发绩效值发生改变
parent
597d3a99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
1 deletions
+41
-1
performance/Performance.Services/SecondAllotService.cs
+41
-1
No files found.
performance/Performance.Services/SecondAllotService.cs
View file @
0042f9f3
...
...
@@ -161,6 +161,46 @@ public List<SecondListResponse> GetSecondList(int userId)
};
newSecond
.
Add
(
second
);
}
if
(
secondList
!=
null
&&
secondList
.
Any
())
{
var
fixatitems
=
new
List
<
ag_fixatitem
>();
foreach
(
var
item
in
secondList
.
Select
(
t
=>
t
.
AllotId
.
Value
))
{
var
allot
=
allotList
.
FirstOrDefault
(
t
=>
t
.
ID
==
item
);
if
(
allot
==
null
)
continue
;
res_account
account
=
null
;
res_specialunit
special
=
null
;
if
(
role
.
Type
==
application
.
DirectorRole
)
account
=
accountList
?.
FirstOrDefault
(
t
=>
t
.
AllotID
==
item
&&
(
t
.
UnitType
==
(
int
)
UnitType
.
医生组
||
t
.
UnitType
==
(
int
)
UnitType
.
医技组
));
else
if
(
role
.
Type
==
application
.
NurseRole
)
account
=
accountList
?.
FirstOrDefault
(
t
=>
t
.
AllotID
==
item
&&
t
.
UnitType
==
(
int
)
UnitType
.
护理组
);
else
if
(
role
.
Type
==
application
.
SpecialRole
)
special
=
specialList
?.
FirstOrDefault
(
t
=>
t
.
AllotID
==
item
);
else
if
(
role
.
Type
==
application
.
OfficeRole
)
account
=
accountList
?.
FirstOrDefault
(
t
=>
t
.
AllotID
==
item
&&
t
.
UnitType
==
(
int
)
UnitType
.
行政后勤
);
if
(
account
==
null
&&
special
==
null
)
continue
;
// 医生组护理组特殊核算组
var
realGiveFee
=
role
.
Type
==
application
.
SpecialRole
?
special
.
RealGiveFee
:
account
.
RealGiveFee
;
// 行政后勤则取考核前绩效
if
(
role
.
Type
==
application
.
OfficeRole
)
realGiveFee
=
account
.
PerforTotal
;
var
second
=
secondList
.
FirstOrDefault
(
t
=>
t
.
AllotId
==
item
);
second
.
RealGiveFee
=
realGiveFee
;
var
fixatitem
=
perforAgfixatitemRepository
.
GetEntity
(
t
=>
t
.
SecondId
==
second
.
Id
&&
t
.
AllotId
==
second
.
AllotId
&&
t
.
RowNumber
==
-
1
&&
t
.
ItemName
==
"可分配绩效"
);
if
(
fixatitem
!=
null
)
{
fixatitem
.
ItemValue
=
realGiveFee
.
ToString
();
fixatitems
.
Add
(
fixatitem
);
}
}
perforAgsecondallotRepository
.
UpdateRange
(
secondList
.
ToArray
());
perforAgfixatitemRepository
.
UpdateRange
(
fixatitems
.
ToArray
());
}
#
endregion
if
(
newSecond
.
Count
>
0
)
...
...
@@ -582,7 +622,7 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems)
foreach
(
var
item
in
keyValue
)
{
var
header
=
bodyItems
.
FirstOrDefault
(
t
=>
t
.
FiledName
==
item
.
Key
);
if
(
header
!=
null
&&
(
string
.
IsNullOrEmpty
(
header
.
Value
)
||
header
.
Value
==
"0"
))
if
(
header
!=
null
&&
(
string
.
IsNullOrEmpty
(
header
.
Value
)
/*|| header.Value == "0"*/
))
bodyItems
.
FirstOrDefault
(
t
=>
t
.
FiledName
==
item
.
Key
).
Value
=
item
.
Value
;
}
}
...
...
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