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
731e5510
Commit
731e5510
authored
Jun 08, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加sheet和列,生成绩效与原始数据展示
parent
be771d58
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
25 deletions
+43
-25
performance/Performance.Api/Template/医院绩效模板.xlsx
+0
-0
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadEmployee.cs
+0
-1
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadExpend.cs
+7
-7
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
+7
-7
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadOtherIncome.cs
+7
-7
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadWorkload.cs
+3
-3
performance/Performance.Services/SheetSevice.cs
+19
-0
No files found.
performance/Performance.Api/Template/医院绩效模板.xlsx
View file @
731e5510
No preview for this file type
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadEmployee.cs
View file @
731e5510
...
@@ -27,7 +27,6 @@ public List<IPerData> ReadData(ISheet sheet, List<PerHeader> perHeader)
...
@@ -27,7 +27,6 @@ public List<IPerData> ReadData(ISheet sheet, List<PerHeader> perHeader)
string
[]
headers
=
new
string
[]
string
[]
headers
=
new
string
[]
{
{
"核算单元"
,
"核算单元"
,
"核算单元"
,
"人员工号"
,
"人员工号"
,
"医生姓名"
,
"医生姓名"
,
"职务分类"
,
"职务分类"
,
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadExpend.cs
View file @
731e5510
...
@@ -17,29 +17,29 @@ public class PerSheetDataReadExpend : IPerSheetDataRead
...
@@ -17,29 +17,29 @@ public class PerSheetDataReadExpend : IPerSheetDataRead
{
{
HeaderFirstRowNum
=
4
,
HeaderFirstRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderFirstCellNum
=
0
,
HeaderFirstCellNum
=
3
,
DataFirstRowNum
=
5
,
DataFirstRowNum
=
5
,
AccountingUnit
=
new
List
<
AccountingUnit
>
AccountingUnit
=
new
List
<
AccountingUnit
>
{
{
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
0
,
AccountingUnitCellNum
=
3
,
UnitType
=
"医技组"
,
UnitType
=
"医技组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
3
,
FactorRow
=
3
,
},
},
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
1
,
AccountingUnitCellNum
=
4
,
UnitType
=
"医生组"
,
UnitType
=
"医生组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
2
,
FactorRow
=
2
,
},
},
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
2
,
AccountingUnitCellNum
=
5
,
UnitType
=
"护理组"
,
UnitType
=
"护理组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
1
,
FactorRow
=
1
,
},
},
}
}
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadIncome.cs
View file @
731e5510
...
@@ -17,32 +17,32 @@ public class PerSheetDataReadIncome : IPerSheetDataRead
...
@@ -17,32 +17,32 @@ public class PerSheetDataReadIncome : IPerSheetDataRead
{
{
HeaderFirstRowNum
=
4
,
HeaderFirstRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderFirstCellNum
=
0
,
HeaderFirstCellNum
=
3
,
DataFirstRowNum
=
5
,
DataFirstRowNum
=
5
,
AccountingUnit
=
new
List
<
AccountingUnit
>
AccountingUnit
=
new
List
<
AccountingUnit
>
{
{
//核算单元(医技组)
//核算单元(医技组)
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
0
,
AccountingUnitCellNum
=
3
,
UnitType
=
"医技组"
,
UnitType
=
"医技组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
3
,
FactorRow
=
3
,
},
},
//核算单元(医生组)
//核算单元(医生组)
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
1
,
AccountingUnitCellNum
=
4
,
UnitType
=
"医生组"
,
UnitType
=
"医生组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
2
,
FactorRow
=
2
,
},
},
//核算单元(护理组)
//核算单元(护理组)
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
2
,
AccountingUnitCellNum
=
5
,
UnitType
=
"护理组"
,
UnitType
=
"护理组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
1
,
FactorRow
=
1
,
}
}
}
}
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadOtherIncome.cs
View file @
731e5510
...
@@ -17,32 +17,32 @@ public class PerSheetDataReadOtherIncome : IPerSheetDataRead
...
@@ -17,32 +17,32 @@ public class PerSheetDataReadOtherIncome : IPerSheetDataRead
{
{
HeaderFirstRowNum
=
4
,
HeaderFirstRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderLastRowNum
=
4
,
HeaderFirstCellNum
=
0
,
HeaderFirstCellNum
=
3
,
DataFirstRowNum
=
5
,
DataFirstRowNum
=
5
,
AccountingUnit
=
new
List
<
AccountingUnit
>
AccountingUnit
=
new
List
<
AccountingUnit
>
{
{
//核算单元(医技组)
//核算单元(医技组)
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
0
,
AccountingUnitCellNum
=
3
,
UnitType
=
"医技组"
,
UnitType
=
"医技组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
3
,
FactorRow
=
3
,
},
},
//核算单元(医生组)
//核算单元(医生组)
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
1
,
AccountingUnitCellNum
=
4
,
UnitType
=
"医生组"
,
UnitType
=
"医生组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
2
,
FactorRow
=
2
,
},
},
//核算单元(护理组)
//核算单元(护理组)
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
2
,
AccountingUnitCellNum
=
5
,
UnitType
=
"护理组"
,
UnitType
=
"护理组"
,
DeptCellNum
=
3
,
DeptCellNum
=
6
,
FactorRow
=
1
,
FactorRow
=
1
,
}
}
}
}
...
...
performance/Performance.Services/PerExcelService/SheetDataRead/PerSheetDataReadWorkload.cs
View file @
731e5510
...
@@ -17,14 +17,14 @@ public class PerSheetDataReadWorkload : IPerSheetDataRead
...
@@ -17,14 +17,14 @@ public class PerSheetDataReadWorkload : IPerSheetDataRead
{
{
HeaderFirstRowNum
=
1
,
HeaderFirstRowNum
=
1
,
HeaderLastRowNum
=
1
,
HeaderLastRowNum
=
1
,
HeaderFirstCellNum
=
0
,
HeaderFirstCellNum
=
1
,
DataFirstRowNum
=
3
,
DataFirstRowNum
=
3
,
AccountingUnit
=
new
List
<
AccountingUnit
>
AccountingUnit
=
new
List
<
AccountingUnit
>
{
{
new
AccountingUnit
new
AccountingUnit
{
{
AccountingUnitCellNum
=
0
,
AccountingUnitCellNum
=
1
,
DeptCellNum
=
1
,
DeptCellNum
=
2
,
FactorRow
=
2
FactorRow
=
2
}
}
}
}
...
...
performance/Performance.Services/SheetSevice.cs
View file @
731e5510
...
@@ -107,6 +107,25 @@ public SheetExportResponse SheetExport(int sheetID)
...
@@ -107,6 +107,25 @@ public SheetExportResponse SheetExport(int sheetID)
else
else
{
{
CommonExport
(
sheetID
,
response
);
CommonExport
(
sheetID
,
response
);
if
(
new
int
[]
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
,
(
int
)
SheetType
.
Workload
}.
Contains
(
sheet
.
SheetType
.
Value
))
{
var
point
=
0
;
if
(
new
int
[]
{
(
int
)
SheetType
.
Income
,
(
int
)
SheetType
.
OtherIncome
,
(
int
)
SheetType
.
Expend
}.
Contains
(
sheet
.
SheetType
.
Value
))
point
=
-
3
;
else
point
=
-
1
;
response
.
Header
.
ForEach
(
t
=>
t
.
Data
.
ForEach
(
data
=>
{
if
(
data
.
PointCell
!=
0
)
data
.
PointCell
+=
point
;
}));
response
.
Row
.
ForEach
(
t
=>
t
.
Data
.
ForEach
(
data
=>
{
if
(
data
.
PointCell
!=
0
)
data
.
PointCell
+=
point
;
}));
}
}
}
if
(
response
.
Row
!=
null
&&
response
.
Row
.
Any
())
if
(
response
.
Row
!=
null
&&
response
.
Row
.
Any
())
...
...
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