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
0ac92c42
Commit
0ac92c42
authored
Jan 07, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6ff6bafb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+2
-1
VisitorReserveModule.cs
Edu.Module.Duty/VisitorReserveModule.cs
+5
-5
No files found.
Edu.Module.Course/ClassModule.cs
View file @
0ac92c42
...
...
@@ -4155,9 +4155,10 @@ namespace Edu.Module.Course
foreach
(
var
subItem
in
tempList
)
{
var
tempTimeList
=
timeList
?.
Where
(
qitem
=>
qitem
.
ClassPlanId
==
subItem
.
ClassPlanId
)?.
ToList
()?.
OrderBy
(
qitem
=>
qitem
.
StartTime
);
var
currentDate
=
Common
.
ConvertHelper
.
FormatDate
(
ClassDate
)
+
" "
+
(
tempTimeList
?.
FirstOrDefault
()?.
StartTime
??
""
);
foreach
(
var
item
in
tempTimeList
)
{
var
currentDate
=
Common
.
ConvertHelper
.
FormatDate
(
ClassDate
)
+
" "
+
(
item
?.
StartTime
??
""
);
var
tempTimeGuestList
=
new
List
<
RB_Order_Guest_ViewModel
>();
tempTimeGuestList
.
AddRange
(
guestList
.
Where
(
qitem
=>
qitem
.
ClassId
==
subItem
.
ClassId
&&
(
qitem
.
GuestState
==
GuestStateEnum
.
Normal
||
qitem
.
GuestState
==
GuestStateEnum
.
StopClassesApplyIng
||
((
qitem
.
GuestState
==
GuestStateEnum
.
StopClasses
||
qitem
.
GuestState
==
GuestStateEnum
.
Graduate
)
&&
qitem
.
ChangeEffectTime
.
HasValue
&&
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
qitem
.
ChangeEffectTime
))
>=
subItem
.
ClassDate
))));
tempTimeGuestList
.
AddRange
(
tempGuestList
.
Where
(
qitem
=>
qitem
.
ClassId
==
subItem
.
ClassId
&&
item
.
ClassTimeId
==
qitem
.
ClassTimeId
&&
(
qitem
.
GuestState
==
GuestStateEnum
.
Normal
||
qitem
.
GuestState
==
GuestStateEnum
.
StopClassesApplyIng
||
((
qitem
.
GuestState
==
GuestStateEnum
.
StopClasses
||
qitem
.
GuestState
==
GuestStateEnum
.
Graduate
)
&&
qitem
.
ChangeEffectTime
.
HasValue
&&
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
qitem
.
ChangeEffectTime
))
>=
subItem
.
ClassDate
))));
...
...
Edu.Module.Duty/VisitorReserveModule.cs
View file @
0ac92c42
...
...
@@ -333,7 +333,7 @@ namespace Edu.Module.Duty
#
endregion
#
region
验证教室
if
(
CheckClassRoomModule
(
chooseDateTime
,
chooseEndTime
,
model
,
out
string
roomMessage
))
if
(
CheckClassRoomModule
(
chooseDateTime
,
chooseEndTime
,
model
,
out
string
roomMessage
))
{
message
=
roomMessage
;
return
false
;
...
...
@@ -455,7 +455,7 @@ namespace Edu.Module.Duty
var
endTime
=
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
item
.
ClassDate
)
+
" "
+
item
.
EndTime
);
if
(
chooseDateTime
<
endTime
&&
chooseEndTime
>
startTime
)
{
message
=
string
.
Format
(
"此教师已有
{0}的正常上课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
chooseDateTime
)
);
message
=
string
.
Format
(
"此教师已有
{0} {1}-{2}【{3}】正常上课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
model
.
ClassDate
),
item
.
StartTime
,
item
.
EndTime
,
item
.
ClassName
);
return
true
;
}
}
...
...
@@ -470,7 +470,7 @@ namespace Edu.Module.Duty
};
if
(
CheckReserveClassExistsModule
(
checkModel
))
{
message
=
string
.
Format
(
"此教师已有
{0}的试听课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
chooseDateTime
)
);
message
=
string
.
Format
(
"此教师已有
{0} {1}-{2} 试听课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
model
.
ClassDate
),
model
.
ClassTime
,
model
.
EndTime
);
return
true
;
}
return
false
;
...
...
@@ -502,7 +502,7 @@ namespace Edu.Module.Duty
var
endTime
=
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
item
.
ClassDate
)
+
" "
+
item
.
EndTime
);
if
(
chooseDateTime
<
endTime
&&
chooseEndTime
>
startTime
)
{
RoomMessage
=
string
.
Format
(
"此教室已有
{0}的正常上课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
chooseDateTime
)
);
RoomMessage
=
string
.
Format
(
"此教室已有
{0} {1}-{2}【{3}】正常上课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
model
.
ClassDate
),
item
.
StartTime
,
item
.
EndTime
,
item
.
ClassName
);
return
true
;
}
}
...
...
@@ -517,7 +517,7 @@ namespace Edu.Module.Duty
};
if
(
CheckReserveClassExistsModule
(
checkModel
))
{
RoomMessage
=
string
.
Format
(
"此教室已有
{0}的试听课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
chooseDateTime
)
);
RoomMessage
=
string
.
Format
(
"此教室已有
{0} {1}-{2} 试听课计划!请重新选择时间"
,
Common
.
ConvertHelper
.
FormatDate
(
model
.
ClassDate
),
model
.
ClassTime
,
model
.
EndTime
);
return
true
;
}
return
false
;
...
...
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