|
@@ -458,6 +458,14 @@ const columns2 = [ |
|
|
fetchProjectTableData(params.row.teamId,params.row.cid) |
|
|
fetchProjectTableData(params.row.teamId,params.row.cid) |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleExportByClient = () => { |
|
|
|
|
|
console.log(clientFinancialRows) |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleExportByProject = () => { |
|
|
|
|
|
console.log(projectFinancialRows) |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Grid item sm> |
|
|
<Grid item sm> |
|
|
<Card> |
|
|
<Card> |
|
@@ -471,14 +479,32 @@ const columns2 = [ |
|
|
</div> |
|
|
</div> |
|
|
</Card> |
|
|
</Card> |
|
|
<Card className="mt-5"> |
|
|
<Card className="mt-5"> |
|
|
<CardHeader className="text-slate-500" title="Financial Status (by Client)"/> |
|
|
|
|
|
|
|
|
<div style={{display:"inline-block"}}> |
|
|
|
|
|
<CardHeader className="text-slate-500" title="Financial Status (by Client)"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style={{display:"inline-block"}}> |
|
|
|
|
|
{clientFinancialRows.length > 0 && ( |
|
|
|
|
|
<button onClick={handleExportByClient} className="hover:cursor-pointer hover:bg-violet-50 text-base bg-transparent border-violet-500 text-violet-500 border-solid rounded-md w-36"> |
|
|
|
|
|
Export Excel |
|
|
|
|
|
</button> |
|
|
|
|
|
)} |
|
|
|
|
|
</div> |
|
|
<div style={{display:"inline-block",width:"99%",marginLeft:10}}> |
|
|
<div style={{display:"inline-block",width:"99%",marginLeft:10}}> |
|
|
{/* <CustomDatagrid rows={clientFinancialRows} columns={columns} columnWidth={200} dataGridHeight={300} checkboxSelection={true} onRowSelectionModelChange={handleSelectionChange} selectionModel={selectionModel}/> */} |
|
|
{/* <CustomDatagrid rows={clientFinancialRows} columns={columns} columnWidth={200} dataGridHeight={300} checkboxSelection={true} onRowSelectionModelChange={handleSelectionChange} selectionModel={selectionModel}/> */} |
|
|
<CustomDatagrid onRowClick={handleRowClick} rows={clientFinancialRows} columns={columns} columnWidth={200} dataGridHeight={300}/> |
|
|
<CustomDatagrid onRowClick={handleRowClick} rows={clientFinancialRows} columns={columns} columnWidth={200} dataGridHeight={300}/> |
|
|
</div> |
|
|
</div> |
|
|
</Card> |
|
|
</Card> |
|
|
<Card className="mt-5"> |
|
|
<Card className="mt-5"> |
|
|
<CardHeader className="text-slate-500" title="Financial Status (by Project)"/> |
|
|
|
|
|
|
|
|
<div style={{display:"inline-block"}}> |
|
|
|
|
|
<CardHeader className="text-slate-500" title="Financial Status (by Project)"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style={{display:"inline-block"}}> |
|
|
|
|
|
{projectFinancialRows.length > 0 && ( |
|
|
|
|
|
<button onClick={handleExportByProject} className="hover:cursor-pointer hover:bg-violet-50 text-base bg-transparent border-violet-500 text-violet-500 border-solid rounded-md w-36"> |
|
|
|
|
|
Export Excel |
|
|
|
|
|
</button> |
|
|
|
|
|
)} |
|
|
|
|
|
</div> |
|
|
<div style={{display:"inline-block",width:"99%",marginLeft:10}}> |
|
|
<div style={{display:"inline-block",width:"99%",marginLeft:10}}> |
|
|
<CustomDatagrid rows={projectFinancialRows} columns={columns2} columnWidth={200} dataGridHeight={300}/> |
|
|
<CustomDatagrid rows={projectFinancialRows} columns={columns2} columnWidth={200} dataGridHeight={300}/> |
|
|
</div> |
|
|
</div> |
|
|