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
5114ad55
Commit
5114ad55
authored
May 10, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作量绩效,其他绩效等数据完善
parent
920abacf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
performance/Performance.DtoModels/PerExcel/ComputeResult.cs
+10
-0
performance/Performance.Services/AllotCompute/ImportDataService.cs
+1
-0
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
+10
-3
No files found.
performance/Performance.DtoModels/PerExcel/ComputeResult.cs
View file @
5114ad55
...
...
@@ -119,5 +119,15 @@ public class ComputeResult
/// 职称
/// </summary>
public
string
JobTitle
{
get
;
set
;
}
/// <summary>
/// 调节系数
/// </summary>
public
decimal
?
Adjust
{
get
;
set
;
}
/// <summary>
/// 工作量绩效
/// </summary>
public
decimal
?
Workload
{
get
;
set
;
}
}
}
performance/Performance.Services/AllotCompute/ImportDataService.cs
View file @
5114ad55
...
...
@@ -130,6 +130,7 @@ private void SaveEmployee(PerSheet sheet, int allotId)
var
imdata
=
Mapper
.
Map
<
im_employee
>(
data
);
imdata
.
SheetID
=
imsheet
.
ID
;
imdata
.
AllotID
=
allotId
;
imdata
.
OtherPerfor
=
data
.
OthePerfor
;
addList
.
Add
(
imdata
);
}
perforImEmployeeRepository
.
AddRange
(
addList
.
ToArray
());
...
...
performance/Performance.Services/PerExcelService/ComputeEmpolyee/ComputeDirector.cs
View file @
5114ad55
...
...
@@ -60,7 +60,9 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<Comp
Grant
=
item
.
Grant
,
ScoreAverageRate
=
item
.
ScoreAverageRate
,
Punishment
=
item
.
Punishment
,
OtherPerfor
=
item
.
OtherPerfor
OtherPerfor
=
item
.
OtherPerfor
,
Adjust
=
item
.
Adjust
,
Workload
=
item
.
Workload
};
//应发管理绩效
compute
.
ShouldGiveFee
=
(
efficiency
?.
Value
*
resAccount
?.
Avg
+
scale
?.
Value
*
resAccount
?.
PerforTotal
)
*
item
.
Grant
;
...
...
@@ -156,7 +158,11 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<res_
Attendance
=
item
.
Attendance
,
ScoreAverageRate
=
item
.
ScoreAverageRate
,
Punishment
=
item
.
Punishment
,
OtherPerfor
=
item
.
OtherPerfor
OtherPerfor
=
item
.
OtherPerfor
,
JobTitle
=
item
.
JobTitle
,
Adjust
=
item
.
Adjust
,
Workload
=
item
.
Workload
};
//年资系数
if
(
yearTypes
.
Contains
(
type
)
&&
item
.
WorkTime
.
HasValue
&&
item
.
WorkTime
.
Value
>
new
DateTime
(
1970
,
1
,
1
))
...
...
@@ -168,7 +174,8 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<res_
//应发绩效
compute
.
GiveFee
=
baiscnorm
*
compute
.
PostCoefficient
*
compute
.
Attendance
*
compute
.
ScoreAverageRate
*
(
compute
.
WorkYear
??
1
)
+
(
compute
.
OtherPerfor
??
0
)
+
(
item
.
Workload
??
0
)
+
(
compute
.
Punishment
??
0
);
//实发绩效
compute
.
RealGiveFee
=
compute
.
GiveFee
*
item
.
Adjust
*
item
.
Grant
;
var
adjust
=
item
.
Adjust
??
1
m
;
compute
.
RealGiveFee
=
compute
.
GiveFee
*
adjust
*
item
.
Grant
;
computeList
.
Add
(
compute
);
}
}
...
...
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