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
f8184c42
Commit
f8184c42
authored
Aug 26, 2021
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表
parent
434b9a9a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
11 deletions
+82
-11
performance/Performance.Api/Controllers/ReportController.cs
+22
-3
performance/Performance.Api/wwwroot/Performance.Api.xml
+14
-0
performance/Performance.DtoModels/Request/ConditionRequest.cs
+46
-8
performance/Performance.Services/ReportService.cs
+0
-0
No files found.
performance/Performance.Api/Controllers/ReportController.cs
View file @
f8184c42
...
@@ -224,11 +224,30 @@ public ApiResponse MenuReport([CustomizeValidator(RuleSet = "Menu"), FromBody] R
...
@@ -224,11 +224,30 @@ public ApiResponse MenuReport([CustomizeValidator(RuleSet = "Menu"), FromBody] R
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"table"
)]
[
Route
(
"table
/normal
"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
Table
([
FromBody
]
ConditionRequest
request
)
public
ApiResponse
Table
Normal
([
FromBody
]
ConditionRequest
request
)
{
{
var
list
=
reportService
.
Table
(
request
);
if
(
request
==
null
)
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
new
TableData
());
var
list
=
reportService
.
TableNormal
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
}
/// <summary>
/// 科室绩效对比
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[
Route
(
"table/special"
)]
[
HttpPost
]
public
ApiResponse
TableSpecial
([
FromBody
]
ConditionRequest
request
)
{
if
(
request
==
null
)
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
new
TableData
());
var
list
=
reportService
.
TableSpecial
(
request
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
return
new
ApiResponse
(
ResponseType
.
OK
,
""
,
list
);
}
}
}
}
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
f8184c42
...
@@ -1455,6 +1455,20 @@
...
@@ -1455,6 +1455,20 @@
<param
name=
"request"
></param>
<param
name=
"request"
></param>
<returns></returns>
<returns></returns>
</member>
</member>
<member
name=
"M:Performance.Api.Controllers.ReportController.TableNormal(Performance.DtoModels.ConditionRequest)"
>
<summary>
绩效汇报表
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.ReportController.TableSpecial(Performance.DtoModels.ConditionRequest)"
>
<summary>
科室绩效对比
</summary>
<param
name=
"request"
></param>
<returns></returns>
</member>
<member
name=
"M:Performance.Api.Controllers.ReportGlobalController.GetAllReportGlobal(System.Int32)"
>
<member
name=
"M:Performance.Api.Controllers.ReportGlobalController.GetAllReportGlobal(System.Int32)"
>
<summary>
<summary>
获取报表配置信息
获取报表配置信息
...
...
performance/Performance.DtoModels/Request/ConditionRequest.cs
View file @
f8184c42
...
@@ -6,6 +6,12 @@ namespace Performance.DtoModels
...
@@ -6,6 +6,12 @@ namespace Performance.DtoModels
{
{
public
class
ConditionRequest
public
class
ConditionRequest
{
{
public
int
HospitalId
{
get
;
set
;
}
public
int
GroupId
{
get
;
set
;
}
public
int
ReportId
{
get
;
set
;
}
public
int
[]
Year
{
get
;
set
;
}
public
int
[]
Year
{
get
;
set
;
}
public
int
[]
Month
{
get
;
set
;
}
public
int
[]
Month
{
get
;
set
;
}
...
@@ -15,22 +21,31 @@ public class ConditionRequest
...
@@ -15,22 +21,31 @@ public class ConditionRequest
public
string
[]
UnitType
{
get
;
set
;
}
public
string
[]
UnitType
{
get
;
set
;
}
}
}
public
class
Condition
{
public
int
Year
{
get
;
set
;
}
public
int
Month
{
get
;
set
;
}
public
string
AccountingUnit
{
get
;
set
;
}
public
string
UnitType
{
get
;
set
;
}
}
public
class
TableData
public
class
TableData
{
{
public
List
<
Header
>
Header
s
{
get
;
set
;
}
public
List
<
Column
>
Column
s
{
get
;
set
;
}
public
string
Data
{
get
;
set
;
}
public
string
Data
{
get
;
set
;
}
}
}
public
class
Header
public
class
Column
{
{
public
string
Date
{
get
;
set
;
}
public
string
Label
{
get
;
set
;
}
public
string
AccountingUnit
{
get
;
set
;
}
public
string
Prop
{
get
;
set
;
}
public
string
UnitType
{
get
;
set
;
}
public
List
<
Column
>
Children
{
get
;
set
;
}
public
string
Field
{
get
;
set
;
}
}
}
public
class
QueryData
public
class
QueryData
...
@@ -51,6 +66,29 @@ public class QueryData
...
@@ -51,6 +66,29 @@ public class QueryData
public
string
ItemName
{
get
;
set
;
}
public
string
ItemName
{
get
;
set
;
}
public
Nullable
<
decimal
>
Value
{
get
;
set
;
}
public
decimal
?
Value
{
get
;
set
;
}
public
List
<
QueryData
>
Children
{
get
;
set
;
}
}
public
class
QueryResult
{
public
string
Fixed1
{
get
;
set
;
}
public
string
Fixed2
{
get
;
set
;
}
public
string
Fixed3
{
get
;
set
;
}
public
string
Fixed4
{
get
;
set
;
}
public
string
Fixed5
{
get
;
set
;
}
public
string
Column1
{
get
;
set
;
}
public
string
Column2
{
get
;
set
;
}
public
string
Column3
{
get
;
set
;
}
public
decimal
?
Value
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/ReportService.cs
View file @
f8184c42
This diff is collapsed.
Click to expand it.
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