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
ca9290a6
Commit
ca9290a6
authored
Sep 21, 2023
by
fahrur huzain
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/fahrur' into 'ENV-DEV'
Dev/fahrur See merge request
!2004
parents
5baea9c4
f34ac53b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+17
-17
No files found.
src/container/MasterData/Parameter/CreateParameter.js
View file @
ca9290a6
...
@@ -728,13 +728,14 @@ export default class CreateParameter extends Component {
...
@@ -728,13 +728,14 @@ export default class CreateParameter extends Component {
}
}
async
validasiCreateEdit
(){
async
validasiCreateEdit
(){
console
.
log
(
"Masuk ke validasiCreateEdit"
)
//
console.log("Masuk ke validasiCreateEdit")
let
data
=
await
this
.
validasiValueData
()
let
data
=
await
this
.
validasiValueData
()
if
(
this
.
props
.
type
===
"edit"
){
if
(
this
.
props
.
type
===
"edit"
){
if
(
R
.
isNil
(
this
.
state
.
getTypes
)){
if
(
R
.
isNil
(
this
.
state
.
getTypes
)){
}
else
{
}
else
{
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"CURRENCY"
){
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"CURRENCY"
){
if
(
R
.
isNil
(
this
.
state
.
getReportName
))
{
if
(
R
.
isNil
(
this
.
state
.
getReportName
))
{
}
else
{
if
(
R
.
isEmpty
(
data
.
maxValue
)
||
data
.
maxValue
==
""
)
{
if
(
R
.
isEmpty
(
data
.
maxValue
)
||
data
.
maxValue
==
""
)
{
}
else
{
}
else
{
this
.
updateParameter
()
this
.
updateParameter
()
...
@@ -746,7 +747,6 @@ export default class CreateParameter extends Component {
...
@@ -746,7 +747,6 @@ export default class CreateParameter extends Component {
this
.
updateParameter
()
this
.
updateParameter
()
}
}
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"REPORT_SUBMIT_PERIOD"
)
{
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"REPORT_SUBMIT_PERIOD"
)
{
console
.
log
(
"masuk creat : "
+
data
.
maxValue
);
if
(
R
.
isEmpty
(
data
.
maxValue
)
||
data
.
maxValue
==
""
)
{
if
(
R
.
isEmpty
(
data
.
maxValue
)
||
data
.
maxValue
==
""
)
{
}
else
{
}
else
{
this
.
updateParameter
()
this
.
updateParameter
()
...
@@ -760,7 +760,8 @@ export default class CreateParameter extends Component {
...
@@ -760,7 +760,8 @@ export default class CreateParameter extends Component {
}
else
{
}
else
{
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"CURRENCY"
){
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"CURRENCY"
){
if
(
R
.
isNil
(
this
.
state
.
getReportName
))
{
if
(
R
.
isNil
(
this
.
state
.
getReportName
))
{
if
(
R
.
isEmpty
(
data
.
maxValue
))
{
}
else
{
if
(
R
.
isEmpty
(
data
.
maxValue
)
||
data
.
maxValue
==
""
)
{
}
else
{
}
else
{
this
.
createParameter
()
this
.
createParameter
()
}
}
...
@@ -771,7 +772,6 @@ export default class CreateParameter extends Component {
...
@@ -771,7 +772,6 @@ export default class CreateParameter extends Component {
this
.
createParameter
()
this
.
createParameter
()
}
}
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"REPORT_SUBMIT_PERIOD"
)
{
}
else
if
(
this
.
state
.
getTypes
.
setting_group_name
==
"REPORT_SUBMIT_PERIOD"
)
{
console
.
log
(
"masuk creat : "
+
data
.
maxValue
);
if
(
R
.
isEmpty
(
data
.
maxValue
)
||
data
.
maxValue
==
""
)
{
if
(
R
.
isEmpty
(
data
.
maxValue
)
||
data
.
maxValue
==
""
)
{
}
else
{
}
else
{
this
.
createParameter
()
this
.
createParameter
()
...
@@ -936,22 +936,22 @@ export default class CreateParameter extends Component {
...
@@ -936,22 +936,22 @@ export default class CreateParameter extends Component {
}
}
async
validasiCreate
()
{
async
validasiCreate
()
{
console
.
log
(
this
.
state
.
getFormatData
);
//
console.log(this.state.getFormatData);
console
.
log
(
this
.
state
.
tempData
);
//
console.log(this.state.tempData);
console
.
log
(
this
.
state
.
getTypes
);
//
console.log(this.state.getTypes);
console
.
log
(
this
.
state
.
getParameter
);
//
console.log(this.state.getParameter);
console
.
log
(
this
.
state
.
getPerusahaan
);
//
console.log(this.state.getPerusahaan);
console
.
log
(
this
.
state
.
getReportName
);
//
console.log(this.state.getReportName);
console
.
log
(
this
.
state
.
value
);
//
console.log(this.state.value);
console
.
log
(
this
.
state
.
minValue
);
//
console.log(this.state.minValue);
console
.
log
(
this
.
state
.
startDate
);
//
console.log(this.state.startDate);
console
.
log
(
this
.
state
.
maxValue
);
//
console.log(this.state.maxValue);
console
.
log
(
this
.
state
.
maxValue
.
substring
(
0
,
1
));
//
console.log(this.state.maxValue.substring(0,1));
let
minMaxValidasi
=
await
this
.
validasiMinMaxValue
()
let
minMaxValidasi
=
await
this
.
validasiMinMaxValue
()
let
data
=
await
this
.
validasiValueData
()
let
data
=
await
this
.
validasiValueData
()
let
response
=
await
this
.
validasiRegexValue
()
let
response
=
await
this
.
validasiRegexValue
()
console
.
log
(
data
);
//
console.log(data);
console
.
log
(
data
.
endDate
)
//
console.log(data.endDate)
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
if
(
R
.
isNil
(
this
.
state
.
getTypes
))
{
this
.
setState
({
errorGroup
:
true
,
msgErrorGroup
:
'Group Cannot be Empty'
})
this
.
setState
({
errorGroup
:
true
,
msgErrorGroup
:
'Group Cannot be Empty'
})
if
(
R
.
isNil
(
this
.
state
.
getParameter
)){
if
(
R
.
isNil
(
this
.
state
.
getParameter
)){
...
...
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