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
11253b94
Commit
11253b94
authored
3 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
5ea00f2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
DutyPlanModule.cs
Edu.Module.Duty/DutyPlanModule.cs
+12
-1
No files found.
Edu.Module.Duty/DutyPlanModule.cs
View file @
11253b94
...
...
@@ -437,7 +437,18 @@ namespace Edu.Module.Duty
if
(
model
.
PlanDetails
!=
null
&&
model
.
PlanDetails
.
Count
>
0
)
{
//当前值班人员索引
int
currentIndex
=
model
.
PlanDetails
.
FindIndex
(
qitem
=>
qitem
.
DutyMan
==
user
.
Id
);
int
currentIndex
=
0
;
var
currentDayNow
=
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
model
.
Date
)
+
" "
+
DateTime
.
Now
.
ToString
(
"HH:mm:ss"
));
for
(
var
i
=
0
;
i
<
model
.
PlanDetails
.
Count
;
i
++)
{
var
sStartTime
=
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
model
.
Date
)
+
" "
+
model
.
PlanDetails
[
i
].
StartTime
);
var
sEndTime
=
Convert
.
ToDateTime
(
Common
.
ConvertHelper
.
FormatDate
(
model
.
Date
)
+
" "
+
model
.
PlanDetails
[
i
].
EndTime
);
if
(
currentDayNow
>=
sStartTime
&&
currentDayNow
<=
sEndTime
&&
model
.
PlanDetails
[
i
].
DutyMan
==
user
.
Id
)
{
currentIndex
=
i
;
}
}
//上一个班次索引
int
previousIndex
=
currentIndex
-
1
;
//下一个班次索引
...
...
This diff is collapsed.
Click to expand it.
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