|
|
|
@ -11,10 +11,13 @@ const createMarkup = (element) => {
|
|
|
|
|
return {__html: element}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, projectParticipant, projectMilestone, projectApproval }) => { |
|
|
|
|
|
|
|
|
|
const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, projectParticipant, projectMilestone, projectApproval, projectManager, projectK3, assignHR }) => { |
|
|
|
|
const [proyekName, setProyekName] = useState("") |
|
|
|
|
const [description, setDescription] = useState("") |
|
|
|
|
const [shortname, setKodeShortname] = useState("") |
|
|
|
|
const [lokasi, setLokasiKantor] = useState("") |
|
|
|
|
const [durasi, setDurasiProyek] = useState("") |
|
|
|
|
const [mulaiProyek, setMulaiProyek] = useState("") |
|
|
|
|
const [objectives, setObjective] = useState("") |
|
|
|
|
const [projectSuccess, setProjectSuccess] = useState("") |
|
|
|
|
const [participants, setParticipants] = useState("") |
|
|
|
@ -24,14 +27,23 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr
|
|
|
|
|
const [milestone, setMilestone] = useState("") |
|
|
|
|
const [potentialRisks, setPotentialRisks] = useState("") |
|
|
|
|
const [approval, setApproval] = useState("") |
|
|
|
|
const [PM, setDataPM] = useState("") |
|
|
|
|
const [K3Search, setDataK3Search] = useState("") |
|
|
|
|
const [HR, setAssignHR] = useState("") |
|
|
|
|
const formatDate = "DD-MM-YYYY"; |
|
|
|
|
useEffect(() => { |
|
|
|
|
if(!openDialog){ |
|
|
|
|
setProyekName("") |
|
|
|
|
setDescription("") |
|
|
|
|
setKodeShortname("") |
|
|
|
|
setLokasiKantor("") |
|
|
|
|
setDurasiProyek("") |
|
|
|
|
setMulaiProyek("") |
|
|
|
|
setObjective("") |
|
|
|
|
setProjectSuccess("") |
|
|
|
|
setParticipants([]) |
|
|
|
|
setDataK3Search([]) |
|
|
|
|
setAssignHR([]) |
|
|
|
|
setBudget("") |
|
|
|
|
setCurrency("") |
|
|
|
|
setTesting("") |
|
|
|
@ -45,6 +57,10 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr
|
|
|
|
|
if(projectCharter && projectCharter!={}){ |
|
|
|
|
setProyekName(projectCharter.nama); |
|
|
|
|
setDescription(projectCharter.keterangan); |
|
|
|
|
setKodeShortname(projectCharter.kode_sortname); |
|
|
|
|
setLokasiKantor(projectCharter.lokasi_kantor); |
|
|
|
|
setDurasiProyek(projectCharter.durasi_proyek); |
|
|
|
|
setMulaiProyek(projectCharter.mulai_proyek); |
|
|
|
|
setObjective(projectCharter.project_objectives); |
|
|
|
|
setProjectSuccess(projectCharter.considered_success_when); |
|
|
|
|
setBudget(projectCharter.rencana_biaya); |
|
|
|
@ -73,13 +89,33 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr
|
|
|
|
|
} |
|
|
|
|
}, [projectApproval]); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if(projectManager && projectManager.length > 0){ |
|
|
|
|
console.log("cek data PM", projectManager) |
|
|
|
|
setDataPM(projectManager) |
|
|
|
|
} |
|
|
|
|
}, [projectManager]); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if(projectK3 && projectK3.length > 0){ |
|
|
|
|
setDataK3Search(projectK3) |
|
|
|
|
} |
|
|
|
|
}, [projectK3]); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if(assignHR && assignHR.length > 0){ |
|
|
|
|
setAssignHR(assignHR) |
|
|
|
|
} |
|
|
|
|
}, [assignHR]); |
|
|
|
|
|
|
|
|
|
const RenderParticipant = () => { |
|
|
|
|
if(participants && participants.length > 0){ |
|
|
|
|
return ( |
|
|
|
|
participants.map((val, index) => { |
|
|
|
|
return( |
|
|
|
|
<tr key={index}> |
|
|
|
|
<td className='plr-10'>{val.tittle ? val.tittle : val.title}</td> |
|
|
|
|
<td style={{ fontWeight: 'bold' }} className='plr-10'>{val.tittle ? val.tittle : val.title}</td> |
|
|
|
|
<td style={{ fontWeight: 'bold' }} className='plr-10'>:</td> |
|
|
|
|
<td className='plr-10'>{val.name}</td> |
|
|
|
|
</tr> |
|
|
|
|
) |
|
|
|
@ -90,28 +126,81 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const RenderK3Project = () => { |
|
|
|
|
if (K3Search && K3Search.length > 0) { |
|
|
|
|
const number = "123456789"; |
|
|
|
|
return ( |
|
|
|
|
K3Search.map((val, index) => { |
|
|
|
|
const K3Number = number[index]; |
|
|
|
|
return( |
|
|
|
|
<tr key={index}> |
|
|
|
|
<td style={tdStyle}><p style={pStyle}>{ K3Number }</p></td> |
|
|
|
|
<td style={tdStyle} className='plr-10'><p style={pStyle}>{val.checklist_k3_name ? val.checklist_k3_name : val.checklist_k3_name}</p></td> |
|
|
|
|
</tr> |
|
|
|
|
) |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
}else{ |
|
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const RenderAssignHR = () => { |
|
|
|
|
if (HR && HR.length > 0) { |
|
|
|
|
return ( |
|
|
|
|
HR.map((val, index) => { |
|
|
|
|
return( |
|
|
|
|
<tr key={index}> |
|
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
|
<p>{val.join_first_name ? val.join_first_name : val.join_first_name}</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
|
<p>{val.join_second_name ? val.join_second_name : val.join_second_name}</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle} className='plr-10'> |
|
|
|
|
<p>{val.join_second_description ? val.join_second_description : val.join_second_description}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
) |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
}else{ |
|
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const RenderMilestone = () => { |
|
|
|
|
if (milestone && milestone.length > 0) { |
|
|
|
|
let milestoneSorted = sortBy(milestone, { |
|
|
|
|
prop: "deadline", |
|
|
|
|
desc: false, |
|
|
|
|
}); |
|
|
|
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; |
|
|
|
|
return ( |
|
|
|
|
milestoneSorted.map((val, index) => { |
|
|
|
|
const milestoneLetter = alphabet[index]; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<tr key={index}> |
|
|
|
|
<td className='plr-10'>{val.status}</td> |
|
|
|
|
{/* <td className='plr-10'>{moment(val.due_date).format(formatDate)}</td> */} |
|
|
|
|
<td className='plr-10'>{moment(val.deadline).format(formatDate)}</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, textAlign:'center' }}>{milestoneLetter}</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='plr-10' style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#000000' }}>{val.status}</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='plr-10' style={{ ...tdStyle, textAlign:'center' }}> |
|
|
|
|
<p> {moment(val.deadline).format(formatDate)}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
} else { |
|
|
|
|
return (<tr><td><br></br></td></tr>) |
|
|
|
|
return (<tr><td><br></br></td></tr>); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const RenderApproval = () => { |
|
|
|
|
if(approval && approval.length > 0){ |
|
|
|
|
return ( |
|
|
|
@ -129,124 +218,479 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const tableStyle = { |
|
|
|
|
border: '1px solid black', |
|
|
|
|
borderSpacing: '0px', |
|
|
|
|
width: '100%' |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const thStyle = { |
|
|
|
|
border: '1px solid black', |
|
|
|
|
padding: '2pt', |
|
|
|
|
backgroundColor: '#F2F2F2', |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const tdStyle = { |
|
|
|
|
border: '1px solid black', |
|
|
|
|
}; |
|
|
|
|
const pStyle = { |
|
|
|
|
marginLeft: '5pt', |
|
|
|
|
marginTop: '2pt', |
|
|
|
|
marginBottom: '2pt', |
|
|
|
|
fontFamily: 'Arial', |
|
|
|
|
fontSize: '10pt', |
|
|
|
|
fontWeight: 'bold', |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const italicStyle = { |
|
|
|
|
fontStyle: 'italic' |
|
|
|
|
}; |
|
|
|
|
const boldStyle = { |
|
|
|
|
fontWeight: 'bold', |
|
|
|
|
fontVariant: 'small-caps', |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const emptyCellStyle = { |
|
|
|
|
padding: '0', |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const redStyle = { |
|
|
|
|
fontFamily: 'Arial', |
|
|
|
|
fontSize: '10pt', |
|
|
|
|
color: '#FF0000', |
|
|
|
|
}; |
|
|
|
|
const boldItalicStyle = { |
|
|
|
|
...pStyle, |
|
|
|
|
fontWeight: 'bold', |
|
|
|
|
fontStyle: 'italic', |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const renderForm = () => { |
|
|
|
|
return ( |
|
|
|
|
<div> |
|
|
|
|
<table className='table-charter'> |
|
|
|
|
<thead> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Project name: |
|
|
|
|
<table style={tableStyle} className="a"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan="3" bgcolor="#F2F2F2" style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#000000' }}>1.0 Identifikasi PROYEK</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Nama Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
|
<div>{proyekName}</div> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', fontStyle: 'italic' }}>{proyekName ?? '-'}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Project description:
|
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Project description</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
|
<div>{description}</div> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', fontStyle: 'italic' }}>{description ?? '-'}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Project objectives:
|
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Nomor Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
|
<div>{objectives}</div> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p> {shortname ?? '-'}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Project is considered successful when:
|
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Lokasi Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p> {lokasi ?? '-' }</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Durasi Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
|
<div>{projectSuccess}</div> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p> {durasi ?? '-'}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Project participants:
|
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Tanggal Mulai Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p> {moment(mulaiProyek).format(formatDate) ?? "-"}</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value no-mp'> |
|
|
|
|
<table className="table-participant" style={{width:"100%"}}> |
|
|
|
|
<thead className='border-bottom'> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th className='plr-10'>Title:</th> |
|
|
|
|
<th className='plr-10'>Name:</th> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Nilai Kontrak Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Anggaran Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', fontStyle: 'italic' }}>{currency}. {formatThousand(budget)}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Sponsor Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<p style={{ ...pStyle, fontWeight: 'normal', fontStyle: 'italic' }}>Adalah Divisi yang memiliki akun atas proyek ini berikut nama GM nya</p> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Project Manager</p> |
|
|
|
|
</td> |
|
|
|
|
<td colSpan="2" style={tdStyle}> |
|
|
|
|
<p> {PM}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#D8D8D8" style={tdStyle}> |
|
|
|
|
<p style={ pStyle }>Sumber Daya Manusia Untuk Proyek</p> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<span style={{ ...pStyle, fontWeight: 'normal',width:'100%' }}><RenderParticipant /></span> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<RenderParticipant /> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a0"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td bgcolor="#F2F2F2" style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontVariant: 'small-caps' }}>2.0 OBJEKTIF PROYEK (TUJUAN)</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Budget:
|
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
|
<div>{currency} {formatThousand(budget)}</div> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={italicStyle}>{objectives}</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Testing Environment:
|
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a1"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th style={thStyle}> |
|
|
|
|
<p style={{ ...pStyle, ...boldStyle }}>3.0 RUANG LINGKUP PROYEK</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<ul> |
|
|
|
|
<li style={pStyle}>Jasa</li> |
|
|
|
|
<li style={pStyle}>Material</li> |
|
|
|
|
<li style={pStyle}>Implementasi</li> |
|
|
|
|
<li style={pStyle}>dll</li> |
|
|
|
|
</ul> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
|
<div dangerouslySetInnerHTML={createMarkup(testing)}></div> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a2"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan="3" style={thStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontVariant: 'small-caps' }}>4.0 ANGGOTA PROYEK</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Milestones:
|
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={pStyle}>Nama</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={pStyle}>Posisi</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={pStyle}>Tugas dan Tanggung Jawab</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value no-mp'> |
|
|
|
|
<table className="table-participant" style={{width:"100%"}}> |
|
|
|
|
<thead className='border-bottom'> |
|
|
|
|
</tr> |
|
|
|
|
< RenderAssignHR/> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a3"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th style={thStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontVariant: 'small-caps' }}>5.0 STRUKTUR ORGANISASI</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th className='plr-10'>Status:</th> |
|
|
|
|
{/* <th className='plr-10'>Due:</th> */} |
|
|
|
|
<th className='plr-10'>Deadline:</th> |
|
|
|
|
<th style={emptyCellStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a4"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th colSpan="3" style={thStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontVariant: 'small-caps' }}>6.0 TARGET UTAMA & MILESTONE PENCAPAIAN</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={{ pStyle, textAlign:'center' }}>Item</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={{ pStyle, textAlign:'center' }}>Event Besar / Milestone</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={{ pStyle, textAlign:'center' }}>Tanggal</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<RenderMilestone /> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a5"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan="2" style={thStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontVariant: 'small-caps' }}>7.0 ISU & HAMBATAN UTAMA</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Potential risks:
|
|
|
|
|
<tr> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#000000', fontWeight: 'bold', textAlign: 'center' }}>Tingkat Kepelikan Isu</p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value plr-10'> |
|
|
|
|
<div dangerouslySetInnerHTML={createMarkup(potentialRisks)}></div> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontWeight: 'bold', textAlign: 'center' }}>Penjelasan</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr className='tr-charter'> |
|
|
|
|
<td className='td-charter td-key plr-10'> |
|
|
|
|
Approval:
|
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
<td className='td-charter td-value no-mp'> |
|
|
|
|
<table className="table-participant" style={{width:"100%"}}> |
|
|
|
|
<thead className='border-bottom'> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th className='plr-10'>Title and name:</th> |
|
|
|
|
<th className='plr-10'>Date:</th> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p style={{ ...pStyle, fontSize: '10pt', fontStyle: 'italic' }}>*Skala 1 ke 7 (1 = kecil, 7 = besar)</p> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a6"> |
|
|
|
|
<tbody> |
|
|
|
|
<RenderApproval /> |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan="3" style={thStyle}> |
|
|
|
|
<p style={pStyle}>8.0 RESIKO </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<p dangerouslySetInnerHTML={createMarkup(potentialRisks)}></p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p style={{ ...pStyle, fontSize: '10pt', fontStyle: 'italic' }}>*Skala 1 ke 7 (1 = kecil, 7 = besar)</p> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a7"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th style={thStyle}> |
|
|
|
|
<p style={pStyle}>9.0 KONSEKUENSI DARI KETERLAMBATAN</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th> |
|
|
|
|
<p style={italicStyle}>Adalah dampak dari jika terjadi keterlambatan atas implementasi proyek.</p> |
|
|
|
|
<p style={italicStyle}>Sampaikan berapa besar kerugian jika dikenakan dengan denda maksimal.</p> |
|
|
|
|
<p style={italicStyle}>Apa dampak pada potensi repeat order untuk proyek berikutnya.</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a8"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th style={thStyle}> |
|
|
|
|
<p style={pStyle}>10.0 KRITERIA SUSKSES DARI PROYEK (HARUS TERUKUR)</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th> |
|
|
|
|
<p style={pStyle}>Waktu</p> |
|
|
|
|
<p style={pStyle}>Biaya</p> |
|
|
|
|
<p style={pStyle}>Benefit bagi customer: misalkan bisa memberikan layanan publik sebelum hari raya</p> |
|
|
|
|
<p style={redStyle}>Zero accident Report: (tidak adanya kejadian yang memberikan dampak negative kepada Kesehatan tim dan warga sekitar)</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="a9"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th style={thStyle}> |
|
|
|
|
<p style={pStyle}>11.0 ASUMSI (SUMBERDAYA UTAMA)</p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<p style={pStyle}> |
|
|
|
|
Disebutkan SDM/Tools apa yang bisa dan mandatory diperlukan untuk menunjang lancarnya implementasi, dan jika hal tersebut tidak terpenuhi maka potensi akan terjadinya kondisi yang tidak diinginkan akan menjadi semakin besar. Misalkan; harus tersedia 4 orang drafter yang sudah memahami alur proyek dengan baik. |
|
|
|
|
</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="aa"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan="3" style={thStyle}> |
|
|
|
|
<p style={pStyle}><span style={{ fontWeight: 'bold' }}>12.0 CHECK LIST KESIAPAN PROYEK</span><span style={{ fontStyle: 'italic' }}>** item utama yang paling kritikal</span></p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={pStyle}><span style={{ fontWeight: 'bold' }}>NO</span></p> |
|
|
|
|
</td> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={pStyle}><span style={{ fontWeight: 'bold' }}>ITEM</span></p> |
|
|
|
|
</td> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={pStyle}><span style={{ fontWeight: 'bold' }}>KETERSEDIAAN</span></p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={pStyle}>1</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#000000' }}>Gudang regional</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={pStyle}>2</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#000000' }}>Kantor regional</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={pStyle}>3</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#000000' }}>Tim yang bersertifikasi</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#FF0000' }}>4</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, color: '#FF0000' }}>Alat Perlindungan Diri (Helm, Safety Harness, Dll)</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={pStyle}>.....</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p style={{ ...pStyle, fontStyle: 'italic' }}>Item di atas hanyalah contoh saja</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={tdStyle}> |
|
|
|
|
<p> </p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="ab"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<td colSpan="3" style={thStyle}> |
|
|
|
|
<p style={pStyle}>13.0 KESEHATAN & KESELAMATAN KERJA (K3)</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tr> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={pStyle}>NO</p> |
|
|
|
|
</td> |
|
|
|
|
<td style={thStyle}> |
|
|
|
|
<p style={pStyle}>ITEM</p> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<RenderK3Project/> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<p> </p> |
|
|
|
|
<table style={tableStyle} className="ac"> |
|
|
|
|
<tbody> |
|
|
|
|
<tr> |
|
|
|
|
<th style={thStyle}> |
|
|
|
|
<p style={pStyle}><b>13.0 KOMITMEN DISEPAKATI OLEH</b></p> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<RenderApproval/> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
) |
|
|
|
@ -254,7 +698,7 @@ const ViewProject = ({ openDialog, closeDialog, toggleDialog, projectCharter, pr
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
<Modal size="lg" isOpen={openDialog} toggle={toggleDialog}> |
|
|
|
|
<Modal size="xl" isOpen={openDialog} toggle={toggleDialog}> |
|
|
|
|
<ModalHeader className="capitalize" toggle={closeDialog}>Project</ModalHeader> |
|
|
|
|
<ModalBody> |
|
|
|
|
{renderForm()} |
|
|
|
|