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.
 
 

138 line
5.9 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="h4" sx={{ textAlign: "left", ml: 4, mr: 4, mt: 4, borderBottom: "1px solid black" }}>
  43. <FormattedMessage id="proofPaymentHeader_office" />
  44. </Typography>
  45. <Typography variant="h5" 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. }} />
  72. <br />
  73. <div dangerouslySetInnerHTML={{
  74. __html: intl.formatMessage(
  75. {
  76. id: 'proofPaymentBody_office4'
  77. }
  78. )
  79. }} />
  80. <br />
  81. <div dangerouslySetInnerHTML={{
  82. __html: intl.formatMessage(
  83. {
  84. id: 'proofPaymentBody_office5'
  85. },
  86. {
  87. paymentDeadline: DateUtils.dateFormat(record?.closingDate, intl.formatMessage({id: "dateStrFormat"})),
  88. }
  89. )
  90. }} />
  91. <br />
  92. <div dangerouslySetInnerHTML={{
  93. __html: intl.formatMessage(
  94. {
  95. id: 'proofPaymentBody_office6'
  96. }
  97. )
  98. }} />
  99. </Typography>
  100. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  101. <Button
  102. component="span"
  103. variant="contained"
  104. size="large"
  105. sx={{ m: 4 }}
  106. onClick={() => {
  107. navigate("/publicNotice");
  108. }}
  109. >
  110. <FormattedMessage id="backToNoticePage" />
  111. </Button>
  112. </Typography>
  113. </Grid>
  114. </center>
  115. </Grid>
  116. </Grid>
  117. {/*row 2*/}
  118. </Grid >
  119. )
  120. );
  121. };
  122. export default Index;