Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
6b5fe381
Commit
6b5fe381
authored
Aug 12, 2020
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'riri'
# Conflicts: # src/router/homeRoutes.js
parents
5c2b7079
df021479
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
978 additions
and
158 deletions
+978
-158
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+578
-0
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+214
-0
CreatePerusahaan.js
src/container/MasterData/Perusahaan/CreatePerusahaan.js
+179
-25
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+1
-132
Array.js
src/library/Array.js
+1
-1
homeRoutes.js
src/router/homeRoutes.js
+5
-0
No files found.
src/container/MasterData/Parameter/CreateParameter.js
0 → 100644
View file @
6b5fe381
This diff is collapsed.
Click to expand it.
src/container/MasterData/Parameter/Parameter.js
0 → 100644
View file @
6b5fe381
import
React
,
{
Component
}
from
'react'
;
import
{
createMuiTheme
,
MuiThemeProvider
}
from
'@material-ui/core/styles'
;
import
Images
from
'../../../assets/Images'
;
import
MUIDataTable
from
"mui-datatables"
;
import
{
InputBase
}
from
"@material-ui/core"
;
import
CreateParameter
from
'../Parameter/CreateParameter'
;
var
ct
=
require
(
"../../../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
const
options
=
ct
.
customOptions
();
export
default
class
Parameter
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
visibleCreate
:
false
,
visibleEdit
:
false
,
data
:
[]
}
}
componentDidMount
()
{
}
render
()
{
console
.
log
(
this
.
props
.
height
)
const
columns
=
[{
name
:
"Action"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
}}
onClick
=
{()
=>
this
.
setState
({
visibleEdit
:
true
,
data
:
tableMeta
.
rowData
})}
>
<
img
src
=
{
Images
.
editCopy
}
/
>
<
/button
>
<
/div
>
);
}
}
},
{
name
:
"Group"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Parameter"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Perusahaan"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Deskripsi"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Order"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Value"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Min Value"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Max Value"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
},
{
name
:
"Status"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
span
style
=
{{
color
:
tableMeta
.
rowData
[
9
]
===
"Aktif"
?
"#656565"
:
'rgba(0, 0, 0, 0.25)'
}}
>
{
val
}
<
/span
>
<
/div
>
);
}
}
}]
const
data
=
[
[
""
,
"LAPORAN_BULANAN"
,
"BALANCE_SHEET"
,
"Default"
,
"Range Periode Lap"
,
"1"
,
"-"
,
"1"
,
"10"
,
"Aktif"
],
[
""
,
"LAPORAN_BULANAN"
,
"BALANCE_SHEET"
,
"Puninar Group"
,
"Range Periode Lap"
,
"2"
,
"-"
,
"1"
,
"15"
,
"Aktif"
],
[
""
,
"LAPORAN_BULANAN"
,
"BALANCE_SHEET"
,
"TAP Group"
,
"Range Periode Lap"
,
"3"
,
"-"
,
"1"
,
"15"
,
"Aktif"
],
[
""
,
"LAPORAN_BULANAN"
,
"BALANCE_SHEET"
,
"Daya Group"
,
"Range Periode Lap"
,
"4"
,
"-"
,
"1"
,
"20"
,
"Non Aktif"
],
[
""
,
"-"
,
"-"
,
"-"
,
"-"
,
"-"
]
]
return
(
<
div
style
=
{{
height
:
this
.
props
.
height
}}
>
{
/* <Row> */
}
<
div
style
=
{{
height
:
199
,
backgroundColor
:
'#354960'
,
width
:
'100%'
}}
/
>
<
div
>
<
div
style
=
{{
display
:
'flex'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingRight
:
25
,
paddingLeft
:
25
,
marginTop
:
-
150
}}
>
<
label
style
=
{{
color
:
'white'
,
fontSize
:
16
,
alignSelf
:
'center'
}}
>
Parameter
<
/label
>
<
div
style
=
{{
color
:
'white'
,
width
:
'50%'
,
height
:
37
,
display
:
'flex'
,
backgroundColor
:
'white'
,
borderWidth
:
2
,
alignItems
:
'center'
,
borderRadius
:
6
,
paddingLeft
:
5
,
paddingRight
:
5
}}
>
<
img
src
=
{
Images
.
searchBlack
}
style
=
{{
marginRight
:
10
}}
/
>
<
InputBase
style
=
{{
width
:
'100%'
}}
placeholder
=
"Search"
inputProps
=
{{
'aria-label'
:
'naked'
}}
/
>
<
/div
>
<
div
style
=
{{
width
:
'20%'
,
justifyContent
:
'space-around'
,
display
:
'flex'
}}
>
<
img
src
=
{
Images
.
template
}
/
>
<
img
src
=
{
Images
.
upload
}
/
>
<
img
src
=
{
Images
.
download
}
/
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
}}
onClick
=
{()
=>
this
.
setState
({
visibleCreate
:
true
})}
>
<
img
src
=
{
Images
.
add
}
/
>
<
/button
>
<
/div
>
<
/div
>
<
div
style
=
{{
padding
:
25
}}
>
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
theme
=
{
getMuiTheme
()}
data
=
{
data
}
columns
=
{
columns
}
options
=
{
options
}
/
>
<
/MuiThemeProvider
>
<
/div
>
<
/div
>
{
this
.
state
.
visibleCreate
&&
(
<
CreateParameter
onClickClose
=
{()
=>
this
.
setState
({
visibleCreate
:
false
})}
/
>
)}
{
this
.
state
.
visibleEdit
&&
(
<
CreateParameter
type
=
{
"edit"
}
onClickClose
=
{()
=>
this
.
setState
({
visibleEdit
:
false
})}
data
=
{
this
.
state
.
data
}
/
>
)}
<
/div
>
);
}
}
\ No newline at end of file
src/container/MasterData/Perusahaan/CreatePerusahaan.js
View file @
6b5fe381
This diff is collapsed.
Click to expand it.
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
6b5fe381
...
@@ -181,134 +181,3 @@ export default class Perusahaan extends Component {
...
@@ -181,134 +181,3 @@ export default class Perusahaan extends Component {
);
);
}
}
}
}
// class Perusahaan extends Component {
// render() {
// const columns = [{
// name: "Action",
// options: {
// customBodyRender: (val, tableMeta) => {
// return (
// <div style={{ display: 'flex' }}>
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent'
// }}
// onClick={() => null}
// >
// <img src={Images.editCopy} />
// </button>
// </div >
// );
// }
// }
// }, "ID", "Nama Perusahaan", "Nama Perusahaan", "Unit Bisnis", "Jumlah Laporan", "Status"]
// const data = [
// ["", "1", "Triputra Agro Persada Group", "Triputra Investindo Arya", "Agrobisnis", "5", "Aktif"],
// ["", "2", "Gawi Bahandep Sawit Mekar", "Triputra Agro Persada Group", "Agrobisnis", "2", "Aktif"],
// ["", "3", "Puninar Group", "Triputra Investindo Arya", "Service", "5", "Aktif"],
// ["", "4", "Puninar Infinite Raya", "Puninar Group", "Service", "5", "Non Aktif"],
// ["", "-", "-", "-", "-", "-", "-"],
// ]
// const options = {
// filter: false,
// sort: false,
// responsive: "scroll",
// print: false,
// download: false,
// selectableRows: false,
// viewColumns: false,
// rowsPerPage: 5,
// search: false
// }
// return (
// <div style={{ flex: 1 }}>
// <div style={{ height: 150, width: '100%', backgroundColor: '#354960', padding: 24, paddingTop: 30 }}>
// <div style={{ display: 'flex' }}>
// <Typography style={{ paddingTop: 8, paddingBottom: 7, fontSize: '16px', color: 'white' }}>Master Data - Perusahaan</Typography>
// <form style={{ marginLeft: 110 }}>
// <TextField id="" label="" variant="outlined" size="small" placeholder="Search" style={{ width: 423, backgroundColor: 'white', borderRadius: 6 }}/>
// </form>
// <div style={{ display: 'flex' }}>
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// marginLeft: 82,
// padding: 0
// }}
// onClick={() => null}
// >
// <img src={Images.template} />
// </button>
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// marginLeft: 16,
// padding:0
// }}
// onClick={() => null}
// >
// <img src={Images.upload} />
// </button>
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// marginLeft: 16,
// padding:0
// }}
// onClick={() => null}
// >
// <img src={Images.download} />
// </button>
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// marginLeft: 16,
// padding:0
// }}
// onClick={() => null}
// >
// <img src={Images.visualisasi} />
// </button>
// <button
// style={{
// backgroundColor: 'transparent',
// cursor: 'pointer',
// borderColor: 'transparent',
// marginLeft: 16,
// padding:0
// }}
// onClick={() => null}
// >
// <img src={Images.add} />
// </button>
// </div >
// </div>
// </div>
// <div style={{ flex: 1, padding: 20, width: '100%' }}>
// <div>
// <MUIDataTable
// data={data}
// columns={columns}
// options={options}
// />
// </div>
// </div>
// </div>
// );
// }
// }
// export default Perusahaan;
\ No newline at end of file
src/library/Array.js
View file @
6b5fe381
...
@@ -81,7 +81,7 @@ const arraySide = [
...
@@ -81,7 +81,7 @@ const arraySide = [
{
{
img
:
''
,
img
:
''
,
label
:
'Parameter Lainnya'
,
label
:
'Parameter Lainnya'
,
path
:
'
beranda
'
,
path
:
'
parameter
'
,
},
},
]
]
},
},
...
...
src/router/homeRoutes.js
View file @
6b5fe381
...
@@ -10,6 +10,7 @@ import Profile from '../container/Profile';
...
@@ -10,6 +10,7 @@ import Profile from '../container/Profile';
import
Perusahaan
from
'../container/MasterData/Perusahaan/Perusahaan'
;
import
Perusahaan
from
'../container/MasterData/Perusahaan/Perusahaan'
;
import
UnitBisnis
from
'../container/MasterData/UnitBisnis'
import
UnitBisnis
from
'../container/MasterData/UnitBisnis'
import
ItemLaporan
from
'../container/MasterData/ItemLaporan'
import
ItemLaporan
from
'../container/MasterData/ItemLaporan'
import
Parameter
from
'../container/MasterData/Parameter/Parameter'
const
routes
=
[
const
routes
=
[
{
{
...
@@ -48,6 +49,10 @@ const routes = [
...
@@ -48,6 +49,10 @@ const routes = [
path
:
"/home/unit-bisnis"
,
path
:
"/home/unit-bisnis"
,
main
:
UnitBisnis
main
:
UnitBisnis
},
},
{
path
:
"/home/parameter"
,
main
:
Parameter
},
{
{
path
:
"*"
,
path
:
"*"
,
main
:
screen404
main
:
screen404
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment