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
535cc7f6
Commit
535cc7f6
authored
Aug 28, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
compeni See merge request
!200
parents
d81e5ccc
dc007aaf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
CreatePerusahaan.js
src/container/MasterData/Perusahaan/CreatePerusahaan.js
+9
-9
No files found.
src/container/MasterData/Perusahaan/CreatePerusahaan.js
View file @
535cc7f6
...
@@ -186,13 +186,13 @@ export default class CreatePerusahaan extends Component {
...
@@ -186,13 +186,13 @@ export default class CreatePerusahaan extends Component {
validasiEdit
()
{
validasiEdit
()
{
if
(
R
.
isEmpty
(
this
.
state
.
company
))
{
if
(
R
.
isEmpty
(
this
.
state
.
company
))
{
this
.
setState
({
errorNP
:
true
,
msgErrorNP
:
'Company Name
required
'
})
this
.
setState
({
errorNP
:
true
,
msgErrorNP
:
'Company Name
Cannot be Empty
'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
this
.
setState
({
errorUB
:
true
,
msgErrorUB
:
'Business Unit
required
'
})
this
.
setState
({
errorUB
:
true
,
msgErrorUB
:
'Business Unit
Cannot be Empty
'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
this
.
setState
({
errorSD
:
true
,
msgErrorSD
:
'Valid From
required
'
})
this
.
setState
({
errorSD
:
true
,
msgErrorSD
:
'Valid From
Cannot be Empty
'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
required
'
})
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
Cannot be Empty
'
})
}
else
{
}
else
{
let
payload
=
{
let
payload
=
{
"company_id"
:
this
.
state
.
companyID
,
"company_id"
:
this
.
state
.
companyID
,
...
@@ -208,13 +208,13 @@ export default class CreatePerusahaan extends Component {
...
@@ -208,13 +208,13 @@ export default class CreatePerusahaan extends Component {
validasi
()
{
validasi
()
{
if
(
R
.
isEmpty
(
this
.
state
.
company
))
{
if
(
R
.
isEmpty
(
this
.
state
.
company
))
{
this
.
setState
({
errorNP
:
true
,
msgErrorNP
:
'Company Name
required
'
})
this
.
setState
({
errorNP
:
true
,
msgErrorNP
:
'Company Name
Cannot be Empty
'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
this
.
setState
({
errorUB
:
true
,
msgErrorUB
:
'Business Unit
required
'
})
this
.
setState
({
errorUB
:
true
,
msgErrorUB
:
'Business Unit
Cannot be Empty
'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
startDate
))
{
this
.
setState
({
errorSD
:
true
,
msgErrorSD
:
'Valid From
required
'
})
this
.
setState
({
errorSD
:
true
,
msgErrorSD
:
'Valid From
Cannot be Empty
'
})
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
}
else
if
(
R
.
isNil
(
this
.
state
.
endDate
))
{
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
required
'
})
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
Cannot be Empty
'
})
}
}
else
{
else
{
let
payload
=
{
let
payload
=
{
...
@@ -538,7 +538,7 @@ export default class CreatePerusahaan extends Component {
...
@@ -538,7 +538,7 @@ export default class CreatePerusahaan extends Component {
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
,
backgroundColor
:
'#e8e8e8'
,
}}
>
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
,
backgroundColor
:
'#e8e8e8'
,
}}
>
<
TextField
<
TextField
style
=
{{
width
:
'100%'
}}
style
=
{{
width
:
'100%'
}}
defaultValue
=
{
"A
ktif
"
}
defaultValue
=
{
"A
ctive
"
}
id
=
"status"
id
=
"status"
label
=
"Status"
label
=
"Status"
disabled
disabled
...
...
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