Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
5d91009b
Commit
5d91009b
authored
Jul 16, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ddece21f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
FinanceController.cs
Edu.WebApi/Controllers/Finance/FinanceController.cs
+4
-4
No files found.
Edu.WebApi/Controllers/Finance/FinanceController.cs
View file @
5d91009b
...
...
@@ -1099,7 +1099,7 @@ namespace Edu.WebApi.Controllers.Finance
})
}),
PreferPrice
=
x
.
FinanceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
IN
)?.
Sum
(
x
=>
(
x
.
Money
??
0
)
+
(
x
.
Fee
??
0
))
??
0
,
EffectiveClassHours
=
x
.
Unit_Price
>
0
?
Math
.
Round
(
x
.
Income
/
x
.
Unit_Price
,
2
,
MidpointRounding
.
AwayFromZero
)
:
0
,
EffectiveClassHours
=
x
.
Unit_Price
>
0
?
Math
.
Round
(
(
x
.
Income
-
x
.
Expend
)
/
x
.
Unit_Price
,
2
,
MidpointRounding
.
AwayFromZero
)
:
0
,
x
.
Income
,
x
.
Expend
,
x
.
UseBookFee
,
...
...
@@ -1110,7 +1110,7 @@ namespace Edu.WebApi.Controllers.Finance
x
.
UseCourseFee
,
x
.
AdjustPrice
,
SurplusCourseHours
=
x
.
TotalClassHours
-
x
.
UseClassHours
,
SurplusMoney
=
x
.
Income
-
x
.
UseBookFee
-
x
.
UseCoursewareFee
-
x
.
UseCourseFee
-
x
.
AdjustPrice
SurplusMoney
=
x
.
Income
-
x
.
Expend
-
x
.
UseBookFee
-
x
.
UseCoursewareFee
-
x
.
UseCourseFee
-
x
.
AdjustPrice
});
return
ApiResult
.
Success
(
""
,
pageModel
);
}
...
...
@@ -1241,7 +1241,7 @@ namespace Edu.WebApi.Controllers.Finance
new
ExcelColumn
(
value
:
bankModel
!=
null
?
bankModel
.
Alias
+
bankModel
.
BankNo
:
""
){
},
new
ExcelColumn
(
value
:
PreferPrice
.
ToString
()){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
item
.
Income
.
ToString
()){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
Math
.
Round
(
item
.
Income
/
item
.
Unit_Price
,
2
,
MidpointRounding
.
AwayFromZero
).
ToString
()){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
Math
.
Round
(
(
item
.
Income
-
item
.
Expend
)
/
item
.
Unit_Price
,
2
,
MidpointRounding
.
AwayFromZero
).
ToString
()){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
item
.
UseBookFee
.
ToString
(
"0.######"
)){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
item
.
UseCoursewareFee
.
ToString
(
"0.######"
)){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
(
item
.
TotalClassHours
>
0
?
Math
.
Round
(
Convert
.
ToDecimal
(
item
.
UseClassHours
)
/
item
.
TotalClassHours
*
100
,
2
,
MidpointRounding
.
AwayFromZero
)
:
0
).
ToString
()
+
"%"
){
Rowspan
=
Count
},
...
...
@@ -1251,7 +1251,7 @@ namespace Edu.WebApi.Controllers.Finance
new
ExcelColumn
(
value
:
item
.
Expend
.
ToString
()){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
item
.
AdjustPrice
.
ToString
(
"0.######"
)){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
(
item
.
TotalClassHours
-
item
.
UseClassHours
).
ToString
()){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
(
item
.
Income
-
item
.
UseBookFee
-
item
.
UseCoursewareFee
-
item
.
UseCourseFee
-
item
.
AdjustPrice
).
ToString
(
"0.######"
)){
Rowspan
=
Count
},
new
ExcelColumn
(
value
:
(
item
.
Income
-
item
.
Expend
-
item
.
UseBookFee
-
item
.
UseCoursewareFee
-
item
.
UseCourseFee
-
item
.
AdjustPrice
).
ToString
(
"0.######"
)){
Rowspan
=
Count
},
}
};
slist
.
Add
(
firstRow
);
...
...
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