@@ -40,6 +40,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'appNo', | field: 'appNo', | ||||
headerName: 'App No.', | headerName: 'App No.', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
return clickableLink('/application/' + params.row.id, params.row.appNo) | return clickableLink('/application/' + params.row.id, params.row.appNo) | ||||
}, | }, | ||||
@@ -48,6 +49,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'status', | field: 'status', | ||||
headerName: 'Status', | headerName: 'Status', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
return PublicNoteStatusUtils.getStatusByTextEng(params.row.status, params.row.creditor); | return PublicNoteStatusUtils.getStatusByTextEng(params.row.status, params.row.creditor); | ||||
} | } | ||||
@@ -56,6 +58,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'date', | field: 'date', | ||||
headerName: 'Submit Date', | headerName: 'Submit Date', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
return DateUtils.datetimeStr(params.row.created); | return DateUtils.datetimeStr(params.row.created); | ||||
} | } | ||||
@@ -65,6 +68,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'contactPerson', | field: 'contactPerson', | ||||
headerName: 'Contact Person', | headerName: 'Contact Person', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
let company = params.row.enCompanyName != null?params.row.enCompanyName: params.row.chCompanyName; | let company = params.row.enCompanyName != null?params.row.enCompanyName: params.row.chCompanyName; | ||||
company = company != null ? company : ""; | company = company != null ? company : ""; | ||||
@@ -95,6 +99,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'groupNo', | field: 'groupNo', | ||||
headerName: 'Gazette Group', | headerName: 'Gazette Group', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return (params?.value) ? (params?.value) : ""; | return (params?.value) ? (params?.value) : ""; | ||||
} | } | ||||
@@ -104,6 +109,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'fee', | field: 'fee', | ||||
headerName: 'Amount($)', | headerName: 'Amount($)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return FormatUtils.currencyFormat(params?.value); | return FormatUtils.currencyFormat(params?.value); | ||||
} | } | ||||
@@ -14,8 +14,8 @@ import * as UrlUtils from "utils/ApiPathConst"; | |||||
import * as HttpUtils from "utils/HttpUtils"; | import * as HttpUtils from "utils/HttpUtils"; | ||||
import { useNavigate } from "react-router-dom"; | import { useNavigate } from "react-router-dom"; | ||||
import { notifyDownloadSuccess } from 'utils/CommonFunction'; | import { notifyDownloadSuccess } from 'utils/CommonFunction'; | ||||
import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
import {ThemeProvider} from "@emotion/react"; | |||||
import { PNSPS_BUTTON_THEME } from "../../../themes/buttonConst"; | |||||
import { ThemeProvider } from "@emotion/react"; | |||||
import { useIntl } from "react-intl"; | import { useIntl } from "react-intl"; | ||||
@@ -28,7 +28,7 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
const [failText, setFailText] = React.useState(""); | const [failText, setFailText] = React.useState(""); | ||||
const [confirmPopUp, setConfirmPopUp] = React.useState(false); | const [confirmPopUp, setConfirmPopUp] = React.useState(false); | ||||
const [dueDate, setDueDate] = React.useState(DateUtils.dateValue(DateUtils.dateValue((new Date().setDate(new Date().getDate() +1))))); | |||||
const [dueDate, setDueDate] = React.useState(DateUtils.dateValue(DateUtils.dateValue((new Date().setDate(new Date().getDate() + 1))))); | |||||
const [isSuccessPopUp, setIsSuccessPopUp] = React.useState(false); | const [isSuccessPopUp, setIsSuccessPopUp] = React.useState(false); | ||||
const [resultCount, setResultCount] = React.useState(0); | const [resultCount, setResultCount] = React.useState(0); | ||||
@@ -91,16 +91,16 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
setIsFailPopUp(true); | setIsFailPopUp(true); | ||||
return; | return; | ||||
} else { | } else { | ||||
setDueDate(DateUtils.dateValue((new Date().setDate(new Date().getDate() +1)))); | |||||
setDueDate(DateUtils.dateValue((new Date().setDate(new Date().getDate() + 1)))); | |||||
setConfirmPopUp(true); | setConfirmPopUp(true); | ||||
} | } | ||||
}; | }; | ||||
const doDnCreate=()=>{ | |||||
const doDnCreate = () => { | |||||
setConfirmPopUp(false); | setConfirmPopUp(false); | ||||
HttpUtils.post({ | HttpUtils.post({ | ||||
url: UrlUtils.DEMAND_NOTE_CREATE + "/" + issueSelected.id, | url: UrlUtils.DEMAND_NOTE_CREATE + "/" + issueSelected.id, | ||||
params:{ | |||||
params: { | |||||
dueDate: dueDate | dueDate: dueDate | ||||
}, | }, | ||||
onSuccess: function (responseData) { | onSuccess: function (responseData) { | ||||
@@ -113,7 +113,7 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
const fileDownload = () => { | const fileDownload = () => { | ||||
HttpUtils.fileDownload({ | HttpUtils.fileDownload({ | ||||
method:'post', | |||||
method: 'post', | |||||
url: UrlUtils.DEMAND_NOTE_EXPORT, | url: UrlUtils.DEMAND_NOTE_EXPORT, | ||||
params: { | params: { | ||||
"dnIdList": dnIdList | "dnIdList": dnIdList | ||||
@@ -126,7 +126,7 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
const onNavigate = () => { | const onNavigate = () => { | ||||
setIsSuccessPopUp(false); | setIsSuccessPopUp(false); | ||||
if(resultCount > 0) | |||||
if (resultCount > 0) | |||||
navigate('/paymentPage/demandNote'); | navigate('/paymentPage/demandNote'); | ||||
}; | }; | ||||
@@ -148,17 +148,16 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
<form> | <form> | ||||
{/*row 1*/} | {/*row 1*/} | ||||
<Grid container sx={{ backgroundColor: '#ffffff', ml: 2, mt: 1}} width="98%"> | |||||
<Grid container sx={{ backgroundColor: '#ffffff', pt:4, pl:4, pb:4 }} width="98%" spacing={3} > | |||||
{/*row 1*/} | {/*row 1*/} | ||||
<Grid item justifyContent="space-between" alignItems="center" sx={{mt:1,ml:3,mb:2.5}}> | |||||
<Grid item justifyContent="space-between" alignItems="center" > | |||||
<Typography variant="h5" > | <Typography variant="h5" > | ||||
Please Select Gazette Issue : | Please Select Gazette Issue : | ||||
</Typography> | </Typography> | ||||
</Grid> | </Grid> | ||||
{/*row 2*/} | {/*row 2*/} | ||||
<Grid container display="flex" alignItems={"center"} sx={{mb:3}}> | |||||
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3 }}> | |||||
<Grid item xs={9} s={6} md={5} lg={3}> | |||||
<Autocomplete | <Autocomplete | ||||
disablePortal | disablePortal | ||||
size="small" | size="small" | ||||
@@ -182,39 +181,31 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
)} | )} | ||||
/> | /> | ||||
</Grid> | </Grid> | ||||
{/* <Grid item sx={{ ml: 3, mr: 3}} > | |||||
<Button | |||||
size="large" | |||||
variant="contained" | |||||
onClick={onPreView} | |||||
sx={{ | |||||
textTransform: 'capitalize', | |||||
alignItems: 'end' | |||||
}}> | |||||
<Typography variant="h5">Preview</Typography> | |||||
</Button> | |||||
</Grid> */} | |||||
<Grid item sx={{ ml: 3, mr: 3 }} > | |||||
<Grid item > | |||||
<ThemeProvider theme={PNSPS_BUTTON_THEME}> | <ThemeProvider theme={PNSPS_BUTTON_THEME}> | ||||
<Button | |||||
variant="contained" | |||||
onClick={onSubmit} | |||||
color="success" | |||||
> | |||||
Create | |||||
</Button> | |||||
<Button | |||||
variant="contained" | |||||
onClick={onSubmit} | |||||
color="success" | |||||
minWidth={150} | |||||
> | |||||
Create | |||||
</Button> | |||||
</ThemeProvider> | </ThemeProvider> | ||||
</Grid> | </Grid> | ||||
<Grid item sx={{ ml: 3, mr: 3 }} > | |||||
<Typography variant="h5">Pending Payment: {paymentCount}</Typography> | |||||
</Grid> | |||||
<Grid item > | |||||
<Grid container display="flex" alignItems={"center"} spacing={3}> | |||||
<Grid item > | |||||
<Typography variant="h5">Pending Payment: {paymentCount}</Typography> | |||||
</Grid> | |||||
<Grid item sx={{ ml: 3, mr: 3 }} > | |||||
<Typography variant="h5">Pending Publish: {publishCount}</Typography> | |||||
<Grid item > | |||||
<Typography variant="h5">Pending Publish: {publishCount}</Typography> | |||||
</Grid> | |||||
</Grid> | |||||
</Grid> | </Grid> | ||||
</Grid> | </Grid> | ||||
</Grid> | |||||
</form> | </form> | ||||
<div> | <div> | ||||
<Dialog | <Dialog | ||||
@@ -254,22 +245,22 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
<Grid container alignItems={"center"}> | <Grid container alignItems={"center"}> | ||||
<Grid item md={3} sx={{ ml: 3, mr: 3, mb: 3 }}> | <Grid item md={3} sx={{ ml: 3, mr: 3, mb: 3 }}> | ||||
<Typography variant="h4" style={{ padding: '16px' }}>Due Date: </Typography> | <Typography variant="h4" style={{ padding: '16px' }}>Due Date: </Typography> | ||||
</Grid> | </Grid> | ||||
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> | <Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> | ||||
<TextField | |||||
fullWidth | |||||
type="date" | |||||
defaultValue={dueDate} | |||||
InputProps={{ inputProps: { min: DateUtils.dateValue(new Date()) } }} | |||||
onChange={(newValue) => { | |||||
setDueDate(newValue.currentTarget.value) | |||||
}} | |||||
InputLabelProps={{ | |||||
shrink: true | |||||
}} | |||||
/> | |||||
</Grid> | |||||
<TextField | |||||
fullWidth | |||||
type="date" | |||||
defaultValue={dueDate} | |||||
InputProps={{ inputProps: { min: DateUtils.dateValue(new Date()) } }} | |||||
onChange={(newValue) => { | |||||
setDueDate(newValue.currentTarget.value) | |||||
}} | |||||
InputLabelProps={{ | |||||
shrink: true | |||||
}} | |||||
/> | |||||
</Grid> | |||||
</Grid> | </Grid> | ||||
</DialogContent> | </DialogContent> | ||||
<DialogActions> | <DialogActions> | ||||
@@ -300,7 +291,7 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
<Grid item md={12}> | <Grid item md={12}> | ||||
<Button | <Button | ||||
size="large" | size="large" | ||||
onClick={()=>fileDownload()} | |||||
onClick={() => fileDownload()} | |||||
sx={{ | sx={{ | ||||
textTransform: 'capitalize', | textTransform: 'capitalize', | ||||
alignItems: 'end' | alignItems: 'end' | ||||
@@ -46,24 +46,28 @@ export default function OrganizationTable({ recordList }) { | |||||
field: 'brNo', | field: 'brNo', | ||||
headerName: 'BR No.', | headerName: 'BR No.', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'enCompanyName', | id: 'enCompanyName', | ||||
field: 'enCompanyName', | field: 'enCompanyName', | ||||
headerName: 'Name (Eng)', | headerName: 'Name (Eng)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
}, | }, | ||||
{ | { | ||||
id: 'chCompanyName', | id: 'chCompanyName', | ||||
field: 'chCompanyName', | field: 'chCompanyName', | ||||
headerName: 'Name (Ch)', | headerName: 'Name (Ch)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'contactTel', | id: 'contactTel', | ||||
field: 'contactTel', | field: 'contactTel', | ||||
headerName: 'Phone', | headerName: 'Phone', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
let phone = JSON.parse(params.value); | let phone = JSON.parse(params.value); | ||||
let contact = ""; | let contact = ""; | ||||
@@ -78,6 +82,7 @@ export default function OrganizationTable({ recordList }) { | |||||
field: 'brExpiryDate', | field: 'brExpiryDate', | ||||
headerName: 'BR Expiry Date', | headerName: 'BR Expiry Date', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return DateUtils.dateValue(params?.value); | return DateUtils.dateValue(params?.value); | ||||
} | } | ||||
@@ -87,6 +92,7 @@ export default function OrganizationTable({ recordList }) { | |||||
field: 'creditor', | field: 'creditor', | ||||
headerName: 'Credit Client', | headerName: 'Credit Client', | ||||
width: 150, | width: 150, | ||||
minWidth: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return params?.value?"Yes":""; | return params?.value?"Yes":""; | ||||
} | } | ||||
@@ -42,6 +42,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'appNos', | field: 'appNos', | ||||
headerName: 'Application No.', | headerName: 'Application No.', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
let appNo = params.row.appNos; | let appNo = params.row.appNos; | ||||
return <div style={{ margin: 4 }}>{appNo}</div> | return <div style={{ margin: 4 }}>{appNo}</div> | ||||
@@ -51,6 +52,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'actions', | field: 'actions', | ||||
headerName: 'Transaction No.', | headerName: 'Transaction No.', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
cellClassName: 'actions', | cellClassName: 'actions', | ||||
renderCell: (params) => { | renderCell: (params) => { | ||||
return clickableLink('/paymentPage/details/' + params.row.id, params.row.transNo); | return clickableLink('/paymentPage/details/' + params.row.id, params.row.transNo); | ||||
@@ -61,6 +63,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'transDateTime', | field: 'transDateTime', | ||||
headerName: 'Transaction Date', | headerName: 'Transaction Date', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return DateUtils.dateValue(params?.value); | return DateUtils.dateValue(params?.value); | ||||
} | } | ||||
@@ -46,6 +46,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
id: 'actions', | id: 'actions', | ||||
headerName: 'Status', | headerName: 'Status', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 100, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
return ProofStatus.getStatus_Eng(params); | return ProofStatus.getStatus_Eng(params); | ||||
}, | }, | ||||
@@ -55,6 +56,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'created', | field: 'created', | ||||
headerName: 'Proof Issue Date', | headerName: 'Proof Issue Date', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return DateUtils.datetimeStr(params?.value); | return DateUtils.datetimeStr(params?.value); | ||||
} | } | ||||
@@ -64,6 +66,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'replyDate', | field: 'replyDate', | ||||
headerName: 'Confirmed/ Return Date', | headerName: 'Confirmed/ Return Date', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return params?.value ? DateUtils.datetimeStr(params?.value) : ""; | return params?.value ? DateUtils.datetimeStr(params?.value) : ""; | ||||
} | } | ||||
@@ -73,6 +76,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'contactPerson', | field: 'contactPerson', | ||||
headerName: 'Client', | headerName: 'Client', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
renderCell: (params) => { | renderCell: (params) => { | ||||
let company = params.row.enCompanyName != null?params.row.enCompanyName: params.row.chCompanyName; | let company = params.row.enCompanyName != null?params.row.enCompanyName: params.row.chCompanyName; | ||||
company = company != null ? company : ""; | company = company != null ? company : ""; | ||||
@@ -103,6 +107,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'groupTitle', | field: 'groupTitle', | ||||
headerName: 'Gazette Group', | headerName: 'Gazette Group', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return (params?.value) ? (params?.value) : ""; | return (params?.value) ? (params?.value) : ""; | ||||
} | } | ||||
@@ -112,6 +117,7 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
field: 'fee', | field: 'fee', | ||||
headerName: 'Amount ($)', | headerName: 'Amount ($)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : ""; | return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : ""; | ||||
} | } | ||||
@@ -374,7 +374,7 @@ const ApplicationDetailCard = ( | |||||
<Grid item xs={12} md={8} lg={8}> | <Grid item xs={12} md={8} lg={8}> | ||||
<Stack direction="row"> | <Stack direction="row"> | ||||
<FormControl variant="outlined" sx={{ width: '25%' }} disabled > | |||||
<FormControl variant="outlined" sx={{ width: '25%', minWidth: 100, }} disabled > | |||||
<OutlinedInput | <OutlinedInput | ||||
size="small" | size="small" | ||||
{...register("contactTelNo.countryCode", | {...register("contactTelNo.countryCode", | ||||
@@ -459,7 +459,7 @@ const ApplicationDetailCard = ( | |||||
<Grid item xs={12} md={8} lg={8}> | <Grid item xs={12} md={8} lg={8}> | ||||
<Stack direction="row"> | <Stack direction="row"> | ||||
<FormControl variant="outlined" sx={{ width: '25%' }} disabled> | |||||
<FormControl variant="outlined" sx={{ width: '25%', minWidth: 100, }} disabled> | |||||
<OutlinedInput | <OutlinedInput | ||||
size="small" | size="small" | ||||
{...register("contactFaxNo.countryCode", | {...register("contactFaxNo.countryCode", | ||||
@@ -61,6 +61,7 @@ export default function SearchPublicNoticeTable({ recordList, reloadFunction }) | |||||
field: 'created', | field: 'created', | ||||
headerName: 'Submit Date', | headerName: 'Submit Date', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return DateUtils.datetimeStr(params?.value); | return DateUtils.datetimeStr(params?.value); | ||||
} | } | ||||
@@ -69,6 +70,7 @@ export default function SearchPublicNoticeTable({ recordList, reloadFunction }) | |||||
id: 'contactPerson', | id: 'contactPerson', | ||||
field: 'contactPerson', | field: 'contactPerson', | ||||
headerName: 'Client', | headerName: 'Client', | ||||
minWidth: 250, | |||||
flex: 2, | flex: 2, | ||||
renderCell: (params) => { | renderCell: (params) => { | ||||
let company = params.row.enCompanyName != null ? params.row.enCompanyName : params.row.chCompanyName; | let company = params.row.enCompanyName != null ? params.row.enCompanyName : params.row.chCompanyName; | ||||
@@ -100,6 +102,7 @@ export default function SearchPublicNoticeTable({ recordList, reloadFunction }) | |||||
field: 'groupNo', | field: 'groupNo', | ||||
headerName: 'Gazette Code', | headerName: 'Gazette Code', | ||||
flex: 0.5, | flex: 0.5, | ||||
minWidth: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return (params?.value) ? (params?.value) : ""; | return (params?.value) ? (params?.value) : ""; | ||||
} | } | ||||
@@ -109,6 +112,7 @@ export default function SearchPublicNoticeTable({ recordList, reloadFunction }) | |||||
field: 'issueId', | field: 'issueId', | ||||
headerName: 'Gazette Issue No.', | headerName: 'Gazette Issue No.', | ||||
flex: 1.5, | flex: 1.5, | ||||
minWidth: 350, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return params.row.issueYear | return params.row.issueYear | ||||
+ " Vol. " + FormatUtils.zeroPad(params.row.issueVolume, 3) | + " Vol. " + FormatUtils.zeroPad(params.row.issueVolume, 3) | ||||
@@ -47,24 +47,28 @@ export default function UserTable_Individual({ recordList }) { | |||||
field: 'username', | field: 'username', | ||||
headerName: 'User Name', | headerName: 'User Name', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'enName', | id: 'enName', | ||||
field: 'enName', | field: 'enName', | ||||
headerName: 'Name (Eng)', | headerName: 'Name (Eng)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'chName', | id: 'chName', | ||||
field: 'chName', | field: 'chName', | ||||
headerName: 'Name (Ch)', | headerName: 'Name (Ch)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'mobileNumber', | id: 'mobileNumber', | ||||
field: 'mobileNumber', | field: 'mobileNumber', | ||||
headerName: 'Phone', | headerName: 'Phone', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
if (params.value) { | if (params.value) { | ||||
let tel = JSON.parse(params.value); | let tel = JSON.parse(params.value); | ||||
@@ -80,12 +84,14 @@ export default function UserTable_Individual({ recordList }) { | |||||
field: 'emailAddress', | field: 'emailAddress', | ||||
headerName: 'Email', | headerName: 'Email', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'lastLogin', | id: 'lastLogin', | ||||
field: 'lastLogin', | field: 'lastLogin', | ||||
headerName: 'Last Login', | headerName: 'Last Login', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
if (params.value) { | if (params.value) { | ||||
return DateUtils.datetimeStr(params.value); | return DateUtils.datetimeStr(params.value); | ||||
@@ -98,6 +104,7 @@ export default function UserTable_Individual({ recordList }) { | |||||
field: 'locked', | field: 'locked', | ||||
headerName: 'Status', | headerName: 'Status', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 100, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
if (params.value) { | if (params.value) { | ||||
return "Locked"; | return "Locked"; | ||||
@@ -51,36 +51,42 @@ export default function UserTable_Organization({recordList}) { | |||||
field: 'username', | field: 'username', | ||||
headerName: 'Username', | headerName: 'Username', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'contactPerson', | id: 'contactPerson', | ||||
field: 'contactPerson', | field: 'contactPerson', | ||||
headerName: 'Name', | headerName: 'Name', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'enCompanyName', | id: 'enCompanyName', | ||||
field: 'enCompanyName', | field: 'enCompanyName', | ||||
headerName: 'Company (Eng)', | headerName: 'Company (Eng)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
}, | }, | ||||
{ | { | ||||
id: 'chCompanyName', | id: 'chCompanyName', | ||||
field: 'chCompanyName', | field: 'chCompanyName', | ||||
headerName: 'Company (Ch)', | headerName: 'Company (Ch)', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'brNo', | id: 'brNo', | ||||
field: 'brNo', | field: 'brNo', | ||||
headerName: 'BR No.', | headerName: 'BR No.', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 150, | |||||
}, | }, | ||||
{ | { | ||||
id: 'lastLogin', | id: 'lastLogin', | ||||
field: 'lastLogin', | field: 'lastLogin', | ||||
headerName: 'Last Login', | headerName: 'Last Login', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 200, | |||||
valueGetter:(params)=>{ | valueGetter:(params)=>{ | ||||
if(params.value){ | if(params.value){ | ||||
return DateUtils.datetimeStr(params.value); | return DateUtils.datetimeStr(params.value); | ||||
@@ -93,6 +99,7 @@ export default function UserTable_Organization({recordList}) { | |||||
field: 'locked', | field: 'locked', | ||||
headerName: 'Status', | headerName: 'Status', | ||||
flex: 1, | flex: 1, | ||||
minWidth: 100, | |||||
valueGetter:(params)=>{ | valueGetter:(params)=>{ | ||||
if(params.value){ | if(params.value){ | ||||
return "Locked"; | return "Locked"; | ||||