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
891117c8
Commit
891117c8
authored
Nov 26, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基础数据null值判断
parent
b3869926
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
performance/Performance.DtoModels/PerExcel/PerSheetHeader.cs
+10
-12
No files found.
performance/Performance.DtoModels/PerExcel/PerSheetHeader.cs
View file @
891117c8
...
...
@@ -19,17 +19,16 @@ public class PerSheetHeader
(
"绩效基数核算参考对象"
,
(
t
)
=>
t
.
FitPeople
,
1
,
1
,
false
,
false
,
false
,
"FitPeople"
),
(
"岗位系数"
,
(
t
)
=>
t
.
PostCoefficient
,
1
,
1
,
false
,
true
,
false
,
"PostCoefficient"
),
//("参加工作时间", (t) => t.WorkTime, 1, 1, false, false, false, "WorkTime"),
(
"考核得分率"
,
(
t
)
=>
Math
.
Round
(
t
.
ScoreAverageRate
.
Value
*
100
,
2
)
,
1
,
1
,
false
,
true
,
true
,
"ScoreAverageRate"
),
(
"出勤率"
,
(
t
)
=>
Math
.
Round
(
t
.
Attendance
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Attendance"
),
(
"考核得分率"
,
(
t
)
=>
Math
.
Round
(
(
t
.
ScoreAverageRate
??
1
)
*
100
,
2
)
,
1
,
1
,
false
,
true
,
true
,
"ScoreAverageRate"
),
(
"出勤率"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Attendance
??
0
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Attendance"
),
//("核算单元医生数", (t) => t.PeopleNumber, 1, 1, false, true, false, "PeopleNumber"),
//("工作量绩效", (t) =>t.Workload, 1, 1, false, true, false, "Workload"),
//("其他绩效", (t) => t.OtherPerfor, 1, 1, false, true, false, "OtherPerfor"),
//("医院奖罚", (t) => t.Punishment, 1, 1, false, true, false, "Punishment"),
(
"调节系数"
,
(
t
)
=>
Math
.
Round
(
t
.
Adjust
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Adjust"
),
(
"调节系数"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Adjust
??
1
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Adjust"
),
//("发放系数", (t) => t.Grant, 1, 1, false, true, false, "Grant"),
};
// Tuple Items: 列明, 字段名, mergeRow, mergeCell, isTotal, isNumValue, 是否含有%
public
static
List
<(
string
,
Func
<
im_employee_clinic
,
object
>,
int
,
int
,
bool
,
bool
,
bool
,
string
)>
employeeClinicHeaders
=
new
List
<(
string
,
Func
<
im_employee_clinic
,
object
>,
int
,
int
,
bool
,
bool
,
bool
,
string
)>
...
...
@@ -40,13 +39,13 @@ public class PerSheetHeader
(
"医生姓名"
,
(
t
)
=>
t
.
DoctorName
,
1
,
1
,
false
,
false
,
false
,
"DoctorName"
),
(
"职务分类"
,
(
t
)
=>
t
.
JobTitle
,
1
,
1
,
false
,
true
,
false
,
"JobTitle"
),
//("岗位系数", (t) => t.PostCoefficient, 1, 1, false, true, false, "PostCoefficient"),
(
"基础绩效系数"
,
(
t
)
=>
Math
.
Round
(
t
.
Basics
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
false
,
"Basics"
),
(
"基础绩效系数"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Basics
??
1
)
*
100
,
2
),
1
,
1
,
false
,
true
,
false
,
"Basics"
),
(
"效率绩效人数"
,
(
t
)
=>
t
.
PermanentStaff
,
1
,
1
,
false
,
true
,
false
,
"PermanentStaff"
),
(
"效率绩效系数"
,
(
t
)
=>
Math
.
Round
(
t
.
Efficiency
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Efficiency"
),
(
"规模绩效系数"
,
(
t
)
=>
Math
.
Round
(
t
.
Scale
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Scale"
),
(
"管理绩效发放系数"
,
(
t
)
=>
Math
.
Round
(
t
.
Management
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Management"
),
(
"考核得分率"
,
(
t
)
=>
Math
.
Round
(
t
.
ScoreAverageRate
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"ScoreAverageRate"
),
(
"出勤率"
,
(
t
)
=>
Math
.
Round
(
t
.
Attendance
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Attendance"
),
(
"效率绩效系数"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Efficiency
??
0
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Efficiency"
),
(
"规模绩效系数"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Scale
??
0
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Scale"
),
(
"管理绩效发放系数"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Management
??
1
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Management"
),
(
"考核得分率"
,
(
t
)
=>
Math
.
Round
(
(
t
.
ScoreAverageRate
??
1
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"ScoreAverageRate"
),
(
"出勤率"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Attendance
??
0
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Attendance"
),
(
"其他绩效"
,
(
t
)
=>
t
.
OtherPerfor
,
1
,
1
,
false
,
true
,
false
,
"OtherPerfor"
),
//("医院奖罚", (t) => t.Punishment, 1, 1, false, true, false, "Punishment"),
(
"调节系数"
,
(
t
)
=>
Math
.
Round
(
t
.
Adjust
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Adjust"
),
...
...
@@ -65,7 +64,7 @@ public class PerSheetHeader
(
"岗位系数"
,
(
t
)
=>
t
.
PostCoefficient
,
1
,
1
,
false
,
true
,
false
,
"PostCoefficient"
),
//("参加工作时间", (t) => t.WorkTime, 1, 1, false, false, false, "WorkTime"),
//("考核得分率", (t) => Math.Round(t.ScoreAverageRate.Value * 100, 2) , 1, 1, false, true, true, "ScoreAverageRate"),
(
"出勤率"
,
(
t
)
=>
Math
.
Round
(
t
.
Attendance
.
Value
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Attendance"
),
(
"出勤率"
,
(
t
)
=>
Math
.
Round
(
(
t
.
Attendance
??
0
)
*
100
,
2
),
1
,
1
,
false
,
true
,
true
,
"Attendance"
),
//("核算单元医生数", (t) => t.PeopleNumber, 1, 1, false, true, false, "PeopleNumber"),
//("工作量绩效", (t) =>t.Workload, 1, 1, false, true, false, "Workload"),
(
"其他绩效"
,
(
t
)
=>
t
.
OtherPerfor
,
1
,
1
,
false
,
true
,
false
,
"OtherPerfor"
),
...
...
@@ -74,7 +73,6 @@ public class PerSheetHeader
//("发放系数", (t) => t.Grant, 1, 1, false, true, false, "Grant"),
};
// Tuple Items: 列明, 字段名, mergeRow, mergeCell, isTotal, isNumValue, 是否含有%
public
static
List
<(
string
,
Func
<
im_specialunit
,
object
>,
int
,
int
,
bool
,
bool
,
bool
,
string
)>
specialUnitHeaders
=
new
List
<(
string
,
Func
<
im_specialunit
,
object
>,
int
,
int
,
bool
,
bool
,
bool
,
string
)>
...
...
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