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
4db33235
Commit
4db33235
authored
Aug 28, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into riri
parents
2eb7878c
535cc7f6
Changes
1
Hide 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 @
4db33235
...
...
@@ -186,13 +186,13 @@ export default class CreatePerusahaan extends Component {
validasiEdit
()
{
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
))
{
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
))
{
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
))
{
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
required
'
})
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
Cannot be Empty
'
})
}
else
{
let
payload
=
{
"company_id"
:
this
.
state
.
companyID
,
...
...
@@ -208,13 +208,13 @@ export default class CreatePerusahaan extends Component {
validasi
()
{
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
))
{
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
))
{
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
))
{
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
required
'
})
this
.
setState
({
errorED
:
true
,
msgErrorED
:
'Valid To
Cannot be Empty
'
})
}
else
{
let
payload
=
{
...
...
@@ -538,7 +538,7 @@ export default class CreatePerusahaan extends Component {
<
div
className
=
"margin-top-10px"
style
=
{{
padding
:
10
,
borderRadius
:
5
,
backgroundColor
:
'#e8e8e8'
,
}}
>
<
TextField
style
=
{{
width
:
'100%'
}}
defaultValue
=
{
"A
ktif
"
}
defaultValue
=
{
"A
ctive
"
}
id
=
"status"
label
=
"Status"
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