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
52f75cb8
Commit
52f75cb8
authored
Jul 29, 2019
by
李承祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加系数
parent
f62988ae
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
127 additions
and
68 deletions
+127
-68
performance/Performance.Api/Controllers/AllotController.cs
+2
-2
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
+2
-2
performance/Performance.DtoModels/PerExcel/PerDataAccountBaisc.cs
+6
-0
performance/Performance.EntityModels/Entity/im_accountbasic.cs
+5
-0
performance/Performance.EntityModels/Entity/im_data.cs
+1
-1
performance/Performance.EntityModels/Entity/mod_item.cs
+5
-0
performance/Performance.Services/AllotCompute/BaiscNormService.cs
+2
-2
performance/Performance.Services/AllotCompute/ProcessComputService.cs
+12
-12
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadDeptAccountingt.cs
+48
-28
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadExpend.cs
+14
-7
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
+15
-7
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadOtherIncome.cs
+15
-7
No files found.
performance/Performance.Api/Controllers/AllotController.cs
View file @
52f75cb8
...
...
@@ -156,8 +156,8 @@ public ApiResponse Generate([CustomizeValidator(RuleSet = "Delete"), FromBody]Al
if
(
null
==
allot
||
string
.
IsNullOrEmpty
(
allot
.
Path
))
throw
new
PerformanceException
(
"当前绩效记录不存在或没有上传数据文件"
);
var
user
=
_claim
.
At
(
request
);
//
_allotService.Generate(allot, user.Mail);
BackgroundJob
.
Enqueue
(()
=>
_allotService
.
Generate
(
allot
,
user
.
Mail
));
_allotService
.
Generate
(
allot
,
user
.
Mail
);
//
BackgroundJob.Enqueue(() => _allotService.Generate(allot, user.Mail));
return
new
ApiResponse
(
ResponseType
.
OK
);
}
...
...
performance/Performance.DtoModels/AutoMapper/AutoMapperConfigs.cs
View file @
52f75cb8
...
...
@@ -68,13 +68,13 @@ public AutoMapperConfigs()
CreateMap
<
PerData
,
im_data
>()
.
ForMember
(
dest
=>
dest
.
IsFactor
,
opt
=>
opt
.
MapFrom
(
src
=>
src
.
IsFactor
?
1
:
2
))
.
ForMember
(
dest
=>
dest
.
UnitType
,
opt
=>
opt
.
MapFrom
(
src
=>
src
.
UnitType
==
"医生组"
?
1
:
(
src
.
UnitType
==
"护理组"
?
2
:
0
)));
.
ForMember
(
dest
=>
dest
.
UnitType
,
opt
=>
opt
.
MapFrom
(
src
=>
src
.
UnitType
==
"医生组"
?
1
:
(
src
.
UnitType
==
"护理组"
?
2
:
(
src
.
UnitType
==
"护理组"
?
3
:
0
)
)));
CreateMap
<
im_header
,
PerHeader
>()
.
ForMember
(
dest
=>
dest
.
IsMerge
,
opt
=>
opt
.
MapFrom
(
src
=>
src
.
IsMerge
==
1
?
true
:
false
));
CreateMap
<
im_data
,
PerData
>()
.
ForMember
(
dest
=>
dest
.
IsFactor
,
opt
=>
opt
.
MapFrom
(
src
=>
src
.
IsFactor
==
1
?
true
:
false
))
.
ForMember
(
dest
=>
dest
.
UnitType
,
opt
=>
opt
.
MapFrom
(
src
=>
src
.
UnitType
==
1
?
"医生组"
:
(
src
.
UnitType
==
2
?
"护理组"
:
""
)));
.
ForMember
(
dest
=>
dest
.
UnitType
,
opt
=>
opt
.
MapFrom
(
src
=>
src
.
UnitType
==
1
?
"医生组"
:
(
src
.
UnitType
==
2
?
"护理组"
:
(
src
.
UnitType
==
3
?
"医技组"
:
""
)
)));
CreateMap
<
PerDataEmployee
,
im_employee
>();
CreateMap
<
im_employee
,
PerDataEmployee
>();
...
...
performance/Performance.DtoModels/PerExcel/PerDataAccountBaisc.cs
View file @
52f75cb8
...
...
@@ -6,6 +6,12 @@ namespace Performance.DtoModels
{
public
class
PerDataAccountBaisc
:
IPerData
{
/// <summary>
/// 核算单元类别 1 医生组 2护理组 3医技组
/// </summary>
public
Nullable
<
int
>
UnitType
{
get
;
set
;
}
/// <summary>
/// 核算单元(医生组)
/// </summary>
...
...
performance/Performance.EntityModels/Entity/im_accountbasic.cs
View file @
52f75cb8
...
...
@@ -32,6 +32,11 @@ public class im_accountbasic
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
/// <summary>
/// 核算单元类别 1 医生组 2护理组 3医技组
/// </summary>
public
Nullable
<
int
>
UnitType
{
get
;
set
;
}
/// <summary>
/// 核算单元(医生组)
/// </summary>
public
string
DoctorAccountingUnit
{
get
;
set
;
}
...
...
performance/Performance.EntityModels/Entity/im_data.cs
View file @
52f75cb8
...
...
@@ -32,7 +32,7 @@ public class im_data
public
Nullable
<
int
>
SheetID
{
get
;
set
;
}
/// <summary>
/// 核算单元类别 1 医生组 2护理组
/// 核算单元类别 1 医生组 2护理组
3医技组
/// </summary>
public
Nullable
<
int
>
UnitType
{
get
;
set
;
}
...
...
performance/Performance.EntityModels/Entity/mod_item.cs
View file @
52f75cb8
...
...
@@ -42,6 +42,11 @@ public class mod_item
public
Nullable
<
decimal
>
FactorValue2
{
get
;
set
;
}
/// <summary>
/// 医技系数
/// </summary>
public
Nullable
<
decimal
>
FactorValue3
{
get
;
set
;
}
/// <summary>
/// 抽取绩效值SQL
/// </summary>
public
Nullable
<
int
>
ExtractId
{
get
;
set
;
}
...
...
performance/Performance.Services/AllotCompute/BaiscNormService.cs
View file @
52f75cb8
...
...
@@ -45,8 +45,8 @@ public class BaiscNormService : IAutoInjection
{
PositionName
=
EnumHelper
.
GetDescription
(
item
.
reference
),
TotelNumber
=
count
,
TotelValue
=
dataList
.
Sum
(
t
=>
t
.
GiveFee
),
AvgValue
=
dataList
.
Sum
(
t
=>
t
.
GiveFee
)
/
count
TotelValue
=
dataList
?
.
Sum
(
t
=>
t
.
GiveFee
),
AvgValue
=
dataList
?
.
Sum
(
t
=>
t
.
GiveFee
)
/
count
};
baiscnormList
.
Add
(
baiscnorm
);
}
...
...
performance/Performance.Services/AllotCompute/ProcessComputService.cs
View file @
52f75cb8
...
...
@@ -243,7 +243,7 @@ private PerSheet ComputeDoctor(IEnumerable<PerDataAccountBaisc> dataList, List<P
var
data
=
new
List
<
PerDataAccountDoctor
>();
foreach
(
var
dept
in
dataList
)
foreach
(
var
dept
in
dataList
.
Where
(
t
=>
t
.
UnitType
==
1
)
)
{
if
(
string
.
IsNullOrEmpty
(
dept
.
DoctorAccountingUnit
))
continue
;
...
...
@@ -311,24 +311,24 @@ private PerSheet ComputeNurse(IEnumerable<PerDataAccountBaisc> dataList, List<Pe
var
data
=
new
List
<
PerDataAccountNurse
>();
foreach
(
var
dept
in
dataList
)
foreach
(
var
dept
in
dataList
.
Where
(
t
=>
t
.
UnitType
==
2
)
)
{
if
(
string
.
IsNullOrEmpty
(
dept
.
Nurse
AccountingUnit
))
continue
;
if
(
string
.
IsNullOrEmpty
(
dept
.
Doctor
AccountingUnit
))
continue
;
var
econNurse
=
economicData
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
"护理组"
&&
t
.
AccountingUnit
==
dept
.
Department
);
var
workNurse
=
workloadData
.
FirstOrDefault
(
t
=>
t
.
UnitType
==
"护理组"
&&
t
.
AccountingUnit
==
dept
.
Department
);
var
nurse
=
new
PerDataAccountNurse
{
AccountingUnit
=
dept
.
Nurse
AccountingUnit
,
AccountingUnit
=
dept
.
Doctor
AccountingUnit
,
Department
=
dept
.
Department
,
Number
=
dept
.
NurseNumber
+
dept
.
NurseHead
Number
,
BasicFactor
=
dept
.
Nurse
BasicFactor
,
SlopeFactor
=
dept
.
Nurse
SlopeFactor
,
OtherPerfor1
=
dept
.
Nurse
OtherPerfor1
,
OtherPerfor2
=
dept
.
Nurse
OtherPerfor2
,
Extra
=
dept
.
Nurse
Extra
,
ScoringAverage
=
dept
.
NurseScoringAverage
==
0
m
?
1
:
dept
.
Nurse
ScoringAverage
,
AdjustFactor
=
dept
.
NurseAdjustFactor
==
0
m
?
1
:
dept
.
Nurse
AdjustFactor
,
Number
=
dept
.
DoctorNumber
+
dept
.
DoctorDirector
Number
,
BasicFactor
=
dept
.
Doctor
BasicFactor
,
SlopeFactor
=
dept
.
Doctor
SlopeFactor
,
OtherPerfor1
=
dept
.
Doctor
OtherPerfor1
,
OtherPerfor2
=
dept
.
Doctor
OtherPerfor2
,
Extra
=
dept
.
Doctor
Extra
,
ScoringAverage
=
dept
.
DoctorScoringAverage
==
0
m
?
1
:
dept
.
Doctor
ScoringAverage
,
AdjustFactor
=
dept
.
DoctorAdjustFactor
==
0
m
?
1
:
dept
.
Doctor
AdjustFactor
,
Income
=
econNurse
?.
CellValue
??
0
,
WorkloadFee
=
workNurse
?.
CellValue
??
0
,
};
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadDeptAccountingt.cs
View file @
52f75cb8
...
...
@@ -16,9 +16,9 @@ public class PerSheetDataReadDeptAccountingt : IPerSheetDataRead
public
PerSheetPoint
Point
=>
new
PerSheetPoint
{
HeaderFirstRowNum
=
1
,
HeaderLastRowNum
=
2
,
HeaderLastRowNum
=
1
,
HeaderFirstCellNum
=
0
,
DataFirstRowNum
=
3
,
DataFirstRowNum
=
2
,
};
public
List
<
IPerData
>
ReadData
(
ISheet
sheet
,
List
<
PerHeader
>
perHeader
)
...
...
@@ -32,39 +32,59 @@ public List<IPerData> ReadData(ISheet sheet, List<PerHeader> perHeader)
PerDataAccountBaisc
unifyUnit
=
new
PerDataAccountBaisc
();
unifyUnit
.
RowNumber
=
r
;
unifyUnit
.
DoctorAccountingUnit
=
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元(医生组)"
).
PointCell
)?.
ToString
(
);
unifyUnit
.
NurseAccountingUnit
=
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元(护理组)
"
).
PointCell
)?.
ToString
();
unifyUnit
.
UnitType
=
UnitType
(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元类型"
).
PointCell
)?.
ToString
()
);
unifyUnit
.
DoctorAccountingUnit
=
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元
"
).
PointCell
)?.
ToString
();
unifyUnit
.
Department
=
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"科室名称"
).
PointCell
)?.
ToString
();
unifyUnit
.
DoctorDirectorNumber
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元科主任
数量"
&&
p
.
Parent
.
CellValue
==
"医生组
"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorNumber
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元
医生数量"
&&
p
.
Parent
.
CellValue
==
"医生组
"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorBasicFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"预算比例"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorSlopeFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"倾斜系数"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorScale
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"规模绩效系数"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorEffic
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"效率绩效系数"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorGrant
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"管理绩效发放系数"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorOtherPerfor1
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"其他绩效1"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorOtherPerfor2
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"其他绩效2"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorExtra
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"医院奖罚"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorScoringAverage
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"考核得分率"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorAdjustFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"调节系数"
&&
p
.
Parent
.
CellValue
==
"医生组"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorDirectorNumber
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元科主任
/护士长数量
"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorNumber
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元
人员数量
"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorBasicFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"预算比例"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorSlopeFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"倾斜系数"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorScale
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"规模绩效系数"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorEffic
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"效率绩效系数"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorGrant
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"管理绩效发放系数"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorOtherPerfor1
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"其他绩效1"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorOtherPerfor2
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"其他绩效2"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorExtra
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"医院奖罚"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorScoringAverage
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"考核得分率"
).
PointCell
)?.
ToString
());
unifyUnit
.
DoctorAdjustFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"调节系数"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseHeadNumber
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元护士长数量"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseNumber
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"核算单元护士数量"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseBasicFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"预算比例"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseSlopeFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"倾斜系数"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseScale
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"规模绩效系数"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseEffic
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"效率绩效系数"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseGrant
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"管理绩效发放系数"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseOtherPerfor1
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"其他绩效1"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseOtherPerfor2
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"其他绩效2"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseExtra
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"医院奖罚"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseScoringAverage
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"考核得分率"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
unifyUnit
.
NurseAdjustFactor
=
ConvertHelper
.
To
<
decimal
>(
row
.
GetCell
(
perHeader
.
FirstOrDefault
(
p
=>
p
.
CellValue
==
"调节系数"
&&
p
.
Parent
.
CellValue
==
"护理组"
).
PointCell
)?.
ToString
());
//
unifyUnit.NurseHeadNumber = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "核算单元护士长数量" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseNumber = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "核算单元护士数量" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseBasicFactor = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "预算比例" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseSlopeFactor = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "倾斜系数" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseScale = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "规模绩效系数" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseEffic = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "效率绩效系数" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseGrant = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "管理绩效发放系数" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseOtherPerfor1 = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "其他绩效1" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseOtherPerfor2 = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "其他绩效2" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseExtra = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "医院奖罚" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseScoringAverage = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "考核得分率" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
//
unifyUnit.NurseAdjustFactor = ConvertHelper.To<decimal>(row.GetCell(perHeader.FirstOrDefault(p => p.CellValue == "调节系数" && p.Parent.CellValue == "护理组").PointCell)?.ToString());
dataList
.
Add
(
unifyUnit
);
}
return
dataList
;
}
/// <summary>
/// 转换核算单元类型
/// </summary>
/// <param name="unitType"></param>
/// <returns></returns>
public
int
UnitType
(
string
unitType
)
{
switch
(
unitType
)
{
case
"医生组"
:
return
1
;
case
"护理组"
:
return
2
;
case
"医技组"
:
return
3
;
default
:
return
0
;
}
}
}
}
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadExpend.cs
View file @
52f75cb8
...
...
@@ -15,8 +15,8 @@ public class PerSheetDataReadExpend : IPerSheetDataRead
{
public
PerSheetPoint
Point
=>
new
PerSheetPoint
{
HeaderFirstRowNum
=
1
,
HeaderLastRowNum
=
2
,
HeaderFirstRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderFirstCellNum
=
0
,
DataFirstRowNum
=
5
,
AccountingUnit
=
new
List
<
AccountingUnit
>
...
...
@@ -24,16 +24,23 @@ public class PerSheetDataReadExpend : IPerSheetDataRead
new
AccountingUnit
{
AccountingUnitCellNum
=
0
,
UnitType
=
"医
生
组"
,
DeptCellNum
=
2
,
FactorRow
=
4
,
UnitType
=
"医
技
组"
,
DeptCellNum
=
3
,
FactorRow
=
3
,
},
new
AccountingUnit
{
AccountingUnitCellNum
=
1
,
UnitType
=
"医生组"
,
DeptCellNum
=
3
,
FactorRow
=
2
,
},
new
AccountingUnit
{
AccountingUnitCellNum
=
2
,
UnitType
=
"护理组"
,
DeptCellNum
=
2
,
FactorRow
=
3
,
DeptCellNum
=
3
,
FactorRow
=
1
,
},
}
};
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
View file @
52f75cb8
...
...
@@ -15,26 +15,34 @@ public class PerSheetDataReadIncome : IPerSheetDataRead
{
public
PerSheetPoint
Point
=>
new
PerSheetPoint
{
HeaderFirstRowNum
=
3
,
HeaderLastRowNum
=
3
,
HeaderFirstRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderFirstCellNum
=
0
,
DataFirstRowNum
=
4
,
DataFirstRowNum
=
5
,
AccountingUnit
=
new
List
<
AccountingUnit
>
{
//核算单元(医
生
组)
//核算单元(医
技
组)
new
AccountingUnit
{
AccountingUnitCellNum
=
0
,
UnitType
=
"医技组"
,
DeptCellNum
=
3
,
FactorRow
=
3
,
},
//核算单元(医生组)
new
AccountingUnit
{
AccountingUnitCellNum
=
1
,
UnitType
=
"医生组"
,
DeptCellNum
=
2
,
DeptCellNum
=
3
,
FactorRow
=
2
,
},
//核算单元(护理组)
new
AccountingUnit
{
AccountingUnitCellNum
=
1
,
AccountingUnitCellNum
=
2
,
UnitType
=
"护理组"
,
DeptCellNum
=
2
,
DeptCellNum
=
3
,
FactorRow
=
1
,
}
}
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadOtherIncome.cs
View file @
52f75cb8
...
...
@@ -15,26 +15,34 @@ public class PerSheetDataReadOtherIncome : IPerSheetDataRead
{
public
PerSheetPoint
Point
=>
new
PerSheetPoint
{
HeaderFirstRowNum
=
3
,
HeaderLastRowNum
=
3
,
HeaderFirstRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderFirstCellNum
=
0
,
DataFirstRowNum
=
4
,
DataFirstRowNum
=
5
,
AccountingUnit
=
new
List
<
AccountingUnit
>
{
//核算单元(医
生
组)
//核算单元(医
技
组)
new
AccountingUnit
{
AccountingUnitCellNum
=
0
,
UnitType
=
"医技组"
,
DeptCellNum
=
3
,
FactorRow
=
3
,
},
//核算单元(医生组)
new
AccountingUnit
{
AccountingUnitCellNum
=
1
,
UnitType
=
"医生组"
,
DeptCellNum
=
2
,
DeptCellNum
=
3
,
FactorRow
=
2
,
},
//核算单元(护理组)
new
AccountingUnit
{
AccountingUnitCellNum
=
1
,
AccountingUnitCellNum
=
2
,
UnitType
=
"护理组"
,
DeptCellNum
=
2
,
DeptCellNum
=
3
,
FactorRow
=
1
,
}
}
...
...
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