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
71f6d7fa
Commit
71f6d7fa
authored
Sep 01, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bs++
parent
5ccd8333
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
42 deletions
+66
-42
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+66
-42
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
71f6d7fa
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
{
Typography
,
Paper
,
createMuiTheme
,
MuiThemeProvider
,
TableCell
,
FormControlLabel
,
TextField
,
Input
}
from
'@material-ui/core'
;
import
{
Typography
,
Paper
,
createMuiTheme
,
MuiThemeProvider
,
TableCell
,
FormControlLabel
,
TextField
,
Input
,
Fab
}
from
'@material-ui/core'
;
import
MUIDataTable
from
'mui-datatables'
;
import
MUIDataTable
from
'mui-datatables'
;
import
NumberFormat
from
'react-number-format'
;
import
NumberFormat
from
'react-number-format'
;
import
api
from
'../../api'
;
import
api
from
'../../api'
;
import
AddIcon
from
'@material-ui/icons/Add'
;
var
ct
=
require
(
"../../library/CustomTable"
);
var
ct
=
require
(
"../../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
...
@@ -360,11 +361,11 @@ export default class BalanceSheet extends Component {
...
@@ -360,11 +361,11 @@ export default class BalanceSheet extends Component {
return
(
return
(
<
div
style
=
{{
width
:
388
}}
>
<
div
style
=
{{
width
:
388
}}
>
{
tableMeta
.
rowData
[
4
]
==
0
?
{
tableMeta
.
rowData
[
4
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
val
).
toUpperCase
()}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
).
toUpperCase
()}
<
/span
>
:
:
tableMeta
.
rowData
[
4
]
===
1
?
tableMeta
.
rowData
[
4
]
===
1
?
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
val
}
<
/span>
:
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span>
:
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
tableMeta
.
rowData
[
0
]
===
4
?
""
:
val
}
<
/span
>
}
}
<
/div
>
<
/div
>
)
)
...
@@ -470,6 +471,9 @@ export default class BalanceSheet extends Component {
...
@@ -470,6 +471,9 @@ export default class BalanceSheet extends Component {
/
>
/
>
<
/span
>
<
/span
>
:
:
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
<
span
>-<
/span
>
<
span
>-<
/span
>
:
:
...
@@ -523,6 +527,9 @@ export default class BalanceSheet extends Component {
...
@@ -523,6 +527,9 @@ export default class BalanceSheet extends Component {
/
>
/
>
<
/span
>
<
/span
>
:
:
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
<
span
>-<
/span
>
<
span
>-<
/span
>
:
:
...
@@ -576,6 +583,9 @@ export default class BalanceSheet extends Component {
...
@@ -576,6 +583,9 @@ export default class BalanceSheet extends Component {
/
>
/
>
<
/span
>
<
/span
>
:
:
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
<
span
>-<
/span
>
<
span
>-<
/span
>
:
:
...
@@ -629,6 +639,9 @@ export default class BalanceSheet extends Component {
...
@@ -629,6 +639,9 @@ export default class BalanceSheet extends Component {
/
>
/
>
<
/span
>
<
/span
>
:
:
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
<
span
>-<
/span
>
<
span
>-<
/span
>
:
:
...
@@ -682,6 +695,9 @@ export default class BalanceSheet extends Component {
...
@@ -682,6 +695,9 @@ export default class BalanceSheet extends Component {
/
>
/
>
<
/span
>
<
/span
>
:
:
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
<
span
>-<
/span
>
<
span
>-<
/span
>
:
:
...
@@ -735,6 +751,9 @@ export default class BalanceSheet extends Component {
...
@@ -735,6 +751,9 @@ export default class BalanceSheet extends Component {
/
>
/
>
<
/span
>
<
/span
>
:
:
tableMeta
.
rowData
[
0
]
===
4
?
null
:
tableMeta
.
rowData
[
0
]
===
1
?
tableMeta
.
rowData
[
0
]
===
1
?
<
span
>-<
/span
>
<
span
>-<
/span
>
:
:
...
@@ -820,6 +839,11 @@ export default class BalanceSheet extends Component {
...
@@ -820,6 +839,11 @@ export default class BalanceSheet extends Component {
options
=
{
options
}
options
=
{
options
}
/
>
/
>
<
/MuiThemeProvider
>
<
/MuiThemeProvider
>
<
Fab
color
=
"primary"
aria
-
label
=
"add"
style
=
{{
bottom
:
0
,
right
:
0
,
position
:
'fixed'
}}
onClick
=
{()
=>
{
this
.
forceUpdate
()
}}
>
<
AddIcon
/>
<
/Fab
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x"
>
<
div
className
=
"grid grid-2x"
>
...
...
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