Commit dc3fc191 authored by 黄奎's avatar 黄奎

新增字段

parent 6a5f8459
using System; using Edu.Common.Enum;
using System;
using VT.FW.DB; using VT.FW.DB;
namespace Edu.Model.Entity.Course namespace Edu.Model.Entity.Course
...@@ -104,5 +105,10 @@ namespace Edu.Model.Entity.Course ...@@ -104,5 +105,10 @@ namespace Edu.Model.Entity.Course
/// 集团编号 /// 集团编号
/// </summary> /// </summary>
public int Group_Id { get; set; } public int Group_Id { get; set; }
/// <summary>
/// 删除状态
/// </summary>
public DateStateEnum Status { get; set; }
} }
} }
\ No newline at end of file
...@@ -76,5 +76,10 @@ namespace Edu.Model.Entity.Question ...@@ -76,5 +76,10 @@ namespace Edu.Model.Entity.Question
/// 删除状态 /// 删除状态
/// </summary> /// </summary>
public DateStateEnum Status { get; set; } public DateStateEnum Status { get; set; }
/// <summary>
/// 排序
/// </summary>
public int SortNum { get; set; }
} }
} }
using Edu.Common.Enum; using Edu.Common.Enum;
using Edu.Model.ViewModel.Course; using Edu.Model.ViewModel.Course;
using Edu.Repository.Course; using Edu.Repository.Course;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using MongoDB.Driver.Core.Clusters;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text;
using VT.FW.DB; using VT.FW.DB;
namespace Edu.Module.Course namespace Edu.Module.Course
...@@ -60,6 +56,7 @@ namespace Edu.Module.Course ...@@ -60,6 +56,7 @@ namespace Edu.Module.Course
/// </summary> /// </summary>
private readonly RB_Course_JobRepository courseJobRepository = new RB_Course_JobRepository(); private readonly RB_Course_JobRepository courseJobRepository = new RB_Course_JobRepository();
#region 课程管理
/// <summary> /// <summary>
/// 获取课程列表 /// 获取课程列表
...@@ -168,6 +165,22 @@ namespace Edu.Module.Course ...@@ -168,6 +165,22 @@ namespace Edu.Module.Course
return flag; 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>
/// 新增修改课程通知 /// 新增修改课程通知
/// </summary> /// </summary>
...@@ -230,6 +243,20 @@ namespace Edu.Module.Course ...@@ -230,6 +243,20 @@ namespace Edu.Module.Course
return newId > 0; 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>
/// 新增修改课程章节 /// 新增修改课程章节
/// </summary> /// </summary>
...@@ -315,6 +342,22 @@ namespace Edu.Module.Course ...@@ -315,6 +342,22 @@ namespace Edu.Module.Course
return flag; 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> /// <summary>
/// 新增修改讨论话题 /// 新增修改讨论话题
...@@ -368,6 +411,9 @@ namespace Edu.Module.Course ...@@ -368,6 +411,9 @@ namespace Edu.Module.Course
return flag; return flag;
} }
#endregion
#region 课程配置
/// <summary> /// <summary>
/// 新增修改课程配置 /// 新增修改课程配置
/// </summary> /// </summary>
...@@ -394,7 +440,22 @@ namespace Edu.Module.Course ...@@ -394,7 +440,22 @@ namespace Edu.Module.Course
} }
return flag; 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> /// <summary>
/// 新增修改课程资料 /// 新增修改课程资料
...@@ -467,6 +528,23 @@ namespace Edu.Module.Course ...@@ -467,6 +528,23 @@ namespace Edu.Module.Course
return flag; 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>
/// 添加修改课程教案 /// 添加修改课程教案
/// </summary> /// </summary>
...@@ -502,6 +580,35 @@ namespace Edu.Module.Course ...@@ -502,6 +580,35 @@ namespace Edu.Module.Course
return flag; 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>
/// 新增修改课程作业 /// 新增修改课程作业
/// </summary> /// </summary>
...@@ -553,5 +660,7 @@ namespace Edu.Module.Course ...@@ -553,5 +660,7 @@ namespace Edu.Module.Course
} }
return flag; return flag;
} }
#endregion
} }
} }
\ No newline at end of file
using Edu.Common.Enum; using Edu.AOP.CustomerAttribute;
using Edu.Common.Enum;
using Edu.Model.ViewModel.Question; using Edu.Model.ViewModel.Question;
using Edu.Repository.Question; using Edu.Repository.Question;
using System.Collections.Generic; using System.Collections.Generic;
...@@ -133,6 +134,27 @@ namespace Edu.Module.Question ...@@ -133,6 +134,27 @@ namespace Edu.Module.Question
return flag; 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>
/// 根据编号获取问题实体 /// 根据编号获取问题实体
/// </summary> /// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment