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
e46be9cd
Commit
e46be9cd
authored
Sep 15, 2020
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科室收入、额外收入 核算金额汇总
parent
dc09f61b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
performance/Performance.Services/ComputeService.cs
+6
-3
No files found.
performance/Performance.Services/ComputeService.cs
View file @
e46be9cd
...
...
@@ -729,7 +729,11 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
var
sheettype
=
1
;
//特殊核算科室 4
var
amount
=
0
m
;
if
(
sheet
.
SheetType
==
(
int
)
SheetType
.
Expend
)
if
(
sheet
.
SheetType
==
(
int
)
SheetType
.
Income
||
sheet
.
SheetType
==
(
int
)
SheetType
.
OtherIncome
)
{
amount
=
sheetData
?.
Sum
(
t
=>
t
.
IsFactor
==
1
?
t
.
CellValue
*
(
t
.
FactorValue
??
0
)
:
t
.
CellValue
)
??
0
;
}
else
if
(
sheet
.
SheetType
==
(
int
)
SheetType
.
Expend
)
{
sheettype
=
2
;
amount
=
economic
.
FirstOrDefault
(
t
=>
t
.
ItemName
.
Contains
(
sheetName
)
&&
t
.
UnitType
==
type
)?.
ItemValue
??
0
m
;
...
...
@@ -769,7 +773,6 @@ public DeptDataDetails<DetailModuleExtend> DeptDetail(int accountId)
CellValue
=
t
.
CellValue
,
Factor
=
sheet
.
SheetType
==
(
int
)
SheetType
.
Workload
?
t
.
FactorValue
:
t
.
FactorValue
*
100
,
ItemValue
=
t
.
IsFactor
==
1
?
(
t
.
CellValue
*
(
t
.
FactorValue
??
0
))
:
t
.
CellValue
,
}).
ToList
();
if
(
items
!=
null
&&
items
.
Any
())
...
...
@@ -891,7 +894,7 @@ private DeptDataDetails<DetailModuleExtend> MergeDetails(DeptDataDetails details
ItemName
=
data
.
FirstOrDefault
(
t
=>
t
.
ItemName
.
IndexOf
(
"执行"
)
>
-
1
)
is
null
?
data
.
First
().
ItemName
:
data
.
FirstOrDefault
(
t
=>
t
.
ItemName
.
IndexOf
(
"执行"
)
>
-
1
).
ItemName
?.
Replace
(
"执行"
,
"开单/执行"
),
IncomeType
=
data
.
First
().
IncomeType
,
Amount
=
data
.
First
().
Amount
,
Amount
=
data
.
Sum
(
w
=>
w
.
Amount
)
,
GroupBasis
=
groupbasis
,
Items
=
items
});
...
...
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