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
51cfab61
Commit
51cfab61
authored
Sep 11, 2024
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
ce657c85
e769bf9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
TeacherClassController.cs
Edu.WebApi/Controllers/Course/TeacherClassController.cs
+4
-7
No files found.
Edu.WebApi/Controllers/Course/TeacherClassController.cs
View file @
51cfab61
...
@@ -828,22 +828,19 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -828,22 +828,19 @@ namespace Edu.WebApi.Controllers.Course
var
tempChapter
=
new
RB_Course_Chapter_ViewModel
();
var
tempChapter
=
new
RB_Course_Chapter_ViewModel
();
if
(
itemGuest
.
OrderCourseList
!=
null
&&
itemGuest
.
OrderCourseList
.
Count
>
0
)
if
(
itemGuest
.
OrderCourseList
!=
null
&&
itemGuest
.
OrderCourseList
.
Count
>
0
)
{
{
tempChapter
=
chatperList
.
FirstOrDefault
(
qitem
=>
itemGuest
.
OrderCourseList
.
Any
(
sItem
=>
sItem
.
CourseId
==
qitem
.
CourseId
)
&&
qitem
.
CourseRate
==
itemGuest
.
CourseGradeId
&&
qitem
.
Chapter
Id
==
itemGuest
.
CourseGradeNo
)
??
new
RB_Course_Chapter_ViewModel
();
tempChapter
=
chatperList
.
FirstOrDefault
(
qitem
=>
itemGuest
.
OrderCourseList
.
Any
(
sItem
=>
sItem
.
CourseId
==
qitem
.
CourseId
)
&&
qitem
.
CourseRate
==
itemGuest
.
CourseGradeId
&&
qitem
.
Chapter
No
==
itemGuest
.
CourseGradeNo
.
ToString
()
)
??
new
RB_Course_Chapter_ViewModel
();
}
}
else
else
{
{
tempChapter
=
chatperList
.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
itemGuest
.
LearnCourseId
&&
qitem
.
C
ourseRate
==
itemGuest
.
CourseGradeId
&&
qitem
.
ChapterId
==
itemGuest
.
CourseGradeNo
)
??
new
RB_Course_Chapter_ViewModel
();
tempChapter
=
chatperList
.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
itemGuest
.
LearnCourseId
&&
qitem
.
C
hapterNo
==
itemGuest
.
CourseGradeNo
.
ToString
()
)
??
new
RB_Course_Chapter_ViewModel
();
}
}
string
chapterName
=
itemGuest
.
CourseName
+
"-"
+
itemGuest
.
CourseGradeNo
;
string
chapterName
=
itemGuest
.
CourseName
+
"-"
+
itemGuest
.
CourseGradeNo
;
if
(
tempChapter
!=
null
&&
tempChapter
.
ChapterId
>
0
)
if
(
tempChapter
!=
null
&&
tempChapter
.
ChapterId
>
0
)
{
{
chapterName
=
tempChapter
.
CourseRate
.
ToName
()
+
"-"
+
tempChapter
.
ChapterName
;
chapterName
=
tempChapter
.
ChapterName
;
}
else
{
string
XX
=
""
;
}
}
excelColumns
.
Add
(
new
ExcelColumn
(
value
:
chapterName
)
{
CellWidth
=
50
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
});
excelColumns
.
Add
(
new
ExcelColumn
(
value
:
chapterName
)
{
CellWidth
=
50
,
HAlignmentEnum
=
HAlignmentEnum
.
CENTER
,
VAlignmentEnum
=
VAlignmentEnum
.
CENTER
});
ExcelDataSource
rowGuest
=
new
ExcelDataSource
()
ExcelDataSource
rowGuest
=
new
ExcelDataSource
()
{
{
...
...
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