|
|
@ -71,6 +71,7 @@ import DialogGantt from "./DialogGantt"; |
|
|
|
import DialogHierarchy from "./DialogHierarchy"; |
|
|
|
import DialogHierarchy from "./DialogHierarchy"; |
|
|
|
// import DialogAsignHr from './AsignHrProject';
|
|
|
|
// import DialogAsignHr from './AsignHrProject';
|
|
|
|
import AssignHrProject from "./AsignHrProject"; |
|
|
|
import AssignHrProject from "./AsignHrProject"; |
|
|
|
|
|
|
|
import AssignCustProject from "./AsignCustProject"; |
|
|
|
import AssignK3Project from "./AssignK3Project"; |
|
|
|
import AssignK3Project from "./AssignK3Project"; |
|
|
|
import ViewProject from "./ViewProject"; |
|
|
|
import ViewProject from "./ViewProject"; |
|
|
|
import { Icon } from "@iconify/react"; |
|
|
|
import { Icon } from "@iconify/react"; |
|
|
@ -106,6 +107,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
const [openDialogGantt, setOpenDialogGantt] = useState(false); |
|
|
|
const [openDialogGantt, setOpenDialogGantt] = useState(false); |
|
|
|
const [openDialogHierarchy, setOpenDialogHierarchy] = useState(false); |
|
|
|
const [openDialogHierarchy, setOpenDialogHierarchy] = useState(false); |
|
|
|
const [openDialogAsignHR, setOpenDialogAsignHR] = useState(false); |
|
|
|
const [openDialogAsignHR, setOpenDialogAsignHR] = useState(false); |
|
|
|
|
|
|
|
const [openDialogAsignCust, setOpenDialogAsignCust] = useState(false); |
|
|
|
const [openDialogAssignK3, setOpenDialogAssignK3] = useState(false); |
|
|
|
const [openDialogAssignK3, setOpenDialogAssignK3] = useState(false); |
|
|
|
const [dataK3, setDataK3] = useState([]); // transfer list
|
|
|
|
const [dataK3, setDataK3] = useState([]); // transfer list
|
|
|
|
const [idDelete, setIdDelete] = useState(0); |
|
|
|
const [idDelete, setIdDelete] = useState(0); |
|
|
@ -469,6 +471,12 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
setOpenDialogAsignHR(true); |
|
|
|
setOpenDialogAsignHR(true); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleOpenAsignCust = (data) => { |
|
|
|
|
|
|
|
setidTask(data.id); |
|
|
|
|
|
|
|
setProyekName(data.nama); |
|
|
|
|
|
|
|
setOpenDialogAsignCust(true); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleOpenAssignK3 = (data) => { |
|
|
|
const handleOpenAssignK3 = (data) => { |
|
|
|
setidTask(data.id); |
|
|
|
setidTask(data.id); |
|
|
|
setProyekName(data.nama); |
|
|
|
setProyekName(data.nama); |
|
|
@ -1045,6 +1053,12 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span className="menu-text">Assign Human Resource</span> |
|
|
|
<span className="menu-text">Assign Human Resource</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="menu-list" onClick={() => handleOpenAsignCust(text)}> |
|
|
|
|
|
|
|
<span className="menu-icon"> |
|
|
|
|
|
|
|
<i className="fa fa-user-circle-o"></i> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<span className="menu-text">Assign Customer</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div className="menu-list" onClick={() => handleOpenAssignK3(text)}> |
|
|
|
<div className="menu-list" onClick={() => handleOpenAssignK3(text)}> |
|
|
|
<span className="menu-icon"> |
|
|
|
<span className="menu-icon"> |
|
|
|
<i className="fa fa-plus-circle"></i> |
|
|
|
<i className="fa fa-plus-circle"></i> |
|
|
@ -1277,6 +1291,11 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
setOpenDialogAsignHR(false); |
|
|
|
setOpenDialogAsignHR(false); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleCloseDialogAsignCust = () => { |
|
|
|
|
|
|
|
setidTask(0); |
|
|
|
|
|
|
|
setOpenDialogAsignCust(false); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const handleCloseDialogAssignK3 = (status) => { |
|
|
|
const handleCloseDialogAssignK3 = (status) => { |
|
|
|
if (status == "success") { |
|
|
|
if (status == "success") { |
|
|
|
NotificationManager.success( |
|
|
|
NotificationManager.success( |
|
|
@ -1384,6 +1403,21 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
[openDialogAsignHR] |
|
|
|
[openDialogAsignHR] |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DialogAsignCust
|
|
|
|
|
|
|
|
const RenderDialogAsignCust = useMemo( |
|
|
|
|
|
|
|
() => ( |
|
|
|
|
|
|
|
<AssignCustProject |
|
|
|
|
|
|
|
openDialog={openDialogAsignCust} |
|
|
|
|
|
|
|
closeDialog={() => setOpenDialogAsignCust(false)} |
|
|
|
|
|
|
|
toggleDialog={() => setOpenDialogAsignCust(!openDialogAsignCust)} |
|
|
|
|
|
|
|
handleClose={handleCloseDialogAsignCust} |
|
|
|
|
|
|
|
idTask={idTask} |
|
|
|
|
|
|
|
proyekName={proyekName} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
[openDialogAsignCust] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// DialogAssignK3
|
|
|
|
// DialogAssignK3
|
|
|
|
const RenderDialogAssignK3 = useMemo( |
|
|
|
const RenderDialogAssignK3 = useMemo( |
|
|
|
() => ( |
|
|
|
() => ( |
|
|
@ -1484,6 +1518,7 @@ const CreatedProyek = ({ params, ...props }) => { |
|
|
|
{renderDialogGantt} |
|
|
|
{renderDialogGantt} |
|
|
|
{renderDialogHierarchy} |
|
|
|
{renderDialogHierarchy} |
|
|
|
{RenderDialogAsignHr} |
|
|
|
{RenderDialogAsignHr} |
|
|
|
|
|
|
|
{RenderDialogAsignCust} |
|
|
|
{RenderDialogAssignK3} |
|
|
|
{RenderDialogAssignK3} |
|
|
|
<Card> |
|
|
|
<Card> |
|
|
|
<CardHeader |
|
|
|
<CardHeader |
|
|
|