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
902fd7e5
Commit
902fd7e5
authored
Oct 27, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次分配详情
parent
ab222643
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
performance/Performance.Services/ComputeService.cs
+1
-1
performance/Performance.Services/SecondAllotService.cs
+4
-2
No files found.
performance/Performance.Services/ComputeService.cs
View file @
902fd7e5
...
@@ -766,7 +766,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
...
@@ -766,7 +766,7 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
}
}
else
if
(
sheet
.
SheetType
==
(
int
)
SheetType
.
AccountAdjustLaterOtherFee
)
else
if
(
sheet
.
SheetType
==
(
int
)
SheetType
.
AccountAdjustLaterOtherFee
)
{
{
sheettype
=
9
;
sheettype
=
5
;
amount
=
Math
.
Round
(
basicData
.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
type
&&
t
.
IsTotal
==
1
)?.
FirstOrDefault
()?.
CellValue
??
0
,
0
);
amount
=
Math
.
Round
(
basicData
.
Where
(
t
=>
t
.
SheetID
==
sheet
.
ID
&&
t
.
UnitType
==
type
&&
t
.
IsTotal
==
1
)?.
FirstOrDefault
()?.
CellValue
??
0
,
0
);
}
}
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
902fd7e5
...
@@ -1462,8 +1462,7 @@ public List<ag_othersource> OtherList(int secondId, int userId)
...
@@ -1462,8 +1462,7 @@ public List<ag_othersource> OtherList(int secondId, int userId)
if
(
second
==
null
)
throw
new
PerformanceException
(
"二次绩效信息无效!"
);
if
(
second
==
null
)
throw
new
PerformanceException
(
"二次绩效信息无效!"
);
var
employees
=
personService
.
GetPersons
(
second
.
AllotId
.
Value
,
userId
);
var
employees
=
personService
.
GetPersons
(
second
.
AllotId
.
Value
,
userId
);
if
(
employees
==
null
||
!
employees
.
Any
(
t
=>
t
.
UnitType
==
second
.
UnitType
))
return
new
List
<
ag_othersource
>();
employees
=
employees
?.
Where
(
t
=>
t
.
UnitType
==
second
.
UnitType
).
ToList
();
employees
=
employees
.
Where
(
t
=>
t
.
UnitType
==
second
.
UnitType
).
ToList
();
List
<
ag_othersource
>
result
=
null
;
List
<
ag_othersource
>
result
=
null
;
var
otherSecondList
=
perforAgothersourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
var
otherSecondList
=
perforAgothersourceRepository
.
GetEntities
(
t
=>
t
.
SecondId
==
secondId
);
...
@@ -1473,6 +1472,7 @@ public List<ag_othersource> OtherList(int secondId, int userId)
...
@@ -1473,6 +1472,7 @@ public List<ag_othersource> OtherList(int secondId, int userId)
}
}
else
else
{
{
if
(
employees
==
null
||
!
employees
.
Any
(
t
=>
t
.
UnitType
==
second
.
UnitType
))
return
new
List
<
ag_othersource
>();
result
=
employees
.
Select
(
t
=>
new
ag_othersource
result
=
employees
.
Select
(
t
=>
new
ag_othersource
{
{
SecondId
=
secondId
,
SecondId
=
secondId
,
...
@@ -1545,6 +1545,8 @@ public List<ag_othersource> OtherAutoComplete(SecondEmpRequest request, int user
...
@@ -1545,6 +1545,8 @@ public List<ag_othersource> OtherAutoComplete(SecondEmpRequest request, int user
/// <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
);
var
perapramounts
=
perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
second
.
AllotId
);
Func
<
per_employee
,
decimal
?>
getAprAmount
=
(
t
)
=>
perapramounts
Func
<
per_employee
,
decimal
?>
getAprAmount
=
(
t
)
=>
perapramounts
...
...
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