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
f12ddf53
Commit
f12ddf53
authored
Aug 13, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3881abb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
CourseOfferModule.cs
Edu.Module.Course/CourseOfferModule.cs
+1
-1
EducationContractModule.cs
Edu.Module.Course/EducationContractModule.cs
+6
-8
No files found.
Edu.Module.Course/CourseOfferModule.cs
View file @
f12ddf53
...
...
@@ -394,7 +394,7 @@ namespace Edu.Module.Course
SaleRemark
=
item
.
Remark
,
TeacherRemark
=
""
,
TradeWay
=
Common
.
Enum
.
Course
.
TradeWayEnum
.
OnLine
,
Unit_Price
=
item
.
Discount
Price
,
Unit_Price
=
item
.
Original
Price
,
UpdateBy
=
offerModel
.
CreateBy
,
UpdateTime
=
DateTime
.
Now
,
OfferId
=
offerId
,
...
...
Edu.Module.Course/EducationContractModule.cs
View file @
f12ddf53
...
...
@@ -104,9 +104,8 @@ namespace Edu.Module.Course
public
object
GetStudentInfoModule
(
int
OrderId
,
int
GuestId
)
{
var
obj
=
new
object
();
var
glist
=
order_GuestRepository
.
GetOrderGuestListRepository
(
new
RB_Order_Guest_ViewModel
()
{
OrderId
=
OrderId
});
var
orderModel
=
orderRepository
.
GetEntity
(
OrderId
);
var
guestModel
=
glist
.
Where
(
qitem
=>
qitem
.
Id
==
GuestId
)?.
FirstOrDefault
(
);
var
guestModel
=
order_GuestRepository
.
GetEntity
<
RB_Order_Guest_ViewModel
>(
GuestId
);
var
classModel
=
new
RB_Class_ViewModel
();
var
courseModel
=
new
RB_Course_ViewModel
();
decimal
PreferPrice
=
0
;
//总金额
...
...
@@ -122,12 +121,11 @@ namespace Edu.Module.Course
}
var
qids
=
(
classModel
?.
ManagerId
??
0
).
ToString
()
+
","
+
(
orderModel
?.
EnterID
??
0
).
ToString
();
var
empList
=
accountRepository
.
GetEmployeeListRepository
(
new
Employee_ViewModel
()
{
QIds
=
qids
});
if
(
glist
!=
null
&&
glist
.
Count
>
0
)
{
PreferPrice
=
orderModel
.
PreferPrice
/
glist
.
Count
();
DiscountMoney
=
orderModel
.
PerDiscountMoney
;
Money
=
(
orderModel
.
PreferPrice
-
orderModel
.
DiscountMoney
)
/
glist
.
Count
();
//平均每人费用
}
PreferPrice
=
orderModel
.
PreferPrice
/
orderModel
.
GuestNum
;
DiscountMoney
=
orderModel
.
PerDiscountMoney
;
Money
=
(
orderModel
.
PreferPrice
-
orderModel
.
DiscountMoney
)
/
orderModel
.
GuestNum
;
//平均每人费用
string
dxMoney
=
StringHelper
.
MoneyToUpper
(
Money
.
ToString
());
obj
=
new
{
...
...
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