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
fb2cd7d8
Commit
fb2cd7d8
authored
Mar 15, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ceb95cdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
RB_Course_OfferDetails_ViewModel.cs
...odel/ViewModel/Course/RB_Course_OfferDetails_ViewModel.cs
+5
-0
CourseOfferModule.cs
Edu.Module.Course/CourseOfferModule.cs
+39
-0
No files found.
Edu.Model/ViewModel/Course/RB_Course_OfferDetails_ViewModel.cs
View file @
fb2cd7d8
...
...
@@ -19,5 +19,10 @@ namespace Edu.Model.ViewModel.Course
/// 报价单编号【查询使用】
/// </summary>
public
string
QOfferIds
{
get
;
set
;
}
/// <summary>
/// 班级id
/// </summary>
public
int
ClassId
{
get
;
set
;
}
}
}
Edu.Module.Course/CourseOfferModule.cs
View file @
fb2cd7d8
using
Edu.AOP.CustomerAttribute
;
using
Edu.Model.ViewModel.Course
;
using
Edu.Repository.Course
;
using
Edu.Repository.Log
;
using
System.Collections.Generic
;
using
System.Linq
;
using
VT.FW.DB
;
...
...
@@ -22,6 +23,22 @@ namespace Edu.Module.Course
/// </summary>
private
readonly
RB_Course_OfferDetailsRepository
course_OfferDetailsRepository
=
new
RB_Course_OfferDetailsRepository
();
/// <summary>
/// 订单
/// </summary>
private
readonly
RB_OrderRepository
orderRepository
=
new
RB_OrderRepository
();
/// <summary>
/// 订单备注
/// </summary>
private
readonly
RB_Order_RemarkRepository
order_RemarkRepository
=
new
RB_Order_RemarkRepository
();
/// <summary>
/// 用户日志
/// </summary>
private
readonly
RB_User_ChangeLogRepository
changeLogRepository
=
new
RB_User_ChangeLogRepository
();
/// <summary>
/// 获取报价单分页列表
/// </summary>
...
...
@@ -185,5 +202,27 @@ namespace Edu.Module.Course
var
flag
=
course_OfferRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Course_Offer_ViewModel
.
Id
),
Id
));
return
flag
;
}
#
region
报价单创建订单
/// <summary>
/// 创建订单
/// </summary>
/// <param name="offerId"></param>
/// <param name="detailList"></param>
/// <returns></returns>
public
bool
SetOfferCreateOrder
(
int
offerId
,
List
<
RB_Course_OfferDetails_ViewModel
>
detailList
)
{
foreach
(
var
item
in
detailList
)
{
//decimal uPrice = item.OriginalPrice/item
int
OrderId
=
orderRepository
.
Insert
(
new
Model
.
Entity
.
Course
.
RB_Order
()
{
ClassId
=
item
.
ClassId
,
Class_Price
=
1
});
}
return
true
;
}
#
endregion
}
}
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