| @@ -68,8 +68,9 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| flex: 1, | flex: 1, | ||||
| 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 : ""; | |||||
| /* | |||||
| let phone = JSON.parse(params.row.contactTelNo); | let phone = JSON.parse(params.row.contactTelNo); | ||||
| let faxNo = JSON.parse(params.row.contactFaxNo); | let faxNo = JSON.parse(params.row.contactFaxNo); | ||||
| @@ -83,10 +84,10 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| contact = contact + ", " | contact = contact + ", " | ||||
| contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | ||||
| } | } | ||||
| */ | |||||
| return (<> | return (<> | ||||
| {params?.value + company}<br /> | |||||
| {contact} | |||||
| {params?.value}<br />{company} | |||||
| </>); | </>); | ||||
| } | } | ||||
| }, | }, | ||||
| @@ -165,8 +165,9 @@ export default function SearchDemandNote({ recordList, reloadFun }) { | |||||
| width: 300, | width: 300, | ||||
| 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 : ""; | |||||
| /* | |||||
| let phone = JSON.parse(params.row.contactTelNo); | let phone = JSON.parse(params.row.contactTelNo); | ||||
| let faxNo = JSON.parse(params.row.contactFaxNo); | let faxNo = JSON.parse(params.row.contactFaxNo); | ||||
| @@ -180,10 +181,10 @@ export default function SearchDemandNote({ recordList, reloadFun }) { | |||||
| contact = contact + ", " | contact = contact + ", " | ||||
| contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | ||||
| } | } | ||||
| */ | |||||
| return (<> | return (<> | ||||
| {params?.value + company}<br /> | |||||
| {contact} | |||||
| {params?.value}<br />{company} | |||||
| </>); | </>); | ||||
| } | } | ||||
| }, | }, | ||||
| @@ -78,12 +78,13 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| { | { | ||||
| id: 'contactPerson', | id: 'contactPerson', | ||||
| field: 'contactPerson', | field: 'contactPerson', | ||||
| headerName: 'Contact Person', | |||||
| headerName: 'Client', | |||||
| flex: 1, | flex: 1, | ||||
| 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 : ""; | |||||
| /* | |||||
| let phone = JSON.parse(params.row.contactTelNo); | let phone = JSON.parse(params.row.contactTelNo); | ||||
| let faxNo = JSON.parse(params.row.contactFaxNo); | let faxNo = JSON.parse(params.row.contactFaxNo); | ||||
| @@ -97,10 +98,10 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| contact = contact + ", " | contact = contact + ", " | ||||
| contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | ||||
| } | } | ||||
| */ | |||||
| return (<> | return (<> | ||||
| {params?.value + company}<br /> | |||||
| {contact} | |||||
| {params?.value}<br />{company} | |||||
| </>); | </>); | ||||
| } | } | ||||
| }, | }, | ||||
| @@ -215,7 +215,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
| fullWidth | fullWidth | ||||
| {...register("contact")} | {...register("contact")} | ||||
| id="contact" | id="contact" | ||||
| label="Contact Person" | |||||
| label="Client" | |||||
| defaultValue={searchCriteria.contact} | defaultValue={searchCriteria.contact} | ||||
| InputLabelProps={{ | InputLabelProps={{ | ||||
| shrink: true | shrink: true | ||||
| @@ -59,8 +59,9 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| 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; | ||||
| company = company != null ? " (" + (company) + ")" : ""; | |||||
| company = company != null ? company : ""; | |||||
| /* | |||||
| let phone = JSON.parse(params.row.contactTelNo); | let phone = JSON.parse(params.row.contactTelNo); | ||||
| let faxNo = JSON.parse(params.row.contactFaxNo); | let faxNo = JSON.parse(params.row.contactFaxNo); | ||||
| @@ -74,10 +75,10 @@ export default function SearchPublicNoticeTable({ recordList }) { | |||||
| contact = contact + ", " | contact = contact + ", " | ||||
| contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | contact = contact + "Fax No.:" + faxNo?.countryCode + " " + faxNo?.faxNumber | ||||
| } | } | ||||
| */ | |||||
| return (<> | return (<> | ||||
| {params?.value + company}<br /> | |||||
| {contact} | |||||
| {params?.value}<br />{company} | |||||
| </>); | </>); | ||||
| } | } | ||||
| }, | }, | ||||
| @@ -162,7 +162,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
| fullWidth | fullWidth | ||||
| {...register("contact")} | {...register("contact")} | ||||
| id="contact" | id="contact" | ||||
| label={"Contact Person"} | |||||
| label={"Client"} | |||||
| defaultValue={searchCriteria.contact} | defaultValue={searchCriteria.contact} | ||||
| InputLabelProps={{ | InputLabelProps={{ | ||||
| shrink: true | shrink: true | ||||
| @@ -61,7 +61,7 @@ export function getStatusByTextEng(status, creditor) { | |||||
| case "resubmit": | case "resubmit": | ||||
| return getStatusTag({ color: "#757373", text: "Re-submit Required" }) | return getStatusTag({ color: "#757373", text: "Re-submit Required" }) | ||||
| case "cancelled": | case "cancelled": | ||||
| return getStatusTag({ color: "#f5a83d", text: "Cancelled" }) | |||||
| return getStatusTag({ color: "#8a8784", text: "Cancelled" }) | |||||
| case "withdrawn": | case "withdrawn": | ||||
| return getStatusTag({ color: "#8a8784", text: "Withdrawn" }) | return getStatusTag({ color: "#8a8784", text: "Withdrawn" }) | ||||
| default: | default: | ||||