Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
51268d1d
Commit
51268d1d
authored
6 years ago
by
Fernando Erd
Browse files
Options
Downloads
Patches
Plain Diff
Issue#506
parent
b05a5b9d
No related branches found
No related tags found
1 merge request
!162
V1.8.0
Pipeline
#18425
failed
6 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/libs/convert/integralTime.js
+8
-0
8 additions, 0 deletions
src/libs/convert/integralTime.js
src/libs/convert/period.js
+1
-1
1 addition, 1 deletion
src/libs/convert/period.js
src/libs/middlewares/id2str.js
+7
-3
7 additions, 3 deletions
src/libs/middlewares/id2str.js
with
16 additions
and
4 deletions
src/libs/convert/integralTime.js
0 → 100644
+
8
−
0
View file @
51268d1d
module
.
exports
=
function
integralTime
(
id
)
{
if
(
id
==
null
)
return
'
Não se aplica (semi presencial e EaD)
'
;
else
if
(
id
==
false
)
return
'
Não
'
;
else
if
(
id
==
true
)
return
'
Sim
'
;
};
This diff is collapsed.
Click to expand it.
src/libs/convert/period.js
+
1
−
1
View file @
51268d1d
...
...
@@ -7,6 +7,6 @@ module.exports = function period(id) {
case
3
:
return
'
Noturno
'
;
default
:
return
'
Indefinido
'
;
return
'
Não se aplica (semi presencial e EaD)
'
;
}
};
This diff is collapsed.
Click to expand it.
src/libs/middlewares/id2str.js
+
7
−
3
View file @
51268d1d
...
...
@@ -30,6 +30,8 @@ const useTransport = require(`${libs}/convert/booleanVariable`);
const
useTransportPublic
=
require
(
`
${
libs
}
/convert/booleanVariable`
);
const
transportationManager
=
require
(
`
${
libs
}
/convert/transportationManager`
);
const
specialClass
=
require
(
`
${
libs
}
/convert/booleanVariable`
);
const
integralTime
=
require
(
`
${
libs
}
/convert/integralTime`
);
const
educationLevelSchoolYear
=
require
(
`
${
libs
}
/convert/educationLevelSchoolYear`
);
const
ids
=
{
gender_id
:
gender
,
...
...
@@ -46,7 +48,7 @@ const ids = {
location_detailed_id
:
ruralLocation
,
ethnic_group_id
:
ethnicGroup
,
agreement_id
:
agreement
,
integral_time_id
:
booleanVariabl
e
,
integral_time_id
:
integralTim
e
,
government_agreement_id
:
booleanVariable
,
education_day_care_child_id
:
booleanVariable
,
education_preschool_child_id
:
booleanVariable
,
...
...
@@ -71,7 +73,8 @@ const ids = {
use_transport_id
:
useTransport
,
use_transport_public_id
:
useTransportPublic
,
transportation_manager_id
:
transportationManager
,
special_class_id
:
specialClass
special_class_id
:
specialClass
,
education_level_school_year_id
:
educationLevelSchoolYear
,
};
function
transform
(
removeId
=
false
)
{
...
...
@@ -141,5 +144,6 @@ module.exports = {
extremesHouseholdIncome
,
useTransport
,
transportationManager
,
specialClass
specialClass
,
integralTime
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment