| @@ -186,7 +186,17 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
| </Grid> | </Grid> | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isFailPopUp} onClose={() => setIsFailPopUp(false)} > | |||||
| <Dialog | |||||
| open={isFailPopUp} | |||||
| onClose={() => setIsFailPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | ||||
| @@ -197,7 +207,17 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isSuccessPopUp} onClose={() => setIsSuccessPopUp(false)} > | |||||
| <Dialog | |||||
| open={isSuccessPopUp} | |||||
| onClose={() => setIsSuccessPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Create Result</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Create Result</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
| @@ -353,7 +353,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| /> | /> | ||||
| </Box> | </Box> | ||||
| <div> | <div> | ||||
| <Dialog open={isErrorPopUp} onClose={() => setIsErrorPopUp(false)} > | |||||
| <Dialog | |||||
| open={isErrorPopUp} | |||||
| onClose={() => setIsErrorPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Number of DN record must less than 100.<br />Please edit search form.</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Number of DN record must less than 100.<br />Please edit search form.</Typography> | ||||
| @@ -364,7 +374,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={selectonWarning} onClose={() => setSelectonWarning(false)} > | |||||
| <Dialog | |||||
| open={selectonWarning} | |||||
| onClose={() => setSelectonWarning(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Please Select DN.</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Please Select DN.</Typography> | ||||
| @@ -375,7 +395,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isConfirmPopUp} onClose={() => setConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={isConfirmPopUp} | |||||
| onClose={() => setConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to mark DN paid?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to mark DN paid?</Typography> | ||||
| @@ -387,7 +417,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isSendPopUp} onClose={() => setSendPopUp(false)} > | |||||
| <Dialog | |||||
| open={isSendPopUp} | |||||
| onClose={() => setSendPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to send DN?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure to send DN?</Typography> | ||||
| @@ -399,7 +439,17 @@ export default function SearchDemandNote({ recordList, reloadFun, applySearch }) | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={wait} onClose={() => setWait(false)} > | |||||
| <Dialog | |||||
| open={wait} | |||||
| onClose={() => setWait(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | ||||
| </DialogContent> | </DialogContent> | ||||
| @@ -84,7 +84,7 @@ const SearchDemandNoteForm = ({ applySearch, searchCriteria, issueComboData | |||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center" > | <Grid item justifyContent="space-between" alignItems="center" > | ||||
| <Typography variant="h4"> | <Typography variant="h4"> | ||||
| <FormattedMessage id="search"/> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -64,7 +64,7 @@ const SearchForm = ({ applySearch, searchCriteria }) => { | |||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center" > | <Grid item justifyContent="space-between" alignItems="center" > | ||||
| <Typography variant="h4"> | <Typography variant="h4"> | ||||
| <FormattedMessage id="search"/> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -400,7 +400,17 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| } | } | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={creditorConfirmPopUp} onClose={() => setCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={creditorConfirmPopUp} | |||||
| onClose={() => setCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | ||||
| @@ -412,7 +422,17 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={nonCreditorConfirmPopUp} onClose={() => setNonCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={nonCreditorConfirmPopUp} | |||||
| onClose={() => setNonCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | ||||
| @@ -321,7 +321,17 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| } | } | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={creditorConfirmPopUp} onClose={() => setCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={creditorConfirmPopUp} | |||||
| onClose={() => setCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | ||||
| @@ -333,7 +343,17 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={nonCreditorConfirmPopUp} onClose={() => setNonCreditorConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={nonCreditorConfirmPopUp} | |||||
| onClose={() => setNonCreditorConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | ||||
| @@ -256,7 +256,17 @@ const OrganizationCard_loadFromUser = ({ userData, userId }) => { | |||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isFailPopUp} onClose={() => setIsFailPopUp(false)} > | |||||
| <Dialog | |||||
| open={isFailPopUp} | |||||
| onClose={() => setIsFailPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Action Fail</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{failText}</Typography> | ||||
| @@ -69,7 +69,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center" > | <Grid item justifyContent="space-between" alignItems="center" > | ||||
| <Typography variant="h4"> | <Typography variant="h4"> | ||||
| <FormattedMessage id="search"/> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -433,7 +433,17 @@ const Index = () => { | |||||
| </Grid> | </Grid> | ||||
| {/*row 2*/} | {/*row 2*/} | ||||
| <div> | <div> | ||||
| <Dialog open={expiryDateErr} onClose={() => setExpiryDateErr(false)} > | |||||
| <Dialog | |||||
| open={expiryDateErr} | |||||
| onClose={() => setExpiryDateErr(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -428,7 +428,17 @@ const FormPanel = ({ formData }) => { | |||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| @@ -439,7 +449,17 @@ const FormPanel = ({ formData }) => { | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={wait} onClose={() => setWait(false)} > | |||||
| <Dialog | |||||
| open={wait} | |||||
| onClose={() => setWait(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Calculating, please wait ...</Typography> | ||||
| </DialogContent> | </DialogContent> | ||||
| @@ -294,7 +294,10 @@ const ApplicationDetailCard = ({ | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| <div> | <div> | ||||
| <Dialog open={cancelPopUp} onClose={() => setCancelPopUp(false)} > | |||||
| <Dialog | |||||
| open={cancelPopUp} | |||||
| onClose={() => setCancelPopUp(false)} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>Are you sure you want to cancel this proof?</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Are you sure you want to cancel this proof?</Typography> | ||||
| @@ -322,7 +322,17 @@ const FormPanel = ({ formData }) => { | |||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle> | <DialogTitle> | ||||
| <FormattedMessage id="attention"/> | <FormattedMessage id="attention"/> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| @@ -103,7 +103,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData | |||||
| <CardContent sx={{ px: 2.5, pt: 3 }}> | <CardContent sx={{ px: 2.5, pt: 3 }}> | ||||
| <Grid item justifyContent="space-between" alignItems="center"> | <Grid item justifyContent="space-between" alignItems="center"> | ||||
| <Typography variant="h4"> | <Typography variant="h4"> | ||||
| <FormattedMessage id="search"/> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </CardContent> | </CardContent> | ||||
| @@ -279,7 +279,17 @@ const PublicNoticeApplyForm = ({ loadedData, selections }) => { | |||||
| </Box> | </Box> | ||||
| </Grid> | </Grid> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle> | <DialogTitle> | ||||
| <FormattedMessage id="attention"/> | <FormattedMessage id="attention"/> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| @@ -537,7 +537,17 @@ const ApplicationDetailCard = ( | |||||
| </Grid> | </Grid> | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| @@ -262,7 +262,16 @@ const GazetteDetailCard = ( | |||||
| </Grid> | </Grid> | ||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }}> | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| @@ -633,7 +633,17 @@ const ApplicationDetailCard = ( | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={errorPopUp} onClose={() => setErrorPopUp(false)} > | |||||
| <Dialog | |||||
| open={errorPopUp} | |||||
| onClose={() => setErrorPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -21,15 +21,16 @@ import * as yup from 'yup'; | |||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | ||||
| import {ThemeProvider} from "@emotion/react"; | import {ThemeProvider} from "@emotion/react"; | ||||
| import {FormattedMessage} from "react-intl"; | import {FormattedMessage} from "react-intl"; | ||||
| import {useIntl} from "react-intl"; | |||||
| const StatusChangeDialog = (props) => { | const StatusChangeDialog = (props) => { | ||||
| const [status, setStatus] = useState(""); | const [status, setStatus] = useState(""); | ||||
| 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("取消") | |||||
| setStatus(intl.formatMessage({id: 'cancel'})) | |||||
| } | } | ||||
| }, [props.getStatus]); | }, [props.getStatus]); | ||||
| @@ -60,8 +61,8 @@ const StatusChangeDialog = (props) => { | |||||
| maxWidth={'xs'} | maxWidth={'xs'} | ||||
| > | > | ||||
| <DialogTitle > | <DialogTitle > | ||||
| <Typography variant="h4" color="error"> | |||||
| {status}公共啟事 | |||||
| <Typography variant="h4"> | |||||
| {status} {intl.formatMessage({id: 'publicNotice'})} | |||||
| </Typography> | </Typography> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| <FormikProvider value={formik}> | <FormikProvider value={formik}> | ||||
| @@ -69,7 +70,8 @@ const StatusChangeDialog = (props) => { | |||||
| <DialogContent> | <DialogContent> | ||||
| <DialogContentText> | <DialogContentText> | ||||
| <FormLabel sx={{fontSize: "18px", color:"#000000",textAlign:"center"}}> | <FormLabel sx={{fontSize: "18px", color:"#000000",textAlign:"center"}}> | ||||
| <Typography variant="h5">確定{status}公共啟事?</Typography> | |||||
| <Typography variant="h5"> | |||||
| {intl.formatMessage({id: 'confirmTo'})}{status} {intl.formatMessage({id: 'publicNotice'})}?</Typography> | |||||
| </FormLabel> | </FormLabel> | ||||
| </DialogContentText> | </DialogContentText> | ||||
| </DialogContent> | </DialogContent> | ||||
| @@ -82,7 +84,7 @@ const StatusChangeDialog = (props) => { | |||||
| variant="contained" | variant="contained" | ||||
| onClick={props.handleClose} | onClick={props.handleClose} | ||||
| autoFocus | autoFocus | ||||
| color="delete" | |||||
| color="cancel" | |||||
| > | > | ||||
| <FormattedMessage id="cancel"/> | <FormattedMessage id="cancel"/> | ||||
| </Button> | </Button> | ||||
| @@ -365,7 +365,17 @@ export default function SubmittedTab({ rows }) { | |||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={checkCareOf} onClose={() => setCheckCareOf(false)} > | |||||
| <Dialog | |||||
| open={checkCareOf} | |||||
| onClose={() => setCheckCareOf(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>Warning</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>Warning</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -390,7 +400,17 @@ export default function SubmittedTab({ rows }) { | |||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={expiryDateErr} onClose={() => setExpiryDateErr(false)} > | |||||
| <Dialog | |||||
| open={expiryDateErr} | |||||
| onClose={() => setExpiryDateErr(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle></DialogTitle> | <DialogTitle></DialogTitle> | ||||
| <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | <Typography variant="h2" style={{ padding: '16px' }}>行動失敗</Typography> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| @@ -65,7 +65,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
| {/*row 1*/} | {/*row 1*/} | ||||
| <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:marginBottom}}> | <Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:marginBottom}}> | ||||
| <Typography variant="pnspsFormHeader" > | <Typography variant="pnspsFormHeader" > | ||||
| <FormattedMessage id="search"/> | |||||
| <FormattedMessage id="searchForm"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| {/*row 2*/} | {/*row 2*/} | ||||
| @@ -577,7 +577,17 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| </form> | </form> | ||||
| } | } | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Warning</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{warningText}</Typography> | ||||
| @@ -588,7 +598,17 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| </Dialog> | </Dialog> | ||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <Dialog open={isConfirmPopUp} onClose={() => setIsConfirmPopUp(false)} > | |||||
| <Dialog | |||||
| open={isConfirmPopUp} | |||||
| onClose={() => setIsConfirmPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h4" style={{ padding: '16px' }}>{confirmText}</Typography> | <Typography variant="h4" style={{ padding: '16px' }}>{confirmText}</Typography> | ||||
| @@ -238,7 +238,17 @@ const ManageOrgUserPage = () => { | |||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| <div> | <div> | ||||
| <Dialog open={isWarningPopUp} onClose={() => setIsWarningPopUp(false)} > | |||||
| <Dialog | |||||
| open={isWarningPopUp} | |||||
| onClose={() => setIsWarningPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle> | <DialogTitle> | ||||
| <FormattedMessage id="confirm" /> | <FormattedMessage id="confirm" /> | ||||
| </DialogTitle> | </DialogTitle> | ||||
| @@ -92,7 +92,17 @@ const Mail = () => { | |||||
| </form> | </form> | ||||
| <div> | <div> | ||||
| <Dialog open={isResponsPopUp} onClose={() => setIsResponsPopUp(false)} > | |||||
| <Dialog | |||||
| open={isResponsPopUp} | |||||
| onClose={() => setIsResponsPopUp(false)} | |||||
| PaperProps={{ | |||||
| sx: { | |||||
| minWidth: '40vw', | |||||
| maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '70vw' }, | |||||
| maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '60vh' } | |||||
| } | |||||
| }} | |||||
| > | |||||
| <DialogTitle>Respons</DialogTitle> | <DialogTitle>Respons</DialogTitle> | ||||
| <DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
| <Typography variant="h3" style={{ padding: '16px' }}>{responsText}</Typography> | <Typography variant="h3" style={{ padding: '16px' }}>{responsText}</Typography> | ||||
| @@ -43,6 +43,7 @@ | |||||
| "mainPage": "Main Page", | "mainPage": "Main Page", | ||||
| "myPublicNotice": "My Public Notice", | "myPublicNotice": "My Public Notice", | ||||
| "publicNotice": "Public Notice", | |||||
| "publicNoticePayment": "Public Notice: Payment", | "publicNoticePayment": "Public Notice: Payment", | ||||
| "publicNoticePaymentFail": "Public Notice: Payment Failed", | "publicNoticePaymentFail": "Public Notice: Payment Failed", | ||||
| "publicNoticePaymentSuccess": "Public Notice: Payment Success", | "publicNoticePaymentSuccess": "Public Notice: Payment Success", | ||||
| @@ -265,6 +266,7 @@ | |||||
| "contactPerson": "Contact Person", | "contactPerson": "Contact Person", | ||||
| "requireContactPerson": "Please enter contact person", | "requireContactPerson": "Please enter contact person", | ||||
| "search": "Search", | "search": "Search", | ||||
| "searchForm": "Search Form", | |||||
| "cancel": "Cancel", | "cancel": "Cancel", | ||||
| "extraMark": "Remarks", | "extraMark": "Remarks", | ||||
| "totalAmount": "Total Amount", | "totalAmount": "Total Amount", | ||||
| @@ -371,6 +373,7 @@ | |||||
| "nameChi": "Name (Ch)", | "nameChi": "Name (Ch)", | ||||
| "expiryDate": "Expiry date", | "expiryDate": "Expiry date", | ||||
| "create": "Create", | "create": "Create", | ||||
| "confirmTo": "Confirm to ", | |||||
| "Dashboard": "Dashboard", | "Dashboard": "Dashboard", | ||||
| "event": "Event" | "event": "Event" | ||||
| @@ -42,6 +42,7 @@ | |||||
| "registerFail": "申请失败,请稍后尝试", | "registerFail": "申请失败,请稍后尝试", | ||||
| "mainPage": "主页", | "mainPage": "主页", | ||||
| "publicNotice": "公共启事", | |||||
| "myPublicNotice": "我的公共启事", | "myPublicNotice": "我的公共启事", | ||||
| "publicNoticePayment": "公共启事:付款", | "publicNoticePayment": "公共启事:付款", | ||||
| "publicNoticePaymentFail": "公共启事:付款失败", | "publicNoticePaymentFail": "公共启事:付款失败", | ||||
| @@ -265,6 +266,7 @@ | |||||
| "contactPerson": "联络人", | "contactPerson": "联络人", | ||||
| "requireContactPerson": "请输入联络人", | "requireContactPerson": "请输入联络人", | ||||
| "search": "搜寻", | "search": "搜寻", | ||||
| "searchForm": "搜寻表格", | |||||
| "cancel": "取消", | "cancel": "取消", | ||||
| "extraMark": "备注", | "extraMark": "备注", | ||||
| "totalAmount": "总额", | "totalAmount": "总额", | ||||
| @@ -371,6 +373,7 @@ | |||||
| "nameChi": "姓名(中文)", | "nameChi": "姓名(中文)", | ||||
| "expiryDate": "过期日期", | "expiryDate": "过期日期", | ||||
| "create": "创建", | "create": "创建", | ||||
| "confirmTo": "确定", | |||||
| "Dashboard": "仪表板", | "Dashboard": "仪表板", | ||||
| "event": "活动" | "event": "活动" | ||||
| @@ -42,6 +42,7 @@ | |||||
| "registerFail": "申請失敗,請稍後嘗試", | "registerFail": "申請失敗,請稍後嘗試", | ||||
| "mainPage": "主頁", | "mainPage": "主頁", | ||||
| "publicNotice": "公共啟事", | |||||
| "myPublicNotice": "我的公共啟事", | "myPublicNotice": "我的公共啟事", | ||||
| "publicNoticePayment": "公共啟事:付款", | "publicNoticePayment": "公共啟事:付款", | ||||
| "publicNoticePaymentFail": "公共啟事:付款失敗", | "publicNoticePaymentFail": "公共啟事:付款失敗", | ||||
| @@ -265,6 +266,7 @@ | |||||
| "contactPerson": "聯絡人", | "contactPerson": "聯絡人", | ||||
| "requireContactPerson": "請輸入聯絡人", | "requireContactPerson": "請輸入聯絡人", | ||||
| "search": "搜尋", | "search": "搜尋", | ||||
| "searchForm": "搜尋表格", | |||||
| "cancel": "取消", | "cancel": "取消", | ||||
| "extraMark": "備註", | "extraMark": "備註", | ||||
| "totalAmount": "總額", | "totalAmount": "總額", | ||||
| @@ -371,6 +373,7 @@ | |||||
| "nameChi": "姓名(中文)", | "nameChi": "姓名(中文)", | ||||
| "expiryDate": "過期日期", | "expiryDate": "過期日期", | ||||
| "create": "創建", | "create": "創建", | ||||
| "confirmTo": "確定", | |||||
| "Dashboard": "儀表板", | "Dashboard": "儀表板", | ||||
| "event": "活動" | "event": "活動" | ||||