cUser.js 703 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Created by benzhan on 15/8/15.
  3. */
  4. var Model = require('../framework/Model.js');
  5. var util = require('util');
  6. util.inherits(cUser, Model);
  7. var prototype = cUser.prototype;
  8. /**
  9. * @type {cUser}
  10. */
  11. var that;
  12. function cUser() {
  13. that = this;
  14. var tableName = 'cUser';
  15. var dbKey = 'Web';
  16. Model.call(this, tableName, dbKey);
  17. }
  18. prototype.getAllUser = function() {
  19. var selectSQL = 'select * from cUser';
  20. return this.objDb.getAll(selectSQL, 10);
  21. }
  22. prototype.getvMenuNode = function() {
  23. var selectSQL = 'select * from vMenuNode';
  24. return this.objDb.getAll(selectSQL);
  25. }
  26. prototype.getAllUser2 = function() {
  27. return this.objTable.getAll();
  28. }
  29. module.exports = cUser;