cfg_control.js 622 B

12345678910111213141516171819202122232425
  1. /**
  2. * Created by Tony on 2016/12/23.
  3. */
  4. let mongoose = require('mongoose');
  5. let dbm = require("../../../config/db/db_manager");
  6. let smartcostdb = dbm.getCfgConnection("Reports");
  7. let Schema = mongoose.Schema;
  8. let CtrlSchema = new Schema({
  9. "ID" : String,
  10. "Shrink" : String,
  11. "ShowZero" : String,
  12. "Horizon" : String,
  13. "Vertical" : String,
  14. "Wrap" : String
  15. });
  16. let Control = smartcostdb.model("com_ctrls", CtrlSchema, "com_ctrls");
  17. let cfgCommonClass = require('./cfg_common');
  18. class CtrlDAO extends cfgCommonClass{
  19. constructor(){
  20. super(Control);
  21. };
  22. };
  23. module.exports = new CtrlDAO();