Commit ac1d12a6 authored by 黄奎's avatar 黄奎

页面修改

parent 3e12e62f
...@@ -4756,12 +4756,14 @@ namespace Edu.Module.Course ...@@ -4756,12 +4756,14 @@ namespace Edu.Module.Course
x.Date, x.Date,
x.TeacherId, x.TeacherId,
x.TeacherName, x.TeacherName,
x.RoomId, x.RoomName, x.RoomId,
x.RoomName,
x.CourseId, x.CourseId,
x.CourseName, x.CourseName,
x.ShiftSort, x.ShiftSort,
x.CourseSTime, x.CourseSTime,
x.ChapterNo, x.ChapterNo,
x.State,
//x.CourseGradeNo, //x.CourseGradeNo,
}) })
.OrderBy(x => x.Key.CourseSTime).ToList(); .OrderBy(x => x.Key.CourseSTime).ToList();
...@@ -4817,6 +4819,8 @@ namespace Edu.Module.Course ...@@ -4817,6 +4819,8 @@ namespace Edu.Module.Course
AppointState = item.Where(x => x.State == CourseAppointStateEnum.WaitSure).Any() ? 1 : 2, AppointState = item.Where(x => x.State == CourseAppointStateEnum.WaitSure).Any() ? 1 : 2,
item.Key.ShiftSort, item.Key.ShiftSort,
EnrollNum = item.Count(), EnrollNum = item.Count(),
item.Key.State,
StateName=item.Key.State.ToName(),
subAppointList.FirstOrDefault().ScrollMinNum, subAppointList.FirstOrDefault().ScrollMinNum,
subAppointList.FirstOrDefault().ScrollMaxNum subAppointList.FirstOrDefault().ScrollMaxNum
}); });
......
This diff is collapsed.
...@@ -1062,22 +1062,20 @@ namespace Edu.WebApi.Controllers.Course ...@@ -1062,22 +1062,20 @@ namespace Edu.WebApi.Controllers.Course
string Date = base.ParmJObj.GetStringValue("Date"); string Date = base.ParmJObj.GetStringValue("Date");
string ShiftSort = base.ParmJObj.GetStringValue("ShiftSort"); string ShiftSort = base.ParmJObj.GetStringValue("ShiftSort");
int NewTeacherId = base.ParmJObj.GetInt("NewTeacherId", 0); int NewTeacherId = base.ParmJObj.GetInt("NewTeacherId", 0);
if (TeacherId <= 0 || NewTeacherId <= 0 || string.IsNullOrEmpty(Date) || string.IsNullOrEmpty(ShiftSort)) if (TeacherId <= 0 || NewTeacherId <= 0 || string.IsNullOrEmpty(Date) || string.IsNullOrEmpty(ShiftSort))
{ {
return ApiResult.ParamIsNull(); return ApiResult.ParamIsNull();
} }
string msg = scrollClassModule.SetScrollTeacherAsync(TeacherId, Date, ShiftSort, NewTeacherId, userInfo).Result;
if (msg == "")
{
return ApiResult.Success();
}
else
{
return ApiResult.Failed(msg);
}
//string msg = scrollClassModule.SetScrollTeacher(TeacherId, Date, ShiftSort, NewTeacherId, userInfo);
//if (msg == "")
//{
// return ApiResult.Success();
//}
//else
//{
// return ApiResult.Failed(msg);
//}
return ApiResult.Success();
} }
/// <summary> /// <summary>
...@@ -1092,12 +1090,10 @@ namespace Edu.WebApi.Controllers.Course ...@@ -1092,12 +1090,10 @@ namespace Edu.WebApi.Controllers.Course
string Date = base.ParmJObj.GetStringValue("Date"); string Date = base.ParmJObj.GetStringValue("Date");
string ShiftSort = base.ParmJObj.GetStringValue("ShiftSort"); string ShiftSort = base.ParmJObj.GetStringValue("ShiftSort");
int RoomId = base.ParmJObj.GetInt("RoomId", 0);//新教室ID int RoomId = base.ParmJObj.GetInt("RoomId", 0);//新教室ID
if (TeacherId <= 0 || RoomId <= 0 || string.IsNullOrEmpty(Date) || string.IsNullOrEmpty(ShiftSort)) if (TeacherId <= 0 || RoomId <= 0 || string.IsNullOrEmpty(Date) || string.IsNullOrEmpty(ShiftSort))
{ {
return ApiResult.ParamIsNull(); return ApiResult.ParamIsNull();
} }
string msg = scrollClassModule.SetScrollRoomAsync(TeacherId, Date, ShiftSort, RoomId, userInfo).Result; string msg = scrollClassModule.SetScrollRoomAsync(TeacherId, Date, ShiftSort, RoomId, userInfo).Result;
if (msg == "") if (msg == "")
{ {
......
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