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
6bbbab37
Commit
6bbbab37
authored
Aug 30, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
639a1315
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+22
-4
No files found.
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
6bbbab37
...
...
@@ -649,7 +649,7 @@ namespace Edu.WebApi.Controllers.Course
demodel
.
CreateTime
=
DateTime
.
Now
;
demodel
.
UpdateBy
=
userInfo
.
Id
;
demodel
.
UpdateTime
=
DateTime
.
Now
;
var
flag
=
false
;
string
message
=
""
;
...
...
@@ -1956,6 +1956,7 @@ namespace Edu.WebApi.Controllers.Course
new
ExcelColumn
(
value
:
"成交单价"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"教材费"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课件费"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"总课时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"应收总额"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"实收"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"优惠金额"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
...
...
@@ -2021,10 +2022,11 @@ namespace Edu.WebApi.Controllers.Course
new
ExcelColumn
(
value
:
item
.
OpenTime
.
ToString
(
"yyyy-MM-dd"
)){
},
new
ExcelColumn
(
value
:
item
.
CourseName
){
},
new
ExcelColumn
(
value
:
item
.
GuestNum
.
ToString
()){
},
new
ExcelColumn
(
value
:
item
.
Class_Price
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
Class_Price
.
ToString
(
"#0.00"
)
+
"\r\n"
+(
item
.
SellPriceType
==
2
?
"课时单价"
:
"课时总价"
)
){
},
new
ExcelColumn
(
value
:
item
.
Unit_Price
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
TextbookFee
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
CoursewareFee
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
Convert
.
ToInt32
(
item
.
TotalClassHours
).
ToString
(
""
)){
},
new
ExcelColumn
(
value
:
item
.
PreferPrice
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
Income
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
DiscountMoney
.
ToString
(
"#0.00"
)){
},
...
...
@@ -2064,6 +2066,7 @@ namespace Edu.WebApi.Controllers.Course
new
ExcelColumn
(
value
:
""
){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
TextbookFee
).
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
CoursewareFee
).
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
""
){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
PreferPrice
).
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
Income
).
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
DiscountMoney
).
ToString
(
"#0.00"
)){
},
...
...
@@ -2248,7 +2251,10 @@ namespace Edu.WebApi.Controllers.Course
z
.
GuestName
,
z
.
GuestState
}),
x
.
StudyBroadRebateMoney
x
.
StudyBroadRebateMoney
,
x
.
TotalClassHours
,
x
.
TextbookFee
,
x
.
CoursewareFee
,
})
};
return
ApiResult
.
Success
(
""
,
pageModel
);
...
...
@@ -2381,6 +2387,9 @@ namespace Edu.WebApi.Controllers.Course
z
.
GuestState
}),
x
.
StudyBroadRebateMoney
,
x
.
TextbookFee
,
x
.
CoursewareFee
,
x
.
TotalClassHours
,
})
};
return
ApiResult
.
Success
(
""
,
pageModel
);
...
...
@@ -2407,6 +2416,9 @@ namespace Edu.WebApi.Controllers.Course
new
ExcelColumn
(
value
:
"项目"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"人数"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"单价"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"教材费"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"课件费"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"总课时"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"成交单价"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"应收总额"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
new
ExcelColumn
(
value
:
"实收"
){
CellWidth
=
15
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
},
...
...
@@ -2465,7 +2477,10 @@ namespace Edu.WebApi.Controllers.Course
new
ExcelColumn
(
value
:
(
item
.
HelpEnterId
>
0
?
UserReidsCache
.
GetUserLoginInfo
(
item
.
HelpEnterId
)?.
AccountName
??
""
:
""
)){
},
new
ExcelColumn
(
value
:
item
.
StudyName
){
},
new
ExcelColumn
(
value
:
item
.
GuestNum
.
ToString
()){
},
new
ExcelColumn
(
value
:
item
.
Class_Price
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
Class_Price
.
ToString
(
"#0.00"
)+
"\r\n"
+(
item
.
SellPriceType
==
2
?
"课时单价"
:
"课时总价"
)){
},
new
ExcelColumn
(
value
:
item
.
TextbookFee
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
CoursewareFee
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
Convert
.
ToInt32
(
item
.
TotalClassHours
).
ToString
(
""
)){
},
new
ExcelColumn
(
value
:
item
.
Unit_Price
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
PreferPrice
.
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
item
.
Income
.
ToString
(
"#0.00"
)){
},
...
...
@@ -2501,6 +2516,9 @@ namespace Edu.WebApi.Controllers.Course
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
GuestNum
).
ToString
()){
},
new
ExcelColumn
(
value
:
""
){
},
new
ExcelColumn
(
value
:
""
){
},
new
ExcelColumn
(
value
:
""
){
},
new
ExcelColumn
(
value
:
""
){
},
new
ExcelColumn
(
value
:
""
){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
PreferPrice
).
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
Income
).
ToString
(
"#0.00"
)){
},
new
ExcelColumn
(
value
:
list
.
Sum
(
x
=>
x
.
DiscountMoney
).
ToString
(
"#0.00"
)){
},
...
...
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