Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

166 righe
7.1 KiB

  1. // material-ui
  2. import {
  3. Grid,
  4. Typography,
  5. Stack,
  6. Button,
  7. } from '@mui/material';
  8. import {
  9. checkIsOnlyOnlinePayment,
  10. } from "utils/Utils";
  11. import { useNavigate } from "react-router-dom";
  12. import * as DateUtils from "utils/DateUtils";
  13. import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
  14. import { FormattedMessage, useIntl } from "react-intl";
  15. const BackgroundHead = {
  16. backgroundImage: `url(${titleBackgroundImg})`,
  17. width: '100%',
  18. height: '100%',
  19. backgroundSize: 'contain',
  20. backgroundRepeat: 'no-repeat',
  21. backgroundColor: '#0C489E',
  22. backgroundPosition: 'right'
  23. }
  24. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  25. const Index = ({ record }) => {
  26. const navigate = useNavigate()
  27. const intl = useIntl();
  28. const isAfter = checkIsOnlyOnlinePayment();
  29. return (
  30. (
  31. <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" >
  32. <Grid item xs={12} width="100%">
  33. <div style={BackgroundHead} width="100%" >
  34. <Stack direction="row" height='70px' >
  35. <Typography ml={15} color='#FFF' variant="h4" sx={{ display: { xs: 'none', sm: 'none', md: 'block' }, pt: 2 }} >
  36. <FormattedMessage id="proofRecord" />
  37. </Typography>
  38. </Stack>
  39. </div>
  40. </Grid>
  41. {/*row 1*/}
  42. <Grid item xs={12} md={12} >
  43. <Grid container justifyContent="flex-start" alignItems="center" >
  44. <center>
  45. <Grid item xs={12} md={8} >
  46. {isAfter ? (
  47. <Typography
  48. variant="h4"
  49. sx={{ textAlign: "left", ml: 8, mr: 4, mt: 4,
  50. textDecoration: "underline",
  51. textDecorationThickness: "2px",
  52. textUnderlineOffset: "4px" }}
  53. >
  54. <FormattedMessage id="proofPaymentHeader_office2" />
  55. </Typography>
  56. ) : (
  57. <Typography
  58. variant="h4"
  59. sx={{
  60. textAlign: "left",
  61. ml: 4,
  62. mr: 4,
  63. mt: 4,
  64. textDecoration: "underline",
  65. textDecorationThickness: "2px",
  66. textUnderlineOffset: "4px"
  67. }}
  68. >
  69. <FormattedMessage id="proofPaymentHeader_office" />
  70. </Typography>
  71. )}
  72. <Typography variant="h5" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "left" }}>
  73. <div dangerouslySetInnerHTML={{
  74. __html: intl.formatMessage(
  75. {
  76. id: 'proofPaymentBody_office'
  77. },
  78. {
  79. appNo: record?.appNo,
  80. }
  81. )
  82. }} />
  83. <br />
  84. <div dangerouslySetInnerHTML={{
  85. __html: intl.formatMessage(
  86. {
  87. id: 'proofPaymentBody_office2'
  88. },
  89. )
  90. }} />
  91. <br />
  92. <div dangerouslySetInnerHTML={{
  93. __html: intl.formatMessage(
  94. {
  95. id: 'proofPaymentBody_office3'
  96. }
  97. )
  98. }} />
  99. <br />
  100. <div dangerouslySetInnerHTML={{
  101. __html: intl.formatMessage(
  102. {
  103. id: 'proofPaymentBody_office4'
  104. }
  105. )
  106. }} />
  107. <br />
  108. <div dangerouslySetInnerHTML={{
  109. __html: intl.formatMessage(
  110. {
  111. id: 'proofPaymentBody_office5'
  112. },
  113. {
  114. paymentDeadline: DateUtils.dateFormat(record?.closingDate, intl.formatMessage({id: "dateStrFormat"})),
  115. }
  116. )
  117. }} />
  118. <br />
  119. <div dangerouslySetInnerHTML={{
  120. __html: intl.formatMessage(
  121. {
  122. id: 'proofPaymentBody_office6'
  123. }
  124. )
  125. }} />
  126. </Typography>
  127. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  128. <Button
  129. component="span"
  130. variant="contained"
  131. size="large"
  132. sx={{ m: 4 }}
  133. onClick={() => {
  134. navigate("/publicNotice");
  135. }}
  136. >
  137. <FormattedMessage id="backToNoticePage" />
  138. </Button>
  139. </Typography>
  140. </Grid>
  141. </center>
  142. </Grid>
  143. </Grid>
  144. {/*row 2*/}
  145. </Grid >
  146. )
  147. );
  148. };
  149. export default Index;