\r\n
\r\n
\r\n {/* */}\r\n {ts_form.name}\r\n
\r\n
\r\n {chienDich && chienDich.is_active && chienDich.top_description_html &&\r\n
\r\n }\r\n {(!chienDich || !chienDich.is_active) && (\r\n
\r\n

\r\n
\r\n Chiến dịch đã hết hạn đăng ký, vui lòng liên hệ bộ phận Tuyển sinh.\r\n
\r\n
\r\n )}\r\n {(chienDich && chienDich.is_active) && (ts_form_register_result_id > 0) && !isAttendance && \r\n (!chienDich.noti_description_html || chienDich.noti_description_html == '
') && (\r\n\r\n
\r\n

\r\n
\r\n Quý Phụ huynh đã đăng ký thành công. Hệ thống đã gửi email tới hòm thư Quý Phụ huynh đăng ký.\r\n
\r\n
\r\n Phòng tuyển sinh sẽ liên hệ lại với phụ huynh trong thời gian sớm nhất.\r\n
\r\n
\r\n )}\r\n {(chienDich && chienDich.is_active) && (ts_form_register_result_id > 0) && !isAttendance && \r\n (chienDich.noti_description_html && chienDich.noti_description_html != '
') && (\r\n\r\n
\r\n

\r\n
\r\n
\r\n \r\n
\r\n )}\r\n
\r\n\r\n\r\n {(chienDich && chienDich.is_active) && ts_form_register_result_id == 0 && (\r\n
\r\n {ts_form_items.map((x) => {\r\n const existedData = formData.result.find(y => y.ts_form_item_id == x.id);\r\n var parentId = 0;\r\n // Check xem tai sao ngay truoc lai bo doan code nay di?\r\n if (x.ts_form_editor_id == 2006) {\r\n const khoiData = formData.result.find(y => y.ts_form_editor_id == 2005);\r\n if (khoiData && khoiData.value != null && khoiData.value != \"\") {\r\n parentId = parseInt(khoiData.value);\r\n }\r\n }\r\n if (x.ts_form_editor_id == 2005) {\r\n const khoiData = formData.result.find(y => y.ts_form_editor_id == 2004);\r\n if (khoiData && khoiData.value != null && khoiData.value != \"\") {\r\n parentId = parseInt(khoiData.value);\r\n }\r\n }\r\n console.log(parentId);\r\n return (\r\n
\r\n
{x.label}\r\n {x.is_required && *}\r\n
\r\n\r\n {x.ts_form_editor_type_id == appConst.formEditorType.text_box && (\r\n
0 && x.ts_form_editor_id < 2032 && existedData.readOnly == true}\r\n onValueChanged={(e) => {\r\n if (e.event) {\r\n handleValueChanged(x.ts_form_editor_id, x.id, e.value);\r\n trigger(`F_${existedData?.ts_form_item_id}`)\r\n // trigger();\r\n }\r\n }}\r\n />\r\n )}\r\n {x.ts_form_editor_id == 2032 && (\r\n \r\n
\r\n {mssError}\r\n
\r\n
\r\n
\r\n )}\r\n {x.ts_form_editor_type_id == appConst.formEditorType.combobox && (\r\n 0 && x.ts_form_editor_id < 2032 && existedData.readOnly}\r\n parent_id={parentId}\r\n value={existedData?.value}\r\n onValueChanged={(value) => {\r\n handleValueChanged(x.ts_form_editor_id, x.id, value);\r\n trigger(`F_${existedData?.ts_form_item_id}`)\r\n }}\r\n />\r\n )}\r\n {x.ts_form_editor_type_id == appConst.formEditorType.tagbox && (\r\n 0 && x.ts_form_editor_id < 2032 && existedData.readOnly}\r\n value={JSON.parse(existedData?.value ? existedData?.value : \"[]\")}\r\n onValueChanged={(value) => {\r\n handleValueChanged(x.ts_form_editor_id, x.id, JSON.stringify(value));\r\n trigger(`F_${existedData?.ts_form_item_id}`)\r\n }}\r\n />\r\n )}\r\n {x.ts_form_editor_type_id == appConst.formEditorType.label && (\r\n {x.name}\r\n )}\r\n {existedData?.value && existedData?.value != 'Invalid date' && x.ts_form_editor_type_id == appConst.formEditorType.date_box && (\r\n 0 && x.ts_form_editor_id < 2032 && existedData?.value}\r\n value={existedData?.value ? moment(existedData?.value, 'DD/MM/YYYY') : \"\"}\r\n onValueChanged={(e) => {\r\n if (e.event) {\r\n const date = moment(e.value).format('DD/MM/YYYY');\r\n console.log(date);\r\n handleValueChanged(x.ts_form_editor_id, x.id, date != \"Invalid date\" ? date : undefined);\r\n trigger(`F_${existedData?.ts_form_item_id}`)\r\n }\r\n }}\r\n />\r\n )}\r\n {(!existedData?.value || existedData?.value == 'Invalid date') && x.ts_form_editor_type_id == appConst.formEditorType.date_box && (\r\n 0 && x.ts_form_editor_id < 2032 && existedData?.value}\r\n value={existedData?.value ? moment(existedData?.value, 'DD/MM/YYYY') : \"\"}\r\n onValueChanged={(e) => {\r\n if (e.event) {\r\n const date = moment(e.value).format('DD/MM/YYYY');\r\n handleValueChanged(x.ts_form_editor_id, x.id, date);\r\n trigger(`F_${existedData?.ts_form_item_id}`)\r\n }\r\n }}\r\n />\r\n )}\r\n {/* {x.help_text}
*/}\r\n \r\n {errors[`F_${existedData?.ts_form_item_id}`] && (\r\n \r\n )}\r\n \r\n );\r\n })}\r\n {chienDich && chienDich.bottom_description_html &&\r\n
\r\n }\r\n
\r\n \r\n {/* */}\r\n
\r\n