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
2d6f88d9
Commit
2d6f88d9
authored
Dec 16, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增文件
parent
c0e404db
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
3 deletions
+51
-3
RB_Order_Guest.cs
Edu.Model/Entity/Course/RB_Order_Guest.cs
+1
-1
RB_Order_Guest_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
+16
-0
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+1
-1
OrderModule2.cs
Edu.Module.Course/OrderModule2.cs
+14
-0
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+19
-1
No files found.
Edu.Model/Entity/Course/RB_Order_Guest.cs
View file @
2d6f88d9
...
@@ -32,7 +32,7 @@ namespace Edu.Model.Entity.Course
...
@@ -32,7 +32,7 @@ namespace Edu.Model.Entity.Course
public
string
GuestName
{
get
;
set
;
}
public
string
GuestName
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 状态 1正常 2退学
/// 状态 1正常 2退学
3-申请中,4-驳回申请
/// </summary>
/// </summary>
public
int
GuestState
{
get
;
set
;
}
public
int
GuestState
{
get
;
set
;
}
...
...
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
View file @
2d6f88d9
...
@@ -24,5 +24,21 @@ namespace Edu.Model.ViewModel.Course
...
@@ -24,5 +24,21 @@ namespace Edu.Model.ViewModel.Course
/// </summary>
/// </summary>
public
string
BirthDay
{
get
;
set
;
}
public
string
BirthDay
{
get
;
set
;
}
/// <summary>
/// 学员状态
/// </summary>
public
string
GuestStateStr
{
get
{
string
str
=
""
;
switch
(
this
.
GuestState
)
{
case
1
:
str
=
"正常"
;
break
;
case
2
:
str
=
"退学"
;
break
;
case
3
:
str
=
"申请退学中"
;
break
;
case
4
:
str
=
"驳回申请"
;
break
;
}
return
str
;
}
}
}
}
}
}
\ No newline at end of file
Edu.Module.Course/OrderModule.cs
View file @
2d6f88d9
...
@@ -20,7 +20,7 @@ namespace Edu.Module.Course
...
@@ -20,7 +20,7 @@ namespace Edu.Module.Course
/// <summary>
/// <summary>
/// 订单处理类
/// 订单处理类
/// </summary>
/// </summary>
public
class
OrderModule
public
partial
class
OrderModule
{
{
/// <summary>
/// <summary>
/// 订单
/// 订单
...
...
Edu.Module.Course/OrderModule2.cs
0 → 100644
View file @
2d6f88d9
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Edu.Module.Course
{
/// <summary>
/// 订单处理类
/// </summary>
public
partial
class
OrderModule
{
}
}
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
2d6f88d9
...
@@ -715,8 +715,11 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -715,8 +715,11 @@ namespace Edu.WebApi.Controllers.Course
x
.
Id
,
x
.
Id
,
x
.
GuestName
,
x
.
GuestName
,
x
.
GuestState
,
x
.
GuestState
,
x
.
OrderId
,
x
.
GuestStateStr
,
x
.
Profession
,
x
.
Profession
,
x
.
Sex
,
x
.
Sex
,
SexStr
=
x
.
Sex
==
1
?
"男"
:
"女"
,
x
.
Age
,
x
.
Age
,
x
.
Mobile
,
x
.
Mobile
,
x
.
Basics
,
x
.
Basics
,
...
@@ -728,7 +731,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -728,7 +731,7 @@ namespace Edu.WebApi.Controllers.Course
LearningGoalsName
=
x
.
LearningGoals
.
ToName
(),
LearningGoalsName
=
x
.
LearningGoals
.
ToName
(),
x
.
Contact
,
x
.
Contact
,
x
.
ContactMobile
,
x
.
ContactMobile
,
UpdateTime
=
x
.
UpdateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
UpdateTime
=
x
.
UpdateTime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
,
});
});
return
ApiResult
.
Success
(
""
,
pageModel
);
return
ApiResult
.
Success
(
""
,
pageModel
);
}
}
...
@@ -924,5 +927,20 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -924,5 +927,20 @@ namespace Edu.WebApi.Controllers.Course
}
}
#
endregion
#
endregion
#
region
退课申请
/// <summary>
/// 退课申请
/// </summary>
/// <returns></returns>
public
ApiResult
BackClassApply
()
{
var
GuestId
=
base
.
ParmJObj
.
GetInt
(
"GuestId"
);
var
OrderId
=
base
.
ParmJObj
.
GetInt
(
"OrderId"
);
//申请原因
var
applyReason
=
base
.
ParmJObj
.
GetStringValue
(
"applyReason"
);
return
ApiResult
.
Failed
();
}
#
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