Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppUms_Lecturer
Overview
Overview
Details
Activity
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
tungnq
AppUms_Lecturer
Commits
4a1607cf
Commit
4a1607cf
authored
Sep 09, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã xử lý logic hiển thị button chi tiết theo status
parent
7b2836db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
95 additions
and
25 deletions
+95
-25
index.js
src/screens/roll_call/index.js
+37
-1
view.js
src/screens/roll_call/view.js
+58
-24
No files found.
src/screens/roll_call/index.js
View file @
4a1607cf
...
...
@@ -16,7 +16,43 @@ const ListRollCall = (props) => {
dateEnd
:
'05/08/2025'
,
status
:
'Đang diễn ra'
},
{
id
:
1
,
classCode
:
'ATTT2024.1'
,
generalDetails
:
'25'
,
present
:
'25'
,
lessonLearned
:
'18'
,
numberOfStudent
:
'40'
,
totalStudentFailedRollCall
:
'5'
,
dateStart
:
'30/06/2025'
,
dateEnd
:
'05/08/2025'
,
status
:
'Đang kết thúc'
},
{
id
:
1
,
classCode
:
'ATTT2024.1'
,
generalDetails
:
'25'
,
present
:
'25'
,
lessonLearned
:
'18'
,
numberOfStudent
:
'40'
,
totalStudentFailedRollCall
:
'5'
,
dateStart
:
'30/06/2025'
,
dateEnd
:
'05/08/2025'
,
status
:
'Đang kết thúc'
},
{
id
:
1
,
classCode
:
'ATTT2024.1'
,
generalDetails
:
'25'
,
present
:
'25'
,
lessonLearned
:
'18'
,
numberOfStudent
:
'40'
,
totalStudentFailedRollCall
:
'5'
,
dateStart
:
'30/06/2025'
,
dateEnd
:
'05/08/2025'
,
status
:
'Đang kết thúc'
},
]);
return
(
<
ListRollCallView
dataList
=
{
dataList
}
/
>
...
...
src/screens/roll_call/view.js
View file @
4a1607cf
...
...
@@ -25,11 +25,21 @@ const ListRollCallView = props => {
<
View
style
=
{
styles
.
row
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
M
ã
l
ớ
p
:
<
Text
style
=
{[
styles
.
text
,{
color
:
R
.
colors
.
blue
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
}]}
>
{
item
.
classCode
}
<
/Text
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
blue
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
},
]}
>
{
item
.
classCode
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
textTitle
}
>
Đã
h
ọ
c
/
T
ổ
ng
ti
ế
t
:
<
Text
style
=
{[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]}
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
blue
}]}
>
{
item
.
lessonLearned
}
/{item.generalDetails
}
<
/Text
>
<
/Text
>
...
...
@@ -37,48 +47,72 @@ const ListRollCallView = props => {
<
View
style
=
{
styles
.
row
}
>
<
Text
style
=
{
styles
.
textTitle
}
>
S
ĩ
s
ố
:{
' '
}
<
Text
style
=
{[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]}
>
{
item
.
numberOfStudent
}
<
/Text
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
blue
}]}
>
{
item
.
numberOfStudent
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
textTitle
}
>
T
ổ
ng
s
ố
sv
tr
ượ
t
đ
i
ể
m
danh
:{
' '
}
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
red
}]}
>
{
item
.
totalStudentFailedRollCall
}
<
/Text
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
red
}]}
>
{
item
.
totalStudentFailedRollCall
}
<
/Text
>
<
/Text
>
<
/View
>
<
Text
style
=
{
styles
.
textTitle
}
>
Ng
à
y
b
ắ
t
đầ
u
:{
' '
}
<
Text
style
=
{[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]}
>
{
item
.
dateStart
}
<
/Text
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
blue
}]}
>
{
item
.
dateStart
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
textTitle
}
>
Ng
à
y
k
ế
t
th
ú
c
:{
' '
}
<
Text
style
=
{[
styles
.
text
,{
color
:
R
.
colors
.
blue
}]}
>
{
item
.
dateEnd
}
<
/Text
>
<
Text
style
=
{[
styles
.
text
,
{
color
:
R
.
colors
.
blue
}]}
>
{
item
.
dateEnd
}
<
/Text
>
<
/Text
>
<
View
style
=
{
styles
.
btnContainer
}
>
{
item
.
status
===
'Đang diễn ra'
&&
(
<
Button
title
=
"Tạo QR điểm danh"
onPress
=
{()
=>
{}}
backgroundColor
=
{
R
.
colors
.
brown
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
12
}
containerStyle
=
{{
paddingHorizontal
:
5
,
paddingVertical
:
5
,
borderRadius
:
20
}}
title
=
"Tạo QR điểm danh"
onPress
=
{()
=>
{}}
backgroundColor
=
{
R
.
colors
.
brown
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
12
}
containerStyle
=
{{
paddingHorizontal
:
5
,
paddingVertical
:
5
,
borderRadius
:
20
,
}}
/
>
<
Button
)}
{
item
.
status
===
'Đang diễn ra'
&&
(
<
View
style
=
{{
alignItems
:
'flex-end'
,
flex
:
1
}}
>
<
Button
title
=
"Điểm danh"
onPress
=
{()
=>
{}}
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
}}
onPress
=
{()
=>
{}}
containerStyle
=
{{
paddingHorizontal
:
5
,
paddingVertical
:
5
,
borderRadius
:
20
}}
backgroundColor
=
{
R
.
colors
.
brown
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
12
}
width
=
{
85
}
/
>
/
>
<
/View
>
)}
<
View
style
=
{{
alignItems
:
'flex-end'
,
flex
:
1
}}
>
<
Button
title
=
"Chi tiết"
onPress
=
{()
=>
{}}
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
}}
backgroundColor
=
{
R
.
colors
.
blue
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
12
}
width
=
{
85
}
title
=
"Chi tiết"
onPress
=
{()
=>
{}}
containerStyle
=
{{
paddingHorizontal
:
5
,
borderRadius
:
20
,
paddingVertical
:
5
,
}}
backgroundColor
=
{
R
.
colors
.
blue
}
textColor
=
{
R
.
colors
.
white
}
fontSize
=
{
12
}
width
=
{
85
}
/
>
<
/View
>
<
/View
>
<
/View
>
);
...
...
@@ -104,9 +138,9 @@ const ListRollCallView = props => {
data
=
{
dataList
}
renderItem
=
{
renderItem
}
keyExtractor
=
{(
item
,
index
)
=>
`
${
index
}
`
}
showsVerticalScrollIndicator
=
{
false
}
style
=
{
styles
.
list
}
/
>
<
/View
>
<
/View
>
);
...
...
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