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
3e0cbee4
Commit
3e0cbee4
authored
Mar 29, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v20201230yubei' into v2020morge-graphql
parents
be054b6b
d90d48de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
2 deletions
+82
-2
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+2
-2
performance/Performance.Services/AprAmountService.cs
+80
-0
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
3e0cbee4
...
...
@@ -214,8 +214,8 @@ public void SpecialUnitCompute(PerExcel excel, per_allot allot, List<res_baiscno
NightShiftWorkPerforFee
=
nightShift
,
};
res
.
PerforTotal
=
(
sumValue
??
0
)
+
res
.
AssessBeforeOtherFee
;
res
.
GiveFee
=
Math
.
Round
(
res
.
PerforTotal
*
res
.
ScoringAverage
+
res
.
AssessLaterOtherFee
??
0
);
res
.
RealGiveFee
=
Math
.
Round
(
res
.
GiveFee
*
res
.
Adjust
+
res
.
Punishment
+
res
.
AdjustLaterOtherFee
??
0
);
res
.
GiveFee
=
Math
.
Round
(
res
.
PerforTotal
*
res
.
ScoringAverage
+
dept
.
MedicineExtra
+
dept
.
MaterialsExtra
+
res
.
Punishment
+
res
.
AssessLaterOtherFee
??
0
);
res
.
RealGiveFee
=
Math
.
Round
(
res
.
GiveFee
*
res
.
Adjust
+
res
.
AdjustLaterOtherFee
??
0
);
res
.
Avg
=
Math
.
Round
((
group
.
Number
!=
0
?
res
.
GiveFee
/
group
.
Number
:
null
)
??
0
);
res
.
ResultsTotalFee
=
Math
.
Round
(
sumValue
??
0
);
...
...
performance/Performance.Services/AprAmountService.cs
0 → 100644
View file @
3e0cbee4
using
Performance.Repository
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Performance.Services
{
public
class
AprAmountService
:
IAutoInjection
{
private
readonly
PerforPeremployeeRepository
_peremployeeRepository
;
private
readonly
PerforPerapramountRepository
_perapramountRepository
;
public
AprAmountService
(
PerforPeremployeeRepository
peremployeeRepository
,
PerforPerapramountRepository
perapramountRepository
)
{
_peremployeeRepository
=
peremployeeRepository
;
_perapramountRepository
=
perapramountRepository
;
}
/// <summary>
/// 获取医院其他绩效 默认审核通过 status = 3
/// 科室及核算组别使用人员字典
/// </summary>
/// <param name="allotId"></param>
/// <param name="status"></param>
/// <returns></returns>
public
List
<
AprAmount
>
GetAprAmount
(
int
allotId
,
int
status
=
3
)
{
var
perapramounts
=
_perapramountRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
&&
t
.
Status
==
status
);
var
employees
=
_peremployeeRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
allotId
);
var
result
=
perapramounts
.
Join
(
employees
,
amt
=>
amt
.
PersonnelNumber
,
epy
=>
epy
.
PersonnelNumber
,
(
amt
,
epy
)
=>
new
AprAmount
{
AccountingUnit
=
epy
.
AccountingUnit
,
UnitType
=
epy
.
UnitType
,
PersonnelNumber
=
amt
.
PersonnelNumber
,
DoctorName
=
amt
.
DoctorName
,
PerforType
=
amt
.
PerforType
,
Amount
=
amt
.
Amount
});
return
result
?.
ToList
()
??
new
List
<
AprAmount
>();
}
}
public
class
AprAmount
{
/// <summary>
/// 核算单元
/// </summary>
public
string
UnitType
{
get
;
set
;
}
/// <summary>
/// 人员工号
/// </summary>
public
string
PersonnelNumber
{
get
;
set
;
}
/// <summary>
/// 医生姓名
/// </summary>
public
string
DoctorName
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
string
PerforType
{
get
;
set
;
}
/// <summary>
/// 金额
/// </summary>
public
Nullable
<
decimal
>
Amount
{
get
;
set
;
}
/// <summary>
/// 核算单元
/// </summary>
public
string
AccountingUnit
{
get
;
set
;
}
}
}
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