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
98f0a777
Commit
98f0a777
authored
Aug 27, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
Deni dev(pc) See merge request
!193
parents
e5629327
21972c67
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
37 deletions
+73
-37
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+47
-11
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+8
-8
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+3
-3
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+3
-3
CreateUnitBisnis.js
src/container/MasterData/formUnitBisnis/CreateUnitBisnis.js
+8
-8
User.js
src/container/Otorisasi/User.js
+3
-3
SetPassword.js
src/container/SetPassword.js
+1
-1
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
98f0a777
...
@@ -38,6 +38,7 @@ export default class BalanceSheet extends Component {
...
@@ -38,6 +38,7 @@ export default class BalanceSheet extends Component {
// ["Trade Receivables - Third Party", "142,668", "77,480"],
// ["Trade Receivables - Third Party", "142,668", "77,480"],
]
]
}
}
this
.
handleValue
=
this
.
handleValue
.
bind
(
this
)
}
}
componentDidMount
()
{
componentDidMount
()
{
...
@@ -61,6 +62,7 @@ export default class BalanceSheet extends Component {
...
@@ -61,6 +62,7 @@ export default class BalanceSheet extends Component {
item
.
type_report_id
,
item
.
type_report_id
,
item
.
id
,
item
.
id
,
item
.
parent
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
level
,
item
.
description
item
.
description
])
])
...
@@ -71,23 +73,48 @@ export default class BalanceSheet extends Component {
...
@@ -71,23 +73,48 @@ export default class BalanceSheet extends Component {
i
.
type_report_id
,
i
.
type_report_id
,
i
.
id
,
i
.
id
,
i
.
parent
,
i
.
parent
,
i
.
formula
,
i
.
level
,
i
.
level
,
i
.
description
i
.
description
])
])
i
.
children
.
map
(
val
=>
{
i
.
children
.
map
(
val
=>
{
if
(
val
.
children
&&
val
.
children
.
length
>
0
)
{
dataTable
.
push
([
dataTable
.
push
([
val
.
type_report_id
,
val
.
type_report_id
,
val
.
id
,
val
.
id
,
val
.
parent
,
val
.
parent
,
val
.
formula
,
val
.
level
,
val
.
level
,
val
.
description
val
.
description
])
])
val
.
children
.
map
(
items
=>
{
console
.
log
(
items
)
dataTable
.
push
([
items
.
type_report_id
,
items
.
id
,
items
.
parent
,
items
.
formula
,
items
.
level
,
items
.
description
])
})
}
else
{
dataTable
.
push
([
val
.
type_report_id
,
val
.
id
,
val
.
parent
,
val
.
formula
,
val
.
level
,
val
.
description
])
}
})
})
}
else
{
}
else
{
dataTable
.
push
([
dataTable
.
push
([
i
.
type_report_id
,
i
.
type_report_id
,
i
.
id
,
i
.
id
,
i
.
parent
,
i
.
parent
,
i
.
formula
,
i
.
level
,
i
.
level
,
i
.
description
i
.
description
])
])
...
@@ -97,6 +124,7 @@ export default class BalanceSheet extends Component {
...
@@ -97,6 +124,7 @@ export default class BalanceSheet extends Component {
i
.
type_report_id
,
i
.
type_report_id
,
i
.
id
,
i
.
id
,
i
.
parent
,
i
.
parent
,
i
.
formula
,
i
.
level
,
i
.
level
,
i
.
description
i
.
description
])
])
...
@@ -107,6 +135,7 @@ export default class BalanceSheet extends Component {
...
@@ -107,6 +135,7 @@ export default class BalanceSheet extends Component {
item
.
type_report_id
,
item
.
type_report_id
,
item
.
id
,
item
.
id
,
item
.
parent
,
item
.
parent
,
item
.
formula
,
item
.
level
,
item
.
level
,
item
.
description
item
.
description
])
])
...
@@ -137,12 +166,14 @@ export default class BalanceSheet extends Component {
...
@@ -137,12 +166,14 @@ export default class BalanceSheet extends Component {
let
data
=
this
.
state
.
dataTable
let
data
=
this
.
state
.
dataTable
let
indexParent
=
data
.
findIndex
((
val
)
=>
val
[
1
]
==
data
[
tableMeta
.
rowIndex
][
2
])
let
indexParent
=
data
.
findIndex
((
val
)
=>
val
[
1
]
==
data
[
tableMeta
.
rowIndex
][
2
])
if
(
indexParent
>
0
)
{
if
(
indexParent
>
0
)
{
console
.
log
(
indexParent
)
let
a
=
data
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
)
let
a
=
data
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
)
let
jagain
=
data
[
indexParent
][
tableMeta
.
columnIndex
]
let
jagain
=
data
[
indexParent
][
tableMeta
.
columnIndex
]
a
=
data
[
indexParent
][
tableMeta
.
columnIndex
]
=
jagain
==
undefined
?
(
0
+
Number
(
val
))
:
(
jagain
+
Number
(
val
))
a
=
data
[
indexParent
][
tableMeta
.
columnIndex
]
=
jagain
==
undefined
?
(
0
+
Number
(
val
))
:
(
jagain
+
Number
(
val
))
}
else
{
}
else
{
data
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
)
data
[
tableMeta
.
rowIndex
][
tableMeta
.
columnIndex
]
=
Number
(
val
)
}
}
this
.
forceUpdate
()
// console.log(this.state.dataTable)
// console.log(this.state.dataTable)
// this.setState({
// this.setState({
// data: a,
// data: a,
...
@@ -170,6 +201,11 @@ export default class BalanceSheet extends Component {
...
@@ -170,6 +201,11 @@ export default class BalanceSheet extends Component {
options
:
{
options
:
{
display
:
false
display
:
false
}
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
},
{
name
:
"Account"
,
name
:
"Account"
,
options
:
{
options
:
{
...
@@ -182,12 +218,12 @@ export default class BalanceSheet extends Component {
...
@@ -182,12 +218,12 @@ export default class BalanceSheet extends Component {
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
return
(
return
(
<
div
style
=
{{
width
:
388
}}
>
<
div
style
=
{{
width
:
388
}}
>
{
tableMeta
.
rowData
[
3
]
==
0
?
{
tableMeta
.
rowData
[
4
]
==
0
?
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
val
).
toUpperCase
()}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
fontWeight
:
'bold'
}}
>
{
String
(
val
).
toUpperCase
()}
<
/span
>
:
:
tableMeta
.
rowData
[
3
]
===
1
?
tableMeta
.
rowData
[
4
]
===
1
?
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
}}
>
{
val
}
<
/span>
:
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
val
}
<
/span>
:
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
40
}}
>
{
val
}
<
/span
>
<
span
style
=
{{
fontSize
:
12
,
marginLeft
:
20
*
Number
(
tableMeta
.
rowData
[
4
])
}}
>
{
val
}
<
/span
>
}
}
<
/div
>
<
/div
>
)
)
...
...
src/container/MasterData/Parameter/CreateParameter.js
View file @
98f0a777
...
@@ -346,13 +346,13 @@ export default class CreateParameter extends Component {
...
@@ -346,13 +346,13 @@ export default class CreateParameter extends Component {
}
else
if
((
!
R
.
isNil
(
this
.
state
.
tempData
.
max_value
)
&&
R
.
isNil
(
this
.
state
.
tempData
.
min_value
))
||
(
!
R
.
isEmpty
(
this
.
state
.
tempData
.
max_value
)
&&
R
.
isEmpty
(
this
.
state
.
tempData
.
min_value
)))
{
}
else
if
((
!
R
.
isNil
(
this
.
state
.
tempData
.
max_value
)
&&
R
.
isNil
(
this
.
state
.
tempData
.
min_value
))
||
(
!
R
.
isEmpty
(
this
.
state
.
tempData
.
max_value
)
&&
R
.
isEmpty
(
this
.
state
.
tempData
.
min_value
)))
{
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Min Value Cannot be Empty.'
})
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Min Value Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
tempData
.
start_date
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
tempData
.
start_date
))
{
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Start date
Cannot be Empty.'
})
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Valid From
Cannot be Empty.'
})
// } else if (R.isNil(this.state.tempData.order)) {
// } else if (R.isNil(this.state.tempData.order)) {
// this.setState({ errorOrder: true, msgErrorOrder: 'Order tidak boleh kosong' })
// this.setState({ errorOrder: true, msgErrorOrder: 'Order tidak boleh kosong' })
}
else
if
((
!
R
.
isNil
(
this
.
state
.
tempData
.
min_value
)
&&
R
.
isNil
(
this
.
state
.
tempData
.
max_value
))
||
(
!
R
.
isEmpty
(
this
.
state
.
tempData
.
min_value
)
&&
R
.
isEmpty
(
this
.
state
.
tempData
.
max_value
)))
{
}
else
if
((
!
R
.
isNil
(
this
.
state
.
tempData
.
min_value
)
&&
R
.
isNil
(
this
.
state
.
tempData
.
max_value
))
||
(
!
R
.
isEmpty
(
this
.
state
.
tempData
.
min_value
)
&&
R
.
isEmpty
(
this
.
state
.
tempData
.
max_value
)))
{
this
.
setState
({
errorMaxValue
:
true
,
msgErrorMaxValue
:
'Max Value Cannot be Empty.'
})
this
.
setState
({
errorMaxValue
:
true
,
msgErrorMaxValue
:
'Max Value Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
tempData
.
end_date
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
tempData
.
end_date
))
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
End date
Cannot be Empty.'
})
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
Valid To
Cannot be Empty.'
})
}
else
{
}
else
{
this
.
updateParameter
()
this
.
updateParameter
()
}
}
...
@@ -372,13 +372,13 @@ export default class CreateParameter extends Component {
...
@@ -372,13 +372,13 @@ export default class CreateParameter extends Component {
}
else
if
((
!
R
.
isNil
(
this
.
state
.
maxValue
)
&&
R
.
isNil
(
this
.
state
.
minValue
))
||
(
!
R
.
isNil
(
this
.
state
.
maxValue
)
&&
R
.
isEmpty
(
this
.
state
.
minValue
)))
{
}
else
if
((
!
R
.
isNil
(
this
.
state
.
maxValue
)
&&
R
.
isNil
(
this
.
state
.
minValue
))
||
(
!
R
.
isNil
(
this
.
state
.
maxValue
)
&&
R
.
isEmpty
(
this
.
state
.
minValue
)))
{
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Min Value Cannot be Empty.'
})
this
.
setState
({
errorMinValue
:
true
,
msgErrorMinValue
:
'Min Value Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Start date
Cannot be Empty.'
})
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Valid From
Cannot be Empty.'
})
// } else if (R.isNil(this.state.order)) {
// } else if (R.isNil(this.state.order)) {
// this.setState({ errorOrder: true, msgErrorOrder: 'Order tidak boleh kosong' })
// this.setState({ errorOrder: true, msgErrorOrder: 'Order tidak boleh kosong' })
}
else
if
((
!
R
.
isNil
(
this
.
state
.
minValue
)
&&
R
.
isNil
(
this
.
state
.
maxValue
))
||
(
!
R
.
isNil
(
this
.
state
.
minValue
)
&&
R
.
isEmpty
(
this
.
state
.
maxValue
)))
{
}
else
if
((
!
R
.
isNil
(
this
.
state
.
minValue
)
&&
R
.
isNil
(
this
.
state
.
maxValue
))
||
(
!
R
.
isNil
(
this
.
state
.
minValue
)
&&
R
.
isEmpty
(
this
.
state
.
maxValue
)))
{
this
.
setState
({
errorMaxValue
:
true
,
msgErrorMaxValue
:
'Max Value Cannot be Empty.'
})
this
.
setState
({
errorMaxValue
:
true
,
msgErrorMaxValue
:
'Max Value Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
End date
Cannot be Empty'
})
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
Valid To
Cannot be Empty'
})
}
else
{
}
else
{
this
.
createParameter
()
this
.
createParameter
()
}
}
...
@@ -586,7 +586,7 @@ export default class CreateParameter extends Component {
...
@@ -586,7 +586,7 @@ export default class CreateParameter extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"start_date"
id
=
"start_date"
label
=
"
Start Date
"
label
=
"
Valid From
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
value
=
{
this
.
state
.
tempData
===
null
?
''
:
this
.
state
.
tempData
.
start_date
}
value
=
{
this
.
state
.
tempData
===
null
?
''
:
this
.
state
.
tempData
.
start_date
}
error
=
{
this
.
state
.
errorStartDate
}
error
=
{
this
.
state
.
errorStartDate
}
...
@@ -753,7 +753,7 @@ export default class CreateParameter extends Component {
...
@@ -753,7 +753,7 @@ export default class CreateParameter extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"end_date"
id
=
"end_date"
label
=
"
End Date
"
label
=
"
Valid To
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
error
=
{
this
.
state
.
errorEndDate
}
error
=
{
this
.
state
.
errorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
...
@@ -962,7 +962,7 @@ export default class CreateParameter extends Component {
...
@@ -962,7 +962,7 @@ export default class CreateParameter extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"startDate"
id
=
"startDate"
label
=
"
Start Date
"
label
=
"
Valid From
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
error
=
{
this
.
state
.
errorStartDate
}
error
=
{
this
.
state
.
errorStartDate
}
helperText
=
{
this
.
state
.
msgErrorStartDate
}
helperText
=
{
this
.
state
.
msgErrorStartDate
}
...
@@ -1119,7 +1119,7 @@ export default class CreateParameter extends Component {
...
@@ -1119,7 +1119,7 @@ export default class CreateParameter extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"endDate"
id
=
"endDate"
label
=
"
End Date
"
label
=
"
Valid To
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
error
=
{
this
.
state
.
errorEndDate
}
error
=
{
this
.
state
.
errorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
...
...
src/container/MasterData/Parameter/Parameter.js
View file @
98f0a777
...
@@ -256,7 +256,7 @@ export default class Parameter extends Component {
...
@@ -256,7 +256,7 @@ export default class Parameter extends Component {
]
]
})
})
let
columns
=
[
let
columns
=
[
"Data
Ke-
"
,
"Data"
,
{
{
name
:
"Group"
,
name
:
"Group"
,
options
:
{
options
:
{
...
@@ -458,7 +458,7 @@ export default class Parameter extends Component {
...
@@ -458,7 +458,7 @@ export default class Parameter extends Component {
}
}
},
},
{
{
name
:
"
Berlaku Mulai
"
,
name
:
"
Valid To
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
@@ -483,7 +483,7 @@ export default class Parameter extends Component {
...
@@ -483,7 +483,7 @@ export default class Parameter extends Component {
}
}
},
},
{
{
name
:
"
Berlaku Hingga
"
,
name
:
"
Valid From
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
...
src/container/MasterData/UnitBisnis.js
View file @
98f0a777
...
@@ -86,7 +86,7 @@ export default class UnitBisnis extends Component {
...
@@ -86,7 +86,7 @@ export default class UnitBisnis extends Component {
]
]
})
})
let
columns
=
[
let
columns
=
[
"Data
Ke-
"
,
"Data"
,
{
{
name
:
"Business Unit"
,
name
:
"Business Unit"
,
options
:
{
options
:
{
...
@@ -113,7 +113,7 @@ export default class UnitBisnis extends Component {
...
@@ -113,7 +113,7 @@ export default class UnitBisnis extends Component {
}
}
},
},
{
{
name
:
"
Berlaku Mulai
"
,
name
:
"
Valid From
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
@@ -138,7 +138,7 @@ export default class UnitBisnis extends Component {
...
@@ -138,7 +138,7 @@ export default class UnitBisnis extends Component {
}
}
},
},
{
{
name
:
"
Berakhir Hingga
"
,
name
:
"
Valid To
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
...
src/container/MasterData/formUnitBisnis/CreateUnitBisnis.js
View file @
98f0a777
...
@@ -114,9 +114,9 @@ export default class CreateUnitBisnis extends Component {
...
@@ -114,9 +114,9 @@ export default class CreateUnitBisnis extends Component {
if
(
R
.
isEmpty
(
this
.
state
.
name
))
{
if
(
R
.
isEmpty
(
this
.
state
.
name
))
{
this
.
setState
({
errorName
:
true
,
msgErrorName
:
'Business unit Cannot be Empty.'
})
this
.
setState
({
errorName
:
true
,
msgErrorName
:
'Business unit Cannot be Empty.'
})
}
else
if
(
R
.
isEmpty
(
this
.
state
.
startDate
))
{
}
else
if
(
R
.
isEmpty
(
this
.
state
.
startDate
))
{
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Start date
Cannot be Empty.'
})
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Valid From
Cannot be Empty.'
})
}
else
if
(
R
.
isEmpty
(
this
.
state
.
endDate
)
||
this
.
state
.
endDate
===
null
)
{
}
else
if
(
R
.
isEmpty
(
this
.
state
.
endDate
)
||
this
.
state
.
endDate
===
null
)
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
End date
Cannot be Empty.'
})
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
Valid To
Cannot be Empty.'
})
}
else
{
}
else
{
let
payload
=
{
let
payload
=
{
"business_unit_id"
:
this
.
state
.
id
,
"business_unit_id"
:
this
.
state
.
id
,
...
@@ -132,9 +132,9 @@ export default class CreateUnitBisnis extends Component {
...
@@ -132,9 +132,9 @@ export default class CreateUnitBisnis extends Component {
if
(
R
.
isEmpty
(
this
.
state
.
name
))
{
if
(
R
.
isEmpty
(
this
.
state
.
name
))
{
this
.
setState
({
errorName
:
true
,
msgErrorName
:
'Business unit Cannot be Empty.'
})
this
.
setState
({
errorName
:
true
,
msgErrorName
:
'Business unit Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Start date
Cannot be Empty.'
})
this
.
setState
({
errorStartDate
:
true
,
msgErrorStartDate
:
'
Valid From
Cannot be Empty.'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
End date
Cannot be Empty.'
})
this
.
setState
({
errorEndDate
:
true
,
msgErrorEndDate
:
'
Valid To
Cannot be Empty.'
})
}
else
{
}
else
{
let
payload
=
{
let
payload
=
{
"business_unit_name"
:
this
.
state
.
name
,
"business_unit_name"
:
this
.
state
.
name
,
...
@@ -202,7 +202,7 @@ export default class CreateUnitBisnis extends Component {
...
@@ -202,7 +202,7 @@ export default class CreateUnitBisnis extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"startDate"
id
=
"startDate"
label
=
"
Start Date
"
label
=
"
Valid From
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
value
=
{
this
.
state
.
startDate
}
value
=
{
this
.
state
.
startDate
}
onChange
=
{(
e
)
=>
this
.
handleChange
(
e
,
'start_date'
)}
onChange
=
{(
e
)
=>
this
.
handleChange
(
e
,
'start_date'
)}
...
@@ -287,7 +287,7 @@ export default class CreateUnitBisnis extends Component {
...
@@ -287,7 +287,7 @@ export default class CreateUnitBisnis extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"startDate"
id
=
"startDate"
label
=
"
End Date
"
label
=
"
Valid To
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
error
=
{
this
.
state
.
errorEndDate
}
error
=
{
this
.
state
.
errorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
...
@@ -390,7 +390,7 @@ export default class CreateUnitBisnis extends Component {
...
@@ -390,7 +390,7 @@ export default class CreateUnitBisnis extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"startDate"
id
=
"startDate"
label
=
"
Start Date
"
label
=
"
Valid From
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
value
=
{
this
.
state
.
startDate
==
""
?
null
:
this
.
state
.
startDate
}
value
=
{
this
.
state
.
startDate
==
""
?
null
:
this
.
state
.
startDate
}
onChange
=
{(
e
)
=>
this
.
handleChange
(
e
,
'start_date'
)}
onChange
=
{(
e
)
=>
this
.
handleChange
(
e
,
'start_date'
)}
...
@@ -469,7 +469,7 @@ export default class CreateUnitBisnis extends Component {
...
@@ -469,7 +469,7 @@ export default class CreateUnitBisnis extends Component {
<
DatePicker
<
DatePicker
margin
=
"normal"
margin
=
"normal"
id
=
"endDate"
id
=
"endDate"
label
=
"
End Date
"
label
=
"
Valid To
"
format
=
"dd MMMM yyyy"
format
=
"dd MMMM yyyy"
error
=
{
this
.
state
.
errorEndDate
}
error
=
{
this
.
state
.
errorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
helperText
=
{
this
.
state
.
msgErrorEndDate
}
...
...
src/container/Otorisasi/User.js
View file @
98f0a777
...
@@ -141,7 +141,7 @@ export default class UserRole extends Component {
...
@@ -141,7 +141,7 @@ export default class UserRole extends Component {
})
})
let
columns
=
[
let
columns
=
[
"Data
Ke-
"
,
"Data"
,
"Full Name"
,
"Full Name"
,
{
{
name
:
"Email"
,
name
:
"Email"
,
...
@@ -195,7 +195,7 @@ export default class UserRole extends Component {
...
@@ -195,7 +195,7 @@ export default class UserRole extends Component {
}
}
},
},
{
{
name
:
"
Berlaku Mulai
"
,
name
:
"
Valid From
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
@@ -220,7 +220,7 @@ export default class UserRole extends Component {
...
@@ -220,7 +220,7 @@ export default class UserRole extends Component {
}
}
},
},
{
{
name
:
"
Berakhir Hingga
"
,
name
:
"
Valid To
"
,
options
:
{
options
:
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
customBodyRender
:
(
val
,
tableMeta
)
=>
{
let
check
=
null
let
check
=
null
...
...
src/container/SetPassword.js
View file @
98f0a777
...
@@ -197,7 +197,7 @@ class SetPassword extends Component {
...
@@ -197,7 +197,7 @@ class SetPassword extends Component {
/
>
/
>
<
Button
name
=
"submit"
variant
=
"contained"
disabled
=
{
this
.
state
.
password
.
trim
()
==
''
&&
this
.
state
.
confirmPassword
.
trim
()
==
''
?
true
:
false
}
onClick
=
{()
=>
this
.
validateReset
()}
style
=
{{
marginTop
:
50
,
width
:
'100%'
,
height
:
35
,
borderRadius
:
4
,
color
:
this
.
state
.
password
.
trim
()
==
''
&&
this
.
state
.
confirmPassword
.
trim
()
==
''
?
'#4b4b4b'
:
'#fff'
,
backgroundColor
:
this
.
state
.
password
.
trim
()
==
''
&&
this
.
state
.
confirmPassword
.
trim
()
==
''
?
'#d8d8d8'
:
'#51c6ea'
}}
>
<
Button
name
=
"submit"
variant
=
"contained"
disabled
=
{
this
.
state
.
password
.
trim
()
==
''
&&
this
.
state
.
confirmPassword
.
trim
()
==
''
?
true
:
false
}
onClick
=
{()
=>
this
.
validateReset
()}
style
=
{{
marginTop
:
50
,
width
:
'100%'
,
height
:
35
,
borderRadius
:
4
,
color
:
this
.
state
.
password
.
trim
()
==
''
&&
this
.
state
.
confirmPassword
.
trim
()
==
''
?
'#4b4b4b'
:
'#fff'
,
backgroundColor
:
this
.
state
.
password
.
trim
()
==
''
&&
this
.
state
.
confirmPassword
.
trim
()
==
''
?
'#d8d8d8'
:
'#51c6ea'
}}
>
<
Typography
style
=
{{
fontSize
:
12
,
fontFamily
:
'Nunito Sans, sans-serif'
}}
>
Lanju
t
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
12
,
fontFamily
:
'Nunito Sans, sans-serif'
}}
>
Nex
t
<
/Typography
>
<
/Button
>
<
/Button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
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