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
3ec3b2ce
Commit
3ec3b2ce
authored
Mar 03, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
材料考核显示,其他绩效统计
parent
44ed50f0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
7 deletions
+83
-7
performance/Performance.Api/Controllers/ComputeController.cs
+24
-0
performance/Performance.Api/Controllers/EmployeeController.cs
+3
-3
performance/Performance.Services/ComputeService.cs
+7
-0
performance/Performance.Services/EmployeeService.cs
+49
-4
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
3ec3b2ce
...
@@ -22,12 +22,15 @@ public class ComputeController : Controller
...
@@ -22,12 +22,15 @@ public class ComputeController : Controller
private
ComputeService
_computeService
;
private
ComputeService
_computeService
;
private
AllotService
_allotService
;
private
AllotService
_allotService
;
private
ClaimService
_claim
;
private
ClaimService
_claim
;
private
EmployeeService
_employeeService
;
public
ComputeController
(
AllotService
allotService
,
public
ComputeController
(
AllotService
allotService
,
ComputeService
computeService
,
ComputeService
computeService
,
EmployeeService
employeeService
,
ClaimService
claim
)
ClaimService
claim
)
{
{
_allotService
=
allotService
;
_allotService
=
allotService
;
_computeService
=
computeService
;
_computeService
=
computeService
;
_employeeService
=
employeeService
;
_claim
=
claim
;
_claim
=
claim
;
}
}
...
@@ -375,5 +378,25 @@ public ApiResponse<res_baiscnorm> EditHospitalAvg([FromBody] ComputerAvgRequest
...
@@ -375,5 +378,25 @@ public ApiResponse<res_baiscnorm> EditHospitalAvg([FromBody] ComputerAvgRequest
}
}
#
endregion
#
endregion
#
region
其他绩效统计
/// <summary>
/// 其他医院绩效统计
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"OtherPerStats/{allotId}"
)]
[
HttpPost
]
public
ApiResponse
OtherPerStats
(
int
allotId
)
{
var
employee
=
_employeeService
.
GetAprList
(
allotId
,
_claim
.
GetUserId
());
if
(
employee
==
null
)
return
new
ApiResponse
(
ResponseType
.
OK
,
null
);
_computeService
.
GetOtherPerStats
(
employee
);
return
new
ApiResponse
();
}
#
endregion
}
}
}
}
\ No newline at end of file
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
3ec3b2ce
...
@@ -467,15 +467,15 @@ public ApiResponse<List<TitleValue>> GetPerforTypeDict([FromRoute] int allotId)
...
@@ -467,15 +467,15 @@ public ApiResponse<List<TitleValue>> GetPerforTypeDict([FromRoute] int allotId)
/// 材料科室考核
/// 材料科室考核
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"deptAssessment"
)]
[
Route
(
"deptAssessment
/{allotId}
"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
GetDeptAssessment
(
int
allotId
)
public
ApiResponse
GetDeptAssessment
(
int
allotId
)
{
{
if
(
allotId
<=
0
)
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
employeeService
.
GetDeptAssessment
(
allotId
);
var
result
=
employeeService
.
GetDeptAssessment
(
allotId
);
return
new
ApiResponse
();
return
new
ApiResponse
(
ResponseType
.
OK
,
result
);
}
}
}
}
}
}
performance/Performance.Services/ComputeService.cs
View file @
3ec3b2ce
...
@@ -1446,5 +1446,12 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
...
@@ -1446,5 +1446,12 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
return
Mapper
.
Map
<
res_baiscnorm
>(
baiscnorm
);
return
Mapper
.
Map
<
res_baiscnorm
>(
baiscnorm
);
}
}
}
}
public
List
<
string
>
GetOtherPerStats
(
List
<
per_apr_amount
>
employees
)
{
var
emp
=
employees
.
Select
(
t
=>
t
.
PerforType
).
Distinct
();
return
new
List
<
string
>();
}
}
}
}
}
performance/Performance.Services/EmployeeService.cs
View file @
3ec3b2ce
...
@@ -643,13 +643,58 @@ public List<TitleValue> GetPerforTypeDict(int allotId)
...
@@ -643,13 +643,58 @@ public List<TitleValue> GetPerforTypeDict(int allotId)
#
region
科室考核
#
region
科室考核
public
List
<
Row
>
GetDeptAssessment
(
int
allotId
)
public
List
<
string
[
]
>
GetDeptAssessment
(
int
allotId
)
{
{
var
sheet
=
perforPersheetRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
SheetName
==
"5.4 科室材料考核2"
);
var
sheet
=
perforPersheetRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
SheetName
==
"5.4 科室材料考核2"
);
var
data
=
perforImdataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
SheetID
==
sheet
.
ID
);
if
(
sheet
==
null
)
var
rowData
=
new
List
<
Row
>();
return
new
List
<
string
[
]
>
();
return
new
List
<
Row
>();
var
data
=
perforImdataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
SheetID
==
sheet
.
ID
);
var
dataNum
=
data
?.
Select
(
t
=>
t
.
RowNumber
)?.
OrderBy
(
c
=>
c
.
Value
).
Distinct
();
var
rowData
=
new
List
<
string
[
]>
();
if
(
dataNum
!=
null
)
foreach
(
var
num
in
dataNum
)
{
var
deptData
=
new
string
[
7
];
var
row
=
data
.
Where
(
t
=>
t
.
RowNumber
==
num
);
deptData
[
2
]
=
row
.
First
()?.
AccountingUnit
;
if
((
int
)
row
.
First
()?.
UnitType
==(
int
)
UnitType
.
医生组
)
deptData
[
1
]
=
"医生组"
;
else
if
((
int
)
row
.
First
()?.
UnitType
==(
int
)
UnitType
.
医技组
)
deptData
[
1
]
=
"医技组"
;
else
if
((
int
)
row
.
First
()?.
UnitType
==
(
int
)
UnitType
.
护理组
)
deptData
[
1
]
=
"护理组"
;
foreach
(
var
imData
in
row
)
{
if
(
imData
.
TypeName
==
"考核得分合计"
)
{
if
(
imData
.
CellValue
!=
null
)
deptData
[
0
]
=
Math
.
Round
((
decimal
)
imData
.
CellValue
*
100
)
+
"%"
;
}
else
if
(
imData
.
TypeName
==
"考核1"
)
{
if
(
imData
.
CellValue
!=
null
)
deptData
[
3
]
=
Math
.
Round
((
decimal
)
imData
.
CellValue
*
100
)
+
"%"
;
}
else
if
(
imData
.
TypeName
==
"考核2"
)
{
if
(
imData
.
CellValue
!=
null
)
deptData
[
4
]
=
Math
.
Round
((
decimal
)
imData
.
CellValue
*
100
)
+
"%"
;
}
else
if
(
imData
.
TypeName
==
"考核三"
)
{
if
(
imData
.
CellValue
!=
null
)
deptData
[
5
]
=
Math
.
Round
((
decimal
)
imData
.
CellValue
*
100
)
+
"%"
;
}
else
if
(
imData
.
TypeName
==
"考核四"
)
if
(
imData
.
CellValue
!=
null
)
deptData
[
6
]
=
Math
.
Round
((
decimal
)
imData
.
CellValue
*
100
)
+
"%"
;
}
rowData
.
Add
(
deptData
);
}
return
rowData
;
}
}
#
endregion
#
endregion
...
...
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