@@ -50,7 +50,7 @@ const Index = () => { | |||||
axios.get(`${UrlUtils.GET_EMAIL}/${params.id}`) | axios.get(`${UrlUtils.GET_EMAIL}/${params.id}`) | ||||
.then((response) => { | .then((response) => { | ||||
if (response.status === 200) { | if (response.status === 200) { | ||||
console.log(response) | |||||
// console.log(response) | |||||
setRecord(response.data.data) | setRecord(response.data.data) | ||||
} | } | ||||
}) | }) | ||||
@@ -95,14 +95,14 @@ const Index = () => { | |||||
console.log(error); | console.log(error); | ||||
return false; | return false; | ||||
}); | }); | ||||
console.log(data) | |||||
// console.log(data) | |||||
} | } | ||||
const handleDelete = () => { | const handleDelete = () => { | ||||
axios.delete(`${UrlUtils.DELETE_EMAIL}/${params.id}`, | axios.delete(`${UrlUtils.DELETE_EMAIL}/${params.id}`, | ||||
) | ) | ||||
.then((response) => { | .then((response) => { | ||||
console.log(response) | |||||
// console.log(response) | |||||
if (response.status === 204) { | if (response.status === 204) { | ||||
// location.reload(); | // location.reload(); | ||||
navigate('/setting/emailTemplate'); | navigate('/setting/emailTemplate'); | ||||
@@ -50,7 +50,7 @@ const Index = () => { | |||||
dateFrom: input.dateFrom, | dateFrom: input.dateFrom, | ||||
}, | }, | ||||
onSuccess: (responseData) => { | onSuccess: (responseData) => { | ||||
console.log(responseData) | |||||
// console.log(responseData) | |||||
const parser = new DOMParser(); | const parser = new DOMParser(); | ||||
const xmlDoc = parser.parseFromString(responseData, 'application/xml'); | const xmlDoc = parser.parseFromString(responseData, 'application/xml'); | ||||
// Get the DCBHeader element | // Get the DCBHeader element | ||||
@@ -75,7 +75,7 @@ const Index = () => { | |||||
const updatedXmlString = new XMLSerializer().serializeToString(xmlDoc); | const updatedXmlString = new XMLSerializer().serializeToString(xmlDoc); | ||||
const filename = xmlDoc.querySelector('FileHeader').getAttribute('H_Filename'); | const filename = xmlDoc.querySelector('FileHeader').getAttribute('H_Filename'); | ||||
console.log(updatedXmlString) | |||||
// console.log(updatedXmlString) | |||||
const blob = new Blob([updatedXmlString], { type: 'application/xml' }); | const blob = new Blob([updatedXmlString], { type: 'application/xml' }); | ||||
// Create a download link | // Create a download link | ||||
const link = document.createElement('a'); | const link = document.createElement('a'); | ||||
@@ -27,9 +27,9 @@ const SearchGazetteIssueForm = ({ applyExport, comboData, waitDownload}) => { | |||||
handleSubmit } = useForm() | handleSubmit } = useForm() | ||||
const onSubmit = () => { | const onSubmit = () => { | ||||
console.log(selectedYear) | |||||
// console.log(selectedYear) | |||||
if (selectedYear !=null && Object.keys(selectedYear).length>0){ | if (selectedYear !=null && Object.keys(selectedYear).length>0){ | ||||
console.log("okkkkkkkkkkkkkkkk") | |||||
// console.log("okkkkkkkkkkkkkkkk") | |||||
const temp = { | const temp = { | ||||
year: selectedYear.label, | year: selectedYear.label, | ||||
}; | }; | ||||
@@ -15,7 +15,7 @@ export default function HolidayTable({ recordList }) { | |||||
// const navigate = useNavigate() | // const navigate = useNavigate() | ||||
useEffect(() => { | useEffect(() => { | ||||
console.log(recordList) | |||||
// console.log(recordList) | |||||
setRows(recordList.records); | setRows(recordList.records); | ||||
}, [recordList]); | }, [recordList]); | ||||
@@ -56,7 +56,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
//if state data are ready and assign to different field | //if state data are ready and assign to different field | ||||
// console.log(currentApplicationDetailData) | // console.log(currentApplicationDetailData) | ||||
if (Object.keys(currentUserData).length > 0) { | if (Object.keys(currentUserData).length > 0) { | ||||
console.log(currentUserData) | |||||
// console.log(currentUserData) | |||||
if (DateUtils.dateValue(currentUserData.brExpiryDate) > DateUtils.dateValue(minDate)) { | if (DateUtils.dateValue(currentUserData.brExpiryDate) > DateUtils.dateValue(minDate)) { | ||||
setFromDate(currentUserData.brExpiryDate); | setFromDate(currentUserData.brExpiryDate); | ||||
} else { | } else { | ||||
@@ -43,7 +43,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
flex: 1, | flex: 1, | ||||
renderCell: (params) => { | renderCell: (params) => { | ||||
let appNo = params.row.appNo; | let appNo = params.row.appNo; | ||||
console.log(params.row) | |||||
// console.log(params.row) | |||||
return <div style={{ margin: 4, textAlign:"left"}}>Gazette Supplement No. 6 <br/> | return <div style={{ margin: 4, textAlign:"left"}}>Gazette Supplement No. 6 <br/> | ||||
{isORGLoggedIn()&¶ms.row.careOf!=null&¶ms.row.careOf!=""?<>{params.row.careOf}<br /></>:null} | {isORGLoggedIn()&¶ms.row.careOf!=null&¶ms.row.careOf!=""?<>{params.row.careOf}<br /></>:null} | ||||
App No: {appNo}<br/> | App No: {appNo}<br/> | ||||
@@ -64,7 +64,7 @@ const MultiPaymentWindow = (props) => { | |||||
// console.log(props.transactionData) | // console.log(props.transactionData) | ||||
if(Object.keys(props.transactionData).length > 0){ | if(Object.keys(props.transactionData).length > 0){ | ||||
setLoadtTransactionData(props.transactionData) | setLoadtTransactionData(props.transactionData) | ||||
console.log(props.browserType) | |||||
// console.log(props.browserType) | |||||
} | } | ||||
}, [props.transactionData]); | }, [props.transactionData]); | ||||
@@ -59,10 +59,10 @@ export default function UploadFileTable({ recordList, setRecordList, showPageCol | |||||
...rowModesModel, | ...rowModesModel, | ||||
[id]: { mode: GridRowModes.View, ignoreModifications: true }, | [id]: { mode: GridRowModes.View, ignoreModifications: true }, | ||||
}); | }); | ||||
console.log("Starting Delete") | |||||
const editedRow = rows.find((row) => row.id === id); | |||||
console.log(editedRow) | |||||
console.log(editedRow.isNew) | |||||
// console.log("Starting Delete") | |||||
// const editedRow = rows.find((row) => row.id === id); | |||||
// console.log(editedRow) | |||||
// console.log(editedRow.isNew) | |||||
setRecordList(rows.filter((row) => row.id !== id)); | setRecordList(rows.filter((row) => row.id !== id)); | ||||
setRows(rows.filter((row) => row.id !== id)); | setRows(rows.filter((row) => row.id !== id)); | ||||
} | } | ||||
@@ -44,10 +44,10 @@ export default function UploadFileTable({recordList, setRecordList,}) { | |||||
...rowModesModel, | ...rowModesModel, | ||||
[id]: { mode: GridRowModes.View, ignoreModifications: true }, | [id]: { mode: GridRowModes.View, ignoreModifications: true }, | ||||
}); | }); | ||||
console.log("Starting Delete") | |||||
const editedRow = rows.find((row) => row.id === id); | |||||
console.log(editedRow) | |||||
console.log(editedRow.isNew) | |||||
// console.log("Starting Delete") | |||||
// const editedRow = rows.find((row) => row.id === id); | |||||
// console.log(editedRow) | |||||
// console.log(editedRow.isNew) | |||||
setRecordList(rows.filter((row) => row.id !== id)); | setRecordList(rows.filter((row) => row.id !== id)); | ||||
setRows(rows.filter((row) => row.id !== id)); | setRows(rows.filter((row) => row.id !== id)); | ||||
} | } | ||||
@@ -121,7 +121,7 @@ const FormPanel = ({ formData }) => { | |||||
}, | }, | ||||
files: attachments ? attachments : [], | files: attachments ? attachments : [], | ||||
onSuccess: function (responseData) { | onSuccess: function (responseData) { | ||||
console.log(responseData) | |||||
// console.log(responseData) | |||||
if (responseData.success === false) { | if (responseData.success === false) { | ||||
navigate("/publicNotice/" + responseData.id); | navigate("/publicNotice/" + responseData.id); | ||||
} else { | } else { | ||||
@@ -46,10 +46,10 @@ export default function UploadFileTable({recordList, setRecordList,}) { | |||||
...rowModesModel, | ...rowModesModel, | ||||
[id]: { mode: GridRowModes.View, ignoreModifications: true }, | [id]: { mode: GridRowModes.View, ignoreModifications: true }, | ||||
}); | }); | ||||
console.log("Starting Delete") | |||||
const editedRow = rows.find((row) => row.id === id); | |||||
console.log(editedRow) | |||||
console.log(editedRow.isNew) | |||||
// console.log("Starting Delete") | |||||
// const editedRow = rows.find((row) => row.id === id); | |||||
// console.log(editedRow) | |||||
// console.log(editedRow.isNew) | |||||
setRecordList(rows.filter((row) => row.id !== id)); | setRecordList(rows.filter((row) => row.id !== id)); | ||||
setRows(rows.filter((row) => row.id !== id)); | setRows(rows.filter((row) => row.id !== id)); | ||||
} | } | ||||
@@ -94,7 +94,7 @@ const ClientDetailCard = ( | |||||
useEffect(() => { | useEffect(() => { | ||||
if (brNo != undefined && brNo.length > 0) { | if (brNo != undefined && brNo.length > 0) { | ||||
console.log(brExpiryDate) | |||||
// console.log(brExpiryDate) | |||||
var currentDate = new Date(); // Current date | var currentDate = new Date(); // Current date | ||||
var targetDate = new Date(brExpiryDate); // Target date | var targetDate = new Date(brExpiryDate); // Target date | ||||
@@ -102,9 +102,9 @@ const ClientDetailCard = ( | |||||
alert("The BR is expired.") | alert("The BR is expired.") | ||||
} else { | } else { | ||||
var timeDiff = Math.abs(currentDate.getTime() - targetDate.getTime()); | var timeDiff = Math.abs(currentDate.getTime() - targetDate.getTime()); | ||||
console.log(timeDiff) | |||||
// console.log(timeDiff) | |||||
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); | var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); | ||||
console.log(diffDays) | |||||
// console.log(diffDays) | |||||
if (diffDays <= 7 && diffDays > 0) { | if (diffDays <= 7 && diffDays > 0) { | ||||
alert("The BR is expiring.") | alert("The BR is expiring.") | ||||
} | } | ||||
@@ -114,7 +114,7 @@ const ClientDetailCard = ( | |||||
}, [brNo]); | }, [brNo]); | ||||
const handleViewClick = () => () => { | const handleViewClick = () => () => { | ||||
console.log(currentApplicationDetailData) | |||||
// console.log(currentApplicationDetailData) | |||||
currentApplicationDetailData.type == "ORG" ? | currentApplicationDetailData.type == "ORG" ? | ||||
window.open('/orgUser/' + currentApplicationDetailData.id, "_blank", "noreferrer") : | window.open('/orgUser/' + currentApplicationDetailData.id, "_blank", "noreferrer") : | ||||
window.open('/indUser/' + currentApplicationDetailData.id, "_blank", "noreferrer"); | window.open('/indUser/' + currentApplicationDetailData.id, "_blank", "noreferrer"); | ||||
@@ -67,7 +67,7 @@ const StatusChangeDialog = (props) => { | |||||
if (!helperText) { | if (!helperText) { | ||||
props.setReason({ "reason": remarks }); | props.setReason({ "reason": remarks }); | ||||
if (remarks != null && remarks != "") { | if (remarks != null && remarks != "") { | ||||
console.log(remarks) | |||||
// console.log(remarks) | |||||
// props.setStatusWindowAccepted(true); | // props.setStatusWindowAccepted(true); | ||||
} | } | ||||
} | } | ||||
@@ -150,7 +150,7 @@ const StatusChangeDialog = (props) => { | |||||
inputValue={comboInputValue.label} | inputValue={comboInputValue.label} | ||||
onChange={(event, newValue) => { | onChange={(event, newValue) => { | ||||
if (newValue != null && newValue != {}) { | if (newValue != null && newValue != {}) { | ||||
console.log(comboInputValue) | |||||
// console.log(comboInputValue) | |||||
props.setSelectedGazetteGroupInputType(newValue.label); | props.setSelectedGazetteGroupInputType(newValue.label); | ||||
setComboInputValue(newValue); | setComboInputValue(newValue); | ||||
props.setSelectedGazetteGroup(newValue); | props.setSelectedGazetteGroup(newValue); | ||||
@@ -28,7 +28,7 @@ const StatusChangeDialog = (props) => { | |||||
const intl = useIntl(); | const intl = useIntl(); | ||||
useEffect(() => { | useEffect(() => { | ||||
console.log(Object.keys(!props.selectedGazetteGroup).length) | |||||
// console.log(Object.keys(!props.selectedGazetteGroup).length) | |||||
if(props.getStatus === "cancel"){ | if(props.getStatus === "cancel"){ | ||||
setStatus(intl.formatMessage({id: 'cancel'})) | setStatus(intl.formatMessage({id: 'cancel'})) | ||||
} | } | ||||
@@ -101,7 +101,7 @@ const SearchPublicNoticeForm = ({ applySearch, generateReport, onLoad }) => { | |||||
CollDateTo: sentCollDateTo, | CollDateTo: sentCollDateTo, | ||||
}; | }; | ||||
console.log(temp) | |||||
// console.log(temp) | |||||
applySearch(temp); | applySearch(temp); | ||||
}; | }; | ||||
@@ -68,7 +68,7 @@ const Index = () => { | |||||
setIsChanged(true); | setIsChanged(true); | ||||
}, | }, | ||||
onError:function (error) { | onError:function (error) { | ||||
console.log(error.response.data); | |||||
// console.log(error.response.data); | |||||
setExpiryErrText(intl.formatMessage({ id: error.response.data.error })) | setExpiryErrText(intl.formatMessage({ id: error.response.data.error })) | ||||
setExpiryErr(true) | setExpiryErr(true) | ||||
// window.location.assign("/iamsmart/loginFail"); | // window.location.assign("/iamsmart/loginFail"); | ||||
@@ -136,7 +136,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
checkDigit: yup.string().max(1, getMaxErrStr(1)).nullable() | checkDigit: yup.string().max(1, getMaxErrStr(1)).nullable() | ||||
.matches(/^[A-Z0-9\s]+$/, { message: displayErrorMsg(`${selectedIdDocInputType}${intl.formatMessage({ id: 'noSpecialCharacter' })}`) }) | .matches(/^[A-Z0-9\s]+$/, { message: displayErrorMsg(`${selectedIdDocInputType}${intl.formatMessage({ id: 'noSpecialCharacter' })}`) }) | ||||
.test('checkIDCardFormat', displayErrorMsg(`${intl.formatMessage({ id: 'requiredNumberInQuote' })}`), function (value) { | .test('checkIDCardFormat', displayErrorMsg(`${intl.formatMessage({ id: 'requiredNumberInQuote' })}`), function (value) { | ||||
console.log(selectedIdDocInputType) | |||||
// console.log(selectedIdDocInputType) | |||||
if (value != undefined || value != null) { | if (value != undefined || value != null) { | ||||
switch (selectedIdDocInputType) { | switch (selectedIdDocInputType) { | ||||
case "HKID": | case "HKID": | ||||
@@ -59,7 +59,7 @@ const ForgotPasswordApplyForm = () => { | |||||
username: yup.string().required(intl.formatMessage({id: 'requireUsername'})), | username: yup.string().required(intl.formatMessage({id: 'requireUsername'})), | ||||
}), | }), | ||||
onSubmit: values => { | onSubmit: values => { | ||||
console.log(values) | |||||
// console.log(values) | |||||
HttpUtils.post({ | HttpUtils.post({ | ||||
url: UrlUtils.POST_FORGOT_PASSWORD_EMAIL, | url: UrlUtils.POST_FORGOT_PASSWORD_EMAIL, | ||||
params: { | params: { | ||||
@@ -76,7 +76,7 @@ const Index = () => { | |||||
}).then( | }).then( | ||||
(response)=>{ | (response)=>{ | ||||
if (response.status === 200 && response.data) { | if (response.status === 200 && response.data) { | ||||
console.log(response) | |||||
// console.log(response) | |||||
setUsername(response.data.username) | setUsername(response.data.username) | ||||
setVerifyState(true) | setVerifyState(true) | ||||
} else { | } else { | ||||
@@ -61,7 +61,7 @@ const ForgotUsernameApplyForm = () => { | |||||
emailAddress: yup.string().email(intl.formatMessage({id: 'validEmailFormat'})).max(255).required(intl.formatMessage({id: 'requireEmail'})), | emailAddress: yup.string().email(intl.formatMessage({id: 'validEmailFormat'})).max(255).required(intl.formatMessage({id: 'requireEmail'})), | ||||
}), | }), | ||||
onSubmit: values => { | onSubmit: values => { | ||||
console.log(values) | |||||
// console.log(values) | |||||
HttpUtils.post({ | HttpUtils.post({ | ||||
url: UrlUtils.POST_FORGOT_USERNAME_EMAIL, | url: UrlUtils.POST_FORGOT_USERNAME_EMAIL, | ||||
params: { | params: { | ||||
@@ -63,7 +63,7 @@ const AuthLogin = () => { | |||||
}) | }) | ||||
.then((response) => { | .then((response) => { | ||||
//setPosts("12354") | //setPosts("12354") | ||||
console.log(response.data); | |||||
// console.log(response.data); | |||||
setPosts(response.data); | setPosts(response.data); | ||||
const userData = { | const userData = { | ||||
@@ -165,7 +165,7 @@ const CustomFormWizard = (props) => { | |||||
const response = await axios.post(`${POST_IDNO}`, { | const response = await axios.post(`${POST_IDNO}`, { | ||||
i1: values.idNo, | i1: values.idNo, | ||||
}) | }) | ||||
console.log(response.data.Vaild) | |||||
// console.log(response.data.Vaild) | |||||
setCheckIdDocNumber(response.data.Vaild === false) | setCheckIdDocNumber(response.data.Vaild === false) | ||||
return response.data.Vaild === false | return response.data.Vaild === false | ||||
} | } | ||||
@@ -178,7 +178,7 @@ const CustomFormWizard = (props) => { | |||||
const response = await axios.post(`${POST_IDNO}`, { | const response = await axios.post(`${POST_IDNO}`, { | ||||
i1: values.idNo, | i1: values.idNo, | ||||
}) | }) | ||||
console.log(response.data.Vaild) | |||||
// console.log(response.data.Vaild) | |||||
setCheckIdDocNumber(response.data.Vaild === false) | setCheckIdDocNumber(response.data.Vaild === false) | ||||
return response.data.Vaild === false | return response.data.Vaild === false | ||||
} | } | ||||
@@ -34,8 +34,8 @@ const Index = () => { | |||||
code: params.get("code") | code: params.get("code") | ||||
}, | }, | ||||
onSuccess: (responseData) => { | onSuccess: (responseData) => { | ||||
console.log("responseData"); | |||||
console.log(responseData); | |||||
// console.log("responseData"); | |||||
// console.log(responseData); | |||||
const userData = { | const userData = { | ||||
id: responseData.id, | id: responseData.id, | ||||
fullenName: responseData.name, | fullenName: responseData.name, | ||||
@@ -34,8 +34,8 @@ const Index = () => { | |||||
code: params.get("code") | code: params.get("code") | ||||
}, | }, | ||||
onSuccess: (responseData) => { | onSuccess: (responseData) => { | ||||
console.log("responseData"); | |||||
console.log(responseData); | |||||
// console.log("responseData"); | |||||
// console.log(responseData); | |||||
const userData = { | const userData = { | ||||
id: responseData.id, | id: responseData.id, | ||||
fullenName: responseData.name, | fullenName: responseData.name, | ||||
@@ -42,7 +42,7 @@ const UserAddCard = ({ isCollectData, updateGroupMember, userGroupData, isNewRec | |||||
if (!idList.includes(selectedUser.id)) { | if (!idList.includes(selectedUser.id)) { | ||||
const userList = [...groupUserData, selectedUser]; | const userList = [...groupUserData, selectedUser]; | ||||
setGroupUserData(userList); | setGroupUserData(userList); | ||||
console.log(userList); | |||||
// console.log(userList); | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -125,7 +125,7 @@ const UserAddCard = ({ isCollectData, updateGroupMember, userGroupData, isNewRec | |||||
value={selectedUser === null ? null : selectedUser} | value={selectedUser === null ? null : selectedUser} | ||||
options={userComboList} | options={userComboList} | ||||
onChange={(event, newValue) => { | onChange={(event, newValue) => { | ||||
console.log(newValue) | |||||
// console.log(newValue) | |||||
setSelectedUser(newValue); | setSelectedUser(newValue); | ||||
}} | }} | ||||
renderInput={(params) => <TextField {...params} />} | renderInput={(params) => <TextField {...params} />} | ||||
@@ -65,8 +65,8 @@ export default function UserAddTable({setGroupUserData, userList,setDeletedList, | |||||
const handleDeleteClick = (id) => () => { | const handleDeleteClick = (id) => () => { | ||||
if(id >0){ | if(id >0){ | ||||
const temp = [...localDeletedList, id]; | const temp = [...localDeletedList, id]; | ||||
console.log("temp here"); | |||||
console.log(temp); | |||||
// console.log("temp here"); | |||||
// console.log(temp); | |||||
setLocalDeletedList(temp); | setLocalDeletedList(temp); | ||||
} | } | ||||
const newList =removeObjectWithId(groupData,id) | const newList =removeObjectWithId(groupData,id) | ||||
@@ -137,7 +137,7 @@ const UserMaintainPage = () => { | |||||
if (userConfirm && onReady) { | if (userConfirm && onReady) { | ||||
//avoid delete and add user at the same time | //avoid delete and add user at the same time | ||||
let finalDeletedUserList = getDeletedRecordWithRefList(deletedUserList, getIdList(groupMember)); | let finalDeletedUserList = getDeletedRecordWithRefList(deletedUserList, getIdList(groupMember)); | ||||
console.log(finalDeletedUserList) | |||||
// console.log(finalDeletedUserList) | |||||
axios.post(POST_AND_UPDATE_USER_GROUP, | axios.post(POST_AND_UPDATE_USER_GROUP, | ||||
{ | { | ||||
"id": parseInt(params.id) !== -1 ? parseInt(params.id) : null, | "id": parseInt(params.id) !== -1 ? parseInt(params.id) : null, | ||||
@@ -232,8 +232,8 @@ export const notifyActionWarning = (actionMsg) => { | |||||
} | } | ||||
export function prettyJson(json) { | export function prettyJson(json) { | ||||
console.log(json); | |||||
console.log(JSON.stringify(json, null, 2)); | |||||
// console.log(json); | |||||
// console.log(JSON.stringify(json, null, 2)); | |||||
return ( | return ( | ||||
<div>{JSON.stringify(json, null, 2)}</div> | <div>{JSON.stringify(json, null, 2)}</div> | ||||
); | ); | ||||
@@ -102,7 +102,7 @@ export const haveOrgPaymentRecord = () =>{ | |||||
} | } | ||||
export const checkSysEnv = () =>{ | export const checkSysEnv = () =>{ | ||||
if (localStorage.getItem('sysEnv') != null){ | if (localStorage.getItem('sysEnv') != null){ | ||||
console.log(localStorage.getItem('sysEnv')) | |||||
// console.log(localStorage.getItem('sysEnv')) | |||||
return localStorage.getItem('sysEnv') | return localStorage.getItem('sysEnv') | ||||
} | } | ||||
} | } | ||||