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
44ed50f0
Commit
44ed50f0
authored
Mar 03, 2021
by
钟博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人均界面、材料考核
parent
7dfac4e2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
1 deletions
+74
-1
performance/Performance.Api/Controllers/ComputeController.cs
+1
-1
performance/Performance.Api/Controllers/EmployeeController.cs
+15
-0
performance/Performance.DtoModels/Request/ComputerAvgRequest.cs
+42
-0
performance/Performance.Services/EmployeeService.cs
+16
-0
No files found.
performance/Performance.Api/Controllers/ComputeController.cs
View file @
44ed50f0
...
...
@@ -365,7 +365,7 @@ public ApiResponse DoctorDetail(int computeId)
[
HttpPost
]
public
ApiResponse
<
res_baiscnorm
>
EditHospitalAvg
([
FromBody
]
ComputerAvgRequest
request
)
{
var
allot
=
_allotService
.
GetAllot
(
request
.
a
llotId
);
var
allot
=
_allotService
.
GetAllot
(
request
.
A
llotId
);
if
(
null
==
allot
)
throw
new
PerformanceException
(
"当前绩效记录不存在"
);
...
...
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
44ed50f0
...
...
@@ -462,5 +462,20 @@ public ApiResponse<List<TitleValue>> GetPerforTypeDict([FromRoute] int allotId)
var
result
=
employeeService
.
GetPerforTypeDict
(
allotId
);
return
new
ApiResponse
<
List
<
TitleValue
>>(
ResponseType
.
OK
,
"绩效类型字典"
,
result
);
}
/// <summary>
/// 材料科室考核
/// </summary>
/// <returns></returns>
[
Route
(
"deptAssessment"
)]
[
HttpPost
]
public
ApiResponse
GetDeptAssessment
(
int
allotId
)
{
if
(
allotId
<=
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
employeeService
.
GetDeptAssessment
(
allotId
);
return
new
ApiResponse
();
}
}
}
performance/Performance.DtoModels/Request/ComputerAvgRequest.cs
0 → 100644
View file @
44ed50f0
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
FluentValidation
;
namespace
Performance.DtoModels.Request
{
public
class
ComputerAvgRequest
{
public
int
Id
{
get
;
set
;
}
public
int
AllotId
{
get
;
set
;
}
public
int
SheetId
{
get
;
set
;
}
/// <summary>
/// 绩效核算人群
/// </summary>
public
string
PositionName
{
get
;
set
;
}
/// <summary>
/// 绩效总额
/// </summary>
public
decimal
TotelValue
{
get
;
set
;
}
/// <summary>
/// 人均绩效
/// </summary>
public
decimal
AvgValue
{
get
;
set
;
}
/// <summary>
/// 总人数
/// </summary>
public
decimal
TotelNumber
{
get
;
set
;
}
}
public
class
ComputerRequestValidator
:
AbstractValidator
<
ComputerAvgRequest
>
{
public
ComputerRequestValidator
()
{
RuleFor
(
x
=>
x
.
Id
).
NotNull
();
RuleFor
(
x
=>
x
.
AllotId
).
NotNull
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
PositionName
).
NotNull
().
NotEmpty
();
RuleFor
(
x
=>
x
.
TotelNumber
).
NotNull
();
RuleFor
(
x
=>
x
.
TotelValue
).
NotNull
();
RuleFor
(
x
=>
x
.
AvgValue
).
NotNull
();
}
}
}
performance/Performance.Services/EmployeeService.cs
View file @
44ed50f0
...
...
@@ -21,6 +21,7 @@ public class EmployeeService : IAutoInjection
{
private
PerforImemployeeRepository
perforImemployeeRepository
;
private
PerforPersheetRepository
perforPersheetRepository
;
private
PerforImdataRepository
perforImdataRepository
;
private
PerforPerallotRepository
perforPerallotRepository
;
private
PerforImemployeeclinicRepository
perforImemployeeclinicRepository
;
private
PerforUserhospitalRepository
perforUserhospitalRepository
;
...
...
@@ -34,6 +35,7 @@ public class EmployeeService : IAutoInjection
public
EmployeeService
(
PerforImemployeeRepository
perforImemployeeRepository
,
PerforPersheetRepository
perforPersheetRepository
,
PerforImdataRepository
perforImdataRepository
,
PerforPerallotRepository
perforPerallotRepository
,
PerforImemployeeclinicRepository
perforImemployeeclinicRepository
,
PerforUserhospitalRepository
perforUserhospitalRepository
,
...
...
@@ -47,6 +49,7 @@ public class EmployeeService : IAutoInjection
{
this
.
perforImemployeeRepository
=
perforImemployeeRepository
;
this
.
perforPersheetRepository
=
perforPersheetRepository
;
this
.
perforImdataRepository
=
perforImdataRepository
;
this
.
perforPerallotRepository
=
perforPerallotRepository
;
this
.
perforImemployeeclinicRepository
=
perforImemployeeclinicRepository
;
this
.
perforUserhospitalRepository
=
perforUserhospitalRepository
;
...
...
@@ -637,5 +640,18 @@ public List<TitleValue> GetPerforTypeDict(int allotId)
Value
=
t
}).
ToList
();
}
#
region
科室考核
public
List
<
Row
>
GetDeptAssessment
(
int
allotId
)
{
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
);
var
rowData
=
new
List
<
Row
>();
return
new
List
<
Row
>();
}
#
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