Commit 76f8c1a1 authored by 黄奎's avatar 黄奎

页面修改

parent c7b514ac
...@@ -630,7 +630,15 @@ namespace Edu.Module.Course ...@@ -630,7 +630,15 @@ namespace Edu.Module.Course
public bool RemoveClassPlanModule(int ClassPlanId, UserInfo UserInfo) public bool RemoveClassPlanModule(int ClassPlanId, UserInfo UserInfo)
{ {
var planModel = class_PlanRepository.GetEntity(ClassPlanId); var planModel = class_PlanRepository.GetEntity(ClassPlanId);
classLogRepository.AddClassLogRepository(Common.Enum.Course.ClassLogTypeEnum.Class, "删除【"+ Common.ConvertHelper.FormatDate(planModel?.ClassDate) + "】上课计划", ClassPlanId, UserInfo.Group_Id, UserInfo.School_Id, UserInfo.Id); classLogRepository.AddClassLogRepository(new Model.Entity.Log.RB_Class_Log()
{
LogType = Common.Enum.Course.ClassLogTypeEnum.Class,
LogContent = "删除【" + Common.ConvertHelper.FormatDate(planModel?.ClassDate) + "】上课计划",
ClassId = planModel.ClassId,
CreateBy = UserInfo.Id,
Group_Id = UserInfo.Group_Id,
School_Id = UserInfo.School_Id,
});
return class_PlanRepository.DeleteOne(new WhereHelper(nameof(RB_Class_Plan_ViewModel.ClassPlanId), ClassPlanId)); return class_PlanRepository.DeleteOne(new WhereHelper(nameof(RB_Class_Plan_ViewModel.ClassPlanId), ClassPlanId));
} }
...@@ -773,7 +781,16 @@ namespace Edu.Module.Course ...@@ -773,7 +781,16 @@ namespace Edu.Module.Course
} }
if (!string.IsNullOrEmpty(logContent)) if (!string.IsNullOrEmpty(logContent))
{ {
classLogRepository.AddClassLogRepository(Common.Enum.Course.ClassLogTypeEnum.Class, logContent, extModel.ClassPlanId, extModel.Group_Id, extModel.School_Id, createBy); classLogRepository.AddClassLogRepository(
new Model.Entity.Log.RB_Class_Log()
{
LogType = Common.Enum.Course.ClassLogTypeEnum.Class,
LogContent = logContent,
ClassId = extModel.ClassId,
Group_Id = extModel.Group_Id,
School_Id = extModel.School_Id,
CreateBy = createBy
});
} }
return flag; return flag;
} }
......
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