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
bb1900ab
Commit
bb1900ab
authored
Mar 18, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 修改约课教室
parent
a9282b17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
3 deletions
+38
-3
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+38
-3
No files found.
Edu.Module.Course/ScrollClassModule.cs
View file @
bb1900ab
...
...
@@ -2934,7 +2934,7 @@ namespace Edu.Module.Course
}
/// <summary>
/// 修改上课教
师
/// 修改上课教
室
/// </summary>
/// <param name="teacherId"></param>
/// <param name="date"></param>
...
...
@@ -2950,7 +2950,7 @@ namespace Edu.Module.Course
{
return
"请选择其他教室"
;
}
bool
flag
=
false
;
foreach
(
var
item
in
appointList
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Scroll_Appointment_ViewModel
.
RoomId
),
roomId
}
...
...
@@ -2962,7 +2962,42 @@ namespace Edu.Module.Course
OperatorEnum
=
OperatorEnum
.
Equal
}
};
scroll_AppointmentRepository
.
Update
(
keyValues
,
wheres
);
flag
=
scroll_AppointmentRepository
.
Update
(
keyValues
,
wheres
);
}
if
(
flag
)
{
var
appointModel
=
appointList
.
FirstOrDefault
();
if
(
appointModel
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
WaitCourse
||
appointModel
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
Coursed
)
{
//待上课 需要更新 上课计划 class_plan
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Class_Plan_ViewModel
.
ClassRoomId
),
roomId
}
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Class_Plan_ViewModel
.
ClassPlanId
),
FiledValue
=
appointModel
.
ClassPlanId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
class_PlanRepository
.
Update
(
keyValues
,
wheres
);
}
if
(
appointModel
.
State
==
Common
.
Enum
.
Course
.
CourseAppointStateEnum
.
Coursed
)
{
//已上课 需要更新 签到数据 class_check
var
checkList
=
class_CheckRepository
.
GetClassCheckListRepository
(
new
RB_Class_Check_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
QClassPlanIds
=
appointModel
.
ClassPlanId
.
ToString
()
});
foreach
(
var
qitem
in
checkList
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Class_Check_ViewModel
.
ClassRoomId
),
roomId
}
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Class_Check_ViewModel
.
ClassCheckId
),
FiledValue
=
qitem
.
ClassCheckId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
class_CheckRepository
.
Update
(
keyValues
,
wheres
);
}
}
}
}
return
""
;
...
...
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