Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
Austin edited this page Dec 24, 2018 · 6 revisions

Database

The database has a field for employee objects called "Active" if "active=1" then the getAllEmployees function will return the employee to render in the app otherwise that employee exists in the database but is "invisible" to the app.

employeeSchedule.js

accept:

0 : Not Accepted
1 : Accepted
2 : Declined

Models control

mongodb: db_controller.js - helper.js - /children. mongodb_user: db_controller.js - helper.js - server.js - manageremployeeall.js

Change data in the database

Use helper class to pass information into reactjs state. Just directly change the value of reactjs state[element]. And then call helper.update() type of function to update from state.

Clone this wiki locally