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
f088535d
Commit
f088535d
authored
Jul 20, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/137行政后勤' into develop
parents
c4f1b659
2edf595f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
performance/Performance.Services/AllotCompute/ResultComputeService.cs
+3
-3
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+10
-4
performance/Performance.Services/UnitTypeUtil.cs
+1
-1
No files found.
performance/Performance.Services/AllotCompute/ResultComputeService.cs
View file @
f088535d
...
...
@@ -98,12 +98,12 @@ public List<res_baiscnorm> Compute(per_allot allot, List<PerSheet> accountSheet)
var
empolyeeList2
=
perforImEmployeeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
var
computeEmployees2
=
Mapper
.
Map
<
List
<
ComputeEmployee
>>(
empolyeeList2
);
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"行政中高层 最终绩效数据计算"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
var
computResult2
=
computeDirector
.
Compute
(
computeEmployees2
,
allot
,
baiscnormList
);
var
computResult2
=
computeDirector
.
Compute
(
computeEmployees2
,
allot
,
baiscnormList
,
accountbasicList
);
var
empolyeeList3
=
perforImemployeelogisticsRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
);
var
computeEmployees3
=
Mapper
.
Map
<
List
<
ComputeEmployee
>>(
empolyeeList3
);
logManageService
.
WriteMsg
(
"正在生成绩效"
,
"行政后勤 最终绩效数据计算"
,
1
,
allot
.
ID
,
"ReceiveMessage"
);
var
computResult3
=
computeDirector
.
Compute
(
computeEmployees3
,
allot
,
baiscnormList
);
var
computResult3
=
computeDirector
.
Compute
(
computeEmployees3
,
allot
,
baiscnormList
,
accountbasicList
);
//计算 行政中高层 平均值
baiscNormService
.
ComputeOtherAvg
(
baiscnormList
,
computResult2
,
empolyeeList2
);
...
...
@@ -395,7 +395,7 @@ public void SaveReserved(per_allot allot, int hospitalId)
var
hospital
=
hospitalRepository
.
GetEntity
(
w
=>
w
.
ID
==
hospitalId
);
if
(
hospital
?.
IsShowManage
==
1
)
mTypes
.
AddRange
(
new
List
<
string
>
{
AccountUnitType
.
护士长
.
ToString
(),
AccountUnitType
.
科主任
.
ToString
()
});
var
resComputes
=
perforRescomputeRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allot
.
ID
&&
mTypes
.
Contains
(
t
.
AccountType
)
&&
(
string
.
IsNullOrEmpty
(
t
.
NeedSecondAllot
)
||
t
.
NeedSecondAllot
==
"否"
))
?.
OrderByDescending
(
t
=>
t
.
AccountingUnit
);
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
f088535d
...
...
@@ -442,11 +442,8 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<PerS
/// <param name="empolyeeList"></param>
/// <param name="baiscnormList"></param>
/// <returns></returns>
public
List
<
ComputeResult
>
Compute
(
List
<
ComputeEmployee
>
empolyeeList
,
per_allot
allot
,
List
<
res_baiscnorm
>
baiscnormList
)
public
List
<
ComputeResult
>
Compute
(
List
<
ComputeEmployee
>
empolyeeList
,
per_allot
allot
,
List
<
res_baiscnorm
>
baiscnormList
,
List
<
im_accountbasic
>
accountbasicList
=
null
)
{
////年资系数
//var workyearList = perforCofworkyearRepository.GetEntities(t => t.AllotID == allot.ID);
List
<
ComputeResult
>
computeList
=
new
List
<
ComputeResult
>();
if
(
empolyeeList
==
null
)
return
computeList
;
...
...
@@ -527,6 +524,15 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot
{
// 行政工勤 根据测算表判读是否需要二次分配 默认不需要
compute
.
NeedSecondAllot
=
string
.
IsNullOrWhiteSpace
(
item
.
NeedSecondAllot
)
?
"否"
:
item
.
NeedSecondAllot
;
#
region
禅道
137
// 行政后勤人员不需要二次分配的时候,个人的考核得分及调节系数取4.1表里面的科室的考核得分和调节系数
if
(
compute
.
NeedSecondAllot
==
"否"
)
{
var
resAccount
=
accountbasicList
?.
FirstOrDefault
(
t
=>
UnitTypeUtil
.
IsOffice
(
t
.
UnitType
)
&&
t
.
DoctorAccountingUnit
==
compute
.
AccountingUnit
);
compute
.
ScoreAverageRate
=
resAccount
?.
DoctorScoringAverage
??
1
;
compute
.
Adjust
=
resAccount
?.
DoctorAdjustFactor
??
1
m
;
}
#
endregion
//考核前绩效
compute
.
PerforTotal
=
Math
.
Round
(
compute
.
BaiscNormValue
*
compute
.
PostCoefficient
*
compute
.
Attendance
+
compute
.
OtherPerfor
??
0
);
//考核后绩效 更加开关来控制显示
...
...
performance/Performance.Services/UnitTypeUtil.cs
View file @
f088535d
...
...
@@ -12,7 +12,7 @@ public class UnitTypeUtil
/// </summary>
/// <param name="unit"></param>
/// <returns></returns>
public
static
bool
IsOffice
(
int
unit
)
public
static
bool
IsOffice
(
int
?
unit
)
{
return
unit
==
(
int
)
UnitType
.
行政后勤
;
}
...
...
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