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
a8ab812c
Commit
a8ab812c
authored
Mar 19, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报表结构
parent
b3fc5681
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
performance/Performance.DtoModels/ReportData.cs
+22
-1
performance/Performance.DtoModels/SelectionOptions.cs
+3
-2
performance/Performance.Services/ReportDataService.cs
+1
-1
No files found.
performance/Performance.DtoModels/ReportData.cs
View file @
a8ab812c
using
System
;
using
Performance.EntityModels
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Text
;
...
@@ -6,6 +7,26 @@ namespace Performance.DtoModels
...
@@ -6,6 +7,26 @@ namespace Performance.DtoModels
{
{
public
class
ReportData
public
class
ReportData
{
{
public
ReportData
(
rep_report
report
)
{
ReportID
=
report
.
ID
;
ChartType
=
report
.
ChartType
;
Sort
=
report
.
Sort
;
Title
=
report
.
Title
;
XTitle
=
report
.
XTitle
;
XUnit
=
report
.
XUnit
;
YTitle
=
report
.
YTitle
;
YUnit
=
report
.
YUnit
;
VTitle
=
report
.
VTitle
;
VUnit
=
report
.
VUnit
;
NTitle
=
report
.
NTitle
;
NUnit
=
report
.
NUnit
;
Formula
=
report
.
Formula
;
DataType
=
report
.
DataType
;
FilterValue
=
report
.
FilterValue
;
ChartData
=
new
List
<
ChartData
>();
}
public
int
ReportID
{
get
;
set
;
}
public
int
ReportID
{
get
;
set
;
}
/// <summary>
/// <summary>
...
...
performance/Performance.DtoModels/SelectionOptions.cs
View file @
a8ab812c
...
@@ -9,20 +9,21 @@ public class SelectionOptions
...
@@ -9,20 +9,21 @@ public class SelectionOptions
{
{
public
SelectionOptions
(
rep_selection
item
)
public
SelectionOptions
(
rep_selection
item
)
{
{
ID
=
item
.
ID
;
Selection
ID
=
item
.
ID
;
Title
=
item
.
Title
;
Title
=
item
.
Title
;
InputType
=
item
.
InputType
;
InputType
=
item
.
InputType
;
InputName
=
item
.
InputName
;
InputName
=
item
.
InputName
;
Required
=
item
.
Required
??
0
;
Required
=
item
.
Required
??
0
;
Sort
=
item
.
Sort
??
0
m
;
Sort
=
item
.
Sort
??
0
m
;
LoadType
=
item
.
LoadType
;
LoadType
=
item
.
LoadType
;
DefaultValue
=
item
.
DefaultValue
;
Options
=
new
List
<
TitleValue
>();
Options
=
new
List
<
TitleValue
>();
ParentItems
=
new
List
<
TitleValue
>();
ParentItems
=
new
List
<
TitleValue
>();
}
}
/// <summary>
/// <summary>
/// ID
/// ID
/// </summary>
/// </summary>
public
int
ID
{
get
;
}
public
int
Selection
ID
{
get
;
}
/// <summary>
/// <summary>
/// 排序
/// 排序
/// </summary>
/// </summary>
...
...
performance/Performance.Services/ReportDataService.cs
View file @
a8ab812c
...
@@ -130,7 +130,7 @@ public List<ReportData> GetReportData(int hospitalId, int groupId, List<Selectio
...
@@ -130,7 +130,7 @@ public List<ReportData> GetReportData(int hospitalId, int groupId, List<Selectio
var
chartData
=
reportRepository
.
DapperQuery
<
ChartData
>(
sql
,
null
);
var
chartData
=
reportRepository
.
DapperQuery
<
ChartData
>(
sql
,
null
);
ReportData
reportData
=
new
ReportData
();
ReportData
reportData
=
new
ReportData
(
report
);
reportData
.
Title
=
AddSelectionToReportTitle
(
selections
,
values
,
report
.
Title
);
reportData
.
Title
=
AddSelectionToReportTitle
(
selections
,
values
,
report
.
Title
);
reportData
.
ChartData
=
chartData
!=
null
&&
chartData
.
Any
()
?
chartData
.
ToList
()
:
new
List
<
ChartData
>();
reportData
.
ChartData
=
chartData
!=
null
&&
chartData
.
Any
()
?
chartData
.
ToList
()
:
new
List
<
ChartData
>();
result
.
Add
(
reportData
);
result
.
Add
(
reportData
);
...
...
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