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
4f79fa32
Commit
4f79fa32
authored
Dec 31, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配,行政科室工作量绩效带出应发绩效
parent
19801009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
28 deletions
+11
-28
performance/Performance.Services/Details/SecondAllotDetails.cs
+11
-28
No files found.
performance/Performance.Services/Details/SecondAllotDetails.cs
View file @
4f79fa32
...
@@ -567,7 +567,6 @@ private void SupplyHeaderByWorkItem(int hospitalId, SecondResponse result, ag_se
...
@@ -567,7 +567,6 @@ private void SupplyHeaderByWorkItem(int hospitalId, SecondResponse result, ag_se
public
List
<
ag_othersource
>
GetOtherTempDetails
(
int
userId
,
int
secondId
,
int
isArchive
,
int
employeeSource
)
public
List
<
ag_othersource
>
GetOtherTempDetails
(
int
userId
,
int
secondId
,
int
isArchive
,
int
employeeSource
)
{
{
var
secondAllot
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
var
secondAllot
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
if
(
secondAllot
==
null
)
throw
new
PerformanceException
(
"二次绩效信息无效!"
);
if
(
secondAllot
==
null
)
throw
new
PerformanceException
(
"二次绩效信息无效!"
);
...
@@ -670,38 +669,22 @@ public List<ag_othersource> GetOtherTempDetails(int userId, int secondId, int is
...
@@ -670,38 +669,22 @@ public List<ag_othersource> GetOtherTempDetails(int userId, int secondId, int is
/// <param name="isTitlePerformance">是否补全职称绩效</param>
/// <param name="isTitlePerformance">是否补全职称绩效</param>
private
void
SupplementSecondDetail
(
ag_secondallot
second
,
List
<
per_employee
>
employees
,
List
<
ag_othersource
>
result
,
bool
isTitlePerformance
=
true
)
private
void
SupplementSecondDetail
(
ag_secondallot
second
,
List
<
per_employee
>
employees
,
List
<
ag_othersource
>
result
,
bool
isTitlePerformance
=
true
)
{
{
//if (employees == null || !employees.Any(t => t.UnitType == second.UnitType))
// return;
// 补充医院其他绩效 及 预留比例
// 补充医院其他绩效 及 预留比例
var
perapramounts
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
second
.
AllotId
&&
t
.
Status
==
3
);
var
perapramounts
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
second
.
AllotId
&&
t
.
Status
==
3
);
Func
<
per_employee
,
decimal
?>
getAprAmount
=
(
t
)
=>
second
.
Department
==
t
.
AccountingUnit
?
perapramounts
var
distPerformance
=
rescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
second
.
AllotId
);
?.
Where
(
w
=>
w
.
PersonnelNumber
?.
Trim
()
==
t
.
PersonnelNumber
?.
Trim
())
?.
Sum
(
w
=>
w
.
Amount
)
:
0
;
var
distPerformance
=
rescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
second
.
AllotId
&&
employees
.
Select
(
s
=>
s
.
PersonnelNumber
).
Contains
(
t
.
JobNumber
));
Func
<
per_employee
,
decimal
?>
getDistPerformance
=
(
t
)
=>
0
;
if
(
second
.
UnitType
==
UnitType
.
行政后勤
.
ToString
())
getDistPerformance
=
(
t
)
=>
second
.
Department
==
t
.
AccountingUnit
?
distPerformance
?.
Where
(
w
=>
w
.
JobNumber
?.
Trim
()
==
t
.
PersonnelNumber
?.
Trim
())
?.
Sum
(
w
=>
w
.
GiveFee
)
:
0
;
foreach
(
var
item
in
result
)
foreach
(
var
item
in
result
)
{
{
var
empl
=
employees
.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
?.
Trim
()
==
item
.
WorkNumber
?.
Trim
());
var
empl
=
employees
?.
FirstOrDefault
(
w
=>
w
.
PersonnelNumber
?.
Trim
()
==
item
.
WorkNumber
?.
Trim
());
if
(
empl
!=
null
)
item
.
ReservedRatio
=
empl
?.
ReservedRatio
??
0
;
{
// 如果是行政后勤,则把绩效放在工作量上
item
.
ReservedRatio
=
empl
.
ReservedRatio
;
if
(
isTitlePerformance
&&
second
.
UnitType
==
UnitType
.
行政后勤
.
ToString
())
item
.
OtherPerformance
=
getAprAmount
(
empl
);
item
.
WorkPerformance
=
distPerformance
?.
Where
(
w
=>
second
.
Department
==
item
.
Department
&&
w
.
JobNumber
?.
Trim
()
==
item
.
WorkNumber
?.
Trim
())?.
Sum
(
w
=>
w
.
GiveFee
);
if
(
isTitlePerformance
)
{
if
(
second
.
UnitType
==
UnitType
.
行政后勤
.
ToString
())
// 如果是行政后勤,则把绩效放在工作量上
item
.
OtherPerformance
=
perapramounts
?.
Where
(
w
=>
second
.
Department
==
item
.
Department
&&
w
.
PersonnelNumber
?.
Trim
()
==
item
.
WorkNumber
?.
Trim
())?.
Sum
(
w
=>
w
.
Amount
);
if
(
second
.
UnitType
==
UnitType
.
行政后勤
.
ToString
())
else
if
(!
string
.
IsNullOrEmpty
(
empl
?.
AccountingUnit
))
item
.
WorkPerformance
=
getDistPerformance
(
empl
);
item
.
OtherPerformance
=
perapramounts
?.
Where
(
w
=>
second
.
Department
==
empl
?.
AccountingUnit
&&
w
.
PersonnelNumber
?.
Trim
()
==
item
.
WorkNumber
?.
Trim
())?.
Sum
(
w
=>
w
.
Amount
);
// 其他人群则把绩效放在职称上
else
item
.
TitlePerformance
=
getDistPerformance
(
empl
);
}
}
}
}
}
}
...
...
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