Commit c4b7a895 authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

add não declarado to boolean variables in docentes

parent 66e88d8e
......@@ -19,7 +19,7 @@ along with simcaq-node. If not, see <https://www.gnu.org/licenses/>.
*/
module.exports = function booleanVariable(id) {
if (id == null)
if (id == null || id == "null")
return 'Não Declarado';
else if (id == false)
return 'Não';
......
......@@ -102,7 +102,10 @@ teacherEnrollmentApp.get('/work_regime', (req, res, next) => {
}, response('work_regime'));
teacherEnrollmentApp.get('/substitute', (req, res, next) => {
req.result = [];
req.result = [{
id: "null",
name: id2str.booleanVariable("null")
}];
for(let i = 0; i <= 1; ++i) {
req.result.push({
id: i,
......@@ -113,7 +116,10 @@ teacherEnrollmentApp.get('/substitute', (req, res, next) => {
}, response('substitute'));
teacherEnrollmentApp.get('/visitor', (req, res, next) => {
req.result = [];
req.result = [{
id: "null",
name: id2str.booleanVariable("null")
}];
for(let i = 0; i <= 1; ++i) {
req.result.push({
id: i,
......@@ -124,7 +130,10 @@ teacherEnrollmentApp.get('/visitor', (req, res, next) => {
}, response('visitor'));
teacherEnrollmentApp.get('/ead_teacher', (req, res, next) => {
req.result = [];
req.result = [{
id: "null",
name: id2str.booleanVariable("null")
}];
for(let i = 0; i <= 1; ++i) {
req.result.push({
id: i,
......@@ -135,7 +144,10 @@ teacherEnrollmentApp.get('/ead_teacher', (req, res, next) => {
}, response('ead_teacher'));
teacherEnrollmentApp.get('/graduation_presential', (req, res, next) => {
req.result = [];
req.result = [{
id: "null",
name: id2str.booleanVariable("null")
}];
for(let i = 0; i <= 1; ++i) {
req.result.push({
id: i,
......@@ -146,7 +158,10 @@ teacherEnrollmentApp.get('/graduation_presential', (req, res, next) => {
}, response('graduation_presential'));
teacherEnrollmentApp.get('/postgraduate_ead_teacher', (req, res, next) => {
req.result = [];
req.result = [{
id: "null",
name: id2str.booleanVariable("null")
}];
for(let i = 0; i <= 1; ++i) {
req.result.push({
id: i,
......@@ -157,7 +172,10 @@ teacherEnrollmentApp.get('/postgraduate_ead_teacher', (req, res, next) => {
}, response('postgraduate_ead_teacher'));
teacherEnrollmentApp.get('/postgraduate_presential_teacher', (req, res, next) => {
req.result = [];
req.result = [{
id: "null",
name: id2str.booleanVariable("null")
}];
for(let i = 0; i <= 1; ++i) {
req.result.push({
id: i,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment