Commit fa940ddf by tungnq

TODO: Bổ sung các dữ liệu để tiến hành test giao diện

parent 5bbf4eb5
...@@ -13,7 +13,141 @@ const ClassActivity = (props) => { ...@@ -13,7 +13,141 @@ const ClassActivity = (props) => {
science:'MMT&TT', science:'MMT&TT',
class_leader:'Nguyễn Minh Đức', class_leader:'Nguyễn Minh Đức',
}, },
{
"id": "2",
"class_activity": "IS2024.IP57.1",
"course": "2024",
"training_system": "CLC",
"class_by_course": "IS2024.IP57.1",
"science": "CNTT",
"class_leader": "Trần Thị Hương"
},
{
"id": "3",
"class_activity": "BGF197.47.1",
"course": "2023",
"training_system": "CQUI",
"class_by_course": "BGF197.47.1",
"science": "Kinh tế",
"class_leader": "Phạm Văn Nam"
},
{
"id": "4",
"class_activity": "CS301.12.3",
"course": "2022",
"training_system": "CLC",
"class_by_course": "CS301.12.3",
"science": "Khoa học Máy tính",
"class_leader": "Lê Thị Mai"
},
{
"id": "5",
"class_activity": "MA205.C33.2",
"course": "2025",
"training_system": "CQUI",
"class_by_course": "MA205.C33.2",
"science": "Toán",
"class_leader": "Nguyễn Văn Hùng"
},
{
"id": "6",
"class_activity": "ENG101.P2.5",
"course": "2024",
"training_system": "CLC",
"class_by_course": "ENG101.P2.5",
"science": "Ngoại ngữ",
"class_leader": "Hoàng Thu Trang"
},
{
"id": "7",
"class_activity": "PHYS202.3A.1",
"course": "2023",
"training_system": "CQUI",
"class_by_course": "PHYS202.3A.1",
"science": "Vật lý",
"class_leader": "Vũ Đức Anh"
},
{
"id": "8",
"class_activity": "CHEM101.12.2",
"course": "2025",
"training_system": "CLC",
"class_by_course": "CHEM101.12.2",
"science": "Hóa học",
"class_leader": "Đỗ Lan Phương"
},
{
"id": "9",
"class_activity": "BIO202.A1.1",
"course": "2022",
"training_system": "CQUI",
"class_by_course": "BIO202.A1.1",
"science": "Sinh học",
"class_leader": "Nguyễn Thị Ngọc"
},
{
"id": "10",
"class_activity": "LAW303.L12.1",
"course": "2024",
"training_system": "CLC",
"class_by_course": "LAW303.L12.1",
"science": "Luật",
"class_leader": "Phan Minh Tuấn"
},
{
"id": "11",
"class_activity": "HIS204.HB1.3",
"course": "2023",
"training_system": "CQUI",
"class_by_course": "HIS204.HB1.3",
"science": "Lịch sử",
"class_leader": "Trần Văn Bình"
},
{
"id": "12",
"class_activity": "PSY101.PC2.1",
"course": "2025",
"training_system": "CLC",
"class_by_course": "PSY101.PC2.1",
"science": "Tâm lý",
"class_leader": "Ngô Thị Hạnh"
},
{
"id": "13",
"class_activity": "ART203.AR3.2",
"course": "2022",
"training_system": "CQUI",
"class_by_course": "ART203.AR3.2",
"science": "Mỹ thuật",
"class_leader": "Bùi Văn Sơn"
},
{
"id": "14",
"class_activity": "ECON305.EC2.1",
"course": "2024",
"training_system": "CLC",
"class_by_course": "ECON305.EC2.1",
"science": "Kinh tế quốc tế",
"class_leader": "Nguyễn Thuỳ Dung"
},
{
"id": "15",
"class_activity": "MED401.MC1.1",
"course": "2025",
"training_system": "CQUI",
"class_by_course": "MED401.MC1.1",
"science": "Y học",
"class_leader": "Trần Quốc Việt"
},
{
"id": "16",
"class_activity": "EDU202.ED5.2",
"course": "2023",
"training_system": "CLC",
"class_by_course": "EDU202.ED5.2",
"science": "Giáo dục",
"class_leader": "Lê Hoài Nam"
}
]) ])
return ( return (
......
...@@ -14,32 +14,276 @@ const ListStudent = (props) => { ...@@ -14,32 +14,276 @@ const ListStudent = (props) => {
const [dataListStudent, setDataListStudent]= useState([ const [dataListStudent, setDataListStudent]= useState([
{ {
id:'1', "id": "1",
name:'Nguyễn Minh Đức', "name": "Nguyễn Minh Đức",
status:'Đang học', "status": "Đang học",
gender:'Nam', "gender": "Nam",
code_student:'259128', "code_student": "259101",
date_student:'23/10/2004', "date_student": "23/10/2004",
tele_phone:'0987654321', "tele_phone": "0987654321"
},
{
id:'2',
name:'Bùi Thanh Ngọc',
status:'Cảnh cáo',
gender:'Nữ',
code_student:'259128',
date_student:'23/10/2004',
tele_phone:'0987654321',
},
{
id:'3',
name:'Trần Văn Hùng',
status:'Thôi học',
gender:'Nam',
code_student:'259128',
date_student:'23/10/2004',
tele_phone:'0987654321',
}, },
{
"id": "2",
"name": "Bùi Thanh Ngọc",
"status": "Cảnh cáo",
"gender": "Nữ",
"code_student": "259102",
"date_student": "12/03/2005",
"tele_phone": "0978123456"
},
{
"id": "3",
"name": "Trần Văn Hùng",
"status": "Thôi học",
"gender": "Nam",
"code_student": "259103",
"date_student": "05/08/2004",
"tele_phone": "0912345678"
},
{
"id": "4",
"name": "Phạm Thị Hòa",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259104",
"date_student": "19/11/2004",
"tele_phone": "0908765432"
},
{
"id": "5",
"name": "Lê Văn Nam",
"status": "Cảnh cáo",
"gender": "Nam",
"code_student": "259105",
"date_student": "01/01/2005",
"tele_phone": "0981112233"
},
{
"id": "6",
"name": "Đặng Thị Mai",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259106",
"date_student": "14/02/2005",
"tele_phone": "0934567890"
},
{
"id": "7",
"name": "Ngô Văn Sơn",
"status": "Thôi học",
"gender": "Nam",
"code_student": "259107",
"date_student": "29/06/2004",
"tele_phone": "0923456789"
},
{
"id": "8",
"name": "Hoàng Thị Lan",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259108",
"date_student": "08/09/2005",
"tele_phone": "0919876543"
},
{
"id": "9",
"name": "Nguyễn Văn Tài",
"status": "Đang học",
"gender": "Nam",
"code_student": "259109",
"date_student": "17/07/2004",
"tele_phone": "0909123456"
},
{
"id": "10",
"name": "Trịnh Thị Hồng",
"status": "Cảnh cáo",
"gender": "Nữ",
"code_student": "259110",
"date_student": "24/04/2005",
"tele_phone": "0965432109"
},
{
"id": "11",
"name": "Vũ Minh Quân",
"status": "Đang học",
"gender": "Nam",
"code_student": "259111",
"date_student": "12/12/2004",
"tele_phone": "0912233445"
},
{
"id": "12",
"name": "Phan Thanh Tùng",
"status": "Thôi học",
"gender": "Nam",
"code_student": "259112",
"date_student": "06/03/2005",
"tele_phone": "0945566778"
},
{
"id": "13",
"name": "Nguyễn Thị Kim",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259113",
"date_student": "22/05/2004",
"tele_phone": "0906677889"
},
{
"id": "14",
"name": "Đỗ Văn Hào",
"status": "Đang học",
"gender": "Nam",
"code_student": "259114",
"date_student": "15/08/2005",
"tele_phone": "0978899001"
},
{
"id": "15",
"name": "Nguyễn Thu Hằng",
"status": "Cảnh cáo",
"gender": "Nữ",
"code_student": "259115",
"date_student": "10/10/2004",
"tele_phone": "0983456789"
},
{
"id": "16",
"name": "Trần Quốc Anh",
"status": "Đang học",
"gender": "Nam",
"code_student": "259116",
"date_student": "27/02/2005",
"tele_phone": "0914455667"
},
{
"id": "17",
"name": "Hoàng Đức Thịnh",
"status": "Thôi học",
"gender": "Nam",
"code_student": "259117",
"date_student": "30/06/2004",
"tele_phone": "0933344556"
},
{
"id": "18",
"name": "Phạm Mỹ Duyên",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259118",
"date_student": "02/09/2005",
"tele_phone": "0921234567"
},
{
"id": "19",
"name": "Nguyễn Văn Kiên",
"status": "Đang học",
"gender": "Nam",
"code_student": "259119",
"date_student": "14/11/2004",
"tele_phone": "0977778888"
},
{
"id": "20",
"name": "Trần Ngọc Ánh",
"status": "Cảnh cáo",
"gender": "Nữ",
"code_student": "259120",
"date_student": "25/07/2005",
"tele_phone": "0911222333"
},
{
"id": "21",
"name": "Ngô Văn Lâm",
"status": "Đang học",
"gender": "Nam",
"code_student": "259121",
"date_student": "07/04/2005",
"tele_phone": "0903344556"
},
{
"id": "22",
"name": "Lưu Thị Thu",
"status": "Thôi học",
"gender": "Nữ",
"code_student": "259122",
"date_student": "19/06/2004",
"tele_phone": "0988776655"
},
{
"id": "23",
"name": "Phạm Văn Toàn",
"status": "Đang học",
"gender": "Nam",
"code_student": "259123",
"date_student": "28/08/2005",
"tele_phone": "0929988776"
},
{
"id": "24",
"name": "Nguyễn Thị Yến",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259124",
"date_student": "13/01/2005",
"tele_phone": "0910099887"
},
{
"id": "25",
"name": "Trần Minh Hiếu",
"status": "Cảnh cáo",
"gender": "Nam",
"code_student": "259125",
"date_student": "04/05/2004",
"tele_phone": "0961122334"
},
{
"id": "26",
"name": "Vũ Thị Mai",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259126",
"date_student": "16/02/2005",
"tele_phone": "0932211334"
},
{
"id": "27",
"name": "Nguyễn Văn Phúc",
"status": "Thôi học",
"gender": "Nam",
"code_student": "259127",
"date_student": "09/12/2004",
"tele_phone": "0907788990"
},
{
"id": "28",
"name": "Bùi Thanh Tâm",
"status": "Đang học",
"gender": "Nam",
"code_student": "259128",
"date_student": "18/03/2005",
"tele_phone": "0914455778"
},
{
"id": "29",
"name": "Lê Thị Trang",
"status": "Đang học",
"gender": "Nữ",
"code_student": "259129",
"date_student": "06/06/2005",
"tele_phone": "0925566778"
},
{
"id": "30",
"name": "Nguyễn Khánh Duy",
"status": "Cảnh cáo",
"gender": "Nam",
"code_student": "259130",
"date_student": "21/09/2004",
"tele_phone": "0978899221"
}
]) ])
const getStatusColor = (status)=>{ const getStatusColor = (status)=>{
const statusColor ={ const statusColor ={
......
...@@ -50,6 +50,7 @@ const DetailFeedBackView = (props) => { ...@@ -50,6 +50,7 @@ const DetailFeedBackView = (props) => {
<Text style={styles.textSubTitle}>Feedback ca sinh viên lp {teacher.class} môn {teacher.subject} đối vi ging viên {teacher.teacher}.</Text> <Text style={styles.textSubTitle}>Feedback ca sinh viên lp {teacher.class} môn {teacher.subject} đối vi ging viên {teacher.teacher}.</Text>
<View style={styles.containerQuestion}> <View style={styles.containerQuestion}>
<FlatList <FlatList
nestedScrollEnabled
data={dataListQuestion?.question || []} data={dataListQuestion?.question || []}
renderItem={renderItem} renderItem={renderItem}
keyExtractor={(item) => item.id.toString()} keyExtractor={(item) => item.id.toString()}
......
...@@ -4,31 +4,41 @@ import FeedBackView from './view'; ...@@ -4,31 +4,41 @@ import FeedBackView from './view';
const FeedBack = (props) => { const FeedBack = (props) => {
const [dataList, setDataList] = React.useState([ const [dataList, setDataList] = React.useState([
{ { "classCode": "ATTT2024.1", "evaluationOpenDate": "15/07/2025", "gpa": 4.0 },
"classCode": "ATTT2024.1", { "classCode": "IS2024.IP57.1", "evaluationOpenDate": "15/07/2025", "gpa": 3.0 },
"evaluationOpenDate": "15/07/2025", { "classCode": "BGF197.47.1", "evaluationOpenDate": "15/07/2025", "gpa": 3.5 },
"gpa": 4.0 { "classCode": "CS301.12.3", "evaluationOpenDate": "15/07/2025", "gpa": 2.8 },
}, { "classCode": "MA205.C33.2", "evaluationOpenDate": "15/07/2025", "gpa": 3.7 },
{
"classCode": "IS2024.IP57.1", { "classCode": "KTPM2024.2", "evaluationOpenDate": "15/07/2025", "gpa": 3.2 },
"evaluationOpenDate": "15/07/2025", { "classCode": "HTTT2024.3", "evaluationOpenDate": "15/07/2025", "gpa": 3.9 },
"gpa": 3.0 { "classCode": "CNTT2024.4", "evaluationOpenDate": "15/07/2025", "gpa": 2.5 },
}, { "classCode": "KHMT2024.5", "evaluationOpenDate": "15/07/2025", "gpa": 3.6 },
{ { "classCode": "MMT2024.1", "evaluationOpenDate": "15/07/2025", "gpa": 3.4 },
"classCode": "BGF197.47.1",
"evaluationOpenDate": "15/07/2025", { "classCode": "IS301.P12.2", "evaluationOpenDate": "15/07/2025", "gpa": 3.1 },
"gpa": 3.5 { "classCode": "CS205.B23.1", "evaluationOpenDate": "15/07/2025", "gpa": 2.9 },
}, { "classCode": "MA303.D44.2", "evaluationOpenDate": "15/07/2025", "gpa": 3.8 },
{ { "classCode": "BGF201.22.1", "evaluationOpenDate": "15/07/2025", "gpa": 3.0 },
"classCode": "CS301.12.3", { "classCode": "SE404.P01.1", "evaluationOpenDate": "15/07/2025", "gpa": 4.0 },
"evaluationOpenDate": "15/07/2025",
"gpa": 2.8 { "classCode": "ATTT2024.6", "evaluationOpenDate": "15/07/2025", "gpa": 3.3 },
}, { "classCode": "CNTT2024.7", "evaluationOpenDate": "15/07/2025", "gpa": 2.7 },
{ { "classCode": "KTPM2024.8", "evaluationOpenDate": "15/07/2025", "gpa": 3.5 },
"classCode": "MA205.C33.2", { "classCode": "HTTT2024.9", "evaluationOpenDate": "15/07/2025", "gpa": 3.6 },
"evaluationOpenDate": "15/07/2025", { "classCode": "KHMT2024.10", "evaluationOpenDate": "15/07/2025", "gpa": 2.6 },
"gpa": 3.7
} { "classCode": "MMT2024.11", "evaluationOpenDate": "15/07/2025", "gpa": 3.2 },
{ "classCode": "IS2024.IP60.2", "evaluationOpenDate": "15/07/2025", "gpa": 3.9 },
{ "classCode": "CS302.45.1", "evaluationOpenDate": "15/07/2025", "gpa": 2.4 },
{ "classCode": "MA206.C11.1", "evaluationOpenDate": "15/07/2025", "gpa": 3.7 },
{ "classCode": "BGF199.55.2", "evaluationOpenDate": "15/07/2025", "gpa": 3.3 },
{ "classCode": "SE405.P09.1", "evaluationOpenDate": "15/07/2025", "gpa": 3.8 },
{ "classCode": "ATTT2024.12", "evaluationOpenDate": "15/07/2025", "gpa": 3.1 },
{ "classCode": "CNTT2024.13", "evaluationOpenDate": "15/07/2025", "gpa": 3.6 },
{ "classCode": "KTPM2024.14", "evaluationOpenDate": "15/07/2025", "gpa": 3.0 },
{ "classCode": "HTTT2024.15", "evaluationOpenDate": "15/07/2025", "gpa": 2.9 }
]); ]);
return ( return (
......
...@@ -12,82 +12,149 @@ const Notification = (props) => { ...@@ -12,82 +12,149 @@ const Notification = (props) => {
]; ];
const [activeTab, setActiveTab] = useState("All"); const [activeTab, setActiveTab] = useState("All");
const [dataNotifi, setDataNotifi] = useState({ const [dataNotifi, setDataNotifi] = useState({
All: [ "All": [
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo phân công giảng dạy",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Giảng viên nhận lịch phân công giảng dạy học kỳ Hè từ ngày 20/04",
time: '14/4/2024' "time": "14/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo họp khoa",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Khoa CNTT tổ chức họp giảng viên định kỳ tháng 4 vào 15/04 tại phòng A2",
time: '14/4/2024' "time": "15/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo chấm điểm",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Giảng viên hoàn thành chấm điểm học phần Cơ sở dữ liệu trước ngày 22/04",
time: '14/4/2024' "time": "18/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo hội đồng thi lại",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Giảng viên được phân công coi và chấm thi lại ngày 25/04",
time: '14/4/2024' "time": "20/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo bảo trì hệ thống LMS",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Hệ thống quản lý học tập bảo trì từ 0h - 6h ngày 22/04",
time: '14/4/2024' "time": "21/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo học bù",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Giảng viên bố trí lịch học bù cho lớp CNTT vào thứ 7 tuần này",
time: '14/4/2024' "time": "23/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo nộp điểm",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Hạn cuối giảng viên nộp điểm giữa kỳ môn Lập trình Java là 28/04",
time: '14/4/2024' "time": "24/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo nghiên cứu khoa học",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Giảng viên đăng ký đề tài NCKH năm học 2024 - 2025 trước 05/05",
time: '14/4/2024' "time": "26/04/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo hội thảo giảng dạy",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Mời giảng viên tham gia hội thảo phương pháp giảng dạy mới ngày 10/05",
time: '14/4/2024' "time": "02/05/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo tuyển cộng tác viên nghiên cứu",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Giảng viên có nhu cầu tuyển sinh viên hỗ trợ đề tài gửi danh sách trước 12/05",
time: '14/4/2024' "time": "05/05/2024"
}, },
{ {
title_notifi: 'Thông báo nghỉ học', "title_notifi": "Thông báo nghỉ lễ",
message: 'Thông báo nghỉ học do tình hình bão số 4 phức tạp', "message": "Giảng viên nghỉ lễ 30/04 - 01/05 theo quy định",
time: '14/4/2024' "time": "06/05/2024"
},
{
"title_notifi": "Thông báo coi thi giữa kỳ",
"message": "Phòng khảo thí gửi lịch phân công coi thi giữa kỳ ngày 15/05",
"time": "10/05/2024"
}, },
],
Study: [],
Activity: [],
Tuition: [
{ {
title_notifi_tuition: 'Thông báo nghỉ học', "title_notifi": "Thông báo trả tài liệu",
date_create: '16:00 23/07/2025 ', "message": "Giảng viên mượn giáo trình tại thư viện vui lòng hoàn trả trước ngày 20/05",
time_send: '09:00 30/07/2025 ', "time": "14/05/2024"
style: 'Thông báo cá nhân',
status: 'Chưa gửi',
}, },
{ {
title_notifi_tuition: 'Thông báo nghỉ học', "title_notifi": "Thông báo đổi phòng học",
date_create: '16:00 23/07/2025 ', "message": "Môn Hệ điều hành chuyển sang giảng tại phòng B2.12 từ tuần sau",
time_send: '09:00 30/07/2025 ', "time": "16/05/2024"
style: 'Thông báo cá nhân', },
status: 'Đã gửi', {
"title_notifi": "Thông báo hướng dẫn thực tập",
"message": "Giảng viên hướng dẫn sinh viên thực tập nộp kế hoạch trước 25/05",
"time": "19/05/2024"
}
],
"Study": [],
"Activity": [
{
"event_title": "Ngày hội việc làm",
"description": "Trường tổ chức ngày hội việc làm với hơn 50 doanh nghiệp tham gia",
"date": "05/05/2024",
"location": "Sân trường cơ sở chính"
}, },
{
"event_title": "Cuộc thi lập trình ACM",
"description": "Các đội đăng ký trước 01/05 để tham gia",
"date": "10/05/2024",
"location": "Phòng máy B2.12"
}
], ],
"Tuition": [
{
"title_notifi_tuition": "Các em lớp ATTT2024.1 lưu ý nộp học phí học kỳ 1 đúng hạn",
"date_create": "08:00 20/08/2025",
"time_send": "09:00 21/08/2025",
"style": "Thông báo tập thể",
"status": "Chưa gửi"
},
{
"title_notifi_tuition": "Thầy nhắc lớp ATTT2024.2 hoàn tất học phí học kỳ 2 trước ngày 25/08",
"date_create": "10:15 18/08/2025",
"time_send": "07:30 22/08/2025",
"style": "Thông báo tập thể",
"status": "Chưa gửi"
},
{
"title_notifi_tuition": "Sinh viên Nguyễn Văn A đã xác nhận hoàn thành học phí học kỳ 1",
"date_create": "14:30 17/08/2025",
"time_send": "09:00 20/08/2025",
"style": "Thông báo cá nhân",
"status": "Đã gửi"
},
{
"title_notifi_tuition": "Cô gia hạn nộp học phí cho lớp ATTT2024.3 đến ngày 30/08/2025",
"date_create": "09:40 19/08/2025",
"time_send": "08:00 23/08/2025",
"style": "Thông báo tập thể",
"status": "Chưa gửi"
},
{
"title_notifi_tuition": "Các em thuộc diện miễn giảm học phí nộp bổ sung giấy tờ trước 28/08",
"date_create": "15:20 16/08/2025",
"time_send": "10:00 21/08/2025",
"style": "Thông báo tập thể",
"status": "Đã gửi"
},
{
"title_notifi_tuition": "Danh sách sinh viên lớp ATTT2024.2 chưa hoàn thành học phí học kỳ 1",
"date_create": "11:00 15/08/2025",
"time_send": "09:00 22/08/2025",
"style": "Thông báo tập thể",
"status": "Chưa gửi"
},
{
"title_notifi_tuition": "Thầy gửi riêng: Em Trần Thị B kiểm tra lại học phí học kỳ 2",
"date_create": "16:45 14/08/2025",
"time_send": "08:30 21/08/2025",
"style": "Thông báo cá nhân",
"status": "Đã gửi"
}
]
}); });
const handleTabChange = (tabKey) => { const handleTabChange = (tabKey) => {
setActiveTab(tabKey); setActiveTab(tabKey);
......
...@@ -90,6 +90,7 @@ const styles = StyleSheet.create({ ...@@ -90,6 +90,7 @@ const styles = StyleSheet.create({
justifyContent:'space-between', justifyContent:'space-between',
}, },
boxLeft:{ boxLeft:{
flex:1,
}, },
boxRight:{ boxRight:{
justifyContent:'center', justifyContent:'center',
......
...@@ -116,12 +116,12 @@ const NotificationView = props => { ...@@ -116,12 +116,12 @@ const NotificationView = props => {
return ( return (
<TouchableOpacity style={[styles.cardItem, styles.cardItemTution]} onPress={() => navigate.navigate(SCREENNAME.DETAILNOTIFICATION)}> <TouchableOpacity style={[styles.cardItem, styles.cardItemTution]} onPress={() => navigate.navigate(SCREENNAME.DETAILNOTIFICATION)}>
<View style={styles.boxLeft}> <View style={styles.boxLeft}>
<Text style={styles.text} numberOfLines={1} ellipsizeMode="tail"> <Text style={styles.text} numberOfLines={2} ellipsizeMode="tail">
<Text style={styles.text}>Tiêu đề: </Text> <Text style={styles.text}>Tiêu đề: </Text>
{item.title_notifi_tuition} {item.title_notifi_tuition}
</Text> </Text>
<Text style={styles.text} numberOfLines={2} ellipsizeMode="tail"> <Text style={styles.text} numberOfLines={1} ellipsizeMode="tail">
<Text style={styles.text}>Ngày to: </Text> <Text style={styles.text}>Ngày to: </Text>
{item.date_create} {item.date_create}
</Text> </Text>
......
...@@ -4,38 +4,126 @@ import SubTeacherView from './view'; ...@@ -4,38 +4,126 @@ import SubTeacherView from './view';
const SubTeacher = (props) => { const SubTeacher = (props) => {
const [dataList,setDataList] = useState([ const [dataList,setDataList] = useState([
{ {
"classCode": "IS252.P12.1", "classCode": "CS101.B11.2",
"status": "Chờ xác nhận", "status": "Từ chối",
"time": "Thứ 6 - Tiết 6, 7, 8, 9 - Ngày 30/07/2025", "time": "Thứ 4 - Tiết 4, 5, 6 - Ngày 05/09/2025",
"location": "Room B2.12", "location": "Room C3.20",
"requestedLecturer": "Hoàng Thanh Tùng - 08596", "requestedLecturer": "Trần Văn Hùng - 09123",
"note": "" "note": "Midterm exam"
}, },
{ {
"classCode": "IS301.A22.3", "classCode": "MA205.C33.4",
"status": "Đã xác nhận", "status": "Từ chối",
"time": "Thứ 2 - Tiết 1, 2, 3 - Ngày 15/08/2025", "time": "Thứ 4 - Tiết 7, 8, 9 - Ngày 20/09/2025",
"location": "Room A1.05", "location": "Room D1.02",
"requestedLecturer": "Nguyễn Thị Mai - 02468", "requestedLecturer": "Lê Quang Minh - 07854",
"note": "Bring personal laptop" "note": "Class cancelled due to lecturer’s business trip"
}, },
{ {
"classCode": "CS101.B11.2", "classCode": "IT302.A14.5",
"status": "Từ chối", "status": "Đã xác nhận",
"time": "Thứ 4 - Tiết 4, 5, 6 - Ngày 05/09/2025", "time": "Thứ 2 - Tiết 1, 2 - Ngày 25/09/2025",
"location": "Room C3.20", "location": "Room B1.08",
"requestedLecturer": "Trần Văn Hùng - 09123", "requestedLecturer": "Nguyễn Văn An - 06789",
"note": "Midterm exam" "note": "Bring course book"
}, },
{ {
"classCode": "MA205.C33.4", "classCode": "EN201.C21.1",
"status": "Từ chối", "status": "Chờ xác nhận",
"time": "Thứ 4 - Tiết 7, 8, 9 - Ngày 20/09/2025", "time": "Thứ 3 - Tiết 6, 7, 8 - Ngày 28/09/2025",
"location": "Room D1.02", "location": "Room A3.15",
"requestedLecturer": "Lê Quang Minh - 07854", "requestedLecturer": "Phạm Thị Hoa - 04562",
"note": "Class cancelled due to lecturer’s business trip" "note": ""
} },
{
"classCode": "PH101.D11.3",
"status": "Đã xác nhận",
"time": "Thứ 6 - Tiết 2, 3 - Ngày 01/10/2025",
"location": "Room E2.09",
"requestedLecturer": "Đặng Văn Sơn - 09231",
"note": "Quiz in class"
},
{
"classCode": "CH202.B32.4",
"status": "Từ chối",
"time": "Thứ 5 - Tiết 7, 8, 9 - Ngày 04/10/2025",
"location": "Room B4.11",
"requestedLecturer": "Nguyễn Thị Hằng - 08345",
"note": "Schedule conflict"
},
{
"classCode": "CS305.A41.6",
"status": "Chờ xác nhận",
"time": "Thứ 2 - Tiết 4, 5, 6 - Ngày 07/10/2025",
"location": "Room F1.06",
"requestedLecturer": "Lê Hoàng Nam - 07763",
"note": ""
},
{
"classCode": "MA110.B21.5",
"status": "Đã xác nhận",
"time": "Thứ 7 - Tiết 1, 2, 3 - Ngày 10/10/2025",
"location": "Room D3.04",
"requestedLecturer": "Trần Thị Hương - 06123",
"note": "Extra practice session"
},
{
"classCode": "IS250.C12.2",
"status": "Từ chối",
"time": "Thứ 4 - Tiết 6, 7 - Ngày 15/10/2025",
"location": "Room A2.07",
"requestedLecturer": "Nguyễn Văn Toàn - 03215",
"note": "Lecturer unavailable"
},
{
"classCode": "IT401.A33.7",
"status": "Đã xác nhận",
"time": "Thứ 6 - Tiết 8, 9 - Ngày 18/10/2025",
"location": "Room C5.13",
"requestedLecturer": "Vũ Minh Khôi - 09177",
"note": "Project presentation"
},
{
"classCode": "BI101.D41.3",
"status": "Chờ xác nhận",
"time": "Thứ 5 - Tiết 3, 4 - Ngày 20/10/2025",
"location": "Room B1.10",
"requestedLecturer": "Lê Thị Mai - 08522",
"note": ""
},
{
"classCode": "EN305.B11.6",
"status": "Từ chối",
"time": "Thứ 3 - Tiết 1, 2, 3 - Ngày 23/10/2025",
"location": "Room A4.20",
"requestedLecturer": "Hoàng Văn Hậu - 02987",
"note": "Insufficient class size"
},
{
"classCode": "CS210.C23.4",
"status": "Đã xác nhận",
"time": "Thứ 6 - Tiết 5, 6, 7 - Ngày 26/10/2025",
"location": "Room F3.02",
"requestedLecturer": "Nguyễn Quang Huy - 09912",
"note": "Bring laptop"
},
{
"classCode": "MA309.A22.5",
"status": "Chờ xác nhận",
"time": "Thứ 2 - Tiết 2, 3, 4 - Ngày 29/10/2025",
"location": "Room D2.08",
"requestedLecturer": "Phạm Minh Tuấn - 07119",
"note": ""
},
{
"classCode": "IT102.B41.1",
"status": "Đã xác nhận",
"time": "Thứ 7 - Tiết 6, 7, 8, 9 - Ngày 31/10/2025",
"location": "Room C1.14",
"requestedLecturer": "Nguyễn Văn Dũng - 08214",
"note": "Lab practice"
}
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment