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
2010bc0c
Commit
2010bc0c
authored
Sep 24, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d530a8a1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
2 deletions
+44
-2
CourseRateEnum.cs
Edu.Common/Enum/Course/CourseRateEnum.cs
+25
-1
RB_Course.cs
Edu.Model/Entity/Course/RB_Course.cs
+5
-0
CourseModule.cs
Edu.Module.Course/CourseModule.cs
+1
-0
CourseController.cs
Edu.WebApi/Controllers/Course/CourseController.cs
+12
-0
TeacherClassController.cs
Edu.WebApi/Controllers/Course/TeacherClassController.cs
+1
-1
No files found.
Edu.Common/Enum/Course/CourseRateEnum.cs
View file @
2010bc0c
...
...
@@ -11,7 +11,6 @@ namespace Edu.Common.Enum.Course
public
enum
CourseRateEnum
{
/// <summary>
/// 基础课程
/// </summary>
...
...
@@ -60,4 +59,29 @@ namespace Edu.Common.Enum.Course
[
EnumField
(
"其他"
)]
OTHER
=
8
,
}
/// <summary>
/// 所属科目
/// </summary>
public
enum
CourseSubjectEnum
{
/// <summary>
/// 日语
/// </summary>
[
EnumField
(
"日语"
)]
Japanese
=
1
,
/// <summary>
/// 韩语
/// </summary>
[
EnumField
(
"韩语"
)]
Korean
=
2
,
/// <summary>
/// 新媒体
/// </summary>
[
EnumField
(
"新媒体"
)]
NewMedia
=
3
}
}
Edu.Model/Entity/Course/RB_Course.cs
View file @
2010bc0c
...
...
@@ -141,5 +141,10 @@ namespace Edu.Model.Entity.Course
/// 课程等级
/// </summary>
public
CourseRateEnum
CourseRate
{
get
;
set
;
}
/// <summary>
/// 所属科目
/// </summary>
public
CourseSubjectEnum
CourseSubject
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Module.Course/CourseModule.cs
View file @
2010bc0c
...
...
@@ -295,6 +295,7 @@ namespace Edu.Module.Course
{
nameof
(
RB_Course_ViewModel
.
IsKCourse
),
model
.
IsKCourse
},
{
nameof
(
RB_Course_ViewModel
.
ClassHours
),
model
.
ClassHours
},
{
nameof
(
RB_Course_ViewModel
.
CourseRate
),
model
.
CourseRate
},
{
nameof
(
RB_Course_ViewModel
.
CourseSubject
),
model
.
CourseSubject
},
};
flag
=
courseRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Course_ViewModel
.
CourseId
),
model
.
CourseId
));
}
...
...
Edu.WebApi/Controllers/Course/CourseController.cs
View file @
2010bc0c
...
...
@@ -283,6 +283,7 @@ namespace Edu.WebApi.Controllers.Course
IsKCourse
=
base
.
ParmJObj
.
GetInt
(
"IsKCourse"
),
ClassHours
=
base
.
ParmJObj
.
GetDecimal
(
"ClassHours"
),
CourseRate
=
(
CourseRateEnum
)
base
.
ParmJObj
.
GetInt
(
"CourseRate"
),
CourseSubject
=
(
CourseSubjectEnum
)
base
.
ParmJObj
.
GetInt
(
"CourseSubject"
),
};
try
{
...
...
@@ -572,6 +573,17 @@ namespace Edu.WebApi.Controllers.Course
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// 获取课程科目列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetCourseSubjectList
()
{
var
list
=
Common
.
Plugin
.
EnumHelper
.
EnumToList
(
typeof
(
CourseSubjectEnum
));
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// 删除课程章节
/// </summary>
...
...
Edu.WebApi/Controllers/Course/TeacherClassController.cs
View file @
2010bc0c
...
...
@@ -431,7 +431,7 @@ namespace Edu.WebApi.Controllers.Course
}
//判断当天是否有已
签到
数据
//判断当天是否有已
反馈
数据
var
classFeedBackList
=
classModule
.
GetClassFeedBackList
(
new
RB_Class_FeedBack_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
...
...
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