Commit 52c2be33 authored by 黄奎's avatar 黄奎

页面修改

parent 53d027f7
......@@ -2670,15 +2670,7 @@ namespace Edu.Module.Course
}
foreach (var item in timeList.Where(x => x.State == 3))
{
// HK 2022-07-06注释 约课可能会不一致
//if (demodel.CourseGradeId != item.CourseGradeId)
//{
// return "预约课次等级不一致";
//}
//if (demodel.CourseGradeNo != item.CourseGradeNo)
//{
// return "预约课程章节不一致";
//}
if (item.PeopleNum + 1 > item.MaxPeopleNum)
{
return "该时段已预约满,请预约其他时段";
......@@ -2714,12 +2706,7 @@ namespace Edu.Module.Course
}
demodel.AppointType = 3;
}
// 直接不要补课数据了 只要没有预约的数据 都是缺课
//var scList = scroll_SkipCourseRepository.GetList(new RB_Scroll_SkipCourse_ViewModel() { Group_Id = demodel.Group_Id, GuestId = demodel.GuestId, CourseGradeId = demodel.CourseGradeId, CourseGradeNo = demodel.CourseGradeNo });
//if (scList.Where(x => x.State == 1).Any()) {
// //有可补课的数据
// demodel.AppointType = 2;
//}
#endregion
//验证都OK了 插入预约数据
......@@ -2734,24 +2721,7 @@ namespace Edu.Module.Course
}
bool flag = AppointId > 0;
if (flag)
{
//定时器 更新已上课时 再更新其上课课时
//if (demodel.AppointType == 1 && demodel.ChapterNo > learnModel.CourseChapterNo + 1) {
// Dictionary<string, object> keyValues = new Dictionary<string, object>() {
// { nameof(RB_Order_Guest_ViewModel.CourseChapterNo), demodel.ChapterNo - 1},
// { nameof(RB_Order_Guest_ViewModel.CompleteHours), (demodel.ChapterNo - 1) * (timeList.Sum(x=>x.ClassHours))}
// };
// List<WhereHelper> wheres = new List<WhereHelper>() {
// new WhereHelper(){
// FiledName = nameof(RB_Order_Guest_ViewModel.Id),
// FiledValue = demodel.GuestId,
// OperatorEnum =OperatorEnum.Equal
// }
// };
// order_GuestRepository.Update(keyValues, wheres);
//}
}
return flag ? "" : "出错了,请联系管理员";
#endregion
}
......
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