| @@ -60,10 +60,9 @@ export default function SeaarchDemandNote({ recordList }) { | |||||
| const columns = [ | const columns = [ | ||||
| { | { | ||||
| field: 'actions', | |||||
| field: 'appNo', | |||||
| headerName: 'App No.', | headerName: 'App No.', | ||||
| width: 150, | width: 150, | ||||
| cellClassName: 'actions', | |||||
| renderCell: (params) => { | renderCell: (params) => { | ||||
| return <Button onClick={handleEditClick(params)}><u>{params.row.appNo}</u></Button>; | return <Button onClick={handleEditClick(params)}><u>{params.row.appNo}</u></Button>; | ||||
| }, | }, | ||||
| @@ -140,6 +139,15 @@ export default function SeaarchDemandNote({ recordList }) { | |||||
| return <Button onClick={onDownloadClick(params)}><u>{params.row.filename}</u></Button>; | return <Button onClick={onDownloadClick(params)}><u>{params.row.filename}</u></Button>; | ||||
| }, | }, | ||||
| }, | }, | ||||
| { | |||||
| id: 'status', | |||||
| field: 'status', | |||||
| headerName: '', | |||||
| width: 150, | |||||
| renderCell: (params) => { | |||||
| return <Button onClick={onDownloadClick(params)}><u>View Details</u></Button>; | |||||
| }, | |||||
| }, | |||||
| ]; | ]; | ||||
| @@ -51,6 +51,13 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue | |||||
| applySearch(temp); | applySearch(temp); | ||||
| }; | }; | ||||
| const findReadyToSend=()=>{ | |||||
| const temp = { | |||||
| status: 'pending', | |||||
| }; | |||||
| applySearch(temp); | |||||
| } | |||||
| React.useEffect(() => { | React.useEffect(() => { | ||||
| if (orgComboData && orgComboData.length > 0) { | if (orgComboData && orgComboData.length > 0) { | ||||
| setOrgCombo(orgComboData); | setOrgCombo(orgComboData); | ||||
| @@ -262,7 +269,7 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue | |||||
| <Button | <Button | ||||
| size="large" | size="large" | ||||
| variant="contained" | variant="contained" | ||||
| onClick={resetForm} | |||||
| onClick={findReadyToSend} | |||||
| sx={{ | sx={{ | ||||
| textTransform: 'capitalize', | textTransform: 'capitalize', | ||||
| alignItems: 'end' | alignItems: 'end' | ||||
| @@ -55,7 +55,7 @@ const UserSearchPage_Individual = () => { | |||||
| function getUserList() { | function getUserList() { | ||||
| HttpUtils.get({ | HttpUtils.get({ | ||||
| url: UrlUtils.GET_PUBLIC_NOTICE_LIST, | |||||
| url: UrlUtils.DEMAND_NOTE_LIST, | |||||
| params: searchCriteria, | params: searchCriteria, | ||||
| onSuccess: function (responseData) { | onSuccess: function (responseData) { | ||||
| setRecord(responseData); | setRecord(responseData); | ||||
| @@ -96,6 +96,7 @@ export const PAYMENT_APP_LIST = apiPath+'/payment/applist';//POST | |||||
| export const DEMAND_NOTE_PREVIEW = apiPath+'/demandNote/preview';//GET | export const DEMAND_NOTE_PREVIEW = apiPath+'/demandNote/preview';//GET | ||||
| export const DEMAND_NOTE_CREATE = apiPath+'/demandNote/create';//POST | export const DEMAND_NOTE_CREATE = apiPath+'/demandNote/create';//POST | ||||
| export const DEMAND_NOTE_LIST = apiPath+'/demandNote/list';//GET | |||||