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
0a06e354
Commit
0a06e354
authored
Dec 30, 2021
by
纪旭 韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改汇总表列头
parent
88c0b969
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
18 deletions
+16
-18
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.DtoModels/Request/ComputerRequest.cs
+1
-6
performance/Performance.Services/ComputeService.cs
+10
-12
No files found.
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
0a06e354
...
...
@@ -1695,6 +1695,11 @@
状态 1 可用 0 禁用
</summary>
</member>
<member
name=
"P:Performance.EntityModels.cof_alias.SumStatus"
>
<summary>
状态 1 求和 0 不求和
</summary>
</member>
<member
name=
"T:Performance.EntityModels.cof_check"
>
<summary>
上传excel文件校验配置
...
...
performance/Performance.DtoModels/Request/ComputerRequest.cs
View file @
0a06e354
...
...
@@ -94,13 +94,8 @@ public class GetPage
}
public
class
QueryComputeByDateGetTotal
:
GetPage
{
public
List
<
Head
>
Head
{
get
;
set
;
}
public
List
<
cof_alias
>
Head
{
get
;
set
;
}
public
List
<
dynamic
>
Data
{
get
;
set
;
}
public
decimal
TotalData
{
get
;
set
;
}}
}
public
class
Head
{
public
string
Name
{
get
;
set
;
}
public
string
Alias
{
get
;
set
;
}
}
performance/Performance.Services/ComputeService.cs
View file @
0a06e354
...
...
@@ -2098,21 +2098,10 @@ public QueryComputeByDateGetTotal GetPerformanceSummary(HospitalGrantSummary req
List
<
cof_alias
>
AllComputeView
=
ComputeConfig
.
AllComputeView
.
ToList
();
List
<
Head
>
head
=
new
List
<
Head
>();
if
((
request
.
GroupBy
!=
null
&&
request
.
GroupBy
.
Any
(
t
=>
!
string
.
IsNullOrEmpty
(
t
)))
&&
(
request
.
SumBy
!=
null
&&
request
.
SumBy
.
Any
(
t
=>
!
string
.
IsNullOrEmpty
(
t
))))
AllComputeView
=
ComputeConfig
.
AllComputeView
.
Where
(
t
=>
headlist
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
foreach
(
var
item
in
AllComputeView
)
{
Head
head1
=
new
Head
()
{
Name
=
item
.
Name
,
Alias
=
item
.
Alias
};
head
.
Add
(
head1
);
}
decimal
TotalData
=
0
;
...
...
@@ -2128,7 +2117,7 @@ public QueryComputeByDateGetTotal GetPerformanceSummary(HospitalGrantSummary req
var
list
=
new
QueryComputeByDateGetTotal
{
Head
=
head
,
Head
=
AllComputeView
,
Data
=
datas
,
TotalData
=
TotalData
,
TotalCount
=
TotalCount
,
...
...
@@ -2182,6 +2171,15 @@ public class ComputeConfig
{
public
static
List
<
cof_alias
>
PerformanceTotal
(
string
route
,
string
[]
heads
)
{
if
(
heads
==
null
)
{
if
(
route
==
"/report/wholehospital_grant_summary"
)
return
AllComputeView
.
ToList
();
if
(
route
==
"/report/wholehospital_accounting_grant_summary"
)
return
AllComputeDepartmentView
.
ToList
();
if
(
route
==
"/report/wholehospital_finance_grant_summary"
)
return
AllComputePersonView
.
ToList
();
}
if
(
route
==
"/report/wholehospital_grant_summary"
)
return
AllComputeView
.
Where
(
t
=>
heads
.
Contains
(
t
.
Name
.
ToLower
())).
ToList
();
if
(
route
==
"/report/wholehospital_accounting_grant_summary"
)
...
...
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