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
dc3fc191
Commit
dc3fc191
authored
Sep 28, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段
parent
6a5f8459
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
149 additions
and
7 deletions
+149
-7
RB_Course_TeachPlan.cs
Edu.Model/Entity/Course/RB_Course_TeachPlan.cs
+7
-1
RB_Question.cs
Edu.Model/Entity/Question/RB_Question.cs
+5
-0
CourseModule.cs
Edu.Module.Course/CourseModule.cs
+114
-5
QuestionModule.cs
Edu.Module.Question/QuestionModule.cs
+23
-1
No files found.
Edu.Model/Entity/Course/RB_Course_TeachPlan.cs
View file @
dc3fc191
using
System
;
using
Edu.Common.Enum
;
using
System
;
using
VT.FW.DB
;
namespace
Edu.Model.Entity.Course
...
...
@@ -104,5 +105,10 @@ namespace Edu.Model.Entity.Course
/// 集团编号
/// </summary>
public
int
Group_Id
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
DateStateEnum
Status
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Model/Entity/Question/RB_Question.cs
View file @
dc3fc191
...
...
@@ -76,5 +76,10 @@ namespace Edu.Model.Entity.Question
/// 删除状态
/// </summary>
public
DateStateEnum
Status
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
SortNum
{
get
;
set
;
}
}
}
Edu.Module.Course/CourseModule.cs
View file @
dc3fc191
using
Edu.Common.Enum
;
using
Edu.Model.ViewModel.Course
;
using
Edu.Repository.Course
;
using
Microsoft.AspNetCore.Mvc.ModelBinding
;
using
MongoDB.Driver.Core.Clusters
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Edu.Module.Course
...
...
@@ -60,6 +56,7 @@ namespace Edu.Module.Course
/// </summary>
private
readonly
RB_Course_JobRepository
courseJobRepository
=
new
RB_Course_JobRepository
();
#
region
课程管理
/// <summary>
/// 获取课程列表
...
...
@@ -168,6 +165,22 @@ namespace Edu.Module.Course
return
flag
;
}
#
endregion
#
region
课程通知管理
/// <summary>
/// 获取课程通知分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Course_Notice_ViewModel
>
GetNoticePageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Course_Notice_ViewModel
query
)
{
return
noticeRepository
.
GetNoticePageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
/// 新增修改课程通知
/// </summary>
...
...
@@ -230,6 +243,20 @@ namespace Edu.Module.Course
return
newId
>
0
;
}
#
endregion
#
region
课程章节管理
/// <summary>
/// 获取课程章节列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Course_Chapter_ViewModel
>
GetChapterListModule
(
RB_Course_Chapter_ViewModel
query
)
{
return
chapterRepository
.
GetChapterListRepository
(
query
);
}
/// <summary>
/// 新增修改课程章节
/// </summary>
...
...
@@ -315,6 +342,22 @@ namespace Edu.Module.Course
return
flag
;
}
#
endregion
#
region
课程讨论管理
/// <summary>
/// 获取课程讨论分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Course_Discuss_ViewModel
>
GetDiscussPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Course_Discuss_ViewModel
query
)
{
return
discussRepository
.
GetDiscussPageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
/// 新增修改讨论话题
...
...
@@ -368,6 +411,9 @@ namespace Edu.Module.Course
return
flag
;
}
#
endregion
#
region
课程配置
/// <summary>
/// 新增修改课程配置
/// </summary>
...
...
@@ -394,7 +440,22 @@ namespace Edu.Module.Course
}
return
flag
;
}
#
endregion
#
region
课程资料管理
/// <summary>
/// 获取课程资料分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Course_Source_ViewModel
>
GetSourcePageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Course_Source_ViewModel
query
)
{
return
sourceRepository
.
GetSourcePageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
/// 新增修改课程资料
...
...
@@ -467,6 +528,23 @@ namespace Edu.Module.Course
return
flag
;
}
#
endregion
#
region
课程教案管理
/// <summary>
/// 获取课程教案分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Course_TeachPlan_ViewModel
>
GetCourseTeachPlanPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Course_TeachPlan_ViewModel
query
)
{
return
teachPlanRepository
.
GetCourseTeachPlanPageListRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
/// 添加修改课程教案
/// </summary>
...
...
@@ -502,6 +580,35 @@ namespace Edu.Module.Course
return
flag
;
}
/// <summary>
/// 根据编号获取教案实体
/// </summary>
/// <param name="PlanId"></param>
/// <returns></returns>
public
RB_Course_TeachPlan_ViewModel
GetTeachPlanModule
(
object
PlanId
)
{
return
teachPlanRepository
.
GetEntity
<
RB_Course_TeachPlan_ViewModel
>(
PlanId
);
}
/// <summary>
/// 删除教案
/// </summary>
/// <param name="PlanId"></param>
/// <returns></returns>
public
bool
RemoveTeachPlanModule
(
object
PlanId
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Course_TeachPlan_ViewModel
.
Status
),(
int
)
DateStateEnum
.
Delete
},
};
bool
flag
=
teachPlanRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Course_TeachPlan_ViewModel
.
PlanId
),
PlanId
));
return
flag
;
}
#
endregion
#
region
课程作业管理
/// <summary>
/// 新增修改课程作业
/// </summary>
...
...
@@ -551,7 +658,9 @@ namespace Edu.Module.Course
model
.
JobId
=
newId
;
flag
=
newId
>
0
;
}
return
flag
;
return
flag
;
}
#
endregion
}
}
\ No newline at end of file
Edu.Module.Question/QuestionModule.cs
View file @
dc3fc191
using
Edu.Common.Enum
;
using
Edu.AOP.CustomerAttribute
;
using
Edu.Common.Enum
;
using
Edu.Model.ViewModel.Question
;
using
Edu.Repository.Question
;
using
System.Collections.Generic
;
...
...
@@ -133,6 +134,27 @@ namespace Edu.Module.Question
return
flag
;
}
/// <summary>
/// 更新问题排序
/// </summary>
/// <returns></returns>
[
TransactionCallHandler
]
public
virtual
bool
UpdateQuestionSortModule
(
int
curQId
,
int
targetQId
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Question_ViewModel
.
SortNum
),
targetQId
},
};
bool
flag
=
questionRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Question_ViewModel
.
QuestionId
),
curQId
));
//排序修改
Dictionary
<
string
,
object
>
fileds2
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Question_ViewModel
.
SortNum
),
curQId
},
};
flag
=
questionRepository
.
Update
(
fileds2
,
new
WhereHelper
(
nameof
(
RB_Question_ViewModel
.
QuestionId
),
targetQId
));
return
flag
;
}
/// <summary>
/// 根据编号获取问题实体
/// </summary>
...
...
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