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
7aaec7c7
Commit
7aaec7c7
authored
Aug 28, 2025
by
tungnq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO: Đã hoàn thiện chi tiết văn bản đi
parent
fe6da217
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
300 additions
and
12 deletions
+300
-12
StackNavigation.js
src/routers/StackNavigation.js
+2
-0
view.js
src/screens/incoming_document/detail/view.js
+3
-3
index.js
src/screens/list_send_document/detail/index.js
+99
-5
style.js
src/screens/list_send_document/detail/style.js
+195
-3
view.js
src/screens/list_send_document/detail/view.js
+0
-0
view.js
src/screens/list_send_document/view.js
+1
-1
No files found.
src/routers/StackNavigation.js
View file @
7aaec7c7
...
@@ -25,6 +25,7 @@ import DetailIncomingDocument from '../screens/incoming_document/detail';
...
@@ -25,6 +25,7 @@ import DetailIncomingDocument from '../screens/incoming_document/detail';
import
ListSendDocument
from
'../screens/list_send_document'
;
import
ListSendDocument
from
'../screens/list_send_document'
;
import
EditSendDocument
from
'../screens/list_send_document/edit'
;
import
EditSendDocument
from
'../screens/list_send_document/edit'
;
import
AddSendDocument
from
'../screens/list_send_document/add'
;
import
AddSendDocument
from
'../screens/list_send_document/add'
;
import
DetailSendDocument
from
'../screens/list_send_document/detail'
;
const
Stack
=
createStackNavigator
();
const
Stack
=
createStackNavigator
();
function
MyStack
(
props
)
{
function
MyStack
(
props
)
{
...
@@ -58,6 +59,7 @@ function MyStack(props) {
...
@@ -58,6 +59,7 @@ function MyStack(props) {
<
Stack
.
Screen
name
=
{
ScreenName
.
LISTSENDDOCUMENT
}
component
=
{
ListSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
LISTSENDDOCUMENT
}
component
=
{
ListSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
EDITSENDDOCUMENT
}
component
=
{
EditSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
EDITSENDDOCUMENT
}
component
=
{
EditSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
ADDSENDOCUMENT
}
component
=
{
AddSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
ADDSENDOCUMENT
}
component
=
{
AddSendDocument
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
DETAILSENDDOCUMENT
}
component
=
{
DetailSendDocument
}
/
>
<
/Stack.Navigator
>
<
/Stack.Navigator
>
);
);
}
}
...
...
src/screens/incoming_document/detail/view.js
View file @
7aaec7c7
import
React
,
{
use
Effect
,
use
State
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
import
{
Text
,
Text
,
View
,
View
,
TouchableOpacity
,
TouchableOpacity
,
StyleSheet
,
Image
,
Image
,
ScrollView
,
ScrollView
,
FlatList
,
FlatList
,
...
@@ -19,6 +18,7 @@ import FAB from '../../../components/FAB/fab';
...
@@ -19,6 +18,7 @@ import FAB from '../../../components/FAB/fab';
import
SubButton
from
'../../../components/FAB/sub_button'
;
import
SubButton
from
'../../../components/FAB/sub_button'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
Dropdown
from
'../../../components/DropdownAlert/Dropdown'
;
import
Dropdown
from
'../../../components/DropdownAlert/Dropdown'
;
const
DetailIncomingDocumentView
=
props
=>
{
const
DetailIncomingDocumentView
=
props
=>
{
const
{
icomingDocument
,
items
,
dataList
}
=
props
;
const
{
icomingDocument
,
items
,
dataList
}
=
props
;
const
[
showModal
,
setShowModal
]
=
useState
(
false
);
const
[
showModal
,
setShowModal
]
=
useState
(
false
);
...
@@ -38,7 +38,7 @@ const DetailIncomingDocumentView = props => {
...
@@ -38,7 +38,7 @@ const DetailIncomingDocumentView = props => {
case
'Công khai'
:
case
'Công khai'
:
return
R
.
colors
.
blue
;
return
R
.
colors
.
blue
;
}
}
};
};
const
handleAddAnnotation
=
()
=>
{
const
handleAddAnnotation
=
()
=>
{
if
(
annotationContent
.
trim
())
{
if
(
annotationContent
.
trim
())
{
// Here you would typically call an API to save the annotation
// Here you would typically call an API to save the annotation
...
...
src/screens/list_send_document/detail/index.js
View file @
7aaec7c7
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Text
,
View
,
StyleSheet
}
from
'react-native'
;
import
{
Text
,
View
,
StyleSheet
}
from
'react-native'
;
import
DetailSendDocumentView
from
'./view'
;
import
DetailSendDocumentView
from
'./view'
;
const
DetailSendDocument
=
(
props
)
=>
{
const
DetailSendDocument
=
props
=>
{
return
(
const
[
icomingDocument
,
setIncomingDocument
]
=
useState
({
<
DetailSendDocumentView
/>
id
:
102934
,
);
title
:
'Văn bản thông báo lịch nộp thời khoá biểu của học kỳ 2 năm 2025'
,
status
:
'Hạn chế'
,
symbol_number
:
'2038475'
,
regime
:
'Đã phê duyệt '
,
number_entry_book
:
'12493-fh544'
,
term
:
'29/07/2025'
,
term_display
:
'09/07/2025'
,
document_date
:
'2025-07-08'
,
document_date_display
:
'08/07/2025'
,
document_type
:
'Hành chính'
,
field
:
'Thời khoá biểu'
,
signer_name
:
'Nguyễn Minh Đức'
,
sender_partner
:
'Võ Công Bình'
,
note
:
''
,
content
:
'Ban lãnh đạo yêu cầu hoàn thành thời khoá biểu trong tháng cho các đơn vị chuyên môn, nộp đầy đủ công việc theo đúng kế hoạch.'
,
opinion_bgh
:
'Thực hiện nhanh công tác thời khoá biểu'
,
received_departments
:
[
{
id
:
1
,
name
:
'Phòng đào tạo'
},
{
id
:
2
,
name
:
'Phòng đào tạo'
},
],
received_group
:
[{
id
:
12
,
name
:
'Nhóm chuyên môn đào tạo'
}],
receiver
:
[{
id
:
55
,
name
:
'Nguyễn Minh Đức'
}],
attachments
:
[
{
id
:
'001247363'
,
filename
:
'Quyết định thông báo đào tạo - 001247363'
,
file_ext
:
'pdf'
,
file_size
:
0
,
download_url
:
'#'
,
preview_url
:
'#'
,
},
],
total_head_of_work
:
7
,
approvals
:
[
{
author
:
'Bút Tiến Công'
,
code
:
'08569'
,
date
:
'29/07/2025'
,
time
:
'16:00'
,
content
:
'Ban lãnh đạo yêu cầu hoàn thành thời khoá biểu trong tháng cho các đơn vị chuyên môn, nộp đầy đủ công việc theo đúng kế hoạch.'
,
},
{
author
:
'Nguyễn Thị Kim Phụng'
,
code
:
'08569'
,
date
:
'29/07/2025'
,
time
:
'16:00'
,
content
:
'Trưởng phòng xác nhận hợp bộ hồ sơ.'
,
},
{
author
:
'Đặng Duy Minh'
,
code
:
'08569'
,
date
:
'29/07/2025'
,
time
:
'16:00'
,
content
:
'Trưởng phòng nhập công bố quyết định nội bộ.'
,
},
],
actions
:
{
can_create_task
:
true
,
create_task_label
:
'Tạo công việc'
,
},
});
const
items
=
[
{
id
:
1
,
label
:
'Option 1'
},
{
id
:
2
,
label
:
'Option 2'
},
{
id
:
3
,
label
:
'Option 3'
},
];
const
[
dataList
,
setDataList
]
=
useState
([
{
id
:
1
,
name
:
'Nguyễn Minh Đức'
},
{
id
:
2
,
name
:
'Trần Văn Hùng'
},
{
id
:
3
,
name
:
'Lê Thị Mai'
},
{
id
:
4
,
name
:
'Phạm Quốc Khánh'
},
{
id
:
5
,
name
:
'Hoàng Anh Tuấn'
},
{
id
:
6
,
name
:
'Vũ Thị Hằng'
},
{
id
:
7
,
name
:
'Ngô Văn Nam'
},
{
id
:
8
,
name
:
'Đinh Thị Lan'
},
{
id
:
9
,
name
:
'Bùi Văn Phúc'
},
{
id
:
10
,
name
:
'Lý Thị Hoa'
},
{
id
:
11
,
name
:
'Phan Minh Hoàng'
},
{
id
:
12
,
name
:
'Tạ Thị Hương'
},
{
id
:
13
,
name
:
'Đoàn Văn Dũng'
},
{
id
:
14
,
name
:
'Nguyễn Thị Vân'
},
{
id
:
15
,
name
:
'Trương Văn Long'
},
{
id
:
16
,
name
:
'Mai Thị Ngọc'
},
{
id
:
17
,
name
:
'Huỳnh Quốc Việt'
},
{
id
:
18
,
name
:
'Lâm Thị Thu'
},
{
id
:
19
,
name
:
'Nguyễn Hữu Tài'
},
{
id
:
20
,
name
:
'Phạm Thị Kim'
},
]);
return
<
DetailSendDocumentView
items
=
{
items
}
icomingDocument
=
{
icomingDocument
}
dataList
=
{
dataList
}
/>
;
};
};
export
default
DetailSendDocument
;
export
default
DetailSendDocument
;
src/screens/list_send_document/detail/style.js
View file @
7aaec7c7
import
{
StyleSheet
,
Text
,
View
}
from
'react-native'
import
{
StyleSheet
,
Text
,
View
}
from
'react-native'
import
React
from
'react'
import
React
from
'react'
import
R
from
'../../../assets/R'
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
container
:
{
container
:
{
flex
:
1
,
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
backgroundColor
:
R
.
colors
.
white
},
},
body
:
{
body
:{
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
,
marginHorizontal
:
15
,
marginVertical
:
10
},
textSubTitle
:{
fontSize
:
R
.
fontsize
.
fontSizeSubTitle
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
color
:
R
.
colors
.
black
,
},
text_1
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
color
:
R
.
colors
.
blue
,
},
text
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
color
:
R
.
colors
.
black
,
},
text_2
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
color
:
R
.
colors
.
black
,
},
textBtn
:{
color
:
R
.
colors
.
black
,
fontSize
:
R
.
sizes
.
xs
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
},
containerContent
:{
padding
:
10
,
borderRadius
:
10
,
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
},
cardContainerContent
:{
backgroundColor
:
R
.
colors
.
white
,
padding
:
10
,
borderRadius
:
10
,
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
},
card
:{
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
borderRadius
:
100
,
padding
:
10
,
alignSelf
:
'flex-start'
,
backgroundColor
:
R
.
colors
.
orange
,
marginHorizontal
:
5
,
},
containerBtn
:{
flexDirection
:
'row'
,
alignItems
:
'center'
,
justifyContent
:
'space-around'
,
marginVertical
:
10
,
borderRadius
:
10
,
backgroundColor
:
R
.
colors
.
blue1
,
padding
:
10
,
width
:
300
},
//MODAL Thêm Bút Phê
modalOverlay
:
{
flex
:
1
,
flex
:
1
,
backgroundColor
:
R
.
colors
.
white
backgroundColor
:
'rgba(0, 0, 0, 0.5)'
,
}
justifyContent
:
'center'
,
alignItems
:
'center'
,
},
modalContainer
:
{
backgroundColor
:
'white'
,
borderRadius
:
10
,
width
:
'90%'
,
maxHeight
:
'80%'
,
},
modalHeader
:
{
flexDirection
:
'row'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
padding
:
10
,
},
modalTitle
:
{
fontSize
:
R
.
fontsize
.
fontsSizeTitle
,
fontWeight
:
'600'
,
fontFamily
:
R
.
fonts
.
fontMedium
,
color
:
R
.
colors
.
blue
,
},
closeButton
:
{
width
:
30
,
height
:
30
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
},
closeButtonText
:
{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
color
:
R
.
colors
.
gray
,
fontWeight
:
'bold'
,
},
modalBody
:
{
paddingHorizontal
:
15
},
inputLabel
:
{
fontSize
:
R
.
fontsize
.
fontSizeSubTitle
,
color
:
R
.
colors
.
black
,
marginBottom
:
3
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
},
textInput
:
{
borderWidth
:
1
,
borderColor
:
R
.
colors
.
grayBorderInputTextHeader
,
borderRadius
:
8
,
padding
:
12
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
color
:
R
.
colors
.
black
,
minHeight
:
120
,
textAlignVertical
:
'top'
,
},
modalFooter
:
{
flexDirection
:
'row'
,
justifyContent
:
'flex-end'
,
padding
:
15
,
},
button
:
{
paddingHorizontal
:
20
,
paddingVertical
:
3
,
borderRadius
:
30
,
width
:
110
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
},
cancelButton
:
{
backgroundColor
:
R
.
colors
.
orange
,
marginRight
:
10
,
},
cancelButtonText
:
{
color
:
R
.
colors
.
white
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontWeight
:
'400'
,
},
submitButton
:
{
backgroundColor
:
R
.
colors
.
blue
,
},
submitButtonText
:
{
color
:
'white'
,
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontFamily
:
R
.
fonts
.
fontRegular
,
fontWeight
:
'400'
,
},
//MODAL Thêm công việc
containerDropdown
:{
marginBottom
:
10
,
marginTop
:
10
,
position
:
'relative'
,
zIndex
:
1000
},
chip
:
{
flexDirection
:
'row'
,
alignItems
:
'center'
,
// position: 'relative',
paddingLeft
:
10
,
paddingRight
:
10
,
height
:
25
,
borderRadius
:
10
,
marginBottom
:
10
,
marginRight
:
5
,
backgroundColor
:
R
.
colors
.
blue2
,
alignSelf
:
'flex-start'
},
imageIcon
:
{
width
:
15
,
height
:
15
,
},
containerIcon
:
{
marginRight
:
2
,
},
flatListSelect
:{
flexDirection
:
'row'
,
flexWrap
:
'wrap'
,
},
textChip
:{
fontSize
:
R
.
fontsize
.
fontSizeContent
,
fontWeight
:
'400'
,
fontFamily
:
R
.
fonts
.
fontRegular
,
color
:
R
.
colors
.
blueTextChip
,
}
})
})
export
default
styles
export
default
styles
\ No newline at end of file
src/screens/list_send_document/detail/view.js
View file @
7aaec7c7
This diff is collapsed.
Click to expand it.
src/screens/list_send_document/view.js
View file @
7aaec7c7
...
@@ -135,7 +135,7 @@ const ListSendView = (props) => {
...
@@ -135,7 +135,7 @@ const ListSendView = (props) => {
<
View
style
=
{{
flex
:
0.1
}}
><
/View
>
<
View
style
=
{{
flex
:
0.1
}}
><
/View
>
<
Button
<
Button
title
=
"Chi tiết"
title
=
"Chi tiết"
onPress
=
{()
=>
navigation
.
navigate
(
ScreenName
.
DETAIL
INCOMING
DOCUMENT
)}
onPress
=
{()
=>
navigation
.
navigate
(
ScreenName
.
DETAIL
SEND
DOCUMENT
)}
backgroundColor
=
{
R
.
colors
.
blue
}
backgroundColor
=
{
R
.
colors
.
blue
}
textColor
=
{
R
.
colors
.
white
}
textColor
=
{
R
.
colors
.
white
}
height
=
{
25
}
height
=
{
25
}
...
...
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