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
154a3a17
Commit
154a3a17
authored
Aug 14, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report Items Update
parent
9a432228
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
294 additions
and
164 deletions
+294
-164
ItemLaporan.js
src/container/MasterData/ItemLaporan.js
+0
-157
ReportItems.js
src/container/MasterData/ReportItems.js
+287
-0
CreateReportItems.js
...container/MasterData/formReportItems/CreateReportItems.js
+1
-1
EditReportItems.js
src/container/MasterData/formReportItems/EditReportItems.js
+1
-1
VisualReportItems.js
...container/MasterData/formReportItems/VisualReportItems.js
+1
-1
Array.js
src/library/Array.js
+1
-1
homeRoutes.js
src/router/homeRoutes.js
+3
-3
No files found.
src/container/MasterData/ItemLaporan.js
deleted
100644 → 0
View file @
9a432228
import
React
,
{
Component
}
from
"react"
;
import
{
Container
,
Row
,
Col
}
from
"react-bootstrap"
;
import
{
makeStyles
,
createMuiTheme
,
MuiThemeProvider
}
from
'@material-ui/core/styles'
;
import
SearchIcon
from
'@material-ui/icons/Search'
;
import
Images
from
"../../assets/Images"
;
import
MUIDataTable
from
"mui-datatables"
;
import
{
TextField
,
InputBase
}
from
"@material-ui/core"
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
import
CreateItemLaporan
from
"./formItemLaporan/CreateItemLaporan"
;
import
EditItemLaporan
from
"./formItemLaporan/EditItemLaporan"
;
var
ct
=
require
(
"../../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
const
options
=
ct
.
customOptions
();
const
options2
=
ct
.
customOptions2
();
export
default
class
ItemLaporan
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
dataTable
:
[],
listData
:
[],
data
:
[],
add
:
false
,
edit
:
false
}
}
closeEdit
()
{
this
.
setState
({
edit
:
false
})
}
closeAdd
()
{
this
.
setState
({
add
:
false
})
}
render
()
{
const
columns
=
[{
name
:
"Action"
,
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
}}
onClick
=
{()
=>
this
.
setState
({
edit
:
true
})}
>
<
img
src
=
{
Images
.
editCopy
}
/
>
<
/button
>
<
/div
>
);
}
}
},
"ID"
,
"Jenis Laporan"
,
"Perusahaan"
,
"Order"
,
"Deskripsi"
,
"Parent ID"
,
"UOM"
,
"Weight"
,
"Tipe Data"
,
"Status"
]
const
data
=
[
[
""
,
"1"
,
"KPI"
,
"TIA"
,
"1"
,
"Financial Perspective"
,
"0"
,
"-"
,
"35%"
,
"Formula"
,
"Aktif"
],
[
""
,
"2"
,
"KPI"
,
"TIA"
,
"2"
,
"Trading Profit"
,
"1"
,
"Rp Bio"
,
"35%"
,
"Formula"
,
"Aktif"
],
[
""
,
"3"
,
"KPI"
,
"TIA"
,
"3"
,
"Revenue"
,
"1"
,
"Rp Bio"
,
"0%"
,
"Formula"
,
"Aktif"
],
[
""
,
"4"
,
"KPI"
,
"TIA"
,
"4"
,
"EBITDA"
,
"1"
,
"Rp Bio"
,
"0%"
,
"Formula"
,
"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
=
{{
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'
}}
>
Master
Data
-
Item
Laporan
<
/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"
value
=
{
""
}
onChange
=
{(
e
)
=>
this
.
handleInputChange
(
e
)}
inputProps
=
{{
'aria-label'
:
'naked'
}}
/
>
<
/div
>
<
div
style
=
{{
width
:
'20%'
,
justifyContent
:
'space-around'
,
display
:
'flex'
}}
>
<
img
src
=
{
Images
.
template
}
/
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
}}
onClick
=
{()
=>
this
.
setState
({
visibleUpload
:
true
})}
>
<
img
src
=
{
Images
.
upload
}
/
>
<
/button
>
<
img
src
=
{
Images
.
download
}
/
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
}}
>
<
img
src
=
{
Images
.
visualisasi
}
/
>
<
/button
>
<
button
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
}}
onClick
=
{()
=>
this
.
setState
({
add
:
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
.
add
&&
(
<
CreateItemLaporan
onClickClose
=
{
this
.
closeAdd
.
bind
(
this
)}
data
=
{
this
.
state
.
indexData
}
/
>
)}
{
this
.
state
.
edit
&&
(
<
EditItemLaporan
onClickClose
=
{
this
.
closeEdit
.
bind
(
this
)}
data
=
{
this
.
state
.
indexData
}
/
>
)}
<
/div
>
);
}
}
src/container/MasterData/ReportItems.js
0 → 100644
View file @
154a3a17
This diff is collapsed.
Click to expand it.
src/container/MasterData/form
ItemLaporan/CreateItemLaporan
.js
→
src/container/MasterData/form
ReportItems/CreateReportItems
.js
View file @
154a3a17
...
...
@@ -62,7 +62,7 @@ const companies = [
},
];
export
default
class
Create
ItemLaporan
extends
Component
{
export
default
class
Create
ReportItems
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
...
...
src/container/MasterData/form
ItemLaporan/EditItemLaporan
.js
→
src/container/MasterData/form
ReportItems/EditReportItems
.js
View file @
154a3a17
...
...
@@ -62,7 +62,7 @@ const companies = [
},
];
export
default
class
Edit
ItemLaporan
extends
Component
{
export
default
class
Edit
ReportItems
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
...
...
src/container/MasterData/form
ItemLaporan/VisualItemReport
.js
→
src/container/MasterData/form
ReportItems/VisualReportItems
.js
View file @
154a3a17
...
...
@@ -16,7 +16,7 @@ const type = [
},
];
export
default
class
Visual
isasiItemReport
extends
Component
{
export
default
class
Visual
ReportItems
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
...
...
src/library/Array.js
View file @
154a3a17
...
...
@@ -71,7 +71,7 @@ const arraySide = [
{
img
:
''
,
label
:
'Item Laporan'
,
path
:
'
itemlaporan
'
,
path
:
'
report-items
'
,
},
{
img
:
''
,
...
...
src/router/homeRoutes.js
View file @
154a3a17
...
...
@@ -9,8 +9,8 @@ import BalanceSheet from '../container/BudgetTahunan/BalanceSheet';
import
Profile
from
'../container/Profile'
;
import
Perusahaan
from
'../container/MasterData/Perusahaan/Perusahaan'
;
import
UnitBisnis
from
'../container/MasterData/UnitBisnis'
import
ItemLaporan
from
'../container/MasterData/ItemLaporan'
import
Parameter
from
'../container/MasterData/Parameter/Parameter'
import
ReportItems
from
'../container/MasterData/ReportItems'
import
DashboardCAT
from
'../container/Laporan/DashboardCAT'
const
routes
=
[
...
...
@@ -27,8 +27,8 @@ const routes = [
main
:
ApprovalMatrix
},
{
path
:
"/home/
itemlaporan
"
,
main
:
ItemLaporan
path
:
"/home/
report-items
"
,
main
:
ReportItems
},
{
path
:
"/home/budget-tahunan"
,
...
...
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