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
7a0ca071
Commit
7a0ca071
authored
May 30, 2022
by
1391696987
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员字典添加搜索条件、粘贴数据下载,二次绩效、支出费用类型、工作量配置修改为分页
parent
6f7cc4b3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
8 deletions
+41
-8
performance/Performance.Api/Controllers/ConfigController.cs
+28
-7
performance/Performance.Api/Controllers/EmployeeController.cs
+4
-0
performance/Performance.DtoModels/Request/CofAgainRequest.cs
+3
-0
performance/Performance.DtoModels/Request/DrugpropRequest.cs
+2
-0
performance/Performance.DtoModels/Request/WorkItemRequest.cs
+2
-0
performance/Performance.Services/ConfigService.cs
+1
-0
performance/Performance.Services/PersonService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/ConfigController.cs
View file @
7a0ca071
...
@@ -321,8 +321,15 @@ public ApiResponse DrugtypeDelete([CustomizeValidator(RuleSet = "Delete"), FromB
...
@@ -321,8 +321,15 @@ public ApiResponse DrugtypeDelete([CustomizeValidator(RuleSet = "Delete"), FromB
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
GetDrugtypeDisburseList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
DrugpropRequest
request
)
public
ApiResponse
GetDrugtypeDisburseList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
DrugpropRequest
request
)
{
{
var
list
=
_configService
.
GetDrugtypeDisburseList
(
request
.
HospitalId
,
request
.
AllotID
);
var
list
=
_configService
.
GetDrugtypeDisburseList
(
request
.
HospitalId
,
request
.
AllotID
).
OrderBy
(
t
=>
t
.
ID
);
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
new
{
Data
=
list
.
Skip
(
request
.
PageSize
*
(
request
.
CurrentPage
-
1
)).
Take
(
request
.
PageSize
).
ToList
(),
TotalCount
=
list
.
Count
(),
TotalPages
=
(
int
)
Math
.
Ceiling
((
double
)
list
.
Count
()
/
request
.
PageSize
),
CurrentPage
=
request
.
CurrentPage
,
PageSize
=
request
.
PageSize
});
}
}
/// <summary>
/// <summary>
...
@@ -376,8 +383,15 @@ public ApiResponse DrugtypeDisburseDelete([CustomizeValidator(RuleSet = "Delete"
...
@@ -376,8 +383,15 @@ public ApiResponse DrugtypeDisburseDelete([CustomizeValidator(RuleSet = "Delete"
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
GetAgainList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
CofAgainRequest
request
)
public
ApiResponse
GetAgainList
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
CofAgainRequest
request
)
{
{
var
list
=
_configService
.
GetAgainList
(
request
.
AllotID
);
var
list
=
_configService
.
GetAgainList
(
request
.
AllotID
).
OrderBy
(
t
=>
t
.
ID
);
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
new
{
Data
=
list
.
Skip
(
request
.
PageSize
*
(
request
.
CurrentPage
-
1
)).
Take
(
request
.
PageSize
).
ToList
(),
TotalCount
=
list
.
Count
(),
TotalPages
=
(
int
)
Math
.
Ceiling
((
double
)
list
.
Count
()
/
request
.
PageSize
),
CurrentPage
=
request
.
CurrentPage
,
PageSize
=
request
.
PageSize
});
}
}
/// <summary>
/// <summary>
...
@@ -429,10 +443,17 @@ public ApiResponse AgainDelete([CustomizeValidator(RuleSet = "Delete"), FromBody
...
@@ -429,10 +443,17 @@ public ApiResponse AgainDelete([CustomizeValidator(RuleSet = "Delete"), FromBody
/// <returns></returns>
/// <returns></returns>
[
Route
(
"workitemlist"
)]
[
Route
(
"workitemlist"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
<
List
<
cof_workitem
>>
GetWorkItems
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
WorkItemRequest
request
)
public
ApiResponse
GetWorkItems
([
CustomizeValidator
(
RuleSet
=
"Select"
),
FromBody
]
WorkItemRequest
request
)
{
{
var
list
=
_configService
.
GetWorkItems
(
request
.
AllotID
,
request
.
Type
);
var
list
=
_configService
.
GetWorkItems
(
request
.
AllotID
,
request
.
Type
).
OrderBy
(
t
=>
t
.
ID
);
return
new
ApiResponse
<
List
<
cof_workitem
>>(
ResponseType
.
OK
,
"ok"
,
list
);
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
new
{
Data
=
list
.
Skip
(
request
.
PageSize
*
(
request
.
CurrentPage
-
1
)).
Take
(
request
.
PageSize
).
ToList
(),
TotalCount
=
list
.
Count
(),
TotalPages
=
(
int
)
Math
.
Ceiling
((
double
)
list
.
Count
()
/
request
.
PageSize
),
CurrentPage
=
request
.
CurrentPage
,
PageSize
=
request
.
PageSize
});
}
}
/// <summary>
/// <summary>
...
...
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
7a0ca071
...
@@ -350,6 +350,8 @@ public ApiResponse InsertApr([FromBody] per_apr_amount request)
...
@@ -350,6 +350,8 @@ public ApiResponse InsertApr([FromBody] per_apr_amount request)
{
{
if
(
request
.
AllotId
==
0
)
if
(
request
.
AllotId
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
if
(
request
.
Amount
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"金额不能是0!"
);
var
result
=
employeeService
.
InsertApr
(
request
,
claim
.
GetUserId
());
var
result
=
employeeService
.
InsertApr
(
request
,
claim
.
GetUserId
());
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"添加成功"
,
request
)
:
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"添加成功"
,
request
)
:
...
@@ -651,6 +653,8 @@ public ApiResponse InsertAprHide([FromBody] per_apr_amount_hide request)
...
@@ -651,6 +653,8 @@ public ApiResponse InsertAprHide([FromBody] per_apr_amount_hide request)
{
{
if
(
request
.
AllotId
==
0
)
if
(
request
.
AllotId
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"参数AllotId无效!"
);
if
(
request
.
Amount
==
0
)
return
new
ApiResponse
(
ResponseType
.
ParameterError
,
"金额不能是0!"
);
var
result
=
employeeService
.
InsertAprHide
(
request
,
claim
.
GetUserId
());
var
result
=
employeeService
.
InsertAprHide
(
request
,
claim
.
GetUserId
());
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"添加成功"
,
request
)
:
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"添加成功"
,
request
)
:
...
...
performance/Performance.DtoModels/Request/CofAgainRequest.cs
View file @
7a0ca071
...
@@ -32,6 +32,9 @@ public class CofAgainRequest
...
@@ -32,6 +32,9 @@ public class CofAgainRequest
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
int
CurrentPage
{
get
;
set
;
}
=
0
;
public
int
PageSize
{
get
;
set
;
}
=
0
;
public
class
CofAgainRequestValidator
:
AbstractValidator
<
CofAgainRequest
>
public
class
CofAgainRequestValidator
:
AbstractValidator
<
CofAgainRequest
>
{
{
public
CofAgainRequestValidator
()
public
CofAgainRequestValidator
()
...
...
performance/Performance.DtoModels/Request/DrugpropRequest.cs
View file @
7a0ca071
...
@@ -32,6 +32,8 @@ public class DrugpropRequest
...
@@ -32,6 +32,8 @@ public class DrugpropRequest
/// 费用类别
/// 费用类别
/// </summary>
/// </summary>
public
string
ChargeType
{
get
;
set
;
}
public
string
ChargeType
{
get
;
set
;
}
public
int
CurrentPage
{
get
;
set
;
}
=
0
;
public
int
PageSize
{
get
;
set
;
}
=
0
;
public
class
DrugpropRequestValidator
:
AbstractValidator
<
DrugpropRequest
>
public
class
DrugpropRequestValidator
:
AbstractValidator
<
DrugpropRequest
>
...
...
performance/Performance.DtoModels/Request/WorkItemRequest.cs
View file @
7a0ca071
...
@@ -20,6 +20,8 @@ public class WorkItemRequest
...
@@ -20,6 +20,8 @@ public class WorkItemRequest
/// 1. 药占比 2. CMI
/// 1. 药占比 2. CMI
/// </summary>
/// </summary>
public
int
Type
{
get
;
set
;
}
public
int
Type
{
get
;
set
;
}
public
int
CurrentPage
{
get
;
set
;
}
=
0
;
public
int
PageSize
{
get
;
set
;
}
=
0
;
}
}
public
class
WorkItemRequestValidator
:
AbstractValidator
<
WorkItemRequest
>
public
class
WorkItemRequestValidator
:
AbstractValidator
<
WorkItemRequest
>
{
{
...
...
performance/Performance.Services/ConfigService.cs
View file @
7a0ca071
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
using
Performance.EntityModels
;
using
Performance.EntityModels
;
using
Performance.EntityModels.Other
;
using
Performance.EntityModels.Other
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure
;
using
Performance.Infrastructure.Models
;
using
Performance.Repository
;
using
Performance.Repository
;
using
Performance.Repository.Repository
;
using
Performance.Repository.Repository
;
using
System
;
using
System
;
...
...
performance/Performance.Services/PersonService.cs
View file @
7a0ca071
...
@@ -211,7 +211,7 @@ public PageList<per_employee> GetPersons(int allotId, int userId, PersonParamsRe
...
@@ -211,7 +211,7 @@ public PageList<per_employee> GetPersons(int allotId, int userId, PersonParamsRe
exp
=
exp
.
And
(
t
=>
t
.
AccountingUnit
==
dept
&&
unittype
.
Contains
(
t
.
UnitType
));
exp
=
exp
.
And
(
t
=>
t
.
AccountingUnit
==
dept
&&
unittype
.
Contains
(
t
.
UnitType
));
if
(
request
!=
null
&&
!
string
.
IsNullOrEmpty
(
request
.
SearchQuery
))
if
(
request
!=
null
&&
!
string
.
IsNullOrEmpty
(
request
.
SearchQuery
))
exp
=
exp
.
And
(
t
=>
true
&&
(
t
.
AccountingUnit
.
Contains
(
request
.
SearchQuery
)
||
t
.
PersonnelNumber
.
Contains
(
request
.
SearchQuery
)
||
t
.
DoctorName
.
Contains
(
request
.
SearchQuery
)
||
t
.
Department
.
Contains
(
request
.
SearchQuery
)));
exp
=
exp
.
And
(
t
=>
true
&&
(
t
.
AccountingUnit
.
Contains
(
request
.
SearchQuery
)
||
t
.
PersonnelNumber
.
Contains
(
request
.
SearchQuery
)
||
t
.
DoctorName
.
Contains
(
request
.
SearchQuery
)
||
t
.
Department
.
Contains
(
request
.
SearchQuery
)
||
t
.
UnitType
.
Contains
(
request
.
SearchQuery
)
));
var
result
=
new
List
<
per_employee
>();
var
result
=
new
List
<
per_employee
>();
...
...
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