You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

121 regels
5.0 KiB

  1. // material-ui
  2. import {
  3. Grid,
  4. Typography,
  5. Stack,
  6. Button,
  7. } from '@mui/material';
  8. import { useNavigate } from "react-router-dom";
  9. import * as DateUtils from "utils/DateUtils";
  10. import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
  11. import { FormattedMessage, useIntl } from "react-intl";
  12. const BackgroundHead = {
  13. backgroundImage: `url(${titleBackgroundImg})`,
  14. width: '100%',
  15. height: '100%',
  16. backgroundSize: 'contain',
  17. backgroundRepeat: 'no-repeat',
  18. backgroundColor: '#0C489E',
  19. backgroundPosition: 'right'
  20. }
  21. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  22. const Index = ({ record }) => {
  23. const navigate = useNavigate()
  24. const intl = useIntl();
  25. return (
  26. (
  27. <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" >
  28. <Grid item xs={12} width="100%">
  29. <div style={BackgroundHead} width="100%" >
  30. <Stack direction="row" height='70px' >
  31. <Typography ml={15} color='#FFF' variant="h4" sx={{ display: { xs: 'none', sm: 'none', md: 'block' }, pt: 2 }} >
  32. <FormattedMessage id="proofRecord" />
  33. </Typography>
  34. </Stack>
  35. </div>
  36. </Grid>
  37. {/*row 1*/}
  38. <Grid item xs={12} md={12} >
  39. <Grid container justifyContent="flex-start" alignItems="center" >
  40. <center>
  41. <Grid item xs={12} md={8} >
  42. <Typography variant="h2" sx={{ textAlign: "left", ml: 4, mr: 4, mt: 4, borderBottom: "1px solid black" }}>
  43. <FormattedMessage id="proofPaymentHeader_office" />
  44. </Typography>
  45. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "left" }}>
  46. <div dangerouslySetInnerHTML={{
  47. __html: intl.formatMessage(
  48. {
  49. id: 'proofPaymentBody_office'
  50. },
  51. {
  52. appNo: record?.appNo,
  53. }
  54. )
  55. }} />
  56. <br />
  57. <div dangerouslySetInnerHTML={{
  58. __html: intl.formatMessage(
  59. {
  60. id: 'proofPaymentBody_office2'
  61. },
  62. )
  63. }} />
  64. <br />
  65. <div dangerouslySetInnerHTML={{
  66. __html: intl.formatMessage(
  67. {
  68. id: 'proofPaymentBody_office3'
  69. },
  70. {
  71. paymentDeadline: DateUtils.dateStr(record?.closingDate),
  72. }
  73. )
  74. }} />
  75. <br />
  76. <div dangerouslySetInnerHTML={{
  77. __html: intl.formatMessage(
  78. {
  79. id: 'proofPaymentBody_office4'
  80. }
  81. )
  82. }} />
  83. </Typography>
  84. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  85. <Button
  86. component="span"
  87. variant="contained"
  88. size="large"
  89. sx={{ m: 4 }}
  90. onClick={() => {
  91. navigate("/publicNotice");
  92. }}
  93. >
  94. </Button>
  95. </Typography>
  96. </Grid>
  97. </center>
  98. </Grid>
  99. </Grid>
  100. {/*row 2*/}
  101. </Grid >
  102. )
  103. );
  104. };
  105. export default Index;