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
1aec9af6
Commit
1aec9af6
authored
Feb 07, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全院核算绩效发放 添加字段显示
parent
943a6d0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
47 deletions
+90
-47
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+21
-6
performance/Performance.DtoModels/Response/DeptResponse.cs
+20
-3
performance/Performance.Services/ComputeService.cs
+49
-38
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
1aec9af6
...
...
@@ -2805,19 +2805,19 @@
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DeptResponse.ID"
>
<summary>
<summary>
</summary>
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DeptResponse.AllotID"
>
<summary>
<summary>
</summary>
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DeptResponse.SheetID"
>
<summary>
<summary>
</summary>
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DeptResponse.UnitName"
>
<summary>
...
...
@@ -2959,6 +2959,21 @@
调节后其他绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DeptResponse.AssessLaterPerforTotal"
>
<summary>
考核后绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DeptResponse.AssessLaterManagementFee"
>
<summary>
考核后管理绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DeptResponse.AprPerforAmount"
>
<summary>
其他绩效
</summary>
</member>
<member
name=
"P:Performance.DtoModels.DirectorResponse.TypeName"
>
<summary>
绩效类型
...
...
performance/Performance.DtoModels/Response/DeptResponse.cs
View file @
1aec9af6
...
...
@@ -7,17 +7,17 @@ namespace Performance.DtoModels
public
class
DeptResponse
{
/// <summary>
///
///
/// </summary>
public
int
ID
{
get
;
set
;
}
/// <summary>
///
///
/// </summary>
public
Nullable
<
int
>
AllotID
{
get
;
set
;
}
/// <summary>
///
///
/// </summary>
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
...
...
@@ -152,13 +152,30 @@ public class DeptResponse
/// 考核前其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessBeforeOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 调节后其他绩效
/// </summary>
public
Nullable
<
decimal
>
AdjustLaterOtherFee
{
get
;
set
;
}
/// <summary>
/// 考核后绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterPerforTotal
{
get
;
set
;
}
/// <summary>
/// 考核后管理绩效
/// </summary>
public
Nullable
<
decimal
>
AssessLaterManagementFee
{
get
;
set
;
}
/// <summary>
/// 其他绩效
/// </summary>
public
Nullable
<
decimal
>
AprPerforAmount
{
get
;
set
;
}
}
}
performance/Performance.Services/ComputeService.cs
View file @
1aec9af6
...
...
@@ -320,54 +320,65 @@ public List<DeptResponse> GetAdminPerformance(int allotId)
result
.
ForEach
(
t
=>
{
t
.
UnitName
=
((
UnitType
)
t
.
UnitType
).
ToString
();
t
.
ScoringPerfor
=
t
.
PerforFee
*
(
t
.
ScoringAverage
??
0
);
t
.
AssessLaterPerforTotal
=
Math
.
Round
((
t
.
PerforTotal
*
t
.
ScoringAverage
+
t
.
MedicineExtra
+
t
.
MaterialsExtra
+
t
.
Extra
+
t
.
AssessLaterOtherFee
)
??
0
);
});
result
=
result
.
OrderBy
(
t
=>
t
.
UnitType
).
ThenBy
(
t
=>
t
.
AccountingUnit
).
ToList
();
}
var
accountType
=
new
List
<
AccountUnitType
>
{
AccountUnitType
.
行政高层
,
AccountUnitType
.
行政中层
,
AccountUnitType
.
行政工勤
};
var
list
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
accountType
.
Select
(
a
=>
a
.
ToString
()).
Contains
(
t
.
AccountType
));
var
list
=
_perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
);
if
(
list
==
null
||
!
list
.
Any
())
return
result
;
List
<
DeptResponse
>
adminPerfor
=
list
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
AccountType
})
.
Select
(
t
=>
new
DeptResponse
{
UnitName
=
t
.
Key
.
AccountType
,
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
Department
=
t
.
Key
.
AccountingUnit
,
Number
=
t
.
Count
(),
//Extra = t.FirstOrDefault(group => group.Punishment > 0)?.Punishment, // 医院奖罚
//ScoringAverage = t.FirstOrDefault(group => group.ScoreAverageRate > 0)?.ScoreAverageRate, //考核得分率
//AdjustFactor = t.FirstOrDefault(group => group.Adjust > 0)?.Adjust, //调节系数
//WorkloadFee = t.Sum(group => group.Workload), //工作量绩效
//PerforTotal = t.Sum(group => group.RealGiveFee), //绩效合计
//ScoringPerfor = t.Sum(group => group.RealGiveFee) * (t.FirstOrDefault(group => group.ScoreAverageRate > 0)?.ScoreAverageRate ?? 0),
Avg
=
t
.
Sum
(
group
=>
group
.
RealGiveFee
)
/
t
.
Count
(),
//人均绩效
OtherPerfor1
=
t
.
Sum
(
group
=>
group
.
OtherPerfor
),
RealGiveFee
=
t
.
Sum
(
group
=>
group
.
RealGiveFee
??
0
)
+
t
.
Sum
(
group
=>
group
.
OtherPerfor
??
0
),
//实发绩效
}).
ToList
();
var
isShowManage
=
IsShowManage
(
allotId
);
Dictionary
<
string
,
string
>
dict
=
new
Dictionary
<
string
,
string
>
{
{
"科主任"
,
"医生组"
},
{
"护士长"
,
"护理组"
},
{
AccountUnitType
.
行政高层
.
ToString
(),
AccountUnitType
.
行政高层
.
ToString
()
},
{
AccountUnitType
.
行政中层
.
ToString
(),
AccountUnitType
.
行政中层
.
ToString
()
},
{
AccountUnitType
.
行政工勤
.
ToString
(),
AccountUnitType
.
行政工勤
.
ToString
()
}
};
List
<
DeptResponse
>
adminPerfor
=
list
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
AccountType
}).
Select
(
t
=>
{
string
unitName
=
result
.
Where
(
w
=>
!
dict
.
Values
.
Contains
(
w
.
UnitName
)).
FirstOrDefault
(
w
=>
w
.
AccountingUnit
==
t
.
Key
.
AccountingUnit
)?.
UnitName
??
""
;
return
new
DeptResponse
{
UnitName
=
!
dict
.
Values
.
Contains
(
unitName
)
&&
!
string
.
IsNullOrEmpty
(
unitName
)
?
unitName
:
dict
.
ContainsKey
(
t
.
Key
.
AccountType
)
?
dict
[
t
.
Key
.
AccountType
]
:
"未知"
,
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
Department
=
t
.
Key
.
AccountingUnit
,
Number
=
t
.
Count
(),
OtherPerfor1
=
t
.
Sum
(
group
=>
group
.
OtherPerfor
),
AssessLaterManagementFee
=
isShowManage
==
1
?
t
.
Sum
(
group
=>
group
.
RealGiveFee
??
0
)
+
t
.
Sum
(
group
=>
group
.
OtherPerfor
??
0
)
//实发绩效
:
Math
.
Round
((
t
.
Max
(
m
=>
m
.
ShouldGiveFee
)
*
t
.
Max
(
m
=>
m
.
ScoreAverageRate
)
*
t
.
Max
(
m
=>
m
.
Attendance
)
??
0.0
M
)
+
t
.
Max
(
m
=>
m
.
Punishment
??
0.0
M
))
//考核后管理绩效
};
}).
ToList
();
result
.
AddRange
(
adminPerfor
);
result
=
result
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
UnitName
})
.
Select
(
t
=>
new
DeptResponse
{
UnitName
=
t
.
Key
.
UnitName
,
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
Department
=
t
.
Key
.
AccountingUnit
,
PerforFee
=
t
.
Sum
(
group
=>
group
.
PerforFee
),
WorkloadFee
=
t
.
Sum
(
group
=>
group
.
WorkloadFee
),
AssessBeforeOtherFee
=
t
.
Sum
(
group
=>
group
.
AssessBeforeOtherFee
),
ScoringAverage
=
t
.
Sum
(
group
=>
group
.
ScoringAverage
),
MedicineExtra
=
t
.
Sum
(
group
=>
group
.
MedicineExtra
),
Extra
=
t
.
Sum
(
group
=>
group
.
Extra
),
AssessLaterOtherFee
=
t
.
Sum
(
group
=>
group
.
AssessLaterOtherFee
),
AdjustFactor
=
t
.
Sum
(
group
=>
group
.
AdjustFactor
),
AdjustLaterOtherFee
=
t
.
Sum
(
group
=>
group
.
AdjustLaterOtherFee
),
RealGiveFee
=
t
.
Sum
(
group
=>
group
.
RealGiveFee
),
}).
ToList
();
result
=
result
.
GroupBy
(
t
=>
new
{
t
.
AccountingUnit
,
t
.
UnitName
}).
Select
(
t
=>
new
DeptResponse
{
UnitName
=
t
.
Key
.
UnitName
,
AccountingUnit
=
t
.
Key
.
AccountingUnit
,
Department
=
t
.
Key
.
AccountingUnit
,
PerforFee
=
t
.
Sum
(
group
=>
group
.
PerforFee
),
WorkloadFee
=
t
.
Sum
(
group
=>
group
.
WorkloadFee
),
AssessBeforeOtherFee
=
t
.
Sum
(
group
=>
group
.
AssessBeforeOtherFee
),
ScoringAverage
=
t
.
Sum
(
group
=>
group
.
ScoringAverage
),
MedicineExtra
=
t
.
Sum
(
group
=>
group
.
MedicineExtra
),
Extra
=
t
.
Sum
(
group
=>
group
.
Extra
),
AssessLaterOtherFee
=
t
.
Sum
(
group
=>
group
.
AssessLaterOtherFee
),
AdjustFactor
=
t
.
Sum
(
group
=>
group
.
AdjustFactor
),
AdjustLaterOtherFee
=
t
.
Sum
(
group
=>
group
.
AdjustLaterOtherFee
),
PerforTotal
=
t
.
Sum
(
group
=>
group
.
PerforTotal
),
AssessLaterPerforTotal
=
t
.
Sum
(
group
=>
group
.
AssessLaterPerforTotal
),
AssessLaterManagementFee
=
t
.
Sum
(
group
=>
group
.
AssessLaterManagementFee
),
RealGiveFee
=
t
.
Sum
(
group
=>
group
.
RealGiveFee
)
+
t
.
Sum
(
group
=>
group
.
AssessLaterManagementFee
),
}).
ToList
();
var
enumItems
=
EnumHelper
.
GetItems
<
AccountUnitType
>();
result
=
result
.
OrderBy
(
t
=>
enumItems
.
FirstOrDefault
(
e
=>
e
.
Name
==
t
.
UnitName
)?.
Value
)
/*.ThenBy(t => t.AccountingUnit)*/
.
ToList
();
result
=
result
.
OrderBy
(
t
=>
enumItems
.
FirstOrDefault
(
e
=>
e
.
Name
==
t
.
UnitName
)?.
Value
)
/*.ThenBy(t => t.AccountingUnit)*/
.
ToList
();
return
result
;
}
...
...
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